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

:root {
    /* Colors - Blackish/Greyish Easy on Eyes */
    --color-primary: #6B7280;
    --color-primary-dark: #4B5563;
    --color-secondary-800: #1F2937;
    --color-secondary-700: #374151;
    --color-secondary-600: #4B5563;
    --color-secondary-500: #6B7280;
    --color-secondary-400: #9CA3AF;
    --color-secondary-300: #D1D5DB;
    --color-secondary-200: #E5E7EB;
    --color-secondary-100: #F3F4F6;
    --color-gray-light: #F9FAFB;
    --color-gray-medium: #9CA3AF;
    --color-gray-bg: #F9FAFB;
    --color-white: #ffffff;
    --color-black: #111827;
    --color-border: #E5E7EB;

    /* Fonts - Using system fonts for privacy */
    --font-work-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-plus-jakarta: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Shadows */
    --shadow-md: 0px 12px 24px -6px rgba(31, 41, 55, 0.12);

    /* Responsive Typography Scale - Base font size for rem calculations */
    /* Mobile-first: 16px base (1rem = 16px) */
    font-size: 16px;
}

/* Responsive Typography - Adjusts base font size for different viewports */
/* Mobile devices (default): 16px base */
/* Tablet and up: Slightly larger base for better readability */
@media (min-width: 768px) {
    :root {
        font-size: 17px; /* Slightly larger base for tablets */
    }
}

@media (min-width: 1024px) {
    :root {
        font-size: 18px; /* Optimal base for desktop */
    }
}

body {
    font-family: var(--font-work-sans);
    color: var(--color-secondary-800);
    background-color: var(--color-white);
    line-height: 1.5;
    /* Ensure text is readable on mobile - prevents text from being too small */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Container - Responsive padding for all screen sizes */
.container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    /* Mobile-first: Smaller padding on mobile devices */
    padding: 0 1rem; /* 16px on mobile */
}

/* Very small screens (below 550px) - Reduced padding for more space */
@media (max-width: 549px) {
    .container {
        padding: 0 0.75rem; /* 12px - Reduced padding */
    }
}

/* Tablet and up: Increased padding */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem; /* 32px on tablets */
    }
}

/* Desktop: Wider padding for main content */
@media (min-width: 1024px) {
    .container {
        padding: 0 5rem; /* 80px on desktop */
    }
}

/* Large desktop: Maximum padding */
@media (min-width: 1440px) {
    .container {
        padding: 0 7rem; /* 112px on large screens */
    }
}
/* =====================
   HERO SECTION
   Responsive hero section with mobile-first approach
===================== */
.hero-section {
    padding: 2rem 0 3rem; /* 32px 0 48px on mobile */
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent any overflow from hero section */
    box-sizing: border-box;
}

/* Very small screens (below 550px) - Reduced padding */
@media (max-width: 549px) {
    .hero-section {
        padding: 1.5rem 0 2rem; /* 24px 0 32px */
    }
}

/* Hero content container - Responsive height */
.hero-content {
    position: relative;
    border-radius: 1.4375rem; /* 23px */
    overflow: hidden; /* Changed from visible to prevent overflow on mobile */
    /* Mobile: Flexible height based on content */
    min-height: 18.75rem; /* 300px minimum on mobile */
    margin-bottom: 2rem; /* 32px */
    /* Ensure container respects boundaries */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Very small screens (below 550px) - Ensure container doesn't overflow */
@media (max-width: 549px) {
    .hero-content {
        min-height: 16rem; /* 256px - Slightly reduced */
        margin-bottom: 1.5rem; /* 24px */
        /* Extra constraints for very small screens */
        padding: 0;
        overflow: visible; /* Allow card to be visible but contained */
    }
}

/* Desktop: Fixed height for better control */
@media (min-width: 768px) {
    .hero-content {
        height: 25rem; /* 400px on tablet */
    }
}

@media (min-width: 1024px) {
    .hero-content {
        height: 31.25rem; /* 500px on desktop */
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Hero image - Responsive sizing with aspect ratio preservation */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.4375rem; /* 23px */
    max-width: 100%; /* Prevents overflow */
    display: block;
    /* Maintain aspect ratio on all devices */
    aspect-ratio: 16 / 9;
}

/* Hero card - Responsive positioning and sizing */
.hero-card {
    position: absolute;
    left: 0;
    bottom: 0;
    /* Mobile: Full width with padding - ensure it stays within bounds */
    width: calc(100% - 2rem); /* Full width minus margin */
    max-width: calc(100% - 2rem); /* Prevent overflow */
    min-width: 0; /* Allow flex children to shrink */
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary-100);
    border-radius: 0.75rem; /* 12px */
    padding: 1.5rem; /* 24px on mobile */
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px */
    margin: 1rem; /* 16px margin on mobile */
    transform: none; /* No transform on mobile */
    /* Prevent text overflow */
    overflow: hidden;
    box-sizing: border-box;
    /* Ensure card doesn't overflow parent */
    right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Very small screens (below 550px) - Extra constraints */
@media (max-width: 549px) {
    .hero-card {
        width: calc(100% - 1rem); /* Reduced margin for more space */
        max-width: calc(100% - 1rem);
        min-width: 0; /* Critical: Allow shrinking */
        padding: 0.875rem; /* 14px - Further reduced padding */
        margin: 0.5rem; /* 8px - Reduced margin */
        gap: 0.875rem; /* 14px - Reduced gap */
        /* Ensure it stays within viewport */
        left: 0.5rem;
        right: 0.5rem;
    }
}

/* Tablet: Card positioned with transform */
@media (min-width: 768px) {
    .hero-card {
        width: 50%;
        padding: 2rem; /* 32px */
        margin: 0;
        transform: translate(2.5rem, 10%); /* 40px translate */
    }
}

/* Desktop: Full padding and positioning */
@media (min-width: 1024px) {
    .hero-card {
        padding: 2.5rem; /* 40px */
        transform: translate(2.5rem, 10%);
    }
}

/* Hero title - Responsive typography */
.hero-title {
    font-family: var(--font-work-sans);
    font-size: 1.25rem; /* 20px on mobile - Reduced from 28px */
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary-800);
    margin: 0;
    /* Prevent text overflow - Critical properties */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word; /* Force break long words if needed */
    hyphens: auto;
    max-width: 100%;
    min-width: 0; /* Allow flex child to shrink */
    overflow: hidden; /* Hide any overflow */
    box-sizing: border-box;
}

/* Very small screens (below 550px) - Smaller font to prevent overflow */
@media (max-width: 549px) {
    .hero-title {
        font-size: 1rem; /* 16px - Further reduced for very small screens */
        line-height: 1.4; /* Increased line height for better readability */
        /* Extra constraints for very small screens */
        padding: 0;
        margin: 0;
    }
}

/* Small screens (550px - 767px) */
@media (min-width: 550px) and (max-width: 767px) {
    .hero-title {
        font-size: 1.125rem; /* 18px - Reduced from 24px */
        line-height: 1.35;
    }
}

/* Tablet: Larger title */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2rem; /* 32px */
    }
}

/* Desktop: Full size title */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.25rem; /* 36px */
        line-height: 1.11; /* 40px / 36px */
    }
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* 20px */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    min-width: 0; /* Allow flex child to shrink */
    max-width: 100%; /* Prevent overflow */
}

/* Very small screens (below 550px) - Stack meta elements */
@media (max-width: 549px) {
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem; /* 10px - Reduced gap */
        width: 100%;
    }
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
    flex-shrink: 0; /* Prevent shrinking */
    min-width: 0; /* Allow to shrink if needed */
    max-width: 100%; /* Prevent overflow */
}

/* Very small screens (below 550px) - Adjust author info */
@media (max-width: 549px) {
    .author-info {
        gap: 0.5rem; /* 8px */
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: var(--font-work-sans);
    font-size: 0.75rem; /* 12px on mobile - Reduced from 14px */
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-secondary-400);
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Very small screens (below 550px) - Smaller text */
@media (max-width: 549px) {
    .author-name {
        font-size: 0.6875rem; /* 11px - Further reduced */
    }
}

/* Tablet and up: Standard size */
@media (min-width: 768px) {
    .author-name {
        font-size: 1rem; /* 16px */
    }
}

.post-date {
    font-family: var(--font-work-sans);
    font-size: 0.75rem; /* 12px on mobile - Reduced from 14px */
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-secondary-400);
    white-space: nowrap; /* Prevent date from wrapping */
}

/* Very small screens (below 550px) - Smaller text */
@media (max-width: 549px) {
    .post-date {
        font-size: 0.6875rem; /* 11px - Further reduced */
    }
}

/* Tablet and up: Standard size */
@media (min-width: 768px) {
    .post-date {
        font-size: 1rem; /* 16px */
    }
}

/* Category Badge - Clickable category label on post cards */
/* Responsive sizing for better mobile touch targets */
.category-badge {
    display: inline-block;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0.25rem 0.625rem; /* 4px 10px */
    border-radius: 0.375rem; /* 6px */
    font-family: var(--font-work-sans);
    font-size: 0.6875rem; /* 11px on mobile - Reduced from 12px */
    font-weight: 500;
    line-height: 1.4;
    width: fit-content;
    max-width: 100%; /* Prevent overflow */
    text-decoration: none; /* Removes underline while keeping it clickable */
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Very small screens (below 550px) - Smaller badge */
@media (max-width: 549px) {
    .category-badge {
        font-size: 0.625rem; /* 10px - Further reduced */
        padding: 0.1875rem 0.4375rem; /* 3px 7px */
    }
}

/* Mobile screens (up to 767px) - Smaller badge */
@media (max-width: 767px) {
    .category-badge {
        font-size: 0.6875rem; /* 11px */
    }
}

/* Tablet and up: Larger badge */
@media (min-width: 768px) {
    .category-badge {
        font-size: 0.875rem; /* 14px */
        padding: 0.25rem 0.625rem;
    }
}

/* Category Badge Hover - Subtle opacity change on hover for feedback */
.category-badge:hover {
    text-decoration: none; /* Ensures no underline appears on hover */
    opacity: 0.9;
}

.category-badge-dark {
    background-color: var(--color-primary);
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 60px 0;
}



/* =====================
   POSTS GRID
   Responsive grid layout that adapts to screen size
===================== */
.posts-grid {
    display: grid;
    /* Mobile-first: Single column layout */
    grid-template-columns: 1fr;
    gap: 1.5rem; /* 24px spacing between cards */
    margin-bottom: 2rem; /* 32px */
}

/* Tablet: 2-column layout */
@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop: 3-column layout */
@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}


/* Post Card: Base card container with white background and subtle border */
.post-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary-100);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Vertical layout for grid view */
    gap: 0;
    transition: background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Post Card Hover: Subtle background color change on hover for user feedback */
.post-card:hover {
    background-color: #f0f0f0;
}


/* Post image container - Responsive height */
.post-image {
    width: 100%;
    /* Mobile: Smaller height for better mobile experience */
    height: 12rem; /* 192px on mobile */
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Tablet: Medium height */
@media (min-width: 768px) {
    .post-image {
        height: 14rem; /* 224px */
    }
}

/* Desktop: Full height */
@media (min-width: 1024px) {
    .post-image {
        height: 15rem; /* 240px */
    }
}

/* Post image - Responsive with aspect ratio preservation */
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%; /* Prevents overflow */
    display: block;
    border-radius: 0.375rem; /* 6px */
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Maintain aspect ratio */
    aspect-ratio: 16 / 9;
}


.post-card:hover .post-image img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.post-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post title - Responsive typography */
.post-title {
    font-family: var(--font-work-sans);
    font-size: 1.25rem; /* 20px on mobile */
    font-weight: 700;   
    line-height: 1.3;
    color: var(--color-secondary-800);
    margin: 0;
}

/* Tablet: Medium size */
@media (min-width: 768px) {
    .post-title {
        font-size: 1.5rem; /* 24px */
    }
}

/* Desktop: Full size */
@media (min-width: 1024px) {
    .post-title {
        font-size: 1.875rem; /* 30px */
        line-height: 1.2; /* 36px / 30px */
    }
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-btn {
    border: 1px solid rgba(105, 106, 117, 0.3);
    border-radius: 6px;
    padding: 12px 20px;
    background-color: transparent;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-secondary-500);
    cursor: pointer;
}

.view-all-btn:hover {
    background-color: var(--color-gray-bg);
}

/* Advertisement Section */
.ad-section {
    padding: 60px 0;
}

.ad-banner {
    background-color: var(--color-secondary-500);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    color: var(--color-white);
}

.ad-label {
    font-family: var(--font-work-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 8px;
}

.ad-text {
    font-family: var(--font-work-sans);
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
}

/* =====================
   FOOTER
===================== */

.footer {
    background: #ffffff;
    border-top: 1px solid #E0E8ED;
    padding: 60px 0 30px;
    font-size: 14px;
    color: #8FA3B8;
  }
  
  /* Footer content - Responsive grid layout */
  .footer-content {
    display: grid;
    /* Mobile: Single column */
    grid-template-columns: 1fr;
    gap: 2rem; /* 32px */
    margin-bottom: 2rem; /* 32px */
  }

  /* Tablet: 2 columns */
  @media (min-width: 768px) {
    .footer-content {
      grid-template-columns: repeat(2, 1fr);
      gap: 2.5rem; /* 40px */
    }
  }

  /* Desktop: 4 columns */
  @media (min-width: 1024px) {
    .footer-content {
      grid-template-columns: 2fr 1fr 1fr 1.2fr;
      gap: 2.5rem; /* 40px */
      margin-bottom: 2.5rem; /* 40px */
    }
  }
  
  /* Footer titles - Responsive typography */
  .footer-title {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #6B7A8F;
    margin-bottom: 1rem; /* 16px */
  }
  
  /* Text - Responsive typography */
  .footer-text {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
    margin-bottom: 1rem; /* 16px */
  }
  
  /* Contact */
  .footer-contact .contact-item {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .footer-contact span {
    color: #6B7A8F;
  }
  
  /* Links */
  .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-list li {
    margin-bottom: 10px;
  }
  
  .footer-list a {
    color: #8FA3B8;
    text-decoration: none;
  }
  
  .footer-list a:hover {
    color: #6B7A8F;
  }
  
  /* Newsletter image - Responsive sizing */
  .newsletter-image img {
    width: 100%;
    height: auto;
    max-width: 100%; /* Prevents overflow */
    display: block;
    object-fit: contain;
    border-radius: 0.25rem; /* 4px */
  }
  
  /* Bottom section */
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
  }
  
  .footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .footer-logo-img {
    height: 30px;
  }
  
  .copyright-brand {
    font-weight: 600;
    color: #6B7A8F;
  }
  
  .copyright-text {
    font-size: 12px;
    color: #A8B8C8;
  }
  
  .footer-policies a {
    font-size: 12px;
    color: #A8B8C8;
    text-decoration: none;
    margin: 0 6px;
  }
  
  .footer-policies a:hover {
    color: #6B7A8F;
  }
  
  .divider {
    color: #C4D1DD;
  }
  /* Footer logo wrapper */
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;          /* KEY: clips the image */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E8F0F5; /* optional placeholder bg */
}

/* Footer logo image */
.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* KEY: prevents stretching */
  border-radius: 50%;
}

@media (max-width: 600px) {
  .footer-logo {
      width: 44px;
      height: 44px;
  }
}

  /* =====================
   HEADER
===================== */

.header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    padding: 0 16px;
}

@media (min-width: 768px) {
    .header .container {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .header .container {
        padding: 0 48px;
    }
}

@media (min-width: 1440px) {
    .header .container {
        padding: 0 64px;
    }
}

/* Top Header Bar */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .header-top {
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 4px 0;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--color-black);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--color-gray-bg);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    color: var(--color-secondary-800);
    outline: none;
    transition: background-color 0.3s ease;
    font-family: var(--font-work-sans);
}

.search-input:focus {
    background: var(--color-secondary-200);
}

.search-input::placeholder {
    color: var(--color-secondary-500);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-secondary-600);
    font-size: 14px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-work-sans);
}

.header-action:hover {
    color: var(--color-primary);
}

.header-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.login-link {
    color: var(--color-primary);
    font-weight: 500;
}

.login-link:hover {
    color: var(--color-primary-dark);
}


/* Navigation Bar */
.nav-menu-bottom {
    padding: 12px 0;
}

.nav-menu-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    color: var(--color-secondary-800);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    font-family: var(--font-work-sans);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primary);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--color-white);
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--color-secondary-400);
    text-decoration: none;
    font-family: var(--font-work-sans);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--color-secondary-600);
}

.breadcrumb-current {
    color: var(--color-black);
    font-family: var(--font-work-sans);
    font-size: 14px;
    font-weight: 400;
}

.breadcrumb-separator {
    color: var(--color-secondary-400);
    margin: 0 4px;
    font-family: var(--font-work-sans);
    font-size: 14px;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-secondary-800);
    padding: 4px;
}

  
  /* =====================
     RESPONSIVE
  ===================== */
  
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        gap: 12px;
    }

    .login-link span {
        display: none;
    }

    .nav-menu-bottom {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid var(--color-border);
        padding: 0;
    }

    .nav-menu-container {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
        display: block;
        width: 100%;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-menu-bottom.active {
        display: block;
    }

    .menu-toggle {
        display: block;
    }
}

/* =====================
   BLOG PAGE HERO SECTION
   Responsive hero section for archive/search pages
===================== */
.blog-hero-section {
    padding: 2rem 0; /* 32px on mobile */
}

/* Blog hero content - Responsive height */
.blog-hero-content {
    position: relative;
    border-radius: 1.4375rem; /* 23px */
    overflow: hidden;
    /* Mobile: Flexible height */
    min-height: 12rem; /* 192px minimum */
    margin-bottom: 2rem; /* 32px */
}

/* Tablet: Medium height */
@media (min-width: 768px) {
    .blog-hero-content {
        height: 15rem; /* 240px */
    }
}

/* Desktop: Full height */
@media (min-width: 1024px) {
    .blog-hero-content {
        height: 17.5rem; /* 280px */
    }
}

.blog-hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Blog hero image - Responsive with aspect ratio */
.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.4375rem; /* 23px */
    max-width: 100%; /* Prevents overflow */
    display: block;
    aspect-ratio: 16 / 9;
}

.blog-hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 1.25rem; /* 20px */
}

/* Blog hero title - Responsive typography */
.blog-hero-title {
    font-family: var(--font-work-sans);
    font-size: 1.75rem; /* 28px on mobile */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 1rem; /* 16px */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tablet: Medium size */
@media (min-width: 768px) {
    .blog-hero-title {
        font-size: 2.25rem; /* 36px */
    }
}

/* Desktop: Full size */
@media (min-width: 1024px) {
    .blog-hero-title {
        font-size: 3rem; /* 48px */
        line-height: 1.17; /* 56px / 48px */
    }
}

/* Blog hero subtitle - Responsive typography */
.blog-hero-subtitle {
    font-family: var(--font-work-sans);
    font-size: 0.875rem; /* 14px on mobile */
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tablet and up: Standard size */
@media (min-width: 768px) {
    .blog-hero-subtitle {
        font-size: 1.125rem; /* 18px */
        line-height: 1.56; /* 28px / 18px */
    }
}

/* Blog posts section - Responsive padding */
.blog-posts-section {
    padding: 2rem 0; /* 32px on mobile */
}

/* Tablet and up: Standard padding */
@media (min-width: 768px) {
    .blog-posts-section {
        padding: 3.75rem 0; /* 60px */
    }
}

.blog-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem; /* 32px on mobile */
    gap: 1.25rem; /* 20px */
}

/* Tablet and up: Standard spacing */
@media (min-width: 768px) {
    .blog-controls {
        margin-bottom: 2.5rem; /* 40px */
        gap: 1.25rem; /* 20px */
    }
}

.blog-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1.25rem; /* 20px */
}

/* Blog section title - Responsive typography */
.blog-section-title {
    font-family: var(--font-work-sans);
    font-size: 1.25rem; /* 20px on mobile */
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-secondary-800);
    margin: 0;
}

/* Tablet and up: Standard size */
@media (min-width: 768px) {
    .blog-section-title {
        font-size: 1.5rem; /* 24px */
        line-height: 1.17; /* 28px / 24px */
    }
}

.blog-filters {
    display: flex;
    align-items: center;
}

.filter-select {
    padding: 10px 20px;
    border: 1px solid var(--color-secondary-100);
    border-radius: 6px;
    background-color: var(--color-white);
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-secondary-800);
    cursor: pointer;
    outline: none;
}

.filter-select:hover {
    border-color: var(--color-secondary-500);
}

/* Post excerpt - Responsive typography */
.post-excerpt {
    font-family: var(--font-work-sans);
    font-size: 0.875rem; /* 14px on mobile */
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-secondary-500);
    margin: 0;
}

/* Tablet and up: Standard size */
@media (min-width: 768px) {
    .post-excerpt {
        font-size: 1rem; /* 16px */
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 10px 16px;
    border: 1px solid var(--color-secondary-100);
    border-radius: 6px;
    background-color: var(--color-white);
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-secondary-800);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: var(--color-gray-bg);
    border-color: var(--color-secondary-500);
}

.pagination-btn-active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination-btn-active:hover {
    background-color: var(--color-secondary-800);
}

/* Responsive Header Styles */
@media (max-width: 990px) {
    .header-content {
        height: 60px;
    }

    .nav-menu {
        gap: 20px;
    }

    .logo-text {
        font-size: 14px;
    }

    .nav-link {
        font-size: 13px;
    }

    .search-box {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 700px) {
    .header-content {
        height: 56px;
        flex-wrap: wrap;
    }

    .logo {
        gap: 6px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .logo-text {
        font-size: 13px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--color-secondary-100);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 0;
        width: 100%;
    }

    .search-box {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 100px;
    }

    .menu-toggle {
        display: block;
    }
}

/* Responsive Footer Styles */
@media (max-width: 990px) {
    .footer {
        padding: 50px 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-policies {
        flex-wrap: wrap;
    }
}

/* Mobile optimizations for footer - Updated with rem units */
@media (max-width: 767px) {
    .footer {
        padding: 2.5rem 0 1.25rem; /* 40px 0 20px */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.875rem; /* 30px */
    }

    .footer-title {
        font-size: 1rem; /* 16px */
        margin-bottom: 0.75rem; /* 12px */
    }

    .footer-text {
        font-size: 0.875rem; /* 14px */
        margin-bottom: 0.75rem; /* 12px */
    }

    .footer-list li {
        margin-bottom: 0.5rem; /* 8px */
    }

    .footer-list a {
        font-size: 0.875rem; /* 14px */
    }

    .footer-contact .contact-item {
        font-size: 0.875rem; /* 14px */
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem; /* 16px */
    }

    .footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem; /* 12px */
    }

    .footer-policies {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem; /* 8px */
    }

    .footer-policies .divider {
        display: none;
    }

    .newsletter-image {
        width: 100%;
        margin-left: 0;
    }
}

/* Blog Page Responsive Styles */
@media (max-width: 990px) {
    .blog-hero-section {
        padding: 30px 0;
    }

    .blog-hero-content {
        height: 240px;
    }

    .blog-hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .blog-hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .blog-controls {
        flex-direction: column;
        align-items: center;
    }

    .blog-controls-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-section-title {
        font-size: 22px;
    }
}

/* Mobile optimizations for blog hero - Updated with rem units */
@media (max-width: 767px) {
    .blog-hero-section {
        padding: 1.25rem 0; /* 20px */
    }

    .blog-hero-content {
        min-height: 12rem; /* 192px */
        border-radius: 0.75rem; /* 12px */
    }

    .blog-hero-img {
        border-radius: 0.75rem; /* 12px */
    }

    .blog-hero-title {
        font-size: 1.75rem; /* 28px */
        line-height: 1.29; /* 36px / 28px */
    }

    .blog-hero-subtitle {
        font-size: 0.875rem; /* 14px */
        line-height: 1.57; /* 22px / 14px */
    }

    .blog-controls {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }


    .blog-controls-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 16px;
    }

    .blog-section-title {
        font-size: 20px;
    }

    .blog-filters {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }


    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* =====================
   AUTHOR PAGE (CONTACT)
===================== */

.author-hero-section {
    padding: 40px 0 32px;
    background-color: #F5F8FA;
}

.author-hero-card {
    background-color: #F5F8FA;
    border-radius: 6px;
    border: 1px solid #E0E8ED;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.author-hero-text {
    max-width: 640px;
}

.author-hero-name {
    font-family: var(--font-work-sans);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: 12px;
}

.author-hero-bio {
    font-family: var(--font-work-sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-secondary-500);
}

.author-hero-avatar-wrapper {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    width: 220px;
}

.author-hero-avatar-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #E8F0F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
}

.author-posts-section {
    padding: 32px 0 56px;
}

.author-posts-title {
    font-family: var(--font-work-sans);
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 18px;
}

.author-posts-grid {
    margin-bottom: 32px;
}

.post-card .post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
}

.post-card .post-meta {
    justify-content: space-between;
}

.post-card .author-name,
.post-card .post-date {
    font-size: 10px;
    color: var(--color-secondary-400);
}

.author-view-all {
    margin-top: 0;
}

.author-view-all .view-all-btn {
    padding: 10px 20px;
    font-size: 12px;
}

.newsletter-section {
    padding: 0 0 56px;
}

.newsletter-card {
    background-color: #F5F8FA;
    border-radius: 6px;
    border: 1px solid #E0E8ED;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.newsletter-label {
    font-family: var(--font-work-sans);
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 12px;
    align-self: flex-start;
}

.newsletter-image-wrapper {
    max-width: 260px;
}

.newsletter-main-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Author page responsive */
@media (max-width: 1024px) {
    .author-hero-card {
        padding: 24px 24px;
        gap: 24px;
    }

    .author-hero-avatar-circle {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .author-hero-section {
        padding: 24px 0 24px;
    }

    .author-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-hero-avatar-wrapper {
        width: 100%;
        justify-content: center;
    }

    .author-posts-section {
        padding-bottom: 40px;
    }

    .newsletter-card {
        align-items: center;
    }

    .newsletter-label {
        align-self: center;
    }
}

@media (max-width: 700px) {
    .author-view-all {
        margin-top: 16px;
    }
}

/* Make posts grid responsive for author/blog pages */
/* Tablet: 2 columns for posts grid (already handled above, but keeping for consistency) */
@media (min-width: 768px) and (max-width: 1023px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: Single column for posts grid (already handled above, but keeping for specificity) */
@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem; /* 20px on very small screens */
    }
}

/* =====================
   SINGLE POST PAGE
===================== */

.single-post-section {
    padding: 32px 0 56px;
}

/* Single post layout - Responsive grid */
.single-layout {
    display: grid;
    /* Mobile: Single column */
    grid-template-columns: 1fr;
    gap: 2rem; /* 32px */
    align-items: flex-start;
    position: relative;
}

/* Mobile: Reorder elements - sidebar appears at bottom */
@media (max-width: 767px) {
    .single-post-main {
        order: 1; /* Main content appears first */
    }
    
    .single-post-sidebar {
        order: 2; /* Sidebar appears at bottom */
    }
}

/* Tablet: Side-by-side layout */
@media (min-width: 768px) {
    .single-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 1.5rem; /* 24px */
    }
}

/* Desktop: Full layout */
@media (min-width: 1024px) {
    .single-layout {
        grid-template-columns: 2fr 0.9fr;
        gap: 2.5rem; /* 40px */
    }
}

.single-post-main {
    background-color: #ffffff;
}

.single-post-header {
    margin-bottom: 18px;
}

.single-post-header .category-badge {
    margin-bottom: 16px;
    display: inline-block;
}

/* Single post title - Responsive typography */
.single-post-title {
    font-family: var(--font-work-sans);
    font-size: 1.5rem; /* 24px on mobile */
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary-800);
    margin: 0.625rem 0 1rem 0; /* 10px 0 16px 0 */
}

/* Tablet: Medium size */
@media (min-width: 768px) {
    .single-post-title {
        font-size: 2rem; /* 32px */
    }
}

/* Desktop: Full size */
@media (min-width: 1024px) {
    .single-post-title {
        font-size: 2.25rem; /* 36px */
        line-height: 1.11; /* 40px / 36px */
    }
}

.single-post-meta {
    margin-top: 16px;
}

.single-post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-post-meta .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.single-post-meta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.single-post-meta .author-name {
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-secondary-400);
}

.single-post-meta .post-date {
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-secondary-400);
}

.author-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.author-name-link:hover {
    color: var(--color-primary);
}

.single-post-hero-image {
    margin-bottom: 16px;
}

/* Single post hero image - Responsive sizing */
.single-post-hero-image img {
    width: 100%;
    /* Mobile: Smaller height */
    height: 12rem; /* 192px */
    border-radius: 0.375rem; /* 6px */
    display: block;
    max-width: 100%; /* Prevents overflow */
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Tablet: Medium height */
@media (min-width: 768px) {
    .single-post-hero-image img {
        height: 18.75rem; /* 300px */
    }
}

/* Desktop: Full height */
@media (min-width: 1024px) {
    .single-post-hero-image img {
        height: 28.4375rem; /* 455px */
    }
}

/* Nature category posts - Responsive rectangular images */
.nature-post .single-post-hero-image img {
    height: 12rem; /* 192px on mobile */
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

@media (min-width: 768px) {
    .nature-post .single-post-hero-image img {
        height: 18.75rem; /* 300px */
    }
}

@media (min-width: 1024px) {
    .nature-post .single-post-hero-image img {
        height: 25rem; /* 400px */
    }
}

.nature-post .single-post-inline-image img {
    height: 12rem; /* 192px on mobile */
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

@media (min-width: 768px) {
    .nature-post .single-post-inline-image img {
        height: 18.75rem; /* 300px */
    }
}

@media (min-width: 1024px) {
    .nature-post .single-post-inline-image img {
        height: 25rem; /* 400px */
    }
}

/* Single post body text - Responsive typography */
.single-post-body p {
    font-family: var(--font-work-sans);
    font-size: 1rem; /* 16px on mobile */
    font-weight: 400;
    line-height: 1.75; /* Better line height for readability */
    color: var(--color-secondary-600);
    margin-bottom: 0.75rem; /* 12px */
}

/* Tablet and up: Larger text for better readability */
@media (min-width: 768px) {
    .single-post-body p {
        font-size: 1.125rem; /* 18px */
        line-height: 1.78; /* 32px / 18px */
    }
}

.single-post-subheading {
    font-family: var(--font-work-sans);
    font-size: 24px;
    font-weight: 600;
    margin: 16px 0 8px;
}

.single-post-quote {
    background-color: #F5F8FA;
    border-left: 3px solid #C4D1DD;
    padding: 10px 14px;
    margin: 16px 0;
    font-size: 11px;
    font-style: italic;
    color: var(--color-secondary-600);
}

.single-post-inline-image {
    margin: 18px 0;
}

/* Single post inline image - Responsive sizing */
.single-post-inline-image img {
    width: 100%;
    /* Mobile: Smaller height */
    height: 12rem; /* 192px */
    object-fit: cover;
    border-radius: 0.375rem; /* 6px */
    display: block;
    max-width: 100%; /* Prevents overflow */
    aspect-ratio: 16 / 9;
}

/* Tablet: Medium height */
@media (min-width: 768px) {
    .single-post-inline-image img {
        height: 18.75rem; /* 300px */
    }
}

/* Desktop: Full height */
@media (min-width: 1024px) {
    .single-post-inline-image img {
        height: 28.4375rem; /* 455px */
    }
}

.single-post-cta {
    margin-top: 24px;
}

.single-post-cta-content {
    width: 100%;
    padding: 40px 20px;
    border-radius: 8px;
    background-color: var(--color-secondary-300);
    color: var(--color-secondary-800);
    font-family: var(--font-work-sans);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.single-post-cta-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-secondary-800);
}

.single-post-cta-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-secondary-800);
}

.single-post-sidebar {
    position: sticky;
    top: 100px;
}

/* Mobile: Remove sticky positioning */
@media (max-width: 767px) {
    .single-post-sidebar {
        position: static;
    }
}

.sidebar-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-card {
    background-color: #F5F8FA;
    border-radius: 4px;
    border: 1px solid #E0E8ED;
    padding: 16px 18px;
}

.archive-title {
    font-family: var(--font-work-sans);
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    color: var(--color-secondary-800);
    margin-bottom: 12px;
}

.archive-list {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-work-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--color-secondary-400);
}

.archive-bar {
    display: inline-block;
    width: 14px;
    height: 6px;
    border-radius: 2px;
    border: 1px solid #C4D1DD;
}

.sticky-banner-card {
    position: sticky;
    top: 100px;
    align-self: stretch;
    min-height: 100%; 
    background-color: #F5F8FA;
    border-radius: 4px;
    border: 1px solid #E0E8ED;
    padding: 14px 14px 16px;
}

/* Mobile: Remove sticky positioning and height constraint */
@media (max-width: 767px) {
    .sticky-banner-card {
        position: static;
        min-height: auto;
        align-self: auto;
    }
}

.sticky-banner-title {
    font-family: var(--font-work-sans);
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: var(--color-secondary-800);
    margin-bottom: 8px;
}

/* Sticky banner image - Responsive sizing */
.sticky-banner-image img {
    width: 100%;
    /* Mobile: Smaller height */
    height: 10rem; /* 160px */
    object-fit: cover;
    border-radius: 0.375rem; /* 6px */
    display: block;
    max-width: 100%; /* Prevents overflow */
    aspect-ratio: 16 / 9;
}

/* Tablet and up: Standard height */
@media (min-width: 768px) {
    .sticky-banner-image img {
        height: 12.5rem; /* 200px */
    }
}

/* Comments Section */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-secondary-100);
}

.comments-title {
    font-family: var(--font-work-sans);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: var(--color-secondary-800);
    margin-bottom: 32px;
}

.comment-form-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary-100);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
}

.comment-form-title {
    font-family: var(--font-work-sans);
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-secondary-800);
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form .form-label {
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-secondary-800);
}

.comment-form .form-input,
.comment-form .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-secondary-100);
    border-radius: 6px;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-secondary-800);
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
}

.comment-form .form-input:focus,
.comment-form .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form .form-input::placeholder,
.comment-form .form-textarea::placeholder {
    color: var(--color-secondary-400);
}

.comment-form .form-textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-submit-btn {
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.comment-submit-btn:hover {
    background-color: var(--color-secondary-800);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    padding: 24px;
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary-100);
    border-radius: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author-name {
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--color-secondary-800);
}

.comment-date {
    font-family: var(--font-work-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-secondary-400);
}

.comment-body {
    margin-left: 60px;
}

.comment-body p {
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-secondary-600);
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-secondary-500);
    font-style: italic;
    font-family: var(--font-work-sans);
    font-size: 16px;
}

.comment-login-prompt {
    text-align: center;
    padding: 40px 20px;
}

.comment-login-prompt p {
    font-family: var(--font-work-sans);
    font-size: 16px;
    color: var(--color-secondary-600);
    margin-bottom: 20px;
}

.comment-login-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.comment-login-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.comment-form-info {
    font-family: var(--font-work-sans);
    font-size: 14px;
    color: var(--color-secondary-500);
    margin-bottom: 16px;
    padding: 8px 12px;
    background-color: var(--color-gray-bg);
    border-radius: 6px;
}

.comment-delete-form {
    margin-top: 12px;
}

.comment-delete-btn {
    padding: 6px 12px;
    background-color: #dc3545;
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-work-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-delete-btn:hover {
    background-color: #c82333;
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-secondary-100);
}

.related-articles-title {
    font-family: var(--font-work-sans);
    font-size: 30px;
    font-weight: 700;
    line-height: 48px;
    color: var(--color-secondary-800);
    margin-bottom: 32px;
}

/* Related articles grid - Responsive layout */
.related-articles-grid {
    display: grid;
    /* Mobile: Single column */
    grid-template-columns: 1fr;
    gap: 1.5rem; /* 24px */
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-article-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary-100);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.related-article-card:hover {
    background-color: #f0f0f0;
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Related article image - Responsive sizing */
.related-article-image {
    width: 100%;
    /* Mobile: Smaller height */
    height: 12rem; /* 192px */
    overflow: hidden;
    position: relative;
}

/* Tablet and up: Standard height */
@media (min-width: 768px) {
    .related-article-image {
        height: 15rem; /* 240px */
    }
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%; /* Prevents overflow */
    transition: transform 0.3s ease, filter 0.3s ease;
    aspect-ratio: 16 / 9;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.related-article-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-article-title {
    font-family: var(--font-work-sans);
    font-size: 18px;
    font-weight: 600;
    line-height: 28.8px;
    color: var(--color-secondary-800);
    margin: 0;
}

.related-article-date {
    font-family: var(--font-work-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
    color: var(--color-secondary-400);
}

/* Single post responsive */
/* Tablet optimizations for single post */
@media (min-width: 768px) and (max-width: 1023px) {
    .single-layout {
        grid-template-columns: 1.8fr 1fr;
        gap: 2rem; /* 32px */
    }

    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile optimizations for single post page */
@media (max-width: 767px) {
    .single-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* 24px */
    }

    .single-post-sidebar {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        position: static; /* Remove sticky positioning on mobile */
        order: 2; /* Ensure sidebar appears at bottom */
    }

    .sidebar-inner {
        position: static;
        margin-top: 0;
    }

    .sticky-banner-card {
        position: static; /* Remove sticky positioning on mobile */
        min-height: auto; /* Remove min-height constraint */
    }

    .single-post-section {
        padding-bottom: 2.5rem; /* 40px */
    }

    .single-post-title {
        font-size: 1.5rem; /* 24px */
        line-height: 1.17; /* 28px / 24px */
    }

    .single-post-hero-image img {
        height: 12rem; /* 192px */
    }

    .single-post-inline-image img {
        height: 12rem; /* 192px */
    }

    .nature-post .single-post-hero-image img {
        height: 15rem; /* 240px */
    }

    .nature-post .single-post-inline-image img {
        height: 15rem; /* 240px */
    }

    .single-post-body p {
        font-size: 0.875rem; /* 14px */
        line-height: 1.71; /* 24px / 14px */
    }

    /* Related articles responsive */
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-articles-title {
        font-size: 24px;
        line-height: 38.4px;
    }

    .related-article-title {
        font-size: 16px;
        line-height: 25.6px;
    }

    .single-post-subheading {
        font-size: 18px;
    }

    .archive-title {
        font-size: 20px;
    }

    .sticky-banner-title {
        font-size: 18px;
    }

    .sticky-banner-image img {
        height: 120px;
    }

    /* Comments responsive */
    .comments-section {
        margin-top: 32px;
        padding-top: 24px;
    }

    .comments-title {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 24px;
    }

    .comment-form-container {
        padding: 24px;
        margin-bottom: 32px;
    }

    .comment-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .comment-form .form-label {
        font-size: 14px;
    }

    .comment-form .form-input,
    .comment-form .form-textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .comment-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .comment-item {
        padding: 20px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .comment-author-name {
        font-size: 14px;
    }

    .comment-date {
        font-size: 12px;
    }

    .comment-body {
        margin-left: 0;
        margin-top: 12px;
    }

    .comment-body p {
        font-size: 14px;
        line-height: 22px;
    }
}

/* =====================
   CONTACT PAGE
===================== */

.contact-hero-section {
    padding: 60px 0 40px;
    background-color: var(--color-white);
}

.contact-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact hero title - Responsive typography */
.contact-hero-title {
    font-family: var(--font-work-sans);
    font-size: 1.75rem; /* 28px on mobile */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary-800);
    margin-bottom: 1rem; /* 16px */
}

/* Tablet: Medium size */
@media (min-width: 768px) {
    .contact-hero-title {
        font-size: 2.25rem; /* 36px */
    }
}

/* Desktop: Full size */
@media (min-width: 1024px) {
    .contact-hero-title {
        font-size: 3rem; /* 48px */
        line-height: 1.17; /* 56px / 48px */
    }
}

.contact-hero-subtitle {
    font-family: var(--font-work-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-secondary-500);
}

.contact-section {
    padding: 60px 0;
    background-color: var(--color-white);
}

/* Contact wrapper - Responsive grid */
.contact-wrapper {
    display: grid;
    /* Mobile: Single column */
    grid-template-columns: 1fr;
    gap: 2rem; /* 32px */
    align-items: start;
}

/* Desktop: Side-by-side layout */
@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1.2fr 1fr;
        gap: 3.75rem; /* 60px */
    }
}

.contact-form-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-secondary-100);
    border-radius: 12px;
    padding: 40px;
}

.contact-form-title {
    font-family: var(--font-work-sans);
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-secondary-800);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-secondary-800);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-secondary-100);
    border-radius: 6px;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-secondary-800);
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-secondary-400);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.contact-submit-btn:hover {
    background-color: var(--color-secondary-800);
}

.contact-info-container {
    background-color: var(--color-gray-bg);
    border-radius: 12px;
    padding: 40px;
}

.contact-info-title {
    font-family: var(--font-work-sans);
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-secondary-800);
    margin-bottom: 32px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    font-family: var(--font-work-sans);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-secondary-800);
    margin-bottom: 8px;
}

.contact-info-value {
    font-family: var(--font-work-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-secondary-500);
    margin: 0;
}

/* =====================
   LOGIN/REGISTER PAGE
===================== */

.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--color-white);
}

.login-modal {
    width: 100%;
    max-width: 480px;
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--color-border);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.login-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary-800);
    font-family: var(--font-work-sans);
}

.login-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-secondary-500);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.login-close-btn:hover {
    background-color: var(--color-secondary-100);
    color: var(--color-secondary-800);
}

.login-modal-content {
    padding: 40px 32px;
}

.login-modal-title {
    font-family: var(--font-work-sans);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: var(--color-secondary-800);
    margin: 0 0 32px 0;
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-group {
    position: relative;
    width: 100%;
}

.login-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-secondary-800);
    background-color: var(--color-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.login-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.login-form-input::placeholder {
    color: var(--color-secondary-400);
}

.login-password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-400);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--color-secondary-600);
}

.login-password-group .login-form-input {
    padding-right: 48px;
}

.login-forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
}

.forgot-password-link {
    font-family: var(--font-work-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.login-signin-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-work-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin-top: 8px;
}

.login-signin-btn:hover {
    transform: translateY(-1px);
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}

.login-signin-btn:active {
    transform: translateY(0);
}

.login-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.login-switch p {
    font-family: var(--font-work-sans);
    font-size: 14px;
    color: var(--color-secondary-600);
    margin: 0;
}

.switch-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.switch-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Alert Messages for Login Page */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-work-sans);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* Login Page Responsive */
@media (max-width: 768px) {
    .login-page-wrapper {
        padding: 20px 16px;
    }

    .login-modal {
        max-width: 100%;
        border-radius: 0 0 16px 16px;
    }

    .login-modal-header {
        padding: 20px 24px;
    }

    .login-modal-content {
        padding: 32px 24px;
    }

    .login-modal-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 24px;
    }

    .login-form-input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .login-signin-btn {
        padding: 12px 20px;
    }
}

/* Contact Page Responsive Styles */
@media (max-width: 990px) {
    .contact-hero-section {
        padding: 50px 0 30px;
    }

    .contact-hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .contact-hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .contact-section {
        padding: 50px 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 32px;
    }
}

@media (max-width: 700px) {
    .contact-hero-section {
        padding: 40px 0 20px;
    }

    .contact-hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .contact-hero-subtitle {
        font-size: 14px;
        line-height: 22px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-wrapper {
        gap: 32px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 24px;
    }

    .contact-form-title,
    .contact-info-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .contact-form {
        gap: 20px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .contact-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact-info-item {
        gap: 12px;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
    }

    .contact-info-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-info-label,
    .contact-info-value {
        font-size: 14px;
    }
}
