/* CSS Variables */
:root {
    --primary: #F5CF40;
    --secondary: #32753A;
    --secondary-dark: #26592d;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-family: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --max-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%2332753a" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(245, 207, 64, 0.4);
}

.btn-primary:hover {
    background-color: #fceea8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 207, 64, 0.6);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition */
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 1.8rem;
    /* Increased from 1.6rem */
    color: var(--secondary);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 65px;
    /* Increased from 55px */
    width: auto;
    transition: height 0.3s ease;
    /* Smooth resize on scroll */
}

.header.scrolled .logo-img {
    height: 50px;
    /* Shrink on scroll */
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Full viewport height minus header ideally */
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    z-index: -2;
    transform: scale(1.1);
    animation: zoomOut 20s ease-out forwards;
}

@keyframes zoomOut {
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(50, 117, 58, 0.7), rgba(30, 70, 35, 0.9));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Header */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-desc {
    color: #666;
    font-size: 1.1rem;
}

/* About Section */
.about {
    background-color: #FFF9E5;
}

.about-content {
    background-color: transparent;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    border-top: none;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 16px;
}

/* About Section Styles - Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text-col {
    position: relative;
    padding-left: 20px;
}

.about-quote {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-dark);
    line-height: 1.4;
    margin-bottom: 25px;
    position: relative;
    font-family: var(--font-family);
}

.about-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    top: -40px;
    left: -20px;
    opacity: 0.5;
    font-family: serif;
}

.about-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-author {
    font-weight: 700;
    color: var(--secondary);
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.about-images-col {
    position: relative;
    height: 400px;
}

.about-img {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
    z-index: 10;
}

.main-img {
    width: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.sub-img {
    width: 60%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 5px solid white;
}

/* Program Section */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.program-grid-detail {
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 35px;
}

.program-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(245, 207, 64, 0.08), transparent 70%);
    pointer-events: none;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary);
}

/* Card header: icon + title side by side */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.card-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(50, 117, 58, 0.12), rgba(50, 117, 58, 0.05));
    border-radius: 14px;
    color: var(--secondary);
    transition: var(--transition);
}

.program-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), rgba(245, 207, 64, 0.7));
    color: var(--secondary-dark);
    transform: scale(1.08);
}

.card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    line-height: 1.3;
}

.card-slogan {
    font-style: italic;
    color: var(--secondary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 3px solid rgba(245, 207, 64, 0.4);
    line-height: 1.5;
}

.card-desc {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.card-link {
    display: inline-block;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: auto;
    padding: 6px 0;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.card-link:hover {
    color: var(--primary);
    padding-left: 6px;
}

.card-list {
    padding-left: 20px;
    list-style-type: none;
    margin-top: 4px;
}

.card-list li {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.93rem;
    line-height: 1.6;
    position: relative;
    padding-left: 8px;
}

.card-list li::before {
    content: '✦';
    position: absolute;
    left: -18px;
    color: var(--primary);
    font-size: 0.7rem;
    top: 3px;
}

.card-list li strong {
    color: var(--secondary-dark);
    font-weight: 600;
}

/* Detail page cards */
.program-card-detail {
    padding: 35px;
}

.program-card-detail .card-title {
    font-size: 1.35rem;
}

.program-card-detail .card-slogan {
    font-size: 1rem;
}

.program-card-detail .card-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid var(--primary);
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(245, 207, 64, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary);
}

.team-card.placeholder {
    opacity: 0.6;
    border-left-color: #ddd;
}

.team-card.placeholder:hover {
    transform: none;
    box-shadow: var(--box-shadow);
    border-left-color: #ddd;
}

.member-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.member-header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: center;
}

.member-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary-dark);
    line-height: 1;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 207, 64, 0.3), rgba(245, 207, 64, 0.1));
    border-radius: 10px;
}

.member-name {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1.2;
}

.member-meta {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    line-height: 1.3;
}

.member-bio {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 3px solid rgba(245, 207, 64, 0.4);
}

.member-info .btn {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 8px 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}


/* Footer */
.footer {
    background-color: var(--secondary-dark);
    color: var(--white);
    padding-top: 60px;
    border-top: 5px solid var(--primary);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-info {
    flex: 1 1 300px;
}

.footer-contact {
    align-items: center;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-contact h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-info,
.footer-contact,
.footer-links {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.footer-info {
    justify-content: flex-start;
}

.footer-contact {
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-links {
    align-items: flex-end;
    min-width: 60px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

/* Fix social icon hover movement */
.footer-links a.social-icon-only:hover {
    padding-left: 0;
    transform: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    opacity: 0.8;
    margin-top: 0;
    font-weight: 500;
    line-height: 1.2;
    transition: var(--transition);
}

.social-link:hover {
    opacity: 1;
    color: var(--primary);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

.social-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.8;
    margin-top: 10px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
}

.social-icon-only:hover {
    opacity: 1;
    color: var(--primary);
    transform: none;
}

.social-icon-only svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    display: block;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: var(--text-color);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#scrollTopBtn:hover {
    background-color: #fceea8;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 15px;
        text-align: center;
    }

    .nav.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .program-grid-detail {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: 22px;
    }

    .program-card-detail {
        padding: 25px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-images-col {
        height: 300px;
        margin-top: 40px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-info,
    .footer-contact,
    .footer-links {
        flex: auto;
        align-items: center !important;
    }

    .social-link {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-images-col {
        height: 300px;
        margin-top: 20px;
    }
}
