/* media So to get the media query calculstion you just divide your desired width by 16 (width / 16), then to get the pixels yould then multiply you max-width by 16 (max-width * 16)  */

/********************************/
/* BELOW  2016px (Large desktops)*/
/********************************/

@media (max-width: 126em) {
  .Mainnav {
    padding: 0 0;

    gap: 2.4rem;
    justify-content: space-around;
  }

  .nav-link {
    font-size: 1.8rem;
  }

  .icon {
    font-size: 2.4rem;
  }

  .socials-icons-list {
    gap: 2.4rem;
  }

  .nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
  }

  .all-hero-section {
    margin-left: 4.8rem;
  }

  .card-body {
    font-size: 1.6rem;
  }

  .records {
    max-width: 80vw;
  }

  .news-section {
    max-width: 80vw;
  }

  .nav-btn {
    font-size: 1.6rem;
  }

  .nav-btn-2 {
    padding: 0.4rem 2rem;
  }
}

/********************************/
/* BELOW  1616px (Smaller desktops)*/
/********************************/
/* 
@media (max-width: 101em) {
  .menu-btn {
    display: block;
  }

  .nav-main {
    display: none;
  }

  .socials {
    display: none;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.8rem; */
/* background: #ffffff; */
/* background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(105px);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    width: 28rem;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  } */
/* 
  .mobile-menu a {
    display: block;
    padding: 1.4rem 0;
    text-decoration: none;
    color: #222;
    font-size: 1.8rem;
    border-bottom: 1px solid #eee;
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a {
    text-decoration: none;
    color: #222;
    font-size: 1.8rem;
    font-weight: 600;
  }

  .social-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 1.4rem 0;
  }

  .social-dropdown {
    display: none;
    padding-left: 1.5rem;
  }

  .social-dropdown.active {
    display: block;
  }

  .social-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }

  .menu-icon {
    font-size: 8rem;
  }
} */

/********************************/
/* BELOW  1680px (Smaller desktops)*/
/********************************/

@media (max-width: 105em) {
  html {
    font-size: 50.2%;
    /* overflow-x: hidden; */
  }

  .txt {
    padding-top: 1.5rem;
  }

  .card-head-txt {
    font-size: 2rem;
  }

  .card-body {
    font-size: 2rem;
    max-width: 27rem;
  }

  .program-head-txt {
    font-size: 2rem;
  }

  .program-body {
    font-size: 2rem;
    max-width: 25rem;
  }

  .program-card {
    padding: 0.8rem 1.2rem;
  }

  .program-cards {
    gap: 4.8rem;
  }

  .card-link {
    font-size: 2rem;
  }

  .news-txt {
    font-size: 2rem;
    max-width: 32.7rem;
  }

  .news-h {
    font-size: 2rem;
  }

  .news-date {
    font-size: 2rem;
  }

  .logo {
    width: 9rem;
  }

  .logo-box::before {
    width: 90px;
    height: 90px;
  }

  .logo-box::after {
    width: 110px;
    height: 110px;
  }

  /* .all-hero-section {
    top: 60%;
    left: 20%;

    comment
    text-align: center;
comment
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-welcome {
    text-align: center;
    display: inline-block;
  }

  .h-txt {
    text-align: center;
  } */

  .all-hero-section {
    top: 50%;
    left: 5%;
    transform: translateY(-30%);
  }

  .records {
    max-width: 82vw;
  }

  .ready {
    width: 90vw;
  }

  .news-h {
    font-size: 2rem;
  }

  .full-date {
    font-size: 1.8rem;
  }
}

/********************************/
/* BELOW  1536px (Smaller desktops)*/
/********************************/

@media (max-width: 96em) {
  html {
    font-size: 48.2%;
    /* overflow-x: hidden; */
  }

  .program-cards {
    gap: 2.4rem;
  }

  /* .programs-section {
    width: 80vw;
    padding: 0, auto;
  } */
}

/********************************/
/* BELOW  1296px (Smaller desktops)*/
/********************************/

@media (max-width: 81em) {
  /* .card-head-txt {
  }

  .card-body {
  }

  .card-body {
    font-size: 2.4rem;
    max-width: 40rem;
    padding: 2.4rem 0.8rem;
  }

  .program-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8rem;
    column-gap: 12.8rem;
  }

  .program-card {
    padding: 2rem 1.6rem;
  }

  .about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 6.4rem;
    column-gap: 9.6rem;

    margin-top: 3.2rem;
  } */

  /* .all-hero-section {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .hero-header {
    align-items: center;
  } */

  .nav-list {
    gap: 2.5rem;
  }
  .socials-icons-list {
    gap: 1.8rem;
  }
  .nav-link {
    font-size: 1.7rem;
  }
  .icon {
    font-size: 2.4rem;
  }

  .logo {
    width: 8rem;
  }
  .logo-box {
    width: 130px;
    height: 130px;
  }

  .Mainnav {
    gap: 1.2rem;
    justify-content: space-around;
    height: fit-content;
  }

  .txt1 {
    font-size: 1.6rem;
  }
  .txt2 {
    font-size: 1.2rem;
  }
  .txt3 {
    font-size: 1.2rem;
  }

  .nav-link {
    font-size: 1.4rem;
  }

  .socials-icons-list {
    /* flex-direction: column;
    gap: 0px; */
  }

  .hero-imgs {
    height: 89vh;
  }
}

/********************************/
/* BELOW  1160px (Smaller desktops)*/
/********************************/
@media (max-width: 73em) {
  .card-head-txt {
  }

  .card-body {
  }

  .card-body {
    font-size: 2.4rem;
    max-width: 40rem;
    padding: 2.4rem 0.8rem;
  }

  .program-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8rem;
    column-gap: 12.8rem;
  }

  .program-card {
    padding: 2rem 1.6rem;
  }

  .about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 6.4rem;
    column-gap: 9.6rem;

    margin-top: 3.2rem;
  }

  .all-hero-section {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .hero-header {
    align-items: center;
  }

  .socials-hide {
    display: none;
  }

  .head-of-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
  }

  .hero-imgs {
    height: 80vh;
  }

  .news-section {
    flex-direction: column;
    max-width: 90%;
    margin: 0 auto;

    justify-content: center;
    align-items: center;
  }
  /* 
  .grey-long-divider {
    align-self: stretch;
    width: 0.1rem;
    background-color: #888;
    align-content: center;
    margin-top: 12rem;
    max-width: 50rem;
  } */

  .parent-icon {
    margin-bottom: 0.9rem;
    /* margin-top: 12rem; */
  }

  .parent-feedback {
    margin-bottom: 1rem;
  }

  .news-head {
    margin-bottom: 0;
  }

  .events-calender {
  }

  .parents-comments {
    margin-bottom: 0.5rem;
  }

  .parent-icon {
    margin-top: 1rem;
  }

  .events-calender {
    margin-top: 3rem;
  }

  .program-header {
    text-align: center;
  }

  .divider {
    display: none;
  }

  .latest-news {
    margin-top: 5rem;
  }
  .events-calender {
    margin-top: 5rem;
  }

  .news {
    background-color: #f5f7fa;
    /* box-shadow: 0.1rem 0.3rem 0.9rem #9f9f9f; */
    border-radius: 4%;
    padding: 9rem 24rem;
  }

  .upcoming-events {
    background-color: #f5f7fa;
    /* box-shadow: 0.1rem 0.3rem 0.9rem #9f9f9f; */
    border-radius: 4%;
    padding: 9rem 24rem;
  }

  .cal-dates-space {
    margin-bottom: 5rem;
  }
}

/********************************/
/* BELOW  944px (Smaller desktops)*/
/********************************/
@media (max-width: 59em) {
  /* Hide destop navigation */
  .nav-main,
  .socials {
    display: none;
  }

  /* Show hambuger */
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 5rem;
    height: 5rem;

    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* The three lines */

  .hambuger {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hambuger span {
    display: block;

    width: 3.2rem;
    height: 0.3rem;

    background-color: #e8f0fa;
    border-radius: 10px;

    transition: all 0.3s ease;
  }

  /* MOBILE MENU */

  .mobile-menu {
    display: flex;

    position: absolute;

    top: 100%;
    right: 2rem;

    width: 25rem;

    padding: 2rem;

    background-color: #1a3a6b;

    flex-direction: column;
    gap: 1.8rem;

    border-radius: 0 0 1rem 1rem;

    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);

    /* Hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);

    transition: all 0.3s ease;

    z-index: 1000;
  }

  /* Menu becomes visible when JS adds .active */

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Mobile links */

  .mobile-menu a {
    color: #fdf2e9;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 0.8rem 1rem;
    transition: 0.2s ease;
  }

  .mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
  }

  /* Mobile social icon */

  .mobile-socials {
    display: flex;

    gap: 1.5rem;

    padding-top: 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-socials ion-icon {
    font-size: 2.5rem;
    color: #e8f0fa;
  }

  /* on to */

  .records {
    max-width: 99vw;
    padding: 0 2rem;
  }

  .program-cards {
    column-gap: 8rem;
  }

  .head-of-footer {
    grid-template-columns: repeat(2, 1fr);
    justify-items: left;
    align-items: left;
    column-gap: 8rem;

    padding: 0 5rem;
  }
}

/********************************/
/* BELOW  816px (Smaller desktops)*/
/********************************/
@media (max-width: 51em) {
  .program-cards {
    column-gap: 2rem;
  }

  .records {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    max-width: 70%;
  }

  .divider-close {
    display: none;
  }

  .ready {
    flex-direction: column;
    height: 15vh;
  }

  .card-body {
    font-size: 2rem;
  }
}

/********************************/
/* BELOW  688px (Smaller desktops)*/
/********************************/
@media (max-width: 43em) {
  .hero-imgs {
    height: 70vh;
    width: 100vw;
  }

  .all-hero-section {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .program-cards {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 8rem;

    column-gap: 8rem;
  }

  .latest-news-pair {
    flex-direction: column;
    justify-content: center;
  }

  .news-img {
    border-radius: 50%;
  }

  .news-text {
    text-align: center;
  }

  .hero-welcome {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 7.4rem;
  }

  .h-txt {
    font-size: 2rem;
  }
  .hero-btn {
    display: grid;
    grid-template-columns: 1fr;
    /* align-content: center;
    justify-content: center; */
  }

  .btn-1 {
    margin-bottom: 3rem;
  }
  .remove-space {
    margin-right: 0;
  }

  .card-body {
    max-width: 30rem;
    padding: 2.4rem 0rem;
  }

  .ready-head-txt {
    font-size: 3.3rem;
  }

  .ready-txt {
    margin-bottom: 1.2rem;
  }

  .about-cards {
    /* display: grid; */
    grid-template-columns: 1fr;
    /* row-gap: 6.4rem;
    column-gap: 9.6rem;

    margin-top: 3.2rem; */
  }
}

/********************************/
/* BELOW  576px (Smaller desktops)*/
/********************************/
@media (max-width: 36em) {
  /* .hero-imgs {
    height: 70vh;
    width: 100vw;
  } */

  .all-hero-section {
    left: -4%;
  }

  .news {
    border-radius: 15px;
    padding: 9rem 14rem;
  }

  .upcoming-events {
    border-radius: 15px;
    padding: 9rem 14rem;
  }

  .ready {
    width: 90vw;
    height: 20vh;
  }

  .records {
    max-width: 85%;
  }

  .program-cards {
    row-gap: 5rem;

    column-gap: 3rem;
  }

  .Mainnav {
    height: 6vh;
  }

  /* .news-head {
    width: 8rem;

    max-width: 70%;
  } */

  .txt1,
  .txt2 {
    display: none;
  }

  .txt3 {
    text-align: center;
    max-width: 2rem;

    margin-top: 2rem;
  }

  .nav-dot {
    display: none;
  }

  .Mainnav {
    justify-content: space-between;
    height: 12rem;
  }

  .img-txt {
    margin-left: 2rem;
  }

  .menu-btn {
    margin-right: 2rem;
  }

  .logo {
    width: 7.7rem;
  }

  .logo-box::before {
    width: 80px;
    height: 80px;
  }
  .logo-box::after {
    width: 100px;
    height: 100px;
  }
}

/********************************/
/* BELOW  480px (Smaller desktops)*/
/********************************/
@media (max-width: 30em) {
  .why-header {
    text-align: center;
  }

  .program-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .txt3 {
    width: 9.5rem;
  }
  .Mainnav {
    height: 11vh;
  }

  .h-txt {
    margin-top: 1.5rem;
  }

  .hero-btn {
    margin-top: 2rem;
  }

  .cal-dates {
    flex-direction: column;
  }

  .news-h {
    text-align: center;
  }

  .full-date {
    text-align: center;
    display: block;
  }

  .ali-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .record-group {
    flex-direction: column;
  }

  .records {
    gap: 1rem;
  }

  .ready-txt {
    text-align: center;
  }

  .ready {
    width: 90vw;
    height: 30vh;
  }

  .head-of-footer {
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    align-items: center;
  }
}

/********************************/
/* BELOW  368px (Smaller desktops)*/
/********************************/
@media (max-width: 23em) {
  .hero-title {
    font-size: 4rem;
  }

  .h-txt {
    font-size: 1.5rem;
  }
}
