/* =========================================
   VARIABLES & CORE
   ========================================= */
:root {
    --primary-green: #6AA32F;
    --primary-purple: #281B43;        /* Your Brand Purple */
    --primary-purple-light: #452E75;  /* Gradient Accent */
    --primary-yellow: #FDE330;
    --primary-yellow-hover: #e6cc2b;
    --primary-white: #ffffff;
    --text-lavender: #EBE5FF;         /* For subheadlines */
    --lavender-rgba: rgba(235, 229, 255, 0.4);  /* Hero image glow */
}

/* =========================================
   FONTS
   ========================================= */
/* montserrat-300 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2');
}

/* montserrat-regular (400) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* montserrat-500 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
}

/* montserrat-600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

/* montserrat-700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* montserrat-800 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2');
}

/* Global box-sizing fix - prevents padding from expanding element widths */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    /* Keeps the scrollbar area "reserved" even when not needed */
    scrollbar-gutter: stable;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scrollbar with full-width sections */
}

.main-content {
    width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
}

/* =========================================
   2. HEADER (Seamless Integration)
   ========================================= */
header {
    background: var(--primary-purple-light); /* Matches top of hero gradient */
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-white);
}

.site-title {
    flex: 0 0 auto;
    margin-right: auto;
}

.site-title a { display: block; line-height: 0; }
.site-logo { height: 50px; width: auto; }

.main-nav { display: flex; }
.main-nav a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 0 40px 0 0;
}

.main-nav a:hover { color: var(--primary-yellow-hover); }

.header-spacer {
    flex: 0 0 auto;
    width: 100px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Menu Toggle - Hidden by default on desktop */
.mobile-menu-toggle {
    display: none;
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--primary-white);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.mobile-menu-toggle svg {
    display: block;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--primary-purple);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--primary-white);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 0;
}

.mobile-nav a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--primary-yellow-hover);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* =========================================
   3. MODERN HERO SECTION
   ========================================= */
.hero {
    /* Seamless transition from header to deep purple */
    background: linear-gradient(180deg, var(--primary-purple-light) 0%, var(--primary-purple) 100%);
    width: 100%;
    padding: 80px 0;
    display: block;
    box-sizing: border-box;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    color: var(--primary-white);
}

.hero-text { flex: 1; text-align: left; }

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    margin: 0 0 24px 0;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--primary-white);
}

.hero-subtitle {
    font-size: 1.25em;
    font-weight: 400;
    margin: 0 0 32px 0;
    color: var(--text-lavender);
    line-height: 1.6;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Soft glow makes the image pop off the dark background */
    /*filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));*/
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
    filter: drop-shadow(0 20px 40px var(--lavender-rgba));
    border: 1px solid var(--primary-lavender);
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary-yellow);
    color: var(--primary-purple);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.2);
    /*box-shadow: 0 2px 8px rgba(106, 163, 47, 0.3);*/
}

.cta-button:hover {
    background: var(--primary-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 235, 59, 0.4);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* Hero Carousel Styles */
.hero-carousel {
    background: var(--primary-purple);
    color: var(--primary-white);
    margin: -20px -80px 40px -80px;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
}

/* Hide radio buttons */
.carousel-container input[type="radio"] {
    display: none;
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.hero-slide {
    min-width: 100%;
    padding: 80px 40px;
    box-sizing: border-box;
}

/* Carousel navigation dots */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* Slide positioning based on checked radio button */
#slide-0:checked ~ .carousel-slides {
    transform: translateX(0%);
}

#slide-1:checked ~ .carousel-slides {
    transform: translateX(-100%);
}

#slide-2:checked ~ .carousel-slides {
    transform: translateX(-200%);
}

#slide-3:checked ~ .carousel-slides {
    transform: translateX(-300%);
}

#slide-4:checked ~ .carousel-slides {
    transform: translateX(-400%);
}

/* Active dot styling */
#slide-0:checked ~ .carousel-controls label:nth-child(1),
#slide-1:checked ~ .carousel-controls label:nth-child(2),
#slide-2:checked ~ .carousel-controls label:nth-child(3),
#slide-3:checked ~ .carousel-controls label:nth-child(4),
#slide-4:checked ~ .carousel-controls label:nth-child(5) {
    background: var(--primary-yellow);
    border-color: var(--primary-white);
}


.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 10px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   4. SUCCESS STORIES SECTION
   ========================================= */
.success-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    width: 100%;
    padding: 80px 0;
}

.success-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.success-container h2 {
    font-size: 2.5em;
    color: var(--primary-purple);
    margin: 0 0 16px 0;
    font-weight: 700;
}

.success-subtitle {
    font-size: 1.2em;
    color: #666;
    margin: 0 0 50px 0;
}

.success-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.success-card {
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/*.success-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}*/

.success-metric {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.metric-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-green);
    stroke-width: 2;
    margin: 0 auto 16px auto;
}

.metric-value {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 8px;
    line-height: 1;
}

.metric-label {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.success-story {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.success-cta {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    padding: 40px 60px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(40, 27, 67, 0.3);
}

.success-cta p {
    font-size: 1.5em;
    color: var(--primary-white);
    margin: 0 0 24px 0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 968px) {
    .success-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .success-cta {
        padding: 35px 40px;
    }
}

@media (max-width: 768px) {
    .success-section {
        padding: 60px 0;
    }
    
    .success-container h2 {
        font-size: 2em;
    }
    
    .success-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    
    .success-card {
        padding: 30px 25px;
    }
    
    .metric-value {
        font-size: 2em;
    }
    
    .success-cta {
        padding: 30px 25px;
    }
    
    .success-cta p {
        font-size: 1.2em;
    }
}

/* =========================================
        ABOUT US SECTION
   ========================================= */
.about-section {
    background: #ffffff;
    width: 100%;
    padding: 80px 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-intro {
    /* Full-width breakout */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /*margin-top: -50px;
    margin-bottom: 60px;*/
    
    background-color: #F9F7FF; /* Ghost Lavender */
    padding: 120px 0; /* Vertical padding only */
    
    /* This creates the diagonal slant at the top and bottom */
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.about-intro h2 {
    font-size: 2.5em;
    color: var(--primary-purple);
    margin: 0 auto 40px auto;
    font-weight: 700;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
}

/* Inner content wrapper with grid layout */
.about-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
}

.about-text p {
    margin: 0 0 20px 0;
    font-size: 1.15em;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-badge {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* =========================================
        CAPABILITIES SECTION
   ========================================= */

.implementations-title {
    font-size: 2.5em;
    color: var(--primary-purple);
    margin: 0 0 50px 0;
    font-weight: 600;
    text-align: center;
}

.implementations-flow {
    max-width: 1000px;
    margin: 0 auto;
}

.implementation-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

.implementation-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.implementation-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(40, 27, 67, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.implementation-icon-large::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.implementation-section.right .implementation-content {

    order: 1;

}


.implementation-section:hover .implementation-icon-large {
    transform: scale(1.05);
}

.implementation-section:hover .implementation-icon-large::after {
    opacity: 1;
}

.implementation-icon-large svg {
    width: 56px;
    height: 56px;
    color: white;
    stroke-width: 2;
}

.implementation-content h4 {
    font-size: 1.6em;
    color: var(--primary-purple);
    margin: 0 0 20px 0;
    font-weight: 700;
}

.implementation-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.implementation-content li {
    color: #555;
    margin-bottom: 12px;
    font-size: 1em;
    line-height: 1.6;
    position: relative;
    padding-left: 24px;
}

.implementation-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2em;
}

.implementation-content li:last-child {
    margin-bottom: 0;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-green) 20%, 
        var(--primary-yellow) 50%, 
        var(--primary-green) 80%, 
        transparent 100%);
    margin: 20px 0;
    position: relative;
    overflow: visible;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(106, 163, 47, 0.2);
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .implementation-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }
    
    .implementation-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .implementation-icon-large svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-container h2 {
        font-size: 2em;
    }
    
    .implementations-title {
        font-size: 1.3em;
        margin-bottom: 30px;
    }
    
    .implementation-section {
        padding: 25px 0;
        gap: 25px;
    }
    
    .implementation-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .implementation-icon-large svg {
        width: 40px;
        height: 40px;
    }
    
    .implementation-content h4 {
        font-size: 1.3em;
        text-align: center;
    }
    
    .section-divider {
        margin: 15px 0;
    }
    
    .partner-badge {
        max-width: 150px;
    }
}

/* Main content heading styles */
main h1:first-child:not(.hero-title) {
    color: var(--primary-green);
    font-weight: bold;
}

/* Ensure consistent typography across all pages */
main h1, article h1 {
    /*font-family: 'Montserrat', sans-serif;*/
    font-weight: 600;
    line-height: 1.3;
}

main h2, article h2 {
    font-weight: 500;
    /* color: var(--primary-purple); */
}

/* Article pages styling */
article {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 80px;
}

article nav {
    margin-bottom: 30px;
}

article nav:last-child {
    margin-top: 40px;
    margin-bottom: 0;
}

article nav a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

article nav a:hover {
    color: var(--primary-purple);
}

article h1 {
    color: var(--primary-green);
    margin-bottom: 16px;
}

.article-content {
    margin-top: 30px;
}

/* Search styles - Enhanced Doks-style Modal */
.search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--primary-white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.search-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-trigger svg {
    width: 18px;
    height: 18px;
}

.search-shortcut {
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: monospace;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: fadeIn 0.2s ease;
}

.search-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.2s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: #1f2937;
}

#search-input::placeholder {
    color: #9ca3af;
}

.search-close {
    padding: 6px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.search-close svg {
    width: 18px;
    height: 18px;
}

/* Tag Filter Styles */
.tag-filter-container {
    margin-top: 16px;
}

.tag-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tag-filter-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-filter-clear {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tag-filter-clear:hover {
    background: #f0fdf4;
}

.tag-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-filter-chip {
    background: var(--primary-purple);
    color: var(--primary-white);
    border: 1px solid var(--primary-purple);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-filter-chip:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.tag-filter-chip.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.tag-filter-chip.active:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.tag-count {
    font-size: 0.9em;
    opacity: 0.7;
}

.filter-indicator {
    font-size: 0.8em;
    color: var(--primary-green);
    font-weight: 500;
    margin-left: 12px;
}

.search-results {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(80vh - 100px);
    flex: 1;
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.search-results::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.search-results-header {
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.search-results-count {
    font-size: 0.8em;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-result-item {
    padding: 16px 24px 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
}

.search-result-item:last-of-type {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.search-result-active {
    background: linear-gradient(to right, #f0fdf4, #f9fafb);
    border-left: 3px solid var(--primary-green);
    padding-left: 17px;
    padding-right: 27px;
}

.search-result-title {
    margin: 0 0 6px 0;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.search-result-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-title a:hover {
    color: var(--primary-green);
}

.search-result-description {
    margin: 0 0 8px 0;
    font-size: 0.85em;
    color: #6b7280;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75em;
    color: #9ca3af;
}

.search-result-date {
    display: inline-flex;
    align-items: center;
}

.search-result-tags {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
}

.search-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-result-item:hover .search-tag,
.search-result-item.search-result-active .search-tag {
    background: var(--primary-green);
    color: white;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
}

.search-no-results p {
    color: #6b7280;
    margin: 8px 0;
}

.search-no-results p:first-child {
    color: #374151;
    font-weight: 500;
    font-size: 0.95em;
}

.search-hint {
    font-size: 0.85em;
    color: #9ca3af;
    font-style: italic;
}

.search-footer {
    padding: 12px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

.search-footer .search-hint {
    font-size: 0.75em;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
}

mark {
    background: linear-gradient(120deg, #fef08a 0%, #fde047 100%);
    color: #854d0e;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Empty state when no search query */
.search-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
}

.search-empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.search-empty-state p {
    margin: 8px 0;
    font-size: 0.9em;
}


/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.contact-modal.hidden {
    display: none;
}

.contact-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-header {
    /* display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, var(--primary-purple) 0%, #3d2d5f 100%); */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    
   background: linear-gradient(135deg, 
        var(--primary-yellow) 0%, 
        var(--primary-yellow-hover) 100%
    );
    
    /* Adds a subtle 'sheen' to the header */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);

}

.contact-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-purple);
}

.contact-close {
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-modal-body {
    padding: 32px 24px;
    overflow-y: auto;
    flex: 1;
}

.contact-intro {
    margin: 0 0 24px 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95em;
}

/* HubSpot Form Styles in Modal */
#hubspot-form .hs-form label,
#hubspot-form .hs-form legend,
#hubspot-form .hs-form span {
    color: #374151 !important;
}

#hubspot-form .hs-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

#hubspot-form .hs-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#hubspot-form .hs-button {
    background: var(--primary-green) !important;
    color: white !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#hubspot-form .hs-button:hover {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

/* ===== POST STYLES - ALL COMMENTED OUT FOR CLEAN START ===== */


.post-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.post-tags {
    /*margin: 8px 0 12px 0;*/
    margin: 8px 0 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    /*min-height: 70px;*/
    align-content: flex-start;
}

.tag {
    display: inline-block;
    background-color: var(--primary-purple);
    color: var(--primary-white);
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

ul .post-list {
    padding: 0;
    margin: 0;
    display: flex;
}

li .post-list {
    background: #000;
    border: 5px solid #a0a0a04e;
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /*transition: all 0.3s ease;*/
    position: relative;
}

/*.post-list li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #d0d7de;
}*/

.post-list h3 {
    margin: 0 0 12px 0;
    font-size: 1.25em;
    line-height: 1.3;
}

.post-list h3 a {
    text-decoration: none;
    color: #24292f;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-list h3 a:hover {
    color: #007acc;
}

.post-description {
    color: #656d76;
    line-height: 1.6;
    margin: 12px 0 16px 0;
    font-size: 0.95em;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.read-more:hover {
    color: #005a94;
    transform: translateX(2px);
}

.post-list .post-tags {
    margin: 10px 0 14px 0;
}

.post-list .post-meta {
    margin-bottom: 10px;
    font-size: 0.85em;
}

.post-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.3;
    min-height: 0; /* Let it be natural */
    height: auto;
}

.post-card h3 a {
    text-decoration: none;
    color: #333;
}

.post-card h3 a:hover {
    color: var(--primary-green);
}

.post-card .post-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.post-card .post-tags {
    margin: 0 0 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    height: auto; /* Shrinks/Grows based on rows of tags */
    min-height: 0;
}

/* The Stretchy Wrapper */
.description-wrapper {
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card .post-description {
    color: #555;
    line-height: 1.6;
    margin: 0;
    /* Allows text to fill the gap, but prevents it from running off the card */
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Allow more lines if space permits */
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 4px; /* Safety buffer for the bottom of letters like 'g' */
}

.post-card .read-more {
    grid-row: 5; /* Ensure it stays locked at the very bottom */
    align-self: end;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.post-card .read-more:hover {
    color: var(--primary-purple);
}


/* ===== FEATURES SECTION ===== */
.features-section {
    width: 100%;
    padding: 80px 0;
    background: #fff;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-purple);
    margin: 0 0 50px 0;
    padding: 0 40px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-card {
    background: var(--primary-white);
    border: 2px solid var(--primary-yellow);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/*.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}*/

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(253, 227, 48, 0.3);
}

.feature-icon svg {
    width: 44px;
    height: 44px;
    color: var(--primary-purple);
    stroke-width: 2.5;
}

.feature-card h3 {
    color: var(--primary-purple);
    margin: 0 0 16px 0;
    font-size: 1.4em;
    font-weight: 700;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ===== POSTS SECTION ===== */
.posts-section { 
    background-color: var(--text-lavender);
    width: 100%;
    padding: 80px 0;
    margin: 0;
    box-sizing: border-box;
}

/* Container to keep tiles properly aligned */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

.posts-section h2 { 
    text-align: center; 
    font-size: 2.5em; 
    color: var(--primary-purple); 
    margin: 0 0 50px 0;
    font-weight: 700;
}


/* ===== CLEAN MINIMAL POST STYLES - START HERE ===== */

/* Posts Page Layout with Sidebar */
.posts-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 80px;
    box-sizing: border-box;
}

.posts-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-green);
}

.sidebar-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.clear-all-tags {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-all-tags:hover {
    background: #f0fdf4;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 0;
}

.selected-tag-chip {
    background: var(--primary-green);
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.remove-tag {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.remove-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.expand-tags-btn {
    background: var(--primary-white);
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    color: #374151;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.expand-tags-btn:hover {
    background: #f9fafb;
    border-color: var(--primary-green);
}

.expand-icon {
    transition: transform 0.3s ease;
}

.expand-tags-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

.sidebar-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
    transition: max-height 0.3s ease;
}

.sidebar-tags.collapsed {
    max-height: 0;
    overflow: hidden;
}

/* Custom scrollbar for sidebar tags */
.sidebar-tags::-webkit-scrollbar {
    width: 6px;
}

.sidebar-tags::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.sidebar-tags::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sidebar-tags::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.sidebar-tag-btn {
    background: var(--primary-white);
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    color: #374151;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-tag-btn:hover {
    background: #f0fdf4;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.sidebar-tag-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.sidebar-tag-count {
    font-size: 0.85em;
    opacity: 0.7;
}

.posts-main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.posts-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    max-width: 100%;
    overflow: hidden;
}

.posts-header h1 {
    margin: 0 0 8px 0;
    color: #1f2937;
}

.posts-count {
    margin: 0 0 20px 0;
    font-size: 0.9em;
    color: #6b7280;
}

.posts-tag-filter {
    width: 100%;
    margin-top: 20px;
}

.tag-filter-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.tag-filter-label-wrapper:hover {
    color: var(--primary-green);
}

.tag-filter-label-wrapper:hover .toggle-icon {
    stroke: var(--primary-green);
}

.toggle-icon {
    transition: transform 0.3s ease, stroke 0.2s ease;
    flex-shrink: 0;
}

.tag-filter-label-wrapper.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.tag-filter-container {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
    
    /* Animation logic */
    overflow: hidden;
    max-height: 500px; /* High enough to fit all tags */
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                margin-top 0.4s ease;
}

.tag-filter-container.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none; /* Prevents clicking invisible tags */
}

.posts-tag-filter .tag-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.posts-tag-filter .tag-filter-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.posts-tag-filter .tag-filter-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%; /* Ensure the list itself doesn't shrink-wrap the chips */
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.no-results p {
    font-size: 1.1em;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.clear-filter-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filter-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive for Posts Page */
@media (max-width: 968px) {
    .posts-page-container {
        padding: 32px 40px;
    }
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-page-container {
        padding: 24px 20px;
    }
}

/* Posts flex container - Using Grid for consistent 3-column layout */
.posts-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Explicitly 3 equal columns */
    gap: 24px;
    width: 100%;
}

/* Individual post card */
.post-card {
    background: var(--primary-white);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
    /* Grid Magic - Auto rows for h3, meta, tags; 1fr for description; auto for read-more */
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    height: 100%; /* Ensures all cards in a row are the same height */
    transition: all 0.3s ease;
}

/* View Posts Button */
.view-posts-container {
    text-align: center;
    padding-top: 40px;
}

.view-posts-btn {
    display: inline-block;
    background: var(--primary-green);
    color: var(--primary-white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(106, 163, 47, 0.3);
}

.view-posts-btn:hover {
    background: #5d8a28;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(106, 163, 47, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .posts-flex {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    /* Global padding fix for containers */
    .header-content,
    .hero-content,
    .section-container,
    .success-container,
    .about-container,
    .features-grid,
    .posts-page-container,
    article {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .success-section,
    .about-section,
    .features-section {
        padding: 60px 0;
    }
    
    .features-section h2 {
        padding: 0 20px;
    }
    
    /* Header fixes */
    .header-content {
        padding: 12px 20px !important;
        gap: 10px;
    }
    
    .site-logo {
        height: 32px;
        width: auto;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    /* Posts section fixes */
    .posts-section {
        padding: 60px 0;
    }
    
    .section-container {
        padding: 0 20px !important;
    }
    
    .posts-flex {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 20px;
    }
    
    .post-card {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .feature-icon svg {
        width: 38px;
        height: 38px;
    }
    
    .features-section h2 {
        font-size: 2em;
    }

    .posts-section h2 {
        font-size: 2em;
    }

    .main-content {
        padding: 0;
    }
    
    /* Footer fixes */
    footer {
        padding: 60px 20px 30px 20px;
    }
    
    .footer-cta {
        padding: 0;
        margin-bottom: 40px;
    }
    
    .footer-cta h2 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    .footer-cta p {
        font-size: 1em;
    }
    
    /* Hero fixes - NO NEGATIVE MARGINS */
    .hero {
        padding: 40px 0 !important;
        margin: 0 !important;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .hero-cta {
        text-align: center;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1em;
    }
    
    .contact-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-body {
        padding: 24px 20px;
    }
    
    .hero-carousel {
        margin: 0;
        padding: 40px 0;
    }
    
    .hero-slide {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    .carousel-controls {
        bottom: 20px;
    }
    
    article {
        padding: 20px 20px;
    }
}

/* Footer styles */
footer {
    margin-top: 0;
    padding: 60px 80px 20px 80px;
    text-align: center;
    color: var(--primary-white);
    background: linear-gradient(180deg, var(--primary-purple-light) 0%, var(--primary-purple) 100%);
    width: 100%;
    box-sizing: border-box;
}

.footer-cta {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.footer-cta h2 {
    font-size: 2.5em;
    color: var(--primary-yellow);
    margin: 0 0 16px 0;
    font-weight: 700;
}

.footer-cta p {
    font-size: 1.2em;
    color: var(--text-lavender);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.footer-cta .cta-button {
    font-size: 1.1em;
    padding: 16px 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
}

footer p {
    margin: 8px 0;
}

.footer-links {
    font-size: 0.9em;
}

.footer-links a {
    color: var(--primary-green);
    text-decoration: none;
    padding: 0 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
    }
    
    /* Hide desktop navigation on mobile */
    .main-nav {
        display: none;
    }
    
    /* Show mobile menu toggle on mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-spacer {
        display: none;
    }
    
    .search-trigger .search-shortcut {
        display: none;
    }
    
    .search-modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 0 auto;
    }
    
    .search-modal {
        padding-top: 5vh;
    }
    
    #search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .site-logo {
        height: 40px;
        margin: 0 auto;
    }
    
    .site-title a {
        text-align: center;
    }
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-prev,
.pagination-next {
    padding: 10px 16px;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: var(--primary-green);
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-number,
.pagination-current {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-number {
    color: var(--primary-green);
    border: 1px solid #ddd;
}

.pagination-number:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-white);
    color: var(--primary-white);
}

.pagination-current {
    background-color: var(--primary-purple);
    color: white;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-numbers {
        order: -1;
        margin-bottom: 15px;
    }
}

/* Utility classes */
.content-section {
    margin-bottom: 40px;
}