/* ========== Variables ========== */
:root {
    --aap-blue:   #0070BB;
    --aap-yellow: #FFD700;
    --aap-dark:   #004f85;
    --text:       #1a1a2e;
    --text-muted: #6b7280;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --border:     #e5e7eb;
    --radius:     8px;
    --shadow:     0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
    --font:       'Inter', sans-serif;
    --font-head:  'Baloo 2', cursive;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--aap-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ========== Layout ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-title {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--aap-blue);
    margin-bottom: 0.5rem;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; }
.divider { width: 60px; height: 4px; background: var(--aap-yellow); border-radius: 2px; margin-bottom: 1rem; }

/* ========== Top Bar ========== */
.aap-topbar {
    background: var(--aap-blue);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.4rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* ========== Header / Nav ========== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--aap-yellow);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; }

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-emblem {
    width: 48px; height: 48px;
    background: var(--aap-blue);
    color: var(--aap-yellow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.logo-name { font-family: var(--font-head); font-size: 1.25rem; color: var(--aap-blue); line-height: 1.2; }
.logo-tag  { font-size: 0.72rem; color: var(--text-muted); }

.site-nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
    background: var(--aap-blue);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--aap-blue);
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--aap-blue) 0%, var(--aap-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: 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='%23ffffff' fill-opacity='0.04'%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");
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hero-badge {
    display: inline-block;
    background: var(--aap-yellow);
    color: var(--aap-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem; max-width: 480px; }
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    text-decoration: none;
    border: none;
    font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; text-decoration: none; }
.btn-yellow { background: var(--aap-yellow); color: var(--aap-dark); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); margin-left: 0.75rem; }

.hero-photo-wrap {
    display: flex;
    justify-content: center;
}
.hero-photo {
    width: 280px; height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--aap-yellow);
    box-shadow: 0 0 0 12px rgba(255,215,0,0.15);
}
.hero-photo-placeholder {
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 6px solid var(--aap-yellow);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--aap-yellow);
    font-size: 5rem;
}

/* ========== Stats Bar ========== */
.stats-bar { background: var(--aap-yellow); padding: 1.5rem 0; }
.stats-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2rem; color: var(--aap-dark); font-weight: 800; }
.stat-label { font-size: 0.82rem; color: var(--aap-dark); font-weight: 600; }

/* ========== Cards ========== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.card-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.card-text { font-size: 0.9rem; color: var(--text-muted); }
.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    color: var(--white);
    margin-bottom: 0.75rem;
}

/* ========== About Page ========== */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
.about-photo {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--aap-yellow);
}
.about-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}
.info-row { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: var(--aap-blue); min-width: 90px; }
.about-text p { margin-bottom: 1.25rem; line-height: 1.8; }
.aap-pledge {
    background: linear-gradient(135deg, var(--aap-blue), var(--aap-dark));
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 5px solid var(--aap-yellow);
}
.aap-pledge h3 { font-family: var(--font-head); margin-bottom: 0.75rem; color: var(--aap-yellow); }

/* ========== Gallery ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--border);
    box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 1.5rem 0.75rem 0.75rem;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg), var(--border));
}

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; }
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-info-card h3 { font-family: var(--font-head); color: var(--aap-blue); margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-icon {
    width: 40px; height: 40px;
    background: var(--aap-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.contact-detail h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-detail p { font-weight: 500; }

.form-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-card h3 { font-family: var(--font-head); color: var(--aap-blue); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--bg);
}
.form-control:focus { outline: none; border-color: var(--aap-blue); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ========== Page Hero (inner pages) ========== */
.page-hero {
    background: linear-gradient(135deg, var(--aap-blue), var(--aap-dark));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-hero h1 { font-family: var(--font-head); font-size: 2.4rem; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; }
.breadcrumb { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.7; }
.breadcrumb a { color: var(--aap-yellow); }

/* ========== Footer ========== */
.site-footer { background: var(--text); color: #c9d1d9; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-col h4 { color: var(--aap-yellow); margin-bottom: 1rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.5rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: #c9d1d9; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--aap-yellow); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
}

/* ========== Misc ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.no-items { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-photo-wrap { order: -1; }
    .hero-photo, .hero-photo-placeholder { width: 200px; height: 200px; font-size: 3.5rem; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 1rem; }
    .site-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .header-inner { position: relative; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stats-inner { gap: 1.5rem; }
    .topbar-inner span:last-child { display: none; }
    .btn-outline { margin-left: 0; margin-top: 0.5rem; }
}
