/* style.css */

/*------------------------------------*\
  #ROOT VARIABLES
\*------------------------------------*/
:root {
    --primary-color: #00C9A7; /* Vibrant Teal/Mint */
    --secondary-color: #FF8C42; /* Bright Orange/Coral */
    --accent-color: #C4FCEF; /* Light Mint for accents */
    --accent-dark-color: #008D74; /* Darker Teal for depth */

    --text-color: #333333;
    --text-light-color: #FFFFFF;
    --text-muted-color: #6c757d;
    --heading-color: #222222;

    --bg-light-color: #FDFDFD;
    --bg-medium-color: #F0F5F4; /* Soft biomorphic background */
    --bg-dark-color: #2c3e50; /* For dark overlays or elements */
    --border-color: #E0E0E0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px; /* For biomorphic touches */
    --biomorphic-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Example biomorphic border */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;

    --container-width: 1140px;
    --container-padding: 15px;

    --header-height: 80px;
}

/*------------------------------------*\
  #BASE & TYPOGRAPHY
\*------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--accent-dark-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
    padding-left: 0;
}

/*------------------------------------*\
  #LAYOUT & CONTAINER
\*------------------------------------*/
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-padding {
    padding-top: clamp(60px, 10vh, 100px);
    padding-bottom: clamp(60px, 10vh, 100px);
}

.section-padding-alt {
    padding-top: clamp(60px, 10vh, 100px);
    padding-bottom: clamp(60px, 10vh, 100px);
    background-color: var(--bg-medium-color);
}

.section-title {
    text-align: center;
    margin-bottom: clamp(30px, 5vh, 60px);
    color: var(--heading-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(30px, 5vh, 50px);
    color: var(--text-muted-color);
    font-size: 1.1rem;
}

/* Biomorphic border utility */
.biomorphic-border {
    border-radius: var(--biomorphic-radius);
    overflow: hidden; /* Important for images inside */
    box-shadow: var(--shadow-md);
}

/*------------------------------------*\
  #GLOBAL COMPONENTS: BUTTONS & FORMS
\*------------------------------------*/
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius-lg); /* Slightly more organic */
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
}

.btn:hover, .btn:focus {
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: var(--shadow-inset);
}

.btn-primary {
    color: var(--text-light-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-dark-color);
    border-color: var(--accent-dark-color);
    color: var(--text-light-color);
}

.btn-secondary {
    color: var(--primary-color);
    background-color: var(--text-light-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover, .btn-secondary:focus {
    color: var(--text-light-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-link {
    color: var(--secondary-color);
    background-color: transparent;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
}
.btn-link:hover, .btn-link:focus {
    color: var(--primary-color);
    text-decoration: underline;
    box-shadow: none;
    transform: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--text-light-color);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-inset);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 201, 167, 0.25);
}

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

/*------------------------------------*\
  #HEADER
\*------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Glassmorphism touch */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover {
    color: var(--accent-dark-color);
    text-decoration: none;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
}

.main-nav .nav-list li {
    margin-left: 2rem;
}

.main-nav .nav-list a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-medium);
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a:focus,
.main-nav .nav-list a.active { /* Add .active class via JS for current page/section */
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a:focus::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above nav list on mobile */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: transform var(--transition-medium), background-color var(--transition-medium);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform var(--transition-medium), top var(--transition-medium), bottom var(--transition-medium);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}


/*------------------------------------*\
  #FOOTER
\*------------------------------------*/
.site-footer {
    background-color: var(--bg-dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: clamp(40px, 8vh, 80px);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: clamp(30px, 6vh, 60px);
}

.site-footer h4 {
    font-size: 1.25rem;
    color: var(--text-light-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-nav ul li,
.footer-social ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul a,
.footer-social ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-nav ul a:hover, .footer-nav ul a:focus,
.footer-social ul a:hover, .footer-social ul a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-social p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/
.hero-section {
    position: relative;
    color: var(--text-light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--header-height)); /* Ensure it's substantial */
    padding: 60px var(--container-padding);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)); /* Ensure text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem); /* Responsive font size */
    color: var(--text-light-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    color: var(--text-light-color);
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transform-style: preserve-3d; /* For 3D button effect */
}
.btn-hero:hover {
    transform: translateY(-3px) scale(1.03) rotateX(5deg);
}

/*------------------------------------*\
  #CARD STYLES (Generic)
\*------------------------------------*/
.card {
    background-color: var(--text-light-color);
    border-radius: var(--border-radius-lg); /* Softer, more organic edges */
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.card-image { /* Container for the image */
    width: 100%;
    /* Fixed height for image containers, adjust as needed per section */
    overflow: hidden;
    display: flex; /* Centering image if it's smaller */
    justify-content: center;
    align-items: center;
    position: relative; /* For potential overlays */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform var(--transition-medium);
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space if card heights are equalized */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content within card */
}
.card-content .card-title {
    font-size: 1.35rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted-color);
    margin-bottom: 1rem;
    flex-grow: 1; /* Push button to bottom if present */
}
.card-content .btn {
    margin-top: auto; /* Pushes button to the bottom */
    align-self: center;
}

/*------------------------------------*\
  #FEATURES SECTION
\*------------------------------------*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card .card-image {
    height: 200px; /* Example fixed height */
}

/*------------------------------------*\
  #ABOUT US SECTION
\*------------------------------------*/
.about-us-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.about-us-image-container img {
    border-radius: var(--border-radius-lg); /* Softer edges */
    box-shadow: var(--shadow-lg);
}
.about-us-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .about-us-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    .about-us-image-container {
        order: 1; /* Default: image left, text right */
    }
    .about-us-text {
        order: 2;
    }
}
.about-us-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.about-us-section[style*="background-image"]::before { /* Overlay for readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 253, 253, 0.85); /* Light overlay if bg is image */
    z-index: 0;
}
.about-us-section .container {
    position: relative;
    z-index: 1;
}

/*------------------------------------*\
  #PROGRAMS (TIMELINE) SECTION
\*------------------------------------*/
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after { /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: -1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}

/* The icon on the timeline */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: var(--text-light-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content.card {
    padding: 1rem;
    background-color: var(--text-light-color);
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}
.timeline-content.card .card-image {
    height: 180px; /* Adjust as needed */
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
}
.timeline-content.card .card-title {
    font-size: 1.25rem;
}

@media (max-width: 767px) {
    .timeline-container::after {
        left: 25px; /* Move line to the left */
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px; /* Space for icon and line */
        padding-right: 15px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-icon {
        left: 0px; /* Position icon relative to the new line */
    }
}


/*------------------------------------*\
  #CUSTOMER STORIES (TESTIMONIALS)
\*------------------------------------*/
.testimonials-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    position: relative;
}
.testimonials-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(240, 245, 244, 0.9); /* Light overlay from bg-medium */
    z-index: 0;
}
.testimonials-section .container {
    position: relative; z-index: 1;
}

.testimonial-slider {
    /* Basic slider structure - JS will handle functionality */
    display: flex; /* For manual or simple JS slider */
    overflow-x: auto; /* If using a simple scroll */
    gap: 1.5rem;
    padding-bottom: 1rem; /* Space for scrollbar if visible */
}
.testimonial-slider .slide {
    min-width: 300px; /* Width of each slide */
    flex-shrink: 0;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent if on image bg */
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-card .card-image { /* container for avatar */
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}
.testimonial-avatar { /* the img itself */
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-card blockquote p {
    font-style: italic;
    color: var(--text-muted-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}
.testimonial-card blockquote footer {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}


/*------------------------------------*\
  #PARTNERS SECTION
\*------------------------------------*/
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: center;
}
.partner-logo.card {
    padding: 1rem;
    background-color: var(--text-light-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 180px; /* Example height */
}
.partner-logo .card-image { /* Image container */
    width: 100%;
    max-height: 80px; /* Max height for logo image */
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-logo .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Logos should be contained */
}
.partner-logo .card-content p {
    font-size: 0.85rem;
    color: var(--text-muted-color);
    margin-bottom: 0;
    font-weight: 600;
}

/*------------------------------------*\
  #PRESS SECTION
\*------------------------------------*/
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.press-card .card-image {
    height: 180px; /* Example fixed height */
}

/*------------------------------------*\
  #SUSTAINABILITY (ACCORDION)
\*------------------------------------*/
.sustainability-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    position: relative;
}
.sustainability-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 0;
}
.sustainability-section .container {
    position: relative; z-index: 1;
}
.sustainability-section .section-title,
.sustainability-section .section-intro,
.sustainability-section .accordion-header h3 {
    color: var(--text-light-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.sustainability-section .accordion-content p {
    color: rgba(255,255,255,0.9);
}

.accordion-container {
    max-width: 750px;
    margin: 0 auto;
}
.accordion-item {
    background-color: rgba(255,255,255, 0.1); /* Semi-transparent for glassmorphism if on bg image */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}
.accordion-header:hover {
    background-color: rgba(255,255,255, 0.2);
}
.accordion-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--text-light-color); /* Adjusted for dark bg */
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light-color); /* Adjusted for dark bg */
    transition: transform var(--transition-medium);
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium), padding var(--transition-medium);
}
.accordion-content p {
    margin-bottom: 0;
    color: rgba(255,255,255,0.85); /* Adjusted for dark bg */
}
.accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust as needed */
    padding-top: 1rem;
}

/*------------------------------------*\
  #COMMUNITY (CAREERS) SECTION
\*------------------------------------*/
.community-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.community-image-container img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
.community-text p {
    font-size: 1.05rem;
}
.community-text .btn {
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .community-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    .community-text {
        order: 1;
    }
    .community-image-container {
        order: 2; /* Image on the right */
    }
     .community-text .btn {
        align-self: flex-start;
    }
}

/*------------------------------------*\
  #EXTERNAL RESOURCES SECTION
\*------------------------------------*/
.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.resource-item.card .card-content {
    text-align: left;
}
.resource-item.card .card-title a {
    color: var(--heading-color);
}
.resource-item.card .card-title a:hover {
    color: var(--primary-color);
}
.resource-item.card .btn-link {
    margin-top: 0.5rem;
    font-weight: bold;
}


/*------------------------------------*\
  #CONTACT SECTION
\*------------------------------------*/
.contact-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    position: relative;
}
.contact-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(240, 245, 244, 0.92); /* Light overlay from bg-medium */
    z-index: 0;
}
.contact-section .container {
    position: relative; z-index: 1;
}
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
.contact-form .btn-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1.1rem;
}

/*------------------------------------*\
  #PAGE TRANSITIONS (Barba.js)
\*------------------------------------*/
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 9999;
    transform: translateY(100%); /* Start off-screen */
}
/* Animation classes for Barba.js (example) */
.fade-in {
    animation: fadeIn 0.5s var(--transition-medium) forwards;
}
.fade-out {
    animation: fadeOut 0.5s var(--transition-medium) forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Barba transition states */
html.is-animating .page-transition {
    transform: translateY(0);
}
.barba-leave-active .page-transition {
    transition: transform 0.5s ease-in-out;
    transform: translateY(0);
}
.barba-enter-active .page-transition {
    transition: transform 0.5s ease-in-out 0.3s; /* Delay enter transition */
    transform: translateY(-100%);
}


/*------------------------------------*\
  #SPECIFIC PAGE STYLES
\*------------------------------------*/
/* success.html */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--container-padding);
    background-color: var(--bg-medium-color);
}
.success-content {
    background-color: var(--text-light-color);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
}
.success-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.success-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* privacy.html & terms.html */
.privacy-page-container,
.terms-page-container {
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: 60px;
}
.privacy-page-container .container h1,
.terms-page-container .container h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.privacy-page-container .container h2,
.terms-page-container .container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--accent-dark-color);
}
.privacy-page-container .container p,
.terms-page-container .container p,
.privacy-page-container .container ul li,
.terms-page-container .container ul li {
    line-height: 1.7;
    margin-bottom: 1rem;
}
.privacy-page-container .container ul,
.terms-page-container .container ul {
    list-style: disc;
    padding-left: 25px;
}


/*------------------------------------*\
  #MEDIA QUERIES
\*------------------------------------*/
@media (max-width: 991px) {
    .main-nav .nav-list {
        margin-left: 1rem; /* Reduce spacing slightly */
    }
    .main-nav .nav-list li {
        margin-left: 1.5rem;
    }
}

@media (max-width: 767px) {
    .main-nav .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--text-light-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-medium);
        overflow-y: auto;
    }
    .main-nav .nav-list.nav-active {
        transform: translateX(0);
    }
    .main-nav .nav-list li {
        margin-left: 0;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    .main-nav .nav-list a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    .main-nav .nav-list a::after {
        left: 0; /* Align underline to left for vertical items */
    }

    .nav-toggle {
        display: block;
    }
    /* Hamburger animation when active */
    .nav-toggle.active .hamburger {
        background-color: transparent; /* Middle line disappears */
    }
    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
        background-color: var(--primary-color);
    }
    .nav-toggle.active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
        background-color: var(--primary-color);
    }

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

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-content > div {
        margin-bottom: 2rem;
    }
    .footer-nav ul, .footer-social ul {
        padding-left: 0;
        text-align: center;
    }
}

.logo {
    display: flex;
    align-items: center;
}