/* ==========================================
   SMAN 1 PONDOKSALAM
   Author : Salma Yulianita
========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   ROOT
========================================== */

:root{

    --primary:#0D6EFD;
    --secondary:#084298;
    --warning:#FFC107;
    --success:#198754;
    --danger:#DC3545;
    --dark:#1E293B;
    --light:#F8FAFC;
    --white:#FFFFFF;
    --text:#555555;

}

/* ==========================================
   RESET
========================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:var(--text);
    margin:0;
    padding:0;
    overflow-x:hidden;

}

a{

    text-decoration:none;

}

img{

    max-width:100%;

}

section{

    padding:80px 0;

}

h1,h2,h3,h4,h5{

    color:var(--dark);

}

/* ==========================================
   TOP BAR
========================================== */

/* ==========================================
   NAVBAR
========================================== */

.navbar{

    background:white;
    position:sticky !important;
    top:0 !important;
    left:0;
    right:0;
    margin-top:0 !important;
    border-radius:0;
    z-index:1030;
    transition:.4s;

}

.navbar .container{

    padding-top:0;
    padding-bottom:0;

}

.navbar-brand img{

    width:60px;

}

.navbar-brand h5{

    font-weight:700;

    margin-bottom:2px;

}

.navbar-brand h5{

    font-weight:700;

    margin-bottom:2px;

}

.navbar-brand small{

    color:#FFC107;   /* kuning */

    font-weight:600;

}

.nav-link{

    font-weight:500;

    color:#333 !important;

    margin-left:10px;

    transition:.3s;

}

.nav-link:hover{

    color:var(--primary)!important;

}

/* ===========================
        DROPDOWN MENU
=========================== */

.dropdown-menu{

    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
    padding: 8px 0;
    min-width: 230px;
    animation: fadeDown .3s ease;

}

.dropdown-item{

    color: #1E293B !important;   /* warna tulisan */
    font-weight: 500;
    padding: 12px 20px;
    transition: .3s;

}

.dropdown-item:hover{

    background: #0D6EFD;
    color: #fff !important;
    padding-left: 28px;

}

.dropdown-item:focus{

    background: #0D6EFD;
    color: #fff !important;

}

.btn-primary{

    border-radius:30px;

    padding:10px 25px;

}

/* ==========================================
   HERO
========================================== */

.hero{

    margin-top:0;
    padding-top:0;
    padding-bottom:0;

}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item{

    min-height:calc(100vh - 76px);

}

.hero-image{

    height:calc(100vh - 76px);
    min-height:420px;
    object-fit:cover;
    filter:brightness(45%);

}

.carousel-caption{

    top:50%;
    bottom:auto;
    transform:translateY(-50%);

}

.carousel-caption h1{

    font-size:72px;

    font-weight:800;

    color:#ffffff;

    text-shadow:0 5px 20px rgba(0,0,0,0.35);

}



.carousel-caption p{

    color:white;

    font-size:22px;

    max-width:700px;

    margin:auto;

}

.carousel-caption .btn{

    padding:14px 35px;

    border-radius:50px;

    font-weight:600;

    transition:.3s;

}

.carousel-caption .btn:hover{

    transform:translateY(-5px);

}

/* ==========================================
   SAMBUTAN
========================================== */

.welcome{

    background: linear-gradient(135deg,#0D6EFD,#084298);
    color:#fff;
    padding-top:60px;
    padding-bottom:35px;

}

.welcome h5{

   color:#FFD54F;

    font-weight:600;

}

.welcome h2{

    color:#FFFFFF;

}

.welcome p{

    color:#fff;
    line-height:2;
    font-size:17px;


}

.welcome small{

    color:#EAF4FF;

}

.welcome img{

    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,.2);

}

/* ==========================================
   CARD
========================================== */

.card{

    border:none;

    border-radius:18px;

    overflow:hidden;

    transition:.4s;

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.card img{

    transition:.4s;

}

.card:hover img{

    transform:scale(1.08);

}

.news-card,
.achievement-card,
.ekskul-card{
    height:100%;
}

.news-image,
.achievement-image{
    height:220px;
    object-fit:cover;
}

.ekskul-card{
    min-height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
}

.gallery-viewport{
    overflow:hidden;
    width:100%;
}

.gallery-track{
    display:flex;
    gap:1rem;
    width:max-content;
    animation:gallery-scroll 28s linear infinite;
}

.gallery-track:hover,
.gallery-track:focus-within{
    animation-play-state:paused;
}

.gallery-slide{
    flex:0 0 calc((100vw - 3rem) / 4 - 1rem);
    max-width:calc((1140px - 3rem) / 4 - 1rem);
}

.gallery-item{
    width:100%;
    height:240px;
    object-fit:cover;
    display:block;
}

.gallery-caption{
    display:flex;
    flex-direction:column;
    gap:.2rem;
    padding:.65rem .25rem 0;
    color:#475569;
    font-size:.85rem;
}

.gallery-caption strong{
    color:#1f2937;
}

.gallery-track.gallery-track-empty{
    width:100%;
    justify-content:center;
    animation:none;
}

@keyframes gallery-scroll{
    from{ transform:translateX(0); }
    to{ transform:translateX(calc(-50% - .5rem)); }
}

@media (max-width: 991px){
    .gallery-slide{
        flex-basis:calc((100vw - 2rem) / 2 - 1rem);
    }
}

@media (max-width: 575px){
    .gallery-slide{
        flex-basis:calc(100vw - 3rem);
    }

    .gallery-item{
        height:220px;
    }
}

@media (prefers-reduced-motion: reduce){
    .gallery-track{
        animation:none;
    }
}

.video .ratio,
.maps .ratio{
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.footer h4,
.footer h5{
    margin-bottom:18px;
}

.footer p{
    margin-bottom:12px;
}

/* ==========================================
   TITLE
========================================== */

section h2{

    font-weight:700;

}

section p{

    color:#666;

}

/* ===== TEST ===== */

.welcome {
    background: #0D6EFD !important;
}

.welcome h2 {
    color: #FFFFFF !important;
}

.welcome h5 {
    color: #FFD54F !important;
}

.welcome p {
    color: #FFFFFF !important;
}

.welcome small {
    color: #FFFFFF !important;
}

.welcome h3 {
    color: #FFFFFF !important;
}

/*=========================================
        HERO STATISTIC
=========================================*/

.hero-stat{

    display:flex;

    justify-content:center;

    gap:70px;

    margin-top:50px;

}

.hero-stat div{

    text-align:center;

}

.hero-stat h2{

    color:#FFD54F;

    font-size:38px;

    font-weight:700;

    margin-bottom:5px;

}

.hero-stat span{

    color:#fff;

    font-size:15px;

}

.hero-image{
    height:95vh;

    object-fit:cover;

    filter:brightness(30%);

}

.hero-wave{

    margin-top:-120px;

    position:relative;

    z-index:2;

}

.hero-wave svg{

    display:block;

}

.nav-link{

    position:relative;

}

.nav-link::after{

    content:"";

    width:0;

    height:3px;

    background:#0D6EFD;

    position:absolute;

    left:0;

    bottom:-8px;

    transition:.3s;

}

.nav-link:hover::after{

    width:100%;

}

/*=========================================
        STATISTIK SEKOLAH
=========================================*/

.stats{

    background:#F5F9FF;
    padding-top:30px;
    padding-bottom:40px;
    margin-top:0;

}

.stats-card{

    background:#fff;

    border-radius:20px;

    padding:40px 25px;

    text-align:center;

    transition:.4s;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    height:100%;

}

.stats-card:hover{

    transform:translateY(-12px);

    box-shadow:0 20px 40px rgba(13,110,253,.18);

}

.stats-icon{

    width:80px;

    height:80px;

    background:linear-gradient(135deg,#0D6EFD,#3B82F6);

    border-radius:50%;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:25px;

}

.stats-icon i{

    color:white;

    font-size:34px;

}

.stats-card h2{

    font-size:42px;

    color:#0D6EFD;

    font-weight:700;

}

.stats-card p{

    margin-top:10px;

    color:#666;

    font-size:17px;

}

.stats-card:hover .stats-icon{

    transform:rotate(10deg) scale(1.1);

    transition:.4s;

}

.stats-card:hover h2{

    color:#084298;

}

.section-wave{

    margin-top:-10px;
    margin-bottom:-6px;
    line-height:0;

}

.section-wave svg{

    display:block;
    height:70px;

}

/*=========================================
        PAGE HEADER
=========================================*/

.page-header{

    background:linear-gradient(rgba(13,110,253,.8),rgba(13,110,253,.8)),
    url('../images/slider/slider1.jpg');

    background-size:cover;
    background-position:center;

    padding:28px 0;
    text-align:center;
    color:#fff;
}

.page-header h1{

    font-size:42px;
    font-weight:700;
    margin-bottom:8px;
}

.page-header p{

    margin:0;
    font-size:16px;
    color:#f8f9fa;
}


/*=========================================
        PROFILE CONTENT
=========================================*/

.profile-content{

    padding:90px 0;

}

.profile-content img{

    border-radius:20px;

    box-shadow:0 20px 50px rgba(0,0,0,.15);

}

.profile-content h2{

    font-size:40px;

    font-weight:700;

    margin-bottom:20px;

}

.profile-content p{

    text-align:justify;

    line-height:2;

}

/*=========================================
        TIMELINE
=========================================*/

.timeline{

    background:#F5F9FF;

    padding:80px 0;

}

.timeline-item{

    background:#fff;

    border-left:6px solid #0D6EFD;

    padding:25px;

    margin-bottom:25px;

    border-radius:10px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.timeline-item h4{

    color:#0D6EFD;

    font-weight:700;

}

/* ==========================
        FOOTER
========================== */

.footer{
    background:#0b2347;
    color:#fff;
    padding:60px 0 20px;
}

.footer *{
    color:#fff !important;
}

.footer a{
    text-decoration:none;
    transition:.3s;
}

.footer a:hover{
    color:#ffc107 !important;
}

.footer hr{
    border-color:rgba(255,255,255,.3);
}

/*=========================================
        PAGE HEADER
=========================================*/

.page-header{

    position: relative;

    background:
    linear-gradient(rgba(13,110,253,.75),
    rgba(8,66,152,.75)),
    url("../images/slider/slider1.jpg");

    background-size: cover;

    background-position: center;

    padding:38px 0;

    text-align:center;

    color:#fff;

}

.page-header h1{

    font-size:52px;

    font-weight:700;

    color:#fff;

    margin-bottom:10px;

}

.page-header p{

    color:#fff;

    font-size:18px;

    margin-bottom:0;

}

/*=========================================
        PROFILE CONTENT
=========================================*/

.profile-content{

    padding:90px 0;

    background:#fff;

}

.profile-content img{

    border-radius:20px;

    box-shadow:0 20px 45px rgba(0,0,0,.15);

}

.profile-content h2{

    color:#0D6EFD;

    font-weight:700;

    margin-bottom:25px;

}

.profile-content p{

    text-align:justify;

    line-height:2;

    color:#555;

    font-size:17px;

}

/*=========================================
        TIMELINE
=========================================*/

.timeline{

    background:#F5F9FF;

    padding:90px 0;

}

.timeline h2{

    font-weight:700;

    color:#0D6EFD;

    margin-bottom:60px;

}

.timeline-item{

    background:#fff;

    border-radius:15px;

    padding:25px;

    margin-bottom:25px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    border-left:6px solid #0D6EFD;

    transition:.3s;

}

.timeline-item:hover{

    transform:translateX(10px);

}

.timeline-item h4{

    color:#0D6EFD;

    font-weight:700;

}

/*=========================================
        FOOTER
=========================================*/

.footer{

    background:#0B2343;

    color:white;

    padding:30px 0;

}

.footer p{

    margin:0;

    color:white;

}

.page-header i{

    margin:0 10px;

    color:#FFD54F;

}

.profile-content img{

    transition:.5s;

}

.profile-content img:hover{

    transform:scale(1.03);

}

@media(max-width:768px){

.page-header{

padding:80px 0;

}

.page-header h1{

font-size:35px;

}

.profile-content{

text-align:center;

}

.profile-content img{

margin-bottom:30px;

}

}

.gallery-card{
    transition:.35s ease;
}

.gallery-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.18)!important;
}

.gallery-card img{
    height:240px;
    object-fit:cover;
    transition:.4s;
}

.gallery-card:hover img{
    transform:scale(1.08);
}

.gallery-card .card-body{
    padding:25px;
}

.gallery-card .btn{
    border-radius:50px;
}

.pagination .page-link{
    border-radius:50px;
    margin:0 5px;
}

/* ==========================
        VIDEO GALERI
========================== */

.gallery-card iframe{
    border:0;
}

.gallery-card{
    transition:0.35s;
}

.gallery-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.15)!important;
}

.gallery-card .card-body{
    padding:24px;
}

.gallery-card .badge{
    font-size:13px;
    padding:7px 14px;
}

/*==========================================
            CONTACT PAGE
==========================================*/

.contact-page{
    padding:80px 0;
    background:#f8fafc;
}

.contact-title{
    text-align:center;
    margin-bottom:60px;
}

.contact-title h2{
    font-size:42px;
    font-weight:700;
    color:#0d6efd;
}

.contact-title p{
    color:#6c757d;
    font-size:17px;
}

/* CARD */

.contact-card{
    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    height:100%;
    transition:.35s;
}

.contact-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 45px rgba(0,0,0,.15);

}

.contact-item{

    display:flex;

    align-items:flex-start;

    margin-bottom:30px;

}

.contact-item:last-child{

    margin-bottom:0;

}

.contact-icon{

    width:65px;

    height:65px;

    border-radius:50%;

    background:#0d6efd;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    margin-right:18px;

}

.contact-item h5{

    font-weight:700;

    margin-bottom:6px;

}

.contact-item p{

    color:#6c757d;

    margin:0;

    line-height:1.8;

}

/* FORM */

.contact-form{

    background:#fff;

    border-radius:20px;

    padding:35px;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

}

.contact-form h3{

    font-weight:700;

    margin-bottom:30px;

}

.contact-form .form-control{

    height:55px;

    border-radius:12px;

    border:1px solid #ddd;

    margin-bottom:18px;

}

.contact-form textarea{

    height:180px!important;

    resize:none;

    padding-top:15px;

}

.contact-form .form-control:focus{

    border-color:#0d6efd;

    box-shadow:0 0 0 .15rem rgba(13,110,253,.15);

}

.contact-form button{

    padding:13px 35px;

    border-radius:40px;

    font-weight:600;

}

/* MAP */

.contact-map{

    margin-top:70px;

    overflow:hidden;

    border-radius:20px;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

}

.contact-map iframe{

    width:100%;

    height:450px;

    border:0;

}

/* SOCIAL */

.social-contact{

    margin-top:70px;

}

.social-card{

    background:#fff;

    padding:30px;

    border-radius:18px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.social-card:hover{

    transform:translateY(-8px);

}

.social-card i{

    font-size:48px;

    margin-bottom:20px;

}

.social-card h5{

    font-weight:700;

}

.social-card p{

    color:#6c757d;

    margin-top:10px;

}

/* RESPONSIVE */

@media(max-width:991px){

.contact-title h2{

font-size:34px;

}

.contact-card{

margin-bottom:30px;

}

.contact-map iframe{

height:350px;

}

}

@media(max-width:576px){

.contact-title h2{

font-size:28px;

}

.contact-form{

padding:25px;

}

.contact-card{

padding:25px;

}

.contact-icon{

width:55px;

height:55px;

font-size:20px;

}

}


/* ===================================
        GURU & TENDIK
=================================== */

.teacher-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.35s;
    text-align:center;
    height:100%;
    display:flex;
    flex-direction:column;
}

.teacher-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.teacher-img{
    display:block;
    width:100%;
    aspect-ratio:4 / 5;
    object-fit:cover;
    object-position:center 30%;
}

.teacher-body{
    padding:22px;
    flex:1;
}

.teacher-body h5{
    font-weight:700;
    margin-bottom:8px;
}

.teacher-body span{
    color:#0d6efd;
    font-weight:500;
}

/* Keep the Guru & Tendik page aligned with the site's blue theme. */
.guru-directory-page,
.guru-directory-page .page-content{
    background:#fff;
}

.guru-directory-page .page-header{
    background:linear-gradient(rgba(13,110,253,.75),rgba(13,110,253,.75)),
        url('../images/slider/slider1.jpg');
    background-size:cover;
    background-position:center;
}

.guru-directory-page .footer{
    background:#0B2343;
}

@media (max-width: 575.98px){
    .guru-directory-page .page-content .row > [class*="col-"]{
        flex:0 0 auto;
        width:50%;
    }

    .guru-directory-page .teacher-card{
        border-radius:14px;
    }

    .guru-directory-page .teacher-body{
        padding:12px 8px;
    }

    .guru-directory-page .teacher-body h5{
        font-size:.9rem;
        line-height:1.3;
    }

    .guru-directory-page .teacher-body p{
        font-size:.78rem;
        line-height:1.35;
    }
}

.guru-directory-page .page-header{
    color:#fff;
}

.guru-directory-page .page-header h1,
.guru-directory-page .page-header p{
    color:#fff;
}

.guru-directory-page .footer,
.guru-directory-page .footer *{
    color:#fff !important;
}

.guru-directory-page .footer a:hover{
    color:#ffc107 !important;
}

.guru-directory-page .footer hr{
    border-color:rgba(255,255,255,.3);
}