/* ============================================================
   Sekolah Web — Yayasan Citra Taman Siswa
   Custom Stylesheet
   ============================================================ */

:root {
    --primary: #1a3c6e;
    --primary-light: #2d5aa0;
    --accent: #e8a817;
    --accent-light: #f5c842;
    --success: #16a34a;
    --danger: #dc2626;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ── Global ── */
body {
    font-family: var(--font-body);
    color: #334155;
    padding-top: 76px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a { color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* ── Navbar ── */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s;
    padding: 10px 0;
}
.navbar-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.navbar-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--primary) !important; }
.navbar-brand img { height: 40px; margin-right: 10px; }
.nav-link { font-weight: 500; color: var(--dark) !important; padding: 8px 16px !important; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2b4d 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; max-width: 600px; }
.hero .hero-logo { max-height: 120px; margin-bottom: 20px; }
.hero .hero-right-content { gap: 30px !important; }
.hero .hero-qr-box {
    text-align: center;
}
.hero .hero-qrcode {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    max-height: 180px;
    transition: transform 0.3s;
}
.hero .hero-qrcode:hover {
    transform: scale(1.05);
}
.hero .hero-qr-label {
    font-size: 0.8rem;
    opacity: 0.85;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}
.hero .badge-accent {
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
}

/* ── Buttons ── */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary-custom:hover { background: var(--primary-light); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,60,110,0.3); }

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); }

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline-white:hover { background: white; color: var(--primary); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    position: relative;
}
.section-subtitle { color: var(--gray); font-size: 1.05rem; margin-bottom: 40px; }
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 2px;
}
.text-center .section-title::after { margin: 10px auto 0; }

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

/* ── Cards ── */
.unit-card {
    border-radius: 12px;
    transition: 0.3s;
    cursor: default;
}
.unit-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; }
.unit-icon { color: var(--primary); }

.program-card {
    border-radius: 12px;
    padding: 30px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    height: 100%;
}
.program-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(26,60,110,0.1); }
.program-card .icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }

/* ── Stats ── */
.stat-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.stat-box:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}
.stat-box .stat-label { color: var(--gray); margin-top: 5px; font-size: 0.95rem; }

/* ── News / Announcement ── */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.news-card .news-body { padding: 20px; }
.news-card .news-date { font-size: 0.85rem; color: var(--gray); }
.news-card .news-title { font-size: 1.1rem; font-weight: 600; margin: 8px 0; }

/* ── Gallery ── */
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
    position: relative;
}
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px 20px 15px;
    opacity: 0;
    transition: 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ── Unit Detail Card (Akademik) ── */
.unit-detail-card {
    border-radius: 14px;
    transition: 0.3s;
}
.unit-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.unit-detail-card .unit-logo {
    max-height: 100px;
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
}
.unit-detail-card .unit-logo-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 12px;
}
.bg-accent.cs-akreditasi {
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

/* ── Contact ── */
.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-info .info-icon {
    width: 48px; height: 48px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-form .form-control {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,60,110,0.1);
}

/* ── PPDB ── */
.ppdb-hero {
    background: linear-gradient(135deg, var(--success) 0%, #0d7a3e 100%);
    color: white;
    padding: 80px 0;
}
.ppdb-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    height: 100%;
}
.ppdb-card .step-number {
    width: 40px; height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ── Page Header ── */
.page-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2b4d 100%);
    color: white;
    padding: 60px 0;
}
.page-header-section h1 { font-size: 2.2rem; }

/* ── Footer ── */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 60px 0 30px;
}
.footer h5 { color: white; font-weight: 600; margin-bottom: 20px; font-size: 1.1rem; }
.footer a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
.footer a:hover { color: white; }
.footer .social-icons a {
    display: inline-block;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    text-align: center;
    line-height: 36px;
    margin-right: 8px;
    transition: 0.3s;
}
.footer .social-icons a:hover { background: var(--accent); color: var(--dark); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ── Back to Top ── */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    display: none;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s;
}
#backToTop:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ── Breadcrumb ── */
.breadcrumb-custom {
    background: transparent;
    padding: 10px 0;
    font-size: 0.9rem;
}
.breadcrumb-custom a { color: var(--primary); }
.breadcrumb-custom .active { color: var(--gray); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
}
