/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #4A7C59; /* Muted Forest Green */
    --primary-color-dark: #3A664B; /* Darker shade for hovers */
    --accent-color: #C2A878; /* Earthy Gold/Tan */
    --accent-color-dark: #A88D5F; /* Darker shade for hovers */

    --text-color: #333333;
    --text-color-light: #555555; /* Lighter text for intros/subtitles */
    --light-text-color: #FFFFFF;
    --light-text-color-muted: #E0E0E0; /* For footer text */

    --bg-color: #FFFFFF;
    --bg-color-light: #F4F6F3; /* Very light, slightly warm off-white */
    --bg-color-dark: #2A3D33; /* Darker shade of primary, for footer etc. */
    --card-bg-color: #FFFFFF;
    --border-color: #D1D5DB; /* Light Gray */

    --font-family-heading: 'Raleway', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    --shadow-color-soft: rgba(0, 0, 0, 0.08);
    --shadow-color-medium: rgba(0, 0, 0, 0.12);
    --shadow-color-strong: rgba(0, 0, 0, 0.18);

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

    --header-height: 70px; /* Adjusted for a sleeker header */
    --container-max-width: 1200px;
    --container-padding: 15px;
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: var(--header-height); /* For fixed header */
    margin: 0;
}

.main-container {
    overflow-x: hidden; /* Prevents horizontal scroll from AOS animations */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    color: var(--primary-color-dark); /* Consistent dark heading color */
    margin-top: 0;
    margin-bottom: 0.75em;
    line-height: 1.3;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.6rem; } /* Card titles, timeline items */
h4 { font-size: 1.2rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

/* Paragraphs & Lists */
p {
    margin-top: 0;
    margin-bottom: 1.25em;
}
ul, ol {
    margin-top: 0;
    margin-bottom: 1em;
    padding-left: 20px;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}
a:hover {
    color: var(--accent-color-dark);
    text-decoration: underline;
}

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

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-padding {
    padding-top: 70px;
    padding-bottom: 70px;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    color: var(--primary-color-dark);
}

.section-intro {
    text-align: center;
    color: var(--text-color-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    line-height: 1.7;
}

/* Buttons (Global) */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 30px; /* More rounded */
    transition: all var(--transition-speed) var(--transition-timing);
    letter-spacing: 0.5px;
    line-height: 1.5; /* Ensure text is centered vertically */
    box-shadow: 0 2px 5px var(--shadow-color-soft);
}
.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px var(--shadow-color-soft);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--light-text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-color-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    font-size: 0.95rem;
}
.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: margin-left var(--transition-speed) var(--transition-timing);
}
.read-more:hover {
    color: var(--accent-color-dark);
    text-decoration: none; /* Underline removed for cleaner look with arrow */
}
.read-more:hover::after {
    margin-left: 10px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px var(--shadow-color-soft);
    transition: background-color var(--transition-speed) var(--transition-timing),
                height var(--transition-speed) var(--transition-timing);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color-dark);
    text-decoration: none;
}
.logo:hover {
    color: var(--primary-color);
}

.main-navigation .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.main-navigation .nav-list li {
    margin-left: 30px;
}
.main-navigation .nav-list li a {
    font-family: var(--font-family-body);
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-speed) var(--transition-timing);
}
.main-navigation .nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-color);
    transition: width var(--transition-speed) var(--transition-timing);
}
.main-navigation .nav-list li a:hover::after,
.main-navigation .nav-list li a.active::after { /* For active page link */
    width: 100%;
    left: 0;
    background: var(--accent-color);
}
.main-navigation .nav-list li a:hover,
.main-navigation .nav-list li a.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-right: -10px; /* Align with container edge */
}
.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    background-color: var(--primary-color-dark);
    height: 3px;
    width: 28px;
    border-radius: 3px;
    transition: all var(--transition-speed) var(--transition-timing);
}
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(5px); }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: translateY(0) rotate(45deg); }
.menu-toggle.active .hamburger::after { transform: translateY(-3px) rotate(-45deg); }

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--light-text-color);
    padding: 120px 0; /* Increased padding */
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)); /* Adjusted gradient */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
}
.hero-title {
    font-size: 3.5rem; /* Larger title */
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--light-text-color); /* Ensured white */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--light-text-color-muted); /* Ensured white or very light */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero-section .btn-primary {
    padding: 15px 40px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-section { padding: 80px 0; min-height: auto; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/*--------------------------------------------------------------
# Cards (General Styles)
--------------------------------------------------------------*/
.card {
    background-color: var(--card-bg-color);
    border-radius: 10px; /* Slightly more rounded */
    box-shadow: 0 5px 15px var(--shadow-color-soft);
    overflow: hidden; /* Important for image radius */
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-color-medium);
}
.card .card-image { /* Container for image */
    width: 100%;
    height: 220px; /* Consistent height for card images */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}
.card-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-color-dark);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.7;
    margin-bottom: auto; /* Pushes elements below (like a button) to the bottom */
}
.card-content .btn {
    margin-top: 20px;
    align-self: flex-start; /* Default for buttons in cards */
}

/*--------------------------------------------------------------
# History Section (Timeline)
--------------------------------------------------------------*/
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 40px 0;
    max-width: 900px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    border-radius: 3px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px; /* Space from center line */
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px; /* Space from center line */
}
.timeline-icon {
    position: absolute;
    top: 20px;
    width: 22px;
    height: 22px;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color-light); /* Eco-minimalism: subtle border */
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 3px var(--accent-color); /* Outer glow */
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -11px; transform: translateX(0); /* Adjusted for center alignment */
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -11px;  transform: translateX(0); /* Adjusted for center alignment */
}
.timeline-content {
    padding: 25px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color-soft);
    position: relative;
}
.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.portfolio-section .card-content {
    text-align: left; /* Portfolio descriptions are usually better left-aligned */
}

/*--------------------------------------------------------------
# Services/Research Section
--------------------------------------------------------------*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-item {
    padding: 30px;
    text-align: center;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color-soft);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-color-medium);
}
.service-icon {
    width: 70px; /* Slightly larger icons */
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain; /* Ensure icons are not distorted */
    filter: grayscale(30%) opacity(0.85); /* Subtle eco-minimalist touch */
    transition: filter var(--transition-speed) var(--transition-timing);
}
.service-item:hover .service-icon {
    filter: grayscale(0%) opacity(1);
}
.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.service-item p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.7;
}

/*--------------------------------------------------------------
# Clientele Section
--------------------------------------------------------------*/
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.client-logos img {
    max-height: 60px; /* Consistent height for logos */
    width: auto; /* Maintain aspect ratio */
    opacity: 0.7;
    transition: opacity var(--transition-speed) var(--transition-timing);
    filter: grayscale(50%);
}
.client-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/*--------------------------------------------------------------
# Awards Section
--------------------------------------------------------------*/
.awards-list {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin: 30px auto 0;
}
.awards-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
    color: var(--text-color);
}
.awards-list li:last-child {
    border-bottom: none;
}
.awards-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Events Section
--------------------------------------------------------------*/
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.event-card .card-content {
    text-align: left;
}
.event-card .card-content p strong {
    color: var(--primary-color-dark);
}
.event-card .btn-secondary {
    align-self: flex-start;
    margin-top: auto; /* Pushes button to bottom */
}

/*--------------------------------------------------------------
# Sustainability Section
--------------------------------------------------------------*/
.sustainability-section {
    padding: 0; /* Full bleed */
}
.sustainability-content {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    padding: 100px var(--container-padding); /* Inner padding */
    color: var(--light-text-color);
}
.sustainability-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(42, 61, 51, 0.7), rgba(42, 61, 51, 0.8)); /* Darker green overlay */
    z-index: 1;
}
.sustainability-text {
    position: relative;
    z-index: 2;
    max-width: 750px; /* Control text width for readability */
}
.sustainability-text .section-title {
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    text-align: left; /* Align title left for this layout */
    margin-bottom: 30px;
}
.sustainability-text p {
    color: var(--light-text-color-muted);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    font-size: 1.1rem;
    line-height: 1.8;
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.resource-card .card-content {
    text-align: left;
}
.resource-card .card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}
.resource-card .card-content h3 a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start; /* Align items to the top */
}
.contact-form-container {
    background-color: var(--card-bg-color);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color-soft);
}
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-color-light);
}
.contact-info p strong {
    color: var(--text-color);
}
.contact-info a {
    color: var(--accent-color);
}
.contact-info a:hover {
    color: var(--accent-color-dark);
}
.map-placeholder img {
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px; /* Generous padding */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Softer radius */
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color-light);
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.25); /* Primary color glow */
}
.form-group textarea {
    resize: vertical;
    min-height: 130px;
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234A7C59' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px 16px;
    padding-right: 45px;
}
.contact-form-container .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--bg-color-dark);
    color: var(--light-text-color-muted);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-widget h4 {
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    color: var(--light-text-color);
    margin-bottom: 20px;
}
.footer-widget p {
    line-height: 1.7;
}
.footer-widget ul {
    list-style: none;
    padding-left: 0;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget ul li a {
    color: var(--light-text-color-muted);
    text-decoration: none;
}
.footer-widget ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.social-links-text li a { /* Specific styling for text social links */
    font-weight: 500;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}
.footer-bottom p { margin-bottom: 0; }

/*--------------------------------------------------------------
# Modal Styles
--------------------------------------------------------------*/
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Darker overlay */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.modal-content {
    background-color: var(--card-bg-color);
    margin: 10% auto;
    padding: 35px;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-color-strong);
    animation: modalFadeIn 0.4s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-button {
    color: var(--text-color-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    transition: color var(--transition-speed) var(--transition-timing);
}
.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.modal-content .form-group { /* Style form inside modal */
    margin-bottom: 15px;
}
.modal-content .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/*--------------------------------------------------------------
# Specific Page Styles (success.html, privacy.html, terms.html)
--------------------------------------------------------------*/
/* For main content wrapper on static pages like privacy, terms */
.static-page-content {
    padding-top: 40px; /* Relative to the main content area, after body padding for header */
    padding-bottom: 60px;
}
.static-page-content .container { /* Narrower container for readability */
    max-width: 850px;
}
.static-page-content h1 {
    margin-bottom: 30px;
    text-align: center; /* Center main title of static pages */
}
.static-page-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.static-page-content p,
.static-page-content li {
    line-height: 1.8;
    color: var(--text-color-light);
}
.static-page-content ul,
.static-page-content ol {
    margin-bottom: 1.5em;
}


/* Styles for success.html (assuming a .success-page-wrapper class on its main div) */
/* If success.html shares the main structure, target its specific content wrapper */
.success-page-container { /* This class should wrap the content in success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height)); /* Full height minus header */
    text-align: center;
    padding: 40px var(--container-padding);
}
/* If success page is minimal and doesn't have header/footer or main-container */
body.success-page-body { /* Add this class to body in success.html */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color-light);
    padding-top: 0; /* Override global body padding */
}
.success-content-box { /* This class on the content div in success.html */
    padding: 50px;
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color-medium);
    max-width: 600px;
}
.success-content-box h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.success-content-box p {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 30px;
}
.success-content-box .btn {
    min-width: 200px;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 992px) { /* Tablet and below */
    .menu-toggle { display: block; }
    .main-navigation .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--card-bg-color);
        box-shadow: 0 4px 10px var(--shadow-color-soft);
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }
    .main-navigation .nav-list.active { display: flex; }
    .main-navigation .nav-list li {
        width: 100%;
        text-align: left; /* Align text left for dropdown items */
        margin-left: 0;
    }
    .main-navigation .nav-list li a {
        padding: 15px 30px; /* More padding */
        display: block;
        width: 100%;
        color: var(--primary-color-dark);
        border-bottom: 1px solid var(--bg-color-light);
    }
    .main-navigation .nav-list li:last-child a { border-bottom: none; }
    .main-navigation .nav-list li a:hover,
    .main-navigation .nav-list li a.active {
        background-color: var(--bg-color-light);
        color: var(--accent-color);
    }
    .main-navigation .nav-list li a::after { display: none; } /* Remove underline effect on mobile */

    .contact-wrapper {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .contact-info {
        margin-top: 40px; /* Add space when stacked */
    }
}

@media (max-width: 768px) { /* Mobile */
    :root { --header-height: 60px; } /* Smaller header on mobile */
    .section-padding { padding-top: 50px; padding-bottom: 50px; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    .section-intro { font-size: 1rem; margin-bottom: 40px; }

    .timeline::before { left: 15px; }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 15px;
    }
    .timeline-item:nth-child(odd) { padding-left: 50px; padding-right: 15px; }
    .timeline-icon, .timeline-item:nth-child(odd) .timeline-icon, .timeline-item:nth-child(even) .timeline-icon {
        left: 15px; transform: translateX(-50%);
    }

    .sustainability-content { padding: 60px var(--container-padding); }
    .sustainability-text .section-title { font-size: 1.8rem; }
    .sustainability-text p { font-size: 1rem; }

    .footer-widgets { grid-template-columns: 1fr; text-align: center; }
    .footer-widget ul { display: inline-block; text-align: left; }
}

@media (max-width: 576px) {
    .portfolio-grid, .services-grid, .events-grid, .resources-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
    .card .card-image { height: 200px; }
}