/* ---------- CSS Variables ---------- */
:root {
    --primary: #24bb13;
    --primary-dark: #30c60e;
    --primary-light: #e6f5ed;
    --secondary: #f5a623;
    --secondary-light: #fef3d7;
    --dark: #1e2a3a;
    --text: #2d3748;
    --text-light: #4a5568;
    --white: #ffffff;
    --gray: #f7fafc;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: 0.3s ease;
    --blue: #042469;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Blue KAFOP Text ---------- */
.kafop {
    color: var(--blue);
    font-weight: 800;
}

/* ---------- Header / Navbar ---------- */
header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ---------- Logo Area ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-text .kafop {
    color: var(--blue);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.logo-text .full-name {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- Navigation ---------- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--blue);
    border-radius: 4px;
}
.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.nav-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
}
.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}
.btn-secondary:hover {
    background: #e09515;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ---------- HERO with Carousel ---------- */
.hero {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
}

.carousel-overlay h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.carousel-overlay h2 .kafop {
    color: #60a5fa;
}

.carousel-overlay h2 span {
    color: var(--secondary);
}

.carousel-overlay p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.carousel-dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* Hero Stats overlay */
.hero-stats {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 24px 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 10;
    width: 80%;
    max-width: 700px;
}

.hero-stats .stat {
    text-align: center;
}
.hero-stats .stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}
.hero-stats .stat p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* ---------- Section Titles ---------- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
}
.section-title h2 .kafop {
    color: var(--blue);
}
.section-title h2 span {
    color: var(--primary);
}
.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 8px auto 0;
}

/* ---------- Programs with Image Gallery ---------- */
.programs {
    padding: 80px 0;
    background: var(--gray);
}
.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.program-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--primary);
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.program-card .icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.program-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}
.program-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* Program Image Gallery */
.program-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.program-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.program-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ---------- Impact / Stats ---------- */
.impact {
    padding: 70px 0;
    background: var(--white);
}
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.impact-item h3 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
}
.impact-item p {
    font-weight: 600;
    color: var(--text-light);
}

/* ---------- Sites Map ---------- */
.sites {
    padding: 80px 0;
    background: var(--gray);
}
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.site-tag {
    background: var(--white);
    padding: 16px 20px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.9rem;
}
.site-tag:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

/* ---------- Get Involved ---------- */
.involved {
    padding: 80px 0;
    background: var(--primary);
    color: var(--white);
}
.involved .section-title h2 {
    color: var(--white);
}
.involved .section-title h2 .kafop {
    color: #60a5fa;
}
.involved .section-title h2 span {
    color: var(--secondary);
}
.involved .section-title p {
    color: rgba(255,255,255,0.85);
}
.involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.involved-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.involved-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}
.involved-card .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--secondary);
}
.involved-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.involved-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 16px;
}
.involved-card .btn {
    background: var(--white);
    color: var(--primary);
    padding: 8px 24px;
    font-weight: 600;
    border-radius: 50px;
}
.involved-card .btn:hover {
    background: var(--secondary);
    color: var(--dark);
}

/* ---------- Contact ---------- */
.contact {
    padding: 80px 0;
    background: var(--white);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--dark);
}
.contact-info p {
    color: var(--text-light);
    margin-bottom: 8px;
}
.contact-info i {
    width: 24px;
    color: var(--primary);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 16px;
    background: var(--gray);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,126,59,0.15);
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
}

/* ---------- Footer ---------- */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 8px;
}
.footer-brand h3 .kafop {
    color: #60a5fa;
}
.footer-brand h3 span {
    color: var(--secondary);
}
.footer-brand p {
    font-size: 0.95rem;
    max-width: 320px;
}
.footer-links h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.footer-links a {
    display: block;
    margin-bottom: 6px;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}
.footer-social .social-icons {
    display: flex;
    gap: 14px;
    font-size: 1.4rem;
}
.footer-social .social-icons a {
    transition: var(--transition);
    color: rgba(255,255,255,0.7);
}
.footer-social .social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .program-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
    .hero-stats {
        width: 90%;
        padding: 16px 20px;
        gap: 15px;
        bottom: 60px;
    }
    .carousel-container {
        height: 450px;
    }
    .carousel-overlay h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 16px;
        padding: 20px 0 10px;
        border-top: 1px solid #eee;
        margin-top: 12px;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        width: 95%;
        bottom: 40px;
        padding: 12px 16px;
    }
    .carousel-container {
        height: 380px;
    }
    .carousel-overlay h2 {
        font-size: 1.8rem;
    }
    .carousel-overlay p {
        font-size: 1rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-img {
        width: 40px;
        height: 40px;
    }
    .logo-text .kafop {
        font-size: 1.2rem;
    }
    .logo-text .full-name {
        font-size: 0.5rem;
    }
    .program-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .program-gallery img {
        height: 70px;
    }
    .carousel-btn {
        padding: 10px 14px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        bottom: 30px;
        padding: 10px;
    }
    .hero-stats .stat h3 {
        font-size: 1.5rem;
    }
    .carousel-container {
        height: 300px;
    }
    .carousel-overlay h2 {
        font-size: 1.4rem;
    }
    .carousel-overlay p {
        font-size: 0.9rem;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .involved-grid {
        grid-template-columns: 1fr;
    }
    .sites-grid {
        grid-template-columns: 1fr 1fr;
    }
    .logo-img {
        width: 35px;
        height: 35px;
    }
    .logo-text .kafop {
        font-size: 1rem;
    }
    .logo-text .full-name {
        font-size: 0.45rem;
    }
    .program-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .program-gallery img {
        height: 60px;
    }
    .carousel-btn {
        padding: 8px 10px;
        font-size: 1rem;
    }
}