/* ===========================================
   RESPONSIVE.CSS
   Rumah Belajar Sabilul Huda
===========================================*/


/* ===========================================
   Laptop
===========================================*/

@media (max-width:1200px){

.container{

    width:95%;

}

.hero h1{

    font-size:50px;

}

.section-title h2{

    font-size:34px;

}

}


/* ===========================================
   Tablet
===========================================*/

@media (max-width:992px){

/* HEADER */

.top-header{

    display:none;

}

/* NAVBAR */

.navbar .container{

    height:80px;

}

.logo img{

    width:55px;

}

.logo h2{

    font-size:20px;

}

.menu{

    position:fixed;

    top:80px;

    right:-100%;

    width:280px;

    height:calc(100vh - 80px);

    background:#fff;

    flex-direction:column;

    align-items:flex-start;

    padding:20px;

    transition:.4s;

    box-shadow:-5px 0 20px rgba(0,0,0,.08);

    overflow-y:auto;

}

.menu.active{

    right:0;

}

.menu li{

    width:100%;

}

.menu li a{

    display:block;

    width:100%;

    padding:15px;

}

.dropdown-menu{

    position:relative;

    width:100%;

    opacity:1;

    visibility:visible;

    transform:none;

    display:none;

    box-shadow:none;

    margin-left:15px;

}

.dropdown.active .dropdown-menu{

    display:block;

}

.menu-toggle{

    display:block;

    font-size:28px;

    cursor:pointer;

    color:var(--primary);

}

.btn-daftar{

    display:none;

}

/* HERO */

.hero{

    padding:70px 0;

}

.hero-grid{

    grid-template-columns:1fr;

    gap:40px;

}

.hero-content{

    text-align:center;

}

.hero h1{

    font-size:42px;

}

.hero-button{

    justify-content:center;

    flex-wrap:wrap;

}

.hero-info{

    justify-content:center;

}

/* ABOUT */

.about-grid{

    grid-template-columns:1fr;

}

.about-content{

    text-align:center;

}

.about-list{

    grid-template-columns:1fr;

}

/* PROGRAM */

.program-grid{

    grid-template-columns:repeat(2,1fr);

}

/* KEUNGGULAN */

.keunggulan-grid{

    grid-template-columns:repeat(2,1fr);

}

/* KONTAK */

.kontak-grid{

    grid-template-columns:1fr;

}

/* TESTIMONI */

.testimoni-grid{

    grid-template-columns:1fr;

}

/* FOOTER */

.footer-grid{

    grid-template-columns:repeat(2,1fr);

}

}


/* ===========================================
   Smartphone
===========================================*/

@media (max-width:768px){

section{

    padding:60px 0;

}

.section-title{

    margin-bottom:40px;

}

.section-title h2{

    font-size:30px;

}

.section-title p{

    font-size:15px;

}

/* HERO */

.hero{

    padding:50px 0;

}

.hero h1{

    font-size:34px;

}

.hero p{

    font-size:15px;

}

.hero-button{

    flex-direction:column;

    align-items:center;

}

.hero-button a{

    width:100%;

    max-width:280px;

    text-align:center;

}

.hero-info{

    flex-direction:column;

    gap:20px;

}

/* ABOUT */

.about-content h3{

    font-size:28px;

}

/* CARD */

.program-grid{

    grid-template-columns:1fr;

}

.keunggulan-grid{

    grid-template-columns:1fr;

}

.gallery-grid{

    grid-template-columns:1fr 1fr;

}

.footer-grid{

    grid-template-columns:1fr;

}

.cta-box h2{

    font-size:30px;

}

.cta-button{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.cta-button a{

    width:100%;

}

}


/* ===========================================
   Android Kecil
===========================================*/

@media (max-width:576px){

.container{

    width:92%;

}

.hero h1{

    font-size:30px;

}

.hero-badge{

    font-size:13px;

}

.about-content h3{

    font-size:24px;

}

.program-card{

    padding:25px;

}

.program-card h3{

    font-size:22px;

}

.program-card h4{

    font-size:20px;

}

.keunggulan .item{

    padding:25px;

}

.gallery-grid{

    grid-template-columns:1fr;

}

.gallery-item img{

    height:220px;

}

.testi-card{

    padding:25px;

}

.kontak-info .box{

    flex-direction:column;

    text-align:center;

}

.kontak-info .box i{

    margin:auto;

}

.cta-box h2{

    font-size:26px;

}

.biaya table{

    min-width:650px;

}

}


/* ===========================================
   iPhone SE
===========================================*/

@media (max-width:390px){

.hero h1{

    font-size:26px;

}

.section-title h2{

    font-size:25px;

}

.logo h2{

    font-size:17px;

}

.logo span{

    font-size:13px;

}

.menu{

    width:100%;

}

}


/* ===========================================
   Landscape HP
===========================================*/

@media (max-height:500px){

.hero{

    padding:40px 0;

}

.menu{

    overflow-y:auto;

}

}


/* ===========================================
   Animation Responsive
===========================================*/

@media (prefers-reduced-motion:reduce){

*{

    animation:none !important;

    transition:none !important;

    scroll-behavior:auto;

}

}


@media(max-width:992px){

.detail-grid{

grid-template-columns:1fr;

}

.page-banner h1{

font-size:38px;

}

}

@media(max-width:576px){

.page-banner{

padding:70px 0;

}

.page-banner h1{

font-size:28px;

}

}