/* CSS Variables */
:root {
    --Playfair: 'Playfair Display', serif;
}

/* GENERAL */
body {
    margin: 0;
    font-family: "Yrsa", serif;
    background: #fdfdfd;
    color: #333;
  }

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.2rem;
}
  
  /* NAVBAR */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffdfd;
    box-shadow: #1f1f1f;
    color: rgb(0, 0, 0);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .brand {
    font-weight: 500;
    font-size: 40px;
    font-family: "dm serif text", serif;
    font-style: normal;
  }
  
  .hamburger {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
  }
  .progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #00a86b; /* A green accent, feel free to adjust */
    z-index: 9999;
    transition: width 0.2s ease-out;
  }
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 20px;
    font-family: "Yrsa" serif;
  }
  
  .nav-links a:hover {
    color: #8b86ef;
  }
  
  /* DROPDOWN STYLING */
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
    .brand{
      font-size: 30px;
    }
    .nav-links {
      flex-direction: column;
      background: #1f1f1f;
      position: absolute;
      top: 65px;
      right: 20px;
      width: 150px;
      border-radius: 6px;
      display: none;
      padding: 1rem;
    }
    .nav-links a {
      color: white;
   
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .nav-links li {
      margin: 0.5rem 0;
    }
  }
  
  /* BLOG SECTION */
  .blog-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .blog-title {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    padding: 10px;
    font-family: "DM Serif Text", serif;
  }
  .blog-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  
  /* HERO IMAGE STYLES */
  .hero-image-container {
    margin: 2rem 0;
    text-align: center;
  }
  
  .hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .hero-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  }
  
  .hero-image-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Desktop: More compact hero image */
  @media (min-width: 769px) {
    .hero-image-container {
      margin: 1rem 0;
    }
    
    .hero-image {
      max-width: 600px; /* Smaller max-width on desktop */
      max-height: 400px; /* Limit height on desktop */
      object-fit: cover; /* Maintain aspect ratio while fitting in container */
      object-position: center; /* Center the image */
    }
    
    .hero-image-caption {
      margin-top: 0.8rem;
      font-size: 0.9rem;
      max-width: 500px;
    }
  }
  
  /* Responsive hero image adjustments */
  @media (max-width: 768px) {
    .hero-image-container {
      margin: 1.5rem 0;
    }
    
    .hero-image {
      max-width: 100%;
      border-radius: 8px;
      max-height: none; /* Remove height restriction on mobile */
    }
    
    .hero-image-caption {
      font-size: 0.9rem;
      margin-top: 0.8rem;
      padding: 0 1rem;
    }
  }

  /* IMAGE PLACEHOLDER STYLES */
  .image-placeholder-container {
    margin: 2rem 0;
    text-align: center;
  }
  
  .image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .image-placeholder:hover {
    border-color: #00a86b;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.1);
    transform: translateY(-2px);
  }
  
  .placeholder-content {
    text-align: center;
    color: #6c757d;
    width: 100%;
    height: 100%;
  }
  
  /* Make any image inside the placeholder fill the visible frame */
  .image-placeholder .placeholder-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: none;
    border-radius: 15px;
  }
  
  .placeholder-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
    display: block;
  }
  
  .placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-family: "DM Serif Text", serif;
  }
  
  .placeholder-subtext {
    font-size: 0.9rem;
    margin: 0;
    color: #6c757d;
    font-style: italic;
  }
  
  .image-placeholder-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Desktop: More compact placeholder */
  @media (min-width: 769px) {
    .image-placeholder-container {
      margin: 1.5rem 0;
    }
    
    .image-placeholder {
      max-width: 500px;
      height: 250px;
    }
    
    .placeholder-icon {
      font-size: 2.5rem;
    }
    
    .placeholder-text {
      font-size: 1.1rem;
    }
    
    .image-placeholder-caption {
      font-size: 0.9rem;
      max-width: 400px;
    }
  }
  
  /* Mobile: Responsive placeholder adjustments */
  @media (max-width: 768px) {
    .image-placeholder-container {
      margin: 1.5rem 0;
    }
    
    .image-placeholder {
      max-width: 100%;
      height: 200px;
      border-radius: 8px;
    }
    
    .placeholder-icon {
      font-size: 2rem;
    }
    
    .placeholder-text {
      font-size: 1rem;
    }
    
    .placeholder-subtext {
      font-size: 0.8rem;
    }
    
    .image-placeholder-caption {
      font-size: 0.85rem;
      margin-top: 0.8rem;
      padding: 0 1rem;
    }
  }
  .blog-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .blog-banner {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
  }
  
  /* FOOTER */
  footer {
    background: #f0f0f0;
    text-align: left;
    padding: 2rem;
  }
  
  .footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }
  
  .footer-links a {
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 500;
  }
  
  .footer-links a:hover {
    color: #22c55e;
  }
  
  /* RESPONSIVE */
  @media (max-width: 480px) {
    .blog-title {
      font-size: 3rem;
    }
  }
  /* Font size Selection */
  h1 {
    font-size: 3rem; /* Main blog title */
    margin-bottom: 1rem;
    color: #333;
    font-family: "DM Serif Text", serif;
  }
  
  h2 {
    font-size: 2.2rem; /* Subsection headings */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-family: "DM Serif Text", serif;
  }
  
  h3 {
    font-size: 1.6rem; /* Smaller subheadings */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
    font-family: "Yrsa", serif;
  }
  
  /* Desktop: Make H3 tags appear as H2 */
  @media (min-width: 769px) {
    .blog-container h3,
    .section h3 {
      font-size: 2.4rem !important; /* Same as H2 on desktop */
      font-weight: 500 !important; /* Make them more prominent like H2 */
      margin-top: 2.5rem !important;
      margin-bottom: 1.2rem !important;
      line-height: 1.3 !important;
      color: #333 !important;
      font-family: "DM Serif Text", serif !important;
      letter-spacing: 0.02em !important;
    }
  }
  
  /* Mobile: Keep H3 tags as they are */
  @media (max-width: 768px) {
    .blog-container h3,
    .section h3 {
      font-size: 1.9rem !important; /* Keep original H3 size on mobile */
      font-weight: 500 !important;
      margin-top: 1.5rem !important;
      margin-bottom: 0.8rem !important;
      line-height: 1.4 !important;
      color: #191919 !important;
      font-family: "Yrsa", serif !important;
    }
  }
  
  /* Tablet: Intermediate styling */
  @media (min-width: 769px) and (max-width: 1024px) {
    .blog-container h3,
    .section h3 {
      font-size: 1.9rem !important; /* Slightly larger than mobile but smaller than desktop */
      font-weight: 600 !important;
      margin-top: 2rem !important;
      margin-bottom: 1rem !important;
      line-height: 1.35 !important;
      color: #333 !important;
      font-family: "DM Serif Text", serif !important;
      letter-spacing: 0.01em !important;
    }
  }
p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 1.2em;
  color: #333;
  text-align: justify;
  font-family: 'Yrsa', sans-serif;
}
  
  /* SEO-friendly link styling */
  a {
    color: #00a86b;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: #008f5a;
    text-decoration: underline;
  }
  
  /* Table of contents styling */
  .section ul {
    list-style-type: none;
    padding-left: 0;
  }
  
  .section ul li {
    margin-bottom: 0.8rem;
  }
  
  .section ul li a {
    color: #333;
    font-weight: 500;
    padding: 0.8rem 1rem;
    display: block;
    border-bottom: 2px solid #ddd;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .section ul li a:hover {
    color: #00a86b;
    padding-left: 1.5rem;
    border-bottom-color: #00a86b;
    background-color: #e8f5e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateX(5px);
  }
  
  /* Smooth scrolling for the entire page */
  html {
    scroll-behavior: smooth;
  }
  
  /* Numbered subheadings styling */
  .section h3 {
    counter-increment: subheading;
    position: relative;
    padding-left: 2.5rem;
  }
  
  .section h3::before {
    content: counter(subheading);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #00a86b, #28a745);
    color: white;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  /* Reset counter for each section */
  .section {
    counter-reset: subheading;
  }
  
  /* Enhanced subheading styling */
  .section h3 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: 8px;
    margin: 1.5rem 0 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
ul li {
  font-size: 20px;
  line-height: 1.5;
  font-family: "Yrsa", sans-serif;
}
  /* Section Backgrounds (Pastel Colors) */
  
  .section {
    margin: 0.5rem;
    border-radius: 8px;
  }
  
  /* Highlighted Keywords */
  .highlight {
    background-color: #fdf3e7;
    font-weight: 600;
    padding: 0 0.2em;
    border-radius: 4px;
  }
  
  /* Blockquote Styling */
  blockquote {
    border-left: 4px solid #00ff11;
    padding-left: 1rem;
    font-style: italic;
    color: #555;
    margin: 1rem 0;
  }
  .info-highlight {
     background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .site-footer {
    background: #f7f9fa;
    border-top: 1px solid #e0e4ea;
    padding: 32px 0 16px 0;
    color: #385650;
    font-size: 1rem;
    letter-spacing: 0.01em;
    margin-top: 48px;
  }
  
  .footer-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
  }
  
  .footer-brand {
    font-size: 1.35em;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
  }
  
  .footer-links {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
  }
  
  .footer-links a {
    text-decoration: none;
    color: #000000;
    background: rgba(65, 124, 99, 0.07);
    padding: 7px 14px;
    border-radius: 22px;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .footer-links a:hover {
    background: #c6e7d2;
    color: #000000;
  }
  
  .footer-icon {
    font-size: 1.2em;
    vertical-align: middle;
  }
  
  .footer-copy {
    font-size: 0.93em;
    color: #000000;
    margin-top: 10px;
    letter-spacing: 0.03em;
  }
  
  /* Responsive tweaks */
  @media (max-width: 650px) {
    .footer-links {
      flex-direction: column;
      gap: 7px;
    }
    .footer-brand {
      margin-bottom: 20px;
    }
    
    /* Mobile adjustments for numbered subheadings */
    .section h3 {
      padding-left: 2rem;
      font-size: 1.4rem;
    }
    
    .section h3::before {
      width: 1.5rem;
      height: 1.5rem;
      font-size: 0.8rem;
    }
    
    /* Mobile table of contents adjustments */
    .toc-section ul li a {
      font-size: 1rem;
      padding: 0.6rem 0.8rem;
    }
  }
  /* Tip Box Styling */
  .tip-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  /* Hero Section: Title Block with Sky Blue Pastel */
  .hero-section {
    margin-top: 3rem; /* adds space from nav */
    background-color: #e7f1fc; /* soft sky blue */
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }
  
  .hero-section h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    padding-bottom: 25px;
  }
  
  .hero-section p {
    font-size: 1.125rem;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* Special styling for Table of Contents section */
  .section:has(h2:contains("Table of Contents")) {
    background-color: #f0f8ff;
    border: 2px solid #e0e8f0;
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .section:has(h2:contains("Table of Contents")) h2 {
    color: #2c5aa0;
    border-bottom: 3px solid #00a86b;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Enhanced table of contents styling */
  .toc-section ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5aa0;
    border-left: 4px solid #00a86b;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
  }
  
  .toc-section ul li a:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-left-color: #28a745;
    color: #155724;
  }
  
  /* New Footer Styles for Updated Footer Structure */
  .footer {
      background: linear-gradient(135deg, #2c5530, #1a3d1f);
      color: #fff;
      padding: 3rem 0 0 0;
      position: relative;
  }
  
  .footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50);
  }
  
  .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
  }
  
  .footer-section h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      margin-bottom: 1rem;
      color: #8BC34A;
  }
  
  .footer-section h4 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      margin-bottom: 1rem;
      color: #8BC34A;
  }
  
  .footer-section p {
      line-height: 1.6;
      margin-bottom: 1.5rem;
      opacity: 0.9;
      color: white;
  font-size: 20px; /* Override for footer */
  }
  
  .footer-section ul {
      list-style: none;
      padding: 0;
  }
  
  .footer-section ul li {
      margin-bottom: 0.8rem;
  }
  
  .footer-section ul li a {
      color: #fff;
      text-decoration: none;
      transition: all 0.3s ease;
      position: relative;
      padding-left: 0;
  }
  
  .footer-section ul li a::before {
      content: '→';
      position: absolute;
      left: -20px;
      opacity: 0;
      transition: all 0.3s ease;
      color: #8BC34A;
  }
  
  .footer-section ul li a:hover::before {
      opacity: 1;
      left: -15px;
  }
  
  .footer-section ul li a:hover {
      color: #8BC34A;
      padding-left: 5px;
  }
  
  .social-links {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
  }
  
  .social-links a {
      width: 45px;
      height: 45px;
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid rgba(255, 255, 255, 0.2);
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      text-decoration: none;
      transition: all 0.3s ease;
      font-size: 1.1rem;
  }
  
  .social-links a:hover {
      background: #8BC34A;
      border-color: #8BC34A;
      color: #fff;
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3);
  }
  
  .newsletter-form {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
  }
  
  .newsletter-form input {
      flex: 1;
      padding: 0.8rem 1rem;
      border: none;
      border-radius: 25px;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      font-size: 0.9rem;
  }
  
  .newsletter-form input::placeholder {
      color: rgba(255, 255, 255, 0.7);
  }
  
  .newsletter-form input:focus {
      outline: none;
      background: rgba(255, 255, 255, 0.15);
  }
  
  .newsletter-form button {
      padding: 0.8rem 1.2rem;
      border: none;
      border-radius: 25px;
      background: #8BC34A;
      color: #fff;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1rem;
  }
  .footer-section{
    padding: 10px;
  }
  .newsletter-form button:hover {
      background: #4CAF50;
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  }
  
  .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 1.5rem 0;
      text-align: left;
  }
  
  .footer-bottom-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
  }
  
  .footer-bottom-content p {
      margin: 0;
      opacity: 0.8;
      font-size: 0.9rem;
      color: white;
  font-size: 14px; /* Override for footer bottom */
  }
  
  /* Footer responsive adjustments */
  @media screen and (max-width: 767px) {
      .footer-content {
          grid-template-columns: 1fr;
          gap: 1.5rem;
      }
      
      .footer-bottom-content {
          flex-direction: column;
          text-align: left;
      }
      
      .newsletter-form {
          flex-direction: column;
      }
      
      .newsletter-form button {
          width: 100%;
      }
  }
  
  @media screen and (min-width: 768px) {
      /* Footer responsive adjustments */
      .footer-content {
          grid-template-columns: repeat(2, 1fr);
      }
      
      .footer-bottom-content {
          flex-direction: row;
          text-align: left;
      }
  }
  
  @media screen and (min-width: 992px) {
      /* Footer responsive adjustments */
      .footer-content {
          grid-template-columns: repeat(4, 1fr);
      }
  }
  