:root {
    --green-dark: #0f5132;
    --green-mid: #198754;
    --green-light: #d1e7dd;
    --green-neon: #32c06f;
    --white: #ffffff;
}

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(50, 192, 111, 0.15), transparent 25%),
        radial-gradient(circle at 90% 20%, rgba(15, 81, 50, 0.15), transparent 30%),
        #f3fbf6;
    color: #1f2937;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -44px;
    z-index: 2000;
    background: #0f5132;
    color: #fff;
    padding: .45rem .75rem;
    border-radius: .5rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
}

.site-header .navbar {
    background: linear-gradient(125deg, #0b3a24, #198754 55%, #2aa867);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding-top: 3px;
    padding-bottom: 3px;
}

.site-header .navbar-brand {
    letter-spacing: .2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.brand-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 78px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.brand-subtitle {
    font-size: .84rem;
    font-weight: 600;
    color: #f0fff6;
    line-height: 1.15;
    letter-spacing: .2px;
    white-space: nowrap;
}

.site-header .nav-link {
    color: #f7fff9 !important;
    font-weight: 600;
    border-radius: .6rem;
    padding: .45rem .75rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
}

.site-header .dropdown-menu {
    background: linear-gradient(180deg, #145c38, #0f5132);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: .8rem;
}

.site-header .dropdown-item {
    color: #ecfff3;
}

.site-header .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        background: rgba(9, 59, 36, 0.96);
        border-radius: .8rem;
        padding: .6rem;
        margin-top: .6rem;
    }

    .brand-logo {
        height: 56px;
    }

    .brand-subtitle {
        font-size: .72rem;
        white-space: normal;
    }
}

.hero-slide {
    min-height: 65vh;
    background:
        linear-gradient(120deg, rgba(15, 81, 50, 0.9), rgba(25, 135, 84, 0.78)),
        linear-gradient(35deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(14, 71, 45, 0.28);
}

.hero-media-placeholder,
.media-placeholder {
    border: 2px dashed rgba(255, 255, 255, 0.6);
    min-height: 240px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
}

.media-placeholder.dark {
    border-color: #a3cfbb;
    background: linear-gradient(140deg, #e6f7ee, #d8f1e4);
    color: #0f5132;
}

.service-card,
.campaign-card,
.district-card,
.blog-card {
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f5132, #1f8f59);
    color: #fff;
    box-shadow: 0 14px 32px rgba(8, 64, 39, 0.22);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before,
.campaign-card::before,
.district-card::before,
.blog-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.service-card:hover,
.campaign-card:hover,
.district-card:hover,
.blog-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 38px rgba(12, 86, 52, 0.32);
}

.service-card h5,
.service-card h6,
.campaign-card h5,
.district-card h5,
.blog-card h5,
.service-card p,
.campaign-card p,
.district-card p,
.blog-card p,
.district-card small {
    color: #fff !important;
}

.service-card .btn-outline-success,
.campaign-card .btn-outline-success,
.blog-card .btn-outline-success {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
}

.service-card .btn-outline-success:hover,
.campaign-card .btn-outline-success:hover,
.blog-card .btn-outline-success:hover {
    background: #fff;
    color: #0f5132;
}

.service-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: .75rem;
    font-size: 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.service-thumb {
    width: 100%;
    height: 165px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: .9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.section-title {
    color: var(--green-dark);
    font-weight: 700;
    position: relative;
}

.hero-slide h1,
.hero-slide h2,
.hero-slide p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.blog-card .section-title,
.blog-card h1,
.blog-card h5 {
    color: #ffffff !important;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
}

.blog-card .section-title::after {
    background: linear-gradient(90deg, #ffffff, #c9f6dc);
}

.blog-card .text-muted {
    color: #def6e8 !important;
}

.blog-card .badge.text-bg-success {
    background: #ffffff !important;
    color: #0f5132 !important;
}

.blog-hero {
    border-radius: 1rem;
    background: linear-gradient(130deg, rgba(15, 81, 50, 0.9), rgba(25, 135, 84, 0.82));
    color: #fff;
    box-shadow: 0 16px 36px rgba(10, 72, 44, 0.26);
    overflow: hidden;
}

.blog-hero-content {
    padding: 1.2rem 1.3rem;
}

.blog-hero .section-title,
.blog-hero p {
    color: #fff;
}

.blog-hero .section-title::after {
    background: linear-gradient(90deg, #ffffff, #d7f7e6);
}

.blog-card-enhanced {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: .9rem .9rem 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.blog-cover-detail {
    border-radius: .9rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.blog-card-enhanced .card-body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.blog-card-enhanced .btn {
    margin-top: auto;
    align-self: flex-start;
}

.blog-sidebar {
    position: sticky;
    top: 86px;
    align-self: flex-start;
}

.blog-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.blog-detail-card .card-body {
    background: linear-gradient(145deg, rgba(15, 81, 50, 0.95), rgba(19, 117, 72, 0.92));
}

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    z-index: 2000;
    background: linear-gradient(90deg, #32c06f, #9af0bf);
    box-shadow: 0 2px 8px rgba(12, 86, 52, 0.4);
}

.section-title::after {
    content: "";
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #198754, #57d68b);
    display: block;
    margin-top: 8px;
}

.site-footer {
    background: #0d3d28;
    color: #e7f5ed;
}

.site-footer a {
    color: #c4f0d8;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

.trust-pill {
    background: #ffffff;
    border: 1px solid rgba(15, 81, 50, 0.14);
    border-radius: .9rem;
    padding: .95rem 1rem;
    box-shadow: 0 10px 20px rgba(10, 72, 44, 0.08);
}

.trust-pill strong {
    display: block;
    color: #0f5132;
    margin-bottom: .2rem;
}

.trust-pill span {
    color: #335445;
    font-size: .9rem;
}

.lead-cta {
    background: linear-gradient(130deg, #0d4b2f, #198754 58%, #2aa867);
    color: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 16px 32px rgba(10, 72, 44, 0.25);
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: .9rem;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(10, 72, 44, 0.08);
    height: 100%;
}

.faq-wrap details {
    background: #fff;
    border: 1px solid rgba(15, 81, 50, 0.14);
    border-radius: .8rem;
    padding: .8rem .9rem;
    margin-bottom: .7rem;
}

.faq-wrap summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f5132;
}

.faq-wrap p {
    margin-top: .55rem;
}

.sticky-convert-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    z-index: 1030;
    align-items: center;
    gap: .5rem;
    background: rgba(13, 75, 47, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: .45rem .7rem .45rem .9rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
}

.sticky-convert-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.floating-actions {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-call {
    background: linear-gradient(135deg, #0b3e26, #1c7d4c);
    color: #fff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #1db954, #25d366);
    color: #fff;
}

.admin-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.media-preview {
    width: 100%;
    min-height: 240px;
    max-height: 340px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1rem;
}

.about-showcase {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.08), rgba(25, 135, 84, 0.12));
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 1.2rem;
    padding: 1.3rem;
    box-shadow: 0 16px 36px rgba(10, 72, 44, 0.14);
    backdrop-filter: blur(3px);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 140px);
    gap: 12px;
}

.about-photo {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    transition: transform .3s ease, box-shadow .3s ease;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 32px rgba(12, 86, 52, 0.25);
}

.office-gallery-card {
    border: 1px solid rgba(15, 81, 50, 0.22);
    border-radius: 1rem;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(160deg, rgba(15, 81, 50, 0.12), rgba(25, 135, 84, 0.2));
    box-shadow: 0 16px 30px rgba(10, 72, 44, 0.18);
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: left;
}

button.office-gallery-card {
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    display: block;
}

button.office-gallery-card:focus-visible {
    outline: 3px solid rgba(50, 192, 111, 0.85);
    outline-offset: 3px;
}

.office-gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.office-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 34px rgba(12, 86, 52, 0.28);
}

.office-gallery-caption {
    display: block;
    padding: .75rem .9rem;
    color: #0d3d28;
    font-weight: 700;
    font-size: .95rem;
}

.office-lightbox-modal {
    background: linear-gradient(160deg, #0b3a24, #14643d);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

.office-lightbox-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: .8rem;
    background: rgba(255, 255, 255, 0.05);
}

.about-grid .photo-1 {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
}

.about-grid .photo-2 {
    grid-column: 5 / span 2;
    grid-row: 1 / span 1;
}

.about-grid .photo-3 {
    grid-column: 5 / span 2;
    grid-row: 2 / span 1;
}

.reveal {
    animation: liftIn .65s ease both;
}

@media (max-width: 991.98px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .about-grid .photo-1,
    .about-grid .photo-2,
    .about-grid .photo-3 {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }

    .lead-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-sidebar {
        position: static;
    }
}

@keyframes liftIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
