/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  /* Updated to use web-safe fonts instead of Google Fonts */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #4a4a4a;
  background-color: #fefefe;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* Updated to use web-safe serif fonts instead of Google Fonts */
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #2c2c2c;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

a {
  color: #c44569;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #a0336b;
  outline: 2px solid transparent;
}

a:focus-visible {
  outline: 2px solid #c44569;
  outline-offset: 2px;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and Navigation */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.nav-brand .logo h1 {
  font-size: 1.8rem;
  color: #c44569;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: #4a4a4a;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #c44569;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #c44569;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: #4a4a4a;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fdf2f8 0%, #f8fafc 100%);
  padding: 4rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  color: #2c2c2c;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.cta-button {
  display: inline-block;
  background-color: #c44569;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  min-width: 44px;
  min-height: 44px;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #a0336b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 69, 105, 0.3);
}

.cta-button-secondary {
  display: inline-block;
  background-color: transparent;
  color: #c44569;
  padding: 1rem 2rem;
  border: 2px solid #c44569;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 44px;
  min-height: 44px;
}

.cta-button-secondary:hover,
.cta-button-secondary:focus {
  background-color: #c44569;
  color: white;
  transform: translateY(-2px);
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c2c2c;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #c44569;
}

/* Featured Articles */
.featured-articles {
  padding: 5rem 0;
  background-color: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  margin-bottom: 1rem;
}

.article-title a {
  color: #2c2c2c;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: #c44569;
}

.article-excerpt {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.read-more {
  color: #c44569;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Categories Section */
.categories {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fdf2f8 0%, #f8fafc 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
  margin-bottom: 1.5rem;
}

.category-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.category-title {
  color: #2c2c2c;
  margin-bottom: 1rem;
}

.category-description {
  color: #6b7280;
  font-size: 1rem;
}

/* Recent Articles */
.recent-articles {
  padding: 5rem 0;
  background-color: #fff;
}

.articles-list {
  max-width: 800px;
  margin: 0 auto;
}

.article-item {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.article-item:last-child {
  border-bottom: none;
}

.article-meta {
  margin-bottom: 0.5rem;
}

.article-meta time {
  color: #9ca3af;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-item .article-title {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.article-item .article-excerpt {
  font-size: 1rem;
  margin-bottom: 0;
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

/* Footer */
.footer {
  background-color: #2c2c2c;
  color: #d1d5db;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: #c44569;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #c44569;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #9ca3af;
}

.footer-bottom a:hover {
  color: #c44569;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Articles Grid */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Categories Grid */
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .featured-articles,
  .categories,
  .recent-articles {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .article-card {
    margin: 0 0.5rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .cta-button,
  .cta-button-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .article-card,
  .category-card {
    border: 2px solid #2c2c2c;
  }

  .cta-button {
    border: 2px solid #c44569;
  }
}

/* Focus styles for better accessibility */
*:focus-visible {
  outline: 2px solid #c44569;
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #c44569;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* Article card titles on categories page - smaller than article-title in articles */
.article-card-title {
  font-size: 1.5rem;
  color: #2c2c2c;
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  line-height: 1.3;
}

.article-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-card-title a:hover {
  color: #8b5cf6;
}

/* Responsive styles for article card titles */
@media (max-width: 768px) {
  .article-card-title {
    font-size: 1.25rem;
  }
}
