﻿/* Variables */
:root {
    --primary-color: #2E7D32;
    /* Deep Green */
    --secondary-color: #F57C00;
    /* Orange */
    --text-color: #333333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --gray: #666666;
    --border-color: #e0e0e0;
    --nav-height: 80px;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Preloader */
    --preloader-bg: var(--white);
    --preloader-accent: var(--secondary-color);
    --preloader-z: 99999;
    --preloader-fade-ms: 450ms;
}

/* Preloader */
html.is-preloading,
html.is-preloading body {
    overflow: hidden;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--preloader-z);
    background: var(--preloader-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity var(--preloader-fade-ms) ease-in-out, visibility 0s linear var(--preloader-fade-ms);
    will-change: opacity;
}

.preloader__logo {
    width: clamp(96px, 20vw, 170px);
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.08));
    transform-origin: center;
    animation: preloaderLogoIn 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both,
        preloaderPulse 1600ms ease-in-out 750ms infinite;
}

.preloader__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 14px;
}

.preloader__dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--preloader-accent);
    opacity: 0.85;
    transform: translateY(0);
    animation: preloaderDot 900ms cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
    will-change: transform, opacity;
}

.preloader__dots span:nth-child(2) {
    animation-delay: 120ms;
}

.preloader__dots span:nth-child(3) {
    animation-delay: 240ms;
}

.preloader--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes preloaderDot {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.55;
    }

    50% {
        transform: translateY(-9px);
        opacity: 1;
    }
}

@keyframes preloaderLogoIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes preloaderPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader,
    .preloader__logo,
    .preloader__dots span {
        animation: none !important;
        transition: none !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-highlight {
    color: var(--secondary-color);
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: transparent;
    color: var(--white);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--secondary-color);
    z-index: -2;
    border-radius: inherit;
    pointer-events: none;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateX(-110%);
    transition: transform 0.45s ease-in-out;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    will-change: transform;
}

.btn-primary:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary i {
    transition: transform 0.45s ease-in-out;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(245, 124, 0, 0.35);
    outline-offset: 3px;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 8px;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 600px;
    /* Reduced from full screen for better info density */
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.6)), url('../images/hero-bg.jpg');
    /* Placeholder BG if image missing, will fallback to color */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    color: #f1f1f1;
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Common Page Header (Non-Home) */
.page-header {
    background-color: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Cards */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Focus Areas / Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    border-top: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(46, 125, 50, 0.08), rgba(245, 124, 0, 0.12));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
    border-top-color: var(--primary-color);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(245, 124, 0, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.feature-card:hover .icon-box {
    transform: translateY(-3px) scale(1.08);
    background-color: rgba(46, 125, 50, 0.12);
    color: var(--primary-color);
}

/* Buttons inside cards */
.learn-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 15px;
    display: inline-block;
    transition: color 0.25s ease;
}

.learn-more i {
    margin-left: 4px;
    transition: transform 0.25s ease;
}

.feature-card:hover .learn-more {
    color: var(--primary-color);
}

.feature-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Stats */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: #e0e0e0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-stats-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Leadership (About Us) */
.leadership-grid {
    color: var(--text-color);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 34px;
    text-align: left;
}

.leadership-grid .team-member,
.team-carousel .team-member {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.leadership-grid .team-member:hover,
.team-carousel .team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
    border-color: rgba(46, 125, 50, 0.35);
}

.leadership-grid .team-member:focus-within,
.team-carousel .team-member:focus-within {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
    border-color: rgba(46, 125, 50, 0.45);
}

.leadership-grid .team-photo,
.team-carousel .team-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-grid .team-initials,
.team-carousel .team-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(17, 24, 39, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.leadership-grid .team-photo.is-fallback .team-initials,
.team-carousel .team-photo.is-fallback .team-initials {
    opacity: 1;
}

.leadership-grid .team-info,
.team-carousel .team-info {
    padding: 18px 18px 22px;
}

.leadership-grid .team-name,
.team-carousel .team-name {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark-color, #222);
    transition: color 0.25s ease;
}

.leadership-grid .team-role,
.team-carousel .team-role {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #6b7280;
}

.leadership-grid .team-photo::after,
.team-carousel .team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(46, 125, 50, 0.18), rgba(245, 124, 0, 0.18));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.leadership-grid .team-photo img,
.team-carousel .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.leadership-grid .team-member:hover .team-photo::after,
.team-carousel .team-member:hover .team-photo::after {
    opacity: 1;
}

.leadership-grid .team-member:hover .team-photo img,
.team-carousel .team-member:hover .team-photo img {
    transform: scale(1.06);
}

.leadership-grid .team-member:hover .team-name,
.team-carousel .team-member:hover .team-name {
    color: var(--primary-color);
}

.team-carousel {
    position: relative;
    padding: 0 90px;
}

.team-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.team-viewport::-webkit-scrollbar {
    display: none;
}

.team-track {
    display: flex;
    gap: 28px;
    align-items: stretch;
    padding: 8px 6px 16px;
}

.team-track .team-member {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: min(320px, 78vw);
}

.team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 88px;
    height: 88px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #42b549;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.team-arrow:hover {
    filter: brightness(0.98);
}

.team-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.team-arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.team-arrow i {
    font-size: 28px;
}

.team-arrow.prev {
    left: 0;
    background: rgba(66, 181, 73, 0.35);
}

.team-arrow.next {
    right: 0;
}

@media (max-width: 768px) {
    .team-carousel {
        padding: 0 64px;
    }

    .team-arrow {
        width: 64px;
        height: 64px;
    }

    .team-arrow i {
        font-size: 22px;
    }
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-img {
    height: 200px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 70px 0 30px;
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    background: #333;
    color: #fff;
}

.newsletter-form button {
    padding: 10px 15px;
    background: var(--secondary-color);
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
}

/* Sidebar (Projects Page) */
.page-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 900px) {

    .stats-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.8rem;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        /* var(--nav-height) */
        left: 0;
        right: 0;
        background: #ffffff;
        /* var(--white) */
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Hero Slider Overrides --- */
.hero {
    background: var(--primary-color) !important;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.6));
    z-index: 1;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--white);
}

/* --- Multi-Slide Hero Carousel --- */
.hero {
    position: relative;
    height: 600px;
    background-color: var(--primary-color);
    overflow: hidden;
    display: block;
    /* override previous flex */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 0;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.slider-item .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

/* Improve readability of hero slide text on images */
.slider-item .hero-title,
.slider-item .hero-subtitle {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.slider-item .hero-textbox {
    display: inline-block;
    width: fit-content;
    max-width: min(720px, calc(100% - 28px));
    box-sizing: border-box;
}

.slider-item.photo-slide,
.slider-item.photo-slide .hero-textbox,
.slider-item.photo-slide .hero-textbox *,
.slider-item.photo-slide .hero-buttons,
.slider-item.photo-slide .hero-buttons * {
    font-family: 'Montserrat', sans-serif !important;
}

.slider-item.photo-slide .hero-textbox {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    padding: 14px 18px 16px;
}

.slider-item.photo-slide.compact-text .hero-textbox {
    padding: 12px 16px 14px;
}

/* Photo slides: remove overlay and ensure image fills slide */
.slider-item.photo-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--primary-color);
}

.slider-item.photo-slide .slider-overlay {
    display: none;
}

/* Slide 2 + 3 only: smaller text, bottom-left positioning, different font */
.slider-item.compact-text {
    align-items: flex-end;
    font-family: 'Montserrat', sans-serif;
}

.slider-item.compact-text .hero-content {
    /* Override .container centering so content hugs the left side */
    margin-left: 0;
    margin-right: auto;
    max-width: 680px;
    padding: 0 14px 22px;
    text-align: left;
}

.slider-item.compact-text .hero-title,
.slider-item.compact-text .hero-subtitle {
    font-family: 'Montserrat', sans-serif;
}

.slider-item.compact-text .hero-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.slider-item.compact-text .hero-subtitle {
    font-size: 0.92rem;
    max-width: 560px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .slider-item.compact-text .hero-content {
        max-width: 100%;
        padding: 0 12px 18px;
    }

    .slider-item.compact-text .hero-title {
        font-size: 1.6rem;
    }

    .slider-item.compact-text .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Make sure the green slide doesn't use the dark overlay */
.slider-item[style*="background-color"] .slider-overlay {
    display: none;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--secondary-color);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Dots Adjustments */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

/* --- Project Detail Pages --- */
.project-detail-header {
    text-align: center;
    padding: 60px 20px;
    background-color: #f4f9f4;
    border-bottom: 1px solid #e0ece0;
}
.project-detail-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.project-detail-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}
.project-detail-info h3 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 8px;
    display: inline-block;
}
.project-detail-info p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.project-detail-info ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}
.project-detail-info ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}
.project-detail-info ul li i {
    margin-top: 5px;
}

/* Gallery */
.project-gallery {
    padding: 60px 20px;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
}
.project-gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
}
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.back-projects-btn {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 900px) {
    .project-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .project-gallery-grid { grid-template-columns: 1fr; }
    .project-detail-header h1 { font-size: 2rem; }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close-lightbox:hover {
    color: #ccc;
}
