/* --- Variables and Basic Reset --- */
:root {
    /* Placeholder Colors - Update based on final logo/branding */
    --primary-color: #0056b3; /* Professional Blue */
    --secondary-color: #4CAF50; /* Professional Green */
    --accent-color: #007bff; /* Slightly brighter blue for links/buttons */
    --light-bg: #f4f4f4;
    --dark-text: #333;
    --light-text: #fff;
    --border-color: #ddd;

    --header-height: 100px; /* Adjust as needed - Increased height */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
    scroll-padding-top: var(--header-height); /* Offset for sticky header */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

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

section {
    padding: 60px 0;
}

.alternate-bg {
    background-color: var(--light-bg);
}

/* --- Header & Navigation --- */
#main-header {
    background-color: #fff;
    color: var(--dark-text);
    padding: 0 20px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: var(--header-height);
}

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

#main-header .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* Style the logo image */
#main-header .logo img {
    height: 80px; /* Control logo display height - Increased size */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align nicely with any potential adjacent text */
}

#main-header .logo a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

#main-nav ul {
    list-style: none;
    display: flex;
    margin: 0; /* Reset ul margin */
}

#main-nav ul li {
    margin-left: 20px;
}

#main-nav ul li a {
    color: var(--dark-text);
    padding: 5px 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

#main-nav ul li a:hover,
#main-nav ul li a.active { /* Add 'active' class styling */
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    text-decoration: none;
}

/* Mobile Menu Toggle */
#mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-text); /* Ensure text color remains light */
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    /* background-color: var(--primary-color); */ /* Removed placeholder background */
    background: url('../img/hero_background.png') no-repeat center center/cover; /* Added background image */
    color: var(--light-text);
    text-align: center;
    padding: 100px 0; /* More padding for hero */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for the overlay */
    z-index: 1; /* Ensure content is conceptually above the pseudo-element */
}

/* Overlay for text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: -1; /* Place overlay behind the content */
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

.hero-section .btn {
    background-color: var(--secondary-color);
}

.hero-section .btn:hover {
    background-color: #3a9a40; /* Darker green */
}


/* --- Team Section Styling (Generalized) --- */
/* Removed #about specificity */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Removed #about specificity */
.team-member {
    /* text-align: center; */ /* Removed */
    background-color: var(--light-bg); /* Kept light grey background */
    padding: 20px;
    border-radius: 12px; /* Slightly more rounded */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color); /* Added subtle border */
    display: flex; /* Arrange photo and info */
    flex-direction: column; /* Stack photo above info */
}

/* Removed #about specificity */
.team-photo {
    width: 100%; /* Make photo responsive within the column */
    max-width: 200px; /* Max photo size */
    height: auto; /* Maintain aspect ratio */
    /* border-radius: 50%; */ /* Removed circle */
    border-radius: 8px; /* Rounded rectangle */
    object-fit: cover; 
    margin-bottom: 15px;
    border: none; /* Removed previous border */
    align-self: center; /* Center photo */
}

.member-info {
    text-align: center; /* Center text below photo */
    margin-top: auto; /* Push info down if needed for alignment */
}

.team-member h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.15rem; /* Slightly larger name */
}

.team-member p.member-title { 
    font-weight: normal; /* Changed from bold */
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

/* Social Icons */
.social-icons {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: var(--secondary-color); /* Use accent color */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Styling for img-based icons */
.social-icon {
    height: 20px; /* Control icon size by height */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align nicely */
}

/* Styling for inline SVG icons */
.social-icon-svg {
    height: 20px; /* Match size */
    width: auto;
    vertical-align: middle;
    fill: currentColor; /* Allows SVG color to be controlled by link color */
}

/* Specific LinkedIn Icon Styling */
.linkedin-link .social-icon-svg {
    fill: #0077B5; /* Default LinkedIn Blue */
}

.linkedin-link:hover .social-icon-svg {
    fill: var(--secondary-color); /* Hover Green */
}
/* Collapsible Bio */
.member-bio-content {
    text-align: left; /* Left align bio text */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out 0.1s, margin-top 0.5s ease-out;
    margin-top: 0;
}

.member-bio-content.expanded {
    max-height: 1000px; /* Allow for expansion */
    opacity: 1;
    margin-top: 15px; /* Add space when expanded */
}

/* Remove original styling for last p inside team-member */
.team-member p:last-of-type {
    /* font-size: 0.9rem; */
    /* margin-bottom: 0; */
    /* These are now handled by .member-bio-content p */
}

/* Toggle Button */
.toggle-bio-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 0; 
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: underline;
}

.toggle-bio-btn:hover {
    color: var(--secondary-color);
}

/* --- Services Section --- */
#services ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

#services ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234CAF50" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat left center;
    background-size: 16px 16px;
    padding-left: 30px; /* Space for the icon */
    margin-bottom: 10px; /* Spacing between items */
}


/* --- Contact Section --- */
#contact .contact-methods {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form takes more space */
    gap: 40px;
    margin-top: 30px;
}

.contact-form-container h3,
.contact-direct h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
}

#contact .contact-direct p {
    margin-bottom: 15px;
}

#contact .contact-direct strong {
     color: var(--secondary-color);
}


/* --- Footer --- */
#main-footer {
    background-color: var(--dark-text);
    color: var(--light-bg);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* Space above footer */
}

#main-footer p {
    margin-bottom: 0;
}

/* --- Scroll Animation --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero-section h1 { font-size: 2.5rem; }

    /* Mobile Navigation */
    #main-nav {
        display: none; /* Hide normal nav */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        flex-direction: column; /* Stack links vertically */
        padding-bottom: 10px;
    }

    #main-nav.active {
        display: flex; /* Show when active */
    }

    #main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    #main-nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--light-bg);
    }
     #main-nav ul li:last-child {
        border-bottom: none;
    }

    #main-nav ul li a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: none; /* Remove individual link border */
    }
    #main-nav ul li a:hover {
        background-color: var(--light-bg);
         border-bottom: none;
    }

    #mobile-menu-toggle {
        display: block; /* Show hamburger */
    }

    /* Adjust hamburger animation */
     #mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }


    /* Stack contact methods */
    #contact .contact-methods {
        grid-template-columns: 1fr; /* Stack form and direct contact */
    }

    /* Adjust team grid */
    #about .team-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    /* Adjust core services grid for smaller screens if needed */
    .core-services-grid {
        /* Keep auto-fit or adjust columns */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
     h1 { font-size: 1.8rem; }
     .hero-section h1 { font-size: 2rem; }
     .hero-section p { font-size: 1rem; }
     section { padding: 40px 0; }
     .container { padding: 0 15px; }

    /* Adjust core services grid for smaller screens if needed */
    .core-services-grid {
        /* Keep auto-fit or adjust columns */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* --- Core Services Summary Section --- */
#core-services-summary {
    background: url('../img/core-services-bg.png') no-repeat center center/cover; /* Restored original */
    /* background-color: var(--light-bg); */ /* Override alternate-bg */
    padding: 60px 0; /* Keep original padding */
    position: relative; /* For overlay */
    z-index: 1;
}

/* Overlay for Core Services */
#core-services-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2); /* Light overlay */
    z-index: -1;
}

#core-services-summary h2 {
    text-align: center;
    margin-bottom: 1em;
    color: var(--primary-color); /* Restored original color */
    /* Removed background, padding, display, border-radius, text-shadow */
}

#core-services-summary > .container > p:first-of-type { /* The intro paragraph */
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em;
    color: var(--dark-text); /* Restored original color */
     /* Removed background, padding, border-radius, text-shadow */
}

.core-services-grid {
    display: grid;
    /* Creates 1 column by default */
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Change to 2 columns on wider screens */
@media (min-width: 600px) {
    .core-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.core-service-item {
    background-color: #fff; /* White background for contrast */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.core-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.core-service-item .icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color); /* Use accent color for icon bg */
    border-radius: 50%;
    margin: 0 auto 15px auto;
    /* Removed old content/font styles */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Icon color */
}

/* Style for the inline SVG icons */
.core-service-icon {
    height: 28px; /* Adjust size as needed */
    width: auto;
    fill: currentColor; /* Use the color set on the parent (.icon-placeholder) */
}

.core-service-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.core-service-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Detailed Services Section (#services) --- */
#services h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: var(--secondary-color);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}
#services h3:first-of-type {
    margin-top: 1em; /* Reduce top margin for the first h3 */
}

#services ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

#services ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234CAF50" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat left center;
    background-size: 16px 16px;
    padding-left: 30px; /* Space for the icon */
    margin-bottom: 10px; /* Spacing between items */
}

#contact .contact-direct strong {
     color: var(--secondary-color);
}

/* --- Core Services Summary Section (Homepage) --- */
#core-services-summary h2 {
    text-align: center;
    margin-bottom: 0;
}

/* --- Detailed Services Section (services.html) --- */
/* Remove default section padding */
#detailed-services {
    padding-top: 0;
    padding-bottom: 0;
}

/* Styles for the container and categories */
.service-details-container {
    /* margin-top: 30px; */ /* Removed, spacing handled by category padding */
}

.service-category {
    margin-bottom: 0; /* Removed margin, use padding */
    /* padding-bottom: 20px; */ /* Removed */
    /* border-bottom: 1px solid var(--light-bg); */ /* Removed separator line */
    padding: 40px 20px; /* Added vertical and horizontal padding */
}

/* Apply grey background to even items */
.service-details-container .service-category:nth-of-type(even) {
    background-color: var(--light-bg);
}

.service-category:last-of-type {
    /* border-bottom: none; */ /* Already removed */
    margin-bottom: 0;
}

.service-category h3 {
    margin-bottom: 0.6em;
    color: var(--secondary-color);
}

.service-category p {
    margin-bottom: 1em;
}

.service-category ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

.service-category ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234CAF50" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat 0 5px; /* Adjust position */
    background-size: 16px 16px;
    padding-left: 30px; /* Space for the icon */
    margin-bottom: 12px; /* Spacing between items */
}

.service-category ul li strong {
    color: var(--primary-color);
}

/* Future Vision Section Styling (services.html) */
.future-vision-section {
    margin-top: 0; /* Removed margin, padding handles spacing */
    padding: 40px 20px; /* Consistent padding */
    border-top: 1px solid var(--border-color);
    /* background-color: var(--light-bg); */ /* Removed background color */
    /* padding: 30px; */ /* Replaced with consistent padding */
    border-radius: 0; /* Remove radius for full-width feel */
}

.future-vision-section h3 {
    color: var(--primary-color);
}

/* --- Contact Page Specific Styles (contact.html) --- */
#contact-content .container > p:first-of-type { /* Intro paragraph */
    margin-bottom: 2em;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#contact-content .contact-methods {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form takes more space */
    gap: 40px;
    margin-bottom: 0;
}

/* --- Simple CTA Section (Homepage) --- */
.cta-section {
    padding: 50px 0;
    /* background-color: var(--primary-color); */
    background-color: var(--light-text); /* Changed to white */
    /* color: var(--light-text); */ /* Removed default light text */
    color: var(--dark-text); /* Default text dark now */
}

.cta-section h2 {
    /* color: var(--light-text); */
    color: var(--primary-color); /* Changed to primary blue */
    margin-bottom: 0.5em;
}

.cta-section p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    /* color will inherit from .cta-section (dark-text) */
}

/* Ensure button within CTA uses standard secondary style */
.cta-section .btn-secondary {
    /* Styles are already defined globally for .btn-secondary, */
    /* so no specific override needed here unless desired. */
    /* Example: Add margin if needed */
    /* margin-top: 10px; */
}

.text-center {
    text-align: center;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}
.btn-secondary:hover {
     background-color: #3a9a40; /* Darker green */
     color: var(--light-text);
     text-decoration: none;
}

/* --- Page Title Section (About, Services, Contact) --- */
.page-title-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--light-bg); /* Explicitly set here too for clarity, though inherited */
    border-bottom: 1px solid var(--border-color); /* Added subtle bottom border */
}

.page-title-section h1 {
    margin-bottom: 0.2em;
    color: inherit; /* Use default dark text color */
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero-section h1 { font-size: 2.5rem; }

    /* Adjust contact methods grid */
    #contact-content .contact-methods {
        grid-template-columns: 1fr; /* Stack form and direct contact */
    }

    /* Adjust team grid */
    #about .team-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    /* Adjust core services grid for smaller screens if needed */
    .core-services-grid {
        /* Keep auto-fit or adjust columns */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    section { padding: 40px 0; }
    .container { padding: 0 15px; }

    /* Adjust core services grid for smaller screens if needed */
    .core-services-grid {
        /* Keep auto-fit or adjust columns */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Styling for the intro text container */
.core-services-intro {
    /* background-color: rgba(0, 0, 0, 0.6); */ /* Changed to white */
    background-color: #fff; /* White background */
    padding: 20px 30px; /* Padding around the text */
    border-radius: 8px; /* Rounded corners */
    max-width: 400px; /* Limit width */
    margin: 0 auto 2.5em auto; /* Center the block and add bottom margin */
    text-align: center; /* Center text inside */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Add subtle shadow like items */
}

.core-services-intro h2,
.core-services-intro p {
    /* color: var(--light-text); */ /* Changed back to dark */
    margin-bottom: 0.5em; /* Adjust spacing inside */
}

/* Restore original colors for text */
.core-services-intro h2 { 
    color: var(--primary-color); 
}
.core-services-intro p {
    color: var(--dark-text); 
    margin-bottom: 0; /* Remove bottom margin from paragraph */
    max-width: 100%; /* Override previous max-width */
    margin-left: 0; /* Override previous margins */
    margin-right: 0;
}

/* --- Load More / Show Less Functionality --- */
.story-content {
    position: relative; /* For the fade-out pseudo-element */
    max-height: 15em; /* Adjust as needed - approx 3 paragraphs */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; /* Smooth transition */
}

.story-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em; /* Height of the fade */
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--light-bg, #fff) 90%); /* Fade to page background */
    pointer-events: none; /* Allow clicks through the fade */
    transition: opacity 0.3s ease-in-out;
}

.story-content.expanded {
    max-height: 1000px; /* Large enough to show all content */
    overflow: visible;
}

/* Hide fade when expanded */
.story-content.expanded::after {
    opacity: 0;
}

/* Basic Outline Button Style - Modified for default green */
.btn-outline {
    /* background-color: transparent; */
    /* border: 1px solid var(--secondary-color); */
    /* color: var(--secondary-color); */
    background-color: var(--secondary-color); /* Default is green */
    color: var(--light-text, #fff); /* Default text is light */
    border: 1px solid var(--secondary-color); /* Keep border for consistency */
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline:hover {
    /* background-color: var(--secondary-color); */
    /* color: var(--light-text, #fff); */
    background-color: transparent; /* Hover is transparent */
    color: var(--secondary-color); /* Hover text is green */
    border-color: var(--secondary-color); /* Ensure border stays visible */
    text-decoration: none;
}

/* --- Interactive Values Section (About Page) --- */
.values-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between value items */
    margin-top: 20px;
}

.value-item {
    /* background-color: var(--light-bg); */ /* Changed to white */
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 8px;
    flex: 1 1 45%; /* Grow, shrink, basis of ~45% for 2 columns */
    min-width: 280px; /* Minimum width before wrapping */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.value-trigger {
    cursor: pointer;
    display: flex; /* Align title and indicator */
    justify-content: space-between; /* Space out title and indicator */
    align-items: center;
    color: var(--primary-color);
    margin-bottom: 0; /* Remove default h4 margin */
    transition: color 0.3s ease;
}

.value-trigger:hover {
    color: var(--accent-color);
}

.value-trigger .indicator {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.value-explanation {
    margin-top: 15px;
    margin-bottom: 0; /* Remove default p margin */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out 0.1s, margin-top 0.5s ease-out; /* Smooth transition */
    /* Add styles for typed text */
    white-space: pre-wrap; /* Preserve line breaks if needed */
    border-left: 3px solid var(--secondary-color); /* Optional decorative element */
    padding-left: 10px; /* Space from border */
}

/* Expanded State */
.value-item.active .value-trigger .indicator {
    transform: rotate(45deg);
}

.value-item.active .value-explanation {
    max-height: 500px; /* Sufficient height for content */
    opacity: 1;
    margin-top: 15px; /* Restore margin when visible */
} 