:root {
    --primary: #00563F;
    --accent: #E6A400;
}

/* NAV */
.navbar-brand img {
    width: 55px;
}

/* HERO */
.carousel-item img {
    height: 90vh;
    object-fit: cover;
    filter: brightness(0.55);
}

.carousel-caption {
    bottom: 30%;
}

/* BUTTONS */
.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--accent);
}

/* ================= PREMIUM CTA SECTION ================= */
.cta {
    background: linear-gradient(
        135deg,
        rgba(0, 86, 63, 0.95),
        rgba(10, 122, 90, 0.90)
    );
    position: relative;
    overflow: hidden;
}

/* subtle glow overlay */
.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

/* content layering */
.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

/* heading */
.cta h2 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* paragraph */
.cta p {
    opacity: 0.85;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* button base */
.cta-btn {
    color: #000;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* hover effect */
.cta-btn:hover {
    background-color: #fff !important;
    color: #000 !important;
    transform: translateY(-3px);
}

/* small animation on load */
.cta-inner {
    animation: ctaFade 1s ease-out;
}

@keyframes ctaFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CARDS */
.card {
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
}

/* ================= FOOTER ================= */
.footer {
    background: #111;
}

/* Titles */
.footer-title {
    color: #E6A400;
    margin-bottom: 15px;
}

/* Links */
.footer a {
    color: #ccc;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer a:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Social icons reuse */
.footer-social {
    margin-top: 10px;
}

.footer .social-icon {
    background: rgba(255,255,255,0.08);
}

/* Divider */
.footer .border-top {
    border-color: rgba(255,255,255,0.1) !important;
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
}

.topbar .social-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: all 0.25s ease;
}

/* hover effect */
.topbar .social-icon:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}
/* ================= PREMIUM SECTION POLISH ================= */

/* Section spacing refinement */
section {
    scroll-margin-top: 90px;
}

/* ================= MISSION CARDS (PREMIUM LOOK) ================= */
#mission .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 25px;
    background: #fff;
}

#mission .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

#mission .card h4 {
    color: #00563F;
    margin-top: 10px;
}

/* ================= PROGRAMS (MODERN CARD STYLE) ================= */
.program {
    border: none;
    border-radius: 18px;
    padding: 25px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: left;
}

.program:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.program img {
    border-radius: 14px;
    margin-bottom: 15px;
}

/* ================= CTA (PREMIUM HERO STYLE) ================= */
.cta {
    background: linear-gradient(135deg, #00563F, #0a7a5a);
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-weight: 700;
    font-size: 2.2rem;
}

.cta .btn {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
}

/* ================= FOOTER ================= */
/* FOOTER */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 70px;
}

/* ================= FOOTER ICON LINKS ONLY ================= */
.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: #ccc;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-size: 16px;
}

/* Hover effect */
.footer-links a:hover {
    color: #fff;
    background: #;
    border-color: #E6A400;
    transform: translateY(-3px);
}

/* ================= CAROUSEL STAGGERED ANIMATION ================= */

/* Initial hidden state */
.carousel-content h2,
.carousel-content p,
.carousel-content .btn {
    opacity: 0;
    transform: translateY(30px);
}

/* Animate when slide is active */
.carousel-item.active .carousel-content h2 {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.carousel-item.active .carousel-content p {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.8s;
}

.carousel-item.active .carousel-content .btn {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 1.3s;
}
.carousel-item.active .carousel-content .btn-call {
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 1.6s;
}
/* Keyframe */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.carousel-content .btn {
    border-radius: 30px;
    padding: 12px 26px;
    font-weight: 600;
}

/* Improve outline button visibility */
.btn-outline-light {
    border: 2px solid #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

/* ================= GALLERY ================= */
.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* ================= LIGHTBOX ================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;

    z-index: 9999;
}

/* active */
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* image */
.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* close button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* nav buttons */
.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

/* hover */
.lightbox .nav:hover {
    background: rgba(255,255,255,0.25);
}

/* counter */
.lightbox .counter {
    position: absolute;
    bottom: 20px;
    color: #ccc;
    font-size: 14px;
}

/* optional blur */
.lightbox {
    backdrop-filter: blur(6px);
}