/* =====================================================
   SMA KARTIKA XIX-4 CIMAHI
   STYLE.CSS FINAL
   BAGIAN A
===================================================== */

:root{
    --primary:#003B8E;
    --secondary:#FFD700;
    --light:#f8fafc;
    --dark:#1e293b;
    --text:#475569;
    --white:#ffffff;

    --shadow:0 5px 20px rgba(0,0,0,.08);
    --radius:15px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:var(--text);
    line-height:1.7;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/* =====================================================
   HEADER
===================================================== */

header{
    background:linear-gradient(
        135deg,
        #003B8E,
        #005BEA
    );

    position:sticky;
    top:0;
    z-index:999;

    box-shadow:
    0 4px 15px rgba(0,0,0,.15);
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    padding:15px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
    text-decoration:none;
}

.logo img{
    width:65px;
    height:65px;
    object-fit:contain;
}

.logo-text{
    display:flex;
    flex-direction:column;
}

.logo-text .nama{
    color:#fff;
    font-size:28px;
    font-weight:700;
    line-height:1.1;
}

.logo-text .tagline{
    color:var(--secondary);
    font-size:12px;
    font-weight:500;
}

nav{
    display:flex;
    align-items:center;
    gap:10px;
}

nav a{
    color:white;
    padding:10px 18px;
    border-radius:30px;
    transition:.3s;
    font-weight:500;
}

nav a:hover,
nav a.active{
    background:white;
    color:var(--primary);
}

.ppdb-btn{
    background:var(--secondary);
    color:var(--primary)!important;
    font-weight:700;
}

/* =====================================================
   HERO
===================================================== */

.hero{
    position:relative;
    min-height:700px;
    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
}

.hero-slide{
    position:absolute;
    inset:0;

    background-size:cover;
    background-position:center;

    opacity:0;

    animation:
    heroSlider 20s infinite;
}

.hero-slide:nth-child(1){
    animation-delay:0s;
}

.hero-slide:nth-child(2){
    animation-delay:5s;
}

.hero-slide:nth-child(3){
    animation-delay:10s;
}

.hero-slide:nth-child(4){
    animation-delay:15s;
}

.hero::before{
    content:'';

    position:absolute;
    inset:0;

    background:
    rgba(0,0,0,.45);

    z-index:1;
}

.hero-overlay{
    position:relative;
    z-index:2;

    width:90%;
    max-width:1200px;

    padding:60px;
}

.hero h1{
    color:white;
    font-size:64px;
    font-weight:700;

    margin-bottom:20px;

    text-shadow:
    2px 2px 10px rgba(0,0,0,.4);
}

.hero p{
    color:white;
    font-size:24px;

    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:15px;

    flex-wrap:wrap;
}

.btn{
    background:
    linear-gradient(
        135deg,
        #4e95ff,
        #005BEA
    );

    color:white;

    padding:14px 35px;

    border-radius:40px;

    transition:.3s;

    font-weight:600;
}

.btn:hover{
    transform:translateY(-3px);
}

.btn-secondary{
    background:var(--secondary);
    color:var(--primary);
}

@keyframes heroSlider{

    0%{
        opacity:0;
    }

    5%{
        opacity:1;
    }

    25%{
        opacity:1;
    }

    30%{
        opacity:0;
    }

    100%{
        opacity:0;
    }
}

/* =====================================================
   PAGE
===================================================== */

.page-section{
    padding:80px 0;
}

.bg-white{
    background:white;
}

.section-title{
    text-align:center;

    color:var(--dark);

    font-size:38px;

    margin-bottom:50px;
}
/* =====================================================
   SAMBUTAN KEPALA SEKOLAH
===================================================== */

.kepsek-section{
    background:#fff;
    padding:100px 0;
}

.kepsek-wrapper{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:50px;
    align-items:center;
}

.kepsek-photo{
    text-align:center;
}

.kepsek-photo img{
    width:100%;
    max-width:320px;
    height:420px;
    object-fit:cover;
    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.15);
}

.kepsek-content h2{
    font-size:42px;
    color:var(--dark);
    margin-bottom:20px;
}

.kepsek-content h4{
    color:var(--primary);
    margin-bottom:25px;
    font-size:22px;
}

.kepsek-content p{
    font-size:17px;
    line-height:1.9;
    text-align:justify;
}

/* =====================================================
   STATISTIK SEKOLAH
===================================================== */

.stats-section{
    background:
    linear-gradient(
        135deg,
        #003B8E,
        #005BEA
    );

    padding:100px 0;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    background:white;

    padding:35px 20px;

    text-align:center;

    border-radius:20px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.1);

    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-10px);
}

.stat-card h3{
    font-size:50px;
    color:var(--primary);
    margin-bottom:10px;
}

.stat-card p{
    color:var(--text);
    font-weight:500;
}

/* =====================================================
   PROGRAM UNGGULAN
===================================================== */

.program-section{
    background:#fff;
    padding:100px 0;
}

.program-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.program-card{
    background:white;

    border-radius:20px;

    padding:35px;

    text-align:center;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    transition:.3s;
}

.program-card:hover{
    transform:translateY(-8px);
}

.program-card .icon{
    font-size:55px;
    margin-bottom:20px;
}

.program-card h3{
    color:var(--primary);
    margin-bottom:15px;
}

.program-card p{
    color:var(--text);
}

/* =====================================================
   BERITA TERBARU
===================================================== */

.post-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.post-card{
    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    transition:.3s;
}

.post-card:hover{
    transform:translateY(-8px);
}

.post-card-img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.post-card-content{
    padding:25px;
}

.post-card-content h4{
    margin-bottom:15px;
}

.post-card-content h4 a{
    color:var(--dark);
    text-decoration:none;
}

.post-card-content h4 a:hover{
    color:var(--primary);
}

.post-card-content p{
    color:var(--text);
    margin-bottom:15px;
}

.post-card-content small{
    color:#888;
}

/* =====================================================
   SECTION TITLE
===================================================== */

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    color:var(--dark);
    font-size:42px;
}

.section-title p{
    margin-top:10px;
    color:#64748b;
}

/* =====================================================
   CARD SHADOW MODERN
===================================================== */

.card-modern{
    background:white;
    border-radius:20px;
    padding:30px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}
/* =====================================================
   SAMBUTAN KEPALA SEKOLAH
===================================================== */

.kepsek-box{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:50px;
    align-items:center;

    background:#fff;
    padding:40px;

    border-radius:25px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}

.kepsek-foto{
    text-align:center;
}

.kepsek-foto img{
    width:100%;
    max-width:320px;
    height:420px;

    object-fit:cover;

    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.15);
}

.kepsek-text h3{
    color:var(--primary);
    font-size:30px;
    margin-bottom:20px;
}

.kepsek-text p{
    font-size:17px;
    line-height:1.9;
    text-align:justify;
}
/* =====================================================
   PAGE HEADER
===================================================== */

.page-header{
    background:
    linear-gradient(
        135deg,
        #003B8E,
        #005BEA
    );

    color:white;

    text-align:center;

    padding:90px 20px;
}

.page-header h1{
    font-size:48px;
    margin-bottom:10px;
}

.page-header p{
    font-size:18px;
    opacity:.9;
}

/* =====================================================
   PROFIL SEKOLAH
===================================================== */

.profile-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:40px;
}

.profile-sidebar{
    background:white;

    border-radius:20px;

    padding:25px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    height:fit-content;
}

.profile-sidebar ul{
    list-style:none;
}

.profile-sidebar ul li{
    margin-bottom:10px;
}

.profile-sidebar ul li a{
    display:block;

    padding:15px;

    border-radius:12px;

    color:var(--dark);

    transition:.3s;
}

.profile-sidebar ul li a:hover,
.profile-sidebar ul li a.active{
    background:var(--primary);
    color:white;
}

.profile-content{
    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.profile-content h2{
    color:var(--primary);
    margin-bottom:20px;
}

.profile-content h3{
    color:var(--primary);
    margin-bottom:15px;
}

.profile-content ul{
    padding-left:25px;
}

.profile-content li{
    margin-bottom:10px;
}

/* =====================================================
   KONTEN PROFIL
===================================================== */

.konten-apa-adanya{
    line-height:1.9;
    text-align:justify;
    color:#444;
}

/* =====================================================
   DETAIL BERITA
===================================================== */

.article-container{
    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.article-image{
    width:100%;
    height:500px;

    object-fit:cover;

    border-radius:15px;

    margin-bottom:30px;
}

.article-meta{
    font-size:15px;
    opacity:.85;
}

.article-content{
    font-size:17px;
    line-height:1.9;
}

.article-content p{
    margin-bottom:20px;
}

/* =====================================================
   KONTAK
===================================================== */

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-info{
    background:white;

    padding:35px;

    border-radius:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.contact-info h4{
    color:var(--primary);
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:15px;
}

.form-wrapper{
    background:white;

    border-radius:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

/* =====================================================
   FORM
===================================================== */

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:var(--dark);
}

.form-group input,
.form-group textarea{
    width:100%;

    padding:14px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:15px;
}

.form-group input:focus,
.form-group textarea:focus{
    outline:none;

    border-color:var(--primary);
}

.form-group button{
    border:none;
    cursor:pointer;
}

/* =====================================================
   ALERT
===================================================== */

.alert{
    padding:15px 20px;

    border-radius:10px;

    margin-bottom:25px;

    font-weight:500;
}

.alert.success{
    background:#dcfce7;
    color:#166534;
}

.alert.error{
    background:#fee2e2;
    color:#991b1b;
}
/* =====================================================
   FOOTER PREMIUM
===================================================== */

footer{
    background:
    linear-gradient(
        135deg,
        #00163A,
        #00265E
    );

    color:white;

    padding-top:80px;
}

.footer-grid{
    display:grid;
    grid-template-columns:
    2fr
    1fr
    1.3fr
    1fr;

    gap:50px;
}

.footer-col h4{
    color:#FFD700;

    margin-bottom:20px;

    font-size:24px;

    position:relative;
}

.footer-col h4::after{

    content:'';

    display:block;

    width:60px;
    height:3px;

    background:#0d6efd;

    margin-top:10px;
}

.footer-col p{
    line-height:1.9;
}

.footer-col ul{
    list-style:none;
}

.footer-col ul li{
    margin-bottom:14px;
}

.footer-col ul li a{

    color:white;

    transition:.3s;
}

.footer-col ul li a:hover{

    color:#FFD700;

    padding-left:6px;
}

.footer-bottom{

    margin-top:60px;

    border-top:
    1px solid rgba(255,255,255,.15);

    text-align:center;

    padding:25px 0;

    font-size:15px;
}

.footer-bottom strong{
    color:#FFD700;
}

/* =====================================================
   ANIMASI UMUM
===================================================== */

.post-card,
.program-card,
.stat-card,
.profile-content,
.contact-info,
.form-wrapper{

    transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.post-card:hover,
.program-card:hover,
.stat-card:hover{

    transform:translateY(-8px);

    box-shadow:
    0 15px 35px rgba(0,0,0,.15);
}

/* =====================================================
   BACK TO TOP
===================================================== */

#backToTop{

    position:fixed;

    bottom:25px;
    right:25px;

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:#005BEA;

    color:white;

    cursor:pointer;

    display:none;

    z-index:999;

    box-shadow:
    0 5px 15px rgba(0,0,0,.25);
}

#backToTop:hover{
    background:#003B8E;
}

/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media(max-width:992px){

    .navbar{
        flex-direction:column;
        gap:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:48px;
    }

    .hero p{
        font-size:20px;
    }

    .stats-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .program-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .post-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .kepsek-box{
        grid-template-columns:1fr;
        text-align:center;
    }

    .profile-layout{
        grid-template-columns:1fr;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:
        repeat(2,1fr);
    }
}

/* =====================================================
   RESPONSIVE MOBILE
===================================================== */

@media(max-width:768px){

    .logo{
        flex-direction:column;
        text-align:center;
    }

    .logo-text .nama{
        font-size:20px;
    }

    .logo-text .tagline{
        font-size:11px;
    }

    nav{
        gap:5px;
    }

    nav a{
        padding:8px 12px;
        font-size:14px;
    }

    .hero{
        min-height:500px;
    }

    .hero-overlay{
        padding:20px;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:16px;
    }

    .section-title{
        font-size:32px;
    }

    .stats-grid,
    .program-grid,
    .post-grid{
        grid-template-columns:1fr;
    }

    .article-image{
        height:250px;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

    .footer-col{
        text-align:center;
    }

    .footer-col h4::after{
        margin-left:auto;
        margin-right:auto;
    }

}

/* =====================================================
   RESPONSIVE HP KECIL
===================================================== */

@media(max-width:480px){

    .hero h1{
        font-size:28px;
    }

    .hero p{
        font-size:14px;
    }

    .btn{
        width:100%;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .page-header h1{
        font-size:32px;
    }

}
