/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    --primary-color: #0A2647; /* Deep Navy Blue */
    --secondary-color: #1C82AD; /* Professional Green/Blue */
    --accent-color: #FF6C22; /* Vibrant Orange */
    --white-color: #FFFFFF;
    --light-gray-color: #F8F9FA;
    --text-color: #555;
    --title-color: #212529;

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;
    --title-font: 'Montserrat', sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
    :root {
        --biggest-font-size: 4.5rem;
        --h1-font-size: 2.5rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: .938rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--white-color);
    color: var(--text-color);
}

h1, h2, h3 {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  width: 100%;
  max-width: 1140px;   
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* .container {
    max-width: 1280px; 
    margin-left: 1.5rem;
    margin-right: 1.5rem;
} */


.grid {
    display: grid;
    gap: 1.5rem;
}
/* added */


@media (max-width: 992px) {
  section#methodology .methodology__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  section#methodology .methodology__container {
    grid-template-columns: 1fr;
  }
}


.section {
    padding: 5rem 0 2rem;
}

.section__title-center {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 3rem;
}

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: .5rem;
    font-weight: var(--font-semibold);
    transition: all .3s;
    border: 2px solid var(--accent-color);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.section__subtitle-center {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}
.section__tagline {
    text-align: center;
    font-weight: var(--font-medium);
    color: var(--secondary-color); /* Green */
    margin-bottom: .75rem;
    font-size: var(--normal-font-size);
}

/*=============== HEADER & NAV ===============*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    /* Add a subtle dark background from the start */
    background: rgba(10, 38, 71, 0.3); 
    transition: .4s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--white-color);
    font-family: var(--title-font);
    font-weight: var(--font-bold);
}

.nav__logo-img {
    height: 35px;
    width: auto;
}

.nav__logo-text {
    font-size: 1.25rem;
}

.nav__toggle, 
.nav__close {
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
}
/* Look inside the @media screen and (max-width: 768px) block */

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
}

/* ========== Mobile Menu (Dropdown Box) ========== */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: absolute;
        top: 100%; /* directly below header */
        right: 1rem;
        width: 85%;
        max-width: 320px;
        background-color: var(--primary-color);
        padding: 2rem 1.5rem;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all .35s ease-in-out;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        z-index: 1000;
    }
    
    .show-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
    }

    .nav__link {
        color: var(--white-color);
        font-weight: var(--font-semibold);
        text-align: center;
    }

    .nav__close {
        position: absolute;
        top: .75rem;
        right: 1rem;
        font-size: 1.25rem;
    }

    .nav__contact, 
    .button--login {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .nav__contact {
    margin-bottom: 0.8rem;
}
}

/* ========== Desktop Navigation ========== */
@media screen and (min-width: 769px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
    
    .nav__toggle, .nav__close {
        display: none;
    }

    .nav__menu {
        display: flex;
        align-items: center;
        gap: 2.5rem;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__list {
        display: flex;
        flex-direction: row;
        gap: 2.5rem;
    }
}

/* Links */
.nav__link {
    color: var(--white-color);
    font-weight: var(--font-semibold);
    transition: color .3s;
}

.nav__link:hover {
    color: var(--secondary-color);
}

/* Contact + Login */
.nav__contact {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: .75rem 1.5rem;
    border-radius: 5px;
}
.nav__contact i {
    font-size: 1.1rem;
}

.button--login {
    background-color: #28a745;
    border: 2px solid #28a745;
    color: var(--white-color);
    padding: .75rem 1.5rem;
    border-radius: 5px;
}
.button--login:hover {
    background-color: var(--white-color);
    color: #28a745;
}

/* Header background on scroll */
.scroll-header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.2);
}


/* Change background header
.scroll-header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}

.button--login {
    display: none;
} */


/*=============== HERO ===============*/
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 38, 71, 0.7); /* Dark Blue Overlay */
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;   /* prevents text/buttons from stretching too wide */
    margin: 0 auto;
    padding: 0 1rem;    /* keeps safe spacing on smaller screens */
}


.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);  /* scales between 2rem and 3.5rem */
    color: var(--white-color);
    margin-bottom: 1rem;
}


.hero__subtitle {
    color: var(--light-gray-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button--primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.button--secondary {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/*=============== TRUST ===============*/
.trust__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    text-align: center;
}

.trust__item h3 {
    font-size: var(--h1-font-size);
    color: var(--secondary-color);
    margin-bottom: .5rem;
}
.trust__item .fas.fa-star {
    color: #FFD700;
}

.trust__description {
    font-size: var(--small-font-size);
}

/*=============== CHAIRPERSON'S NOTE ===============*/
/*=============== CHAIRPERSON'S NOTE (Optimized) ===============*/
.chairperson {
    background-color: var(--light-gray-color);
}

.chairperson__container {
    /* This clearfix is needed for the float layout on mobile */
    overflow: auto; 
}

.chairperson__img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.15);
}

.chairperson__quote {
    font-size: var(--normal-font-size);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
}

.chairperson__signature {
    text-align: right;
    /* Clear the float to ensure signature is always at the bottom */
    clear: both;
}

.chairperson__name {
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.chairperson__qualifications {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

/* Mobile-Specific Text Wrapping Layout */
@media screen and (max-width: 991px) {
    .chairperson__image-wrapper {
        /* This "floats" the image to the left */
        float: left; 
        /* The max-width of the image on mobile */
        max-width: 150px; 
        /* Space between the image and the wrapping text */
        margin-right: 1.5rem; 
        margin-bottom: 0.5rem;
    }
}


/* Desktop Side-by-Side Layout */
@media screen and (min-width: 992px) {
    .chairperson__container {
        display: grid;
        grid-template-columns: 1fr 1.5fr; /* Image column | Text column */
        align-items: center;
        gap: 4rem;
    }
}
/*=============== ADVANTAGE ===============*/
.advantage {
    background-color: var(--light-gray-color);
}

.advantage__container {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.advantage__card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.05);
    transition: all .3s;
}

.advantage__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px hsla(0, 0%, 0%, 0.1);
}

.advantage__icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.advantage__title {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

/*=============== TOPPERS ===============*/
.topper__card {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.08);
}

.topper__img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--secondary-color);
}

.topper__name {
    font-size: var(--h3-font-size);
    margin-bottom: .25rem;
}

.topper__quote {
    font-style: italic;
    font-size: var(--normal-font-size);
    color: var(--text-color);
}

/* active bullet color */
.swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
}

/* Desktop: switch to CSS grid */
@media screen and (min-width: 1024px) {
    .toppers-swiper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .toppers-swiper .swiper-wrapper {
        display: contents !important;
    }
    .toppers-swiper .swiper-slide {
        width: auto !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }
    .toppers-swiper .swiper-pagination {
        display: none !important;
    }
}

/* ======= Gallery Section ======= */
.gallery-section {
  background: #f9fafc;
  padding: 60px 20px;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  overflow-x: auto; /* enables scroll on small screens */
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox hide scrollbar */
}

.gallery-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge hide scrollbar */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Mobile specific (force horizontal scroll look) */
@media (max-width: 768px) {
  .gallery-grid {
    display: flex;
    gap: 15px;
    grid-template-columns: unset;
  }
  
  .gallery-item {
    min-width: 280px;   /* fixed width */
    height: 200px;      /* fixed height */
    flex: 0 0 auto;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* keeps aspect nice */
  }
}



/*=============== COURSES ===============*/
.courses {
    background-color: var(--light-gray-color);
}

.courses__container {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.course__card {
    background-color: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all .3s;
}

.course__card:hover {
    border-color: var(--secondary-color);
}

.course__card--popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.course__tag {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: .25rem .75rem;
    border-radius: .25rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
    display: inline-block;
    margin-bottom: 1rem;
}

.course__card--popular .course__tag.popular {
    background-color: var(--accent-color);
    position: absolute;
    top: 1.5rem;
    right: -30px;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
    padding: .5rem;
}

.course__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.course__features {
    margin-bottom: 2rem;
    text-align: left;
}

.course__features li {
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.course__features i {
    color: var(--secondary-color);
}

.button--course {
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.course__card--popular .button--course {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
/*=============== COURSES PORTFOLIO ===============*/
.portfolio {
    background-color: var(--light-gray-color);
}

.portfolio__card {
    background-color: var(--white-color);
    padding: 2rem 1.5rem;
    border-radius: .75rem;
    text-align: center;
    border: 1px solid #eee;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* ensures equal height inside grid */
}

.portfolio__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px hsla(220, 24%, 15%, 0.1);
}

.portfolio__icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.portfolio__title {
    font-size: var(--h3-font-size);
    margin-bottom: .75rem;
}

.portfolio__description {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portfolio__link {
    color: var(--primary-color);
    font-weight: var(--font-semibold);
    font-size: var(--small-font-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    transition: gap .3s;
}

.portfolio__link:hover {
    gap: .5rem;
}

/* Fix swiper overflow */
.portfolio-swiper {
    overflow: visible;
}

/* Desktop: force grid, ignore Swiper */
@media screen and (min-width: 1024px) {
    .portfolio-swiper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 2rem;
    }
    /* Kill swiper's flex behaviour */
    .swiper-wrapper {
        display: contents !important;
    }
    .swiper-slide {
        width: auto !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }
    .swiper-pagination {
        display: none !important;
    }
}



/*=============== RESOURCES ===============*/
.resources__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.resource__item {
    background-color: var(--light-gray-color);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: .5rem;
    transition: all .3s;
}

.resource__item:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.resource__item:hover .resource__title,
.resource__item:hover .resource__icon {
    color: var(--white-color);
}


.resource__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.resource__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semibold);
}
/*=============== METHODOLOGY ===============*/
/*=============== METHODOLOGY (Mobile Optimized) ===============*/
/*=============== METHODOLOGY CLEAN RESPONSIVE ===============*/

.methodology__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.methodology__card {
  background: var(--light-gray-color);
  padding: 1.5rem 1rem;
  border-radius: .75rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all .3s ease-in-out;
  height: 100%;
}

.methodology__card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

.methodology__icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.methodology__title {
  font-size: 1rem;
  font-weight: var(--font-semibold);
  margin-bottom: .5rem;
}

.methodology__description {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-color);
}

/* Small phones */
@media screen and (max-width: 480px) {
  .methodology__container {
    grid-template-columns: 1fr;
  }
}

/* Tablets */
@media screen and (min-width: 768px) {
  .methodology__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Desktops */
@media screen and (min-width: 1120px) {
  .methodology__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .methodology__card {
    padding: 2rem 1.5rem;
  }
}


/*=============== WHY CHOOSE US ===============*/
.why-us__container {
    gap: 2rem;
}

.why-us__image-wrapper {
    text-align: center;
}

.why-us__img {
    max-width: 450px;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.1);
}

.why-us__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.why-us__subtitle {
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.accordion__item {
    border-bottom: 2px solid #E9ECEF;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.accordion__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.accordion__icon {
    font-size: 1.5rem;
    color: var(--accent-color); /* Orange */
}

.accordion__title {
    font-size: var(--h3-font-size);
    font-family: var(--body-font);
    font-weight: var(--font-semibold);
    color: var(--title-color);
}

.accordion__arrow {
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform .4s;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
}

.accordion__description {
    padding: 1rem 0 0 2.5rem; /* Aligns with text */
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

/* Accordion open state */
.accordion-open .accordion__arrow {
    transform: rotate(-180deg);
}

.accordion-open .accordion__content {
    max-height: 200px; /* Adjust if content is longer */
}

/* Desktop Layout */
@media screen and (min-width: 992px) {
    .why-us__container {
        grid-template-columns: 1fr 1.2fr;
        align-items: center;
        gap: 4rem;
    }
}
/*=============== CTA ===============*/
.cta {
    background-color: var(--primary-color);
    text-align: center;
}

.cta__container {
    padding: 4rem 1rem;
}

.cta__title {
    font-size: var(--h2-font-size);
    color: var(--white-color);
    margin-bottom: .75rem;
}

.cta__subtitle {
    color: var(--light-gray-color);
    margin-bottom: 2rem;
}


/*=============== FOOTER ===============*/
.footer {
    background-color: #061A33; /* Even Darker Blue */
    padding-top: 5rem;
    color: var(--light-gray-color);
}

.footer__container {
    row-gap: 3rem;
}

.footer__logo {
    color: var(--white-color);
    font-size: var(--h3-font-size);
    font-family: var(--title-font);
    display: inline-block;
    margin-bottom: .75rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer__link {
    color: var(--light-gray-color);
    transition: .3s;
}
.footer__link:hover {
    color: var(--accent-color);
}
.footer__links li {
    margin-bottom: .5rem;
}
.footer__social {
    display: flex;
    gap: 1.5rem;
}
.footer__social-link {
    font-size: 1.5rem;
    color: var(--white-color);
    transition: .3s;
}
.footer__social-link:hover {
    color: var(--accent-color);
}

.footer__copy {
    display: block;
    margin-top: 5rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: var(--small-font-size);
    border-top: 1px solid #2c3e50;
}


/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: var(--accent-color);
    padding: .5rem;
    border-radius: .25rem;
    display: inline-flex;
    z-index: var(--z-tooltip);
    opacity: .8;
    transition: .4s;
}

.scrollup:hover {
    opacity: 1;
}

.scrollup__icon {
    font-size: 1.25rem;
    color: var(--white-color);
}

.show-scroll {
    bottom: 3rem;
}

/*=============== FADE-IN ANIMATION on SCROLL ===============*/
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .hero__buttons {
        flex-direction: column;
    }
}

/* For medium devices */
@media screen and (min-width: 768px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
    .nav__toggle, .nav__close {
        display: none;
    }
    .nav__list {
        flex-direction: row;
        gap: 3rem;
    }
    .nav__menu {
        display: flex;
        align-items: center;
        gap: 3rem;
    }
    .button--login {
        display: inline-block;
        background-color: transparent;
        color: var(--white-color);
        border: 2px solid var(--white-color);
        padding: .75rem 1.5rem;
    }
    .button--login:hover {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: var(--white-color);
    }
    .trust__container {
        grid-template-columns: repeat(4, 1fr);
    }
    .advantage__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .courses__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .course__card--popular {
        transform: scale(1.05);
    }
    .resources__container {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer__container {
        grid-template-columns: 1fr 2fr;
    }
    .footer__content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For large devices */
@media screen and (min-width: 1120px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 1120px) {
  .methodology__container {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* For mock and additonal */
/* ========== Additional Courses ========== */

.additional-courses {
  margin-top: 4rem;
}

.course__fee {
  font-weight: var(--font-semibold);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
/* Additional Courses layout fix */

.additional-courses .courses__container {
  display: flex;              /* switch grid → flex */
  justify-content: center;   /* center the pair */
  gap: 2rem;                  /* space between cards */
  flex-wrap: wrap;
}

.additional-courses .course__card {
  max-width: 420px;
  width: 100%;
}

@media (max-width: 768px) {
  .additional-courses .courses__container {
    grid-template-columns: 1fr;
  }
}

