/*====================================================
RESPONSIVE CSS
MS RANDHAWA INSTITUTE
PART 1
====================================================*/


/*====================================================
LAPTOP (1200px)
====================================================*/

@media (max-width:1200px){

.container{
    width:min(94%,1140px);
}

h1{
    font-size:58px;
}

h2{
    font-size:42px;
}

.hero-grid{
    gap:50px;
}

.hero-content p{
    font-size:17px;
}

.card-1{
    left:-20px;
}

.card-2{
    right:-20px;
}

.card-3{
    left:-35px;
}

}



/*====================================================
TABLET LANDSCAPE (992px)
====================================================*/

@media (max-width:992px){

section{
    padding:90px 0;
}

/*--------------------
Typography
--------------------*/

h1{
    font-size:48px;
}

h2{
    font-size:36px;
}

p{
    font-size:16px;
}


/*--------------------
Header
--------------------*/

.header{
    padding:15px 0;
}

.logo img{
    width:72px;
}

.nav-links{

    position:fixed;

    top:85px;

    right:-100%;

    width:320px;

    height:calc(100vh - 85px);

    background:#fff;

    flex-direction:column;

    justify-content:flex-start;

    align-items:flex-start;

    padding:40px 30px;

    gap:28px;

    transition:.4s;

    box-shadow:-10px 0 30px rgba(0,0,0,.08);

}

.nav-links.active{

    right:0;

}

.nav-actions{

    display:none;

}

.menu-toggle{

    display:block;

}


/*--------------------
Hero
--------------------*/

.hero{

    padding-top:150px;

}

.hero-grid{

    grid-template-columns:1fr;

    gap:60px;

}

.hero-content{

    text-align:center;

}

.hero-content p{

    max-width:100%;

}

.hero-features{

    grid-template-columns:repeat(2,1fr);

}

.hero-buttons{

    justify-content:center;

}

.hero-image{

    max-width:700px;

    margin:auto;

}


/*--------------------
Floating Cards
--------------------*/

.card-1{

    left:10px;

    top:20px;

}

.card-2{

    right:10px;

    bottom:20px;

}

.card-3{

    left:20px;

    bottom:140px;

    top:auto;

}


/*--------------------
Trust Strip
--------------------*/

.trust-grid{

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}


/*--------------------
About
--------------------*/

.about-grid{

    grid-template-columns:1fr;

    gap:60px;

}

.about-image{

    max-width:650px;

    margin:auto;

}

.about-content{

    text-align:center;

}

.about-highlights{

    text-align:left;

}

}


/*====================================================
TABLET PORTRAIT (768px)
====================================================*/

@media (max-width:768px){

section{
    padding:80px 0;
}

.container{
    width:92%;
}

h1{
    font-size:40px;
    line-height:1.15;
}

h2{
    font-size:32px;
}

.hero-content h2{
    font-size:24px;
}

.hero-features{
    grid-template-columns:1fr;
    gap:15px;
}

.hero-buttons{
    flex-direction:column;
}

.hero-buttons .btn{
    width:100%;
}

.hero-image img{
    border-radius:22px;
}

.floating-card{
    padding:14px 18px;
}

.floating-card h3{
    font-size:22px;
}

.about-highlights{
    grid-template-columns:1fr;
}

.why-grid,
.course-grid,
.learning-grid,
.results-grid,
.faculty-grid,
.testimonial-grid,
.board-grid{
    grid-template-columns:1fr;
}

.gallery-grid{
    grid-template-columns:repeat(2,1fr);
}

.contact-grid{
    grid-template-columns:1fr;
}

.footer-grid{
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.cta-box h2{
    font-size:38px;
}

.cta-box p{
    font-size:16px;
}

}



/*====================================================
MOBILE LARGE (576px)
====================================================*/

@media (max-width:576px){

section{
    padding:70px 0;
}

h1{
    font-size:34px;
}

h2{
    font-size:28px;
}

.section-heading{
    margin-bottom:50px;
}

.section-tag{
    font-size:13px;
    padding:8px 18px;
}

.hero{
    padding-top:130px;
}

.hero-content{
    text-align:left;
}

.hero-content h2{
    font-size:21px;
}

.hero-content p{
    font-size:16px;
}

.hero-buttons{
    align-items:stretch;
}

.btn{
    width:100%;
    padding:16px 22px;
}

.hero-image{
    margin-top:20px;
}

.floating-card{
    display:none;
}

.trust-grid{
    grid-template-columns:1fr;
}

.highlight{
    flex-direction:column;
    text-align:center;
}

.why-card,
.learning-card,
.course-card,
.result-card,
.faculty-card,
.testimonial-card,
.board-card{
    border-radius:18px;
}

.gallery-grid{
    grid-template-columns:1fr;
}

.gallery-grid img{
    height:240px;
}

.info-box{
    flex-direction:column;
    text-align:center;
}

.footer-grid{
    grid-template-columns:1fr;
    text-align:center;
}

.social-icons{
    justify-content:center;
}

.footer-logo{
    margin:auto auto 25px;
}

.cta-box h2{
    font-size:32px;
}

}



/*====================================================
SMALL MOBILE (420px)
====================================================*/

@media (max-width:420px){

.container{
    width:94%;
}

h1{
    font-size:30px;
}

h2{
    font-size:24px;
}

.hero-badge{
    font-size:12px;
    padding:10px 16px;
}

.hero-features div{
    font-size:15px;
}

.logo img{
    width:60px;
}

.nav-links{
    width:100%;
}

.trust-item h2{
    font-size:34px;
}

.trust-item p{
    font-size:15px;
}

.gallery-grid img{
    height:210px;
}

.whatsapp-float,
.call-float{
    width:52px;
    height:52px;
    font-size:22px;
}

.whatsapp-float{
    bottom:85px;
}

.call-float{
    bottom:20px;
}

}



/*====================================================
EXTRA SMALL DEVICES (360px)
====================================================*/

@media (max-width:360px){

h1{
    font-size:28px;
}

h2{
    font-size:22px;
}

.hero-content p{
    font-size:15px;
}

.btn{
    font-size:15px;
    padding:15px 18px;
}

.section-tag{
    font-size:12px;
}

.hero-features div{
    font-size:14px;
}

.gallery-grid img{
    height:190px;
}

.footer p,
.footer li{
    font-size:14px;
}

}



/*====================================================
LANDSCAPE MOBILE
====================================================*/

@media (max-height:500px) and (orientation:landscape){

.hero{
    padding-top:120px;
}

.nav-links{
    overflow-y:auto;
}

}



/*====================================================
IMAGE RESPONSIVE
====================================================*/

img{
    max-width:100%;
    height:auto;
}



/*====================================================
TABLE RESPONSIVE
====================================================*/

table{
    width:100%;
    overflow-x:auto;
    display:block;
}



/*====================================================
EMBED RESPONSIVE
====================================================*/

iframe,
video{
    width:100%;
    border:none;
    border-radius:20px;
}



/*====================================================
END OF RESPONSIVE CSS
====================================================*/