@media screen and (max-width: 1200px) {
   .welcome-content {
      flex-direction: column;
      align-items: center;
   }
   
   .headteacher-img, .welcome-message {
      width: 100%;
   }
   
   .headteacher-img {
      max-width: 400px;
      margin-bottom: 30px;
   }
}

@media screen and (max-width: 1000px) {
   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 45%;
   }

   .divThree .firstSec .imgSec::after{
      top: 0%;
      opacity: 1;
   }
   
   .classes-grid, .achievements-list {
      grid-template-columns: 1fr;
   }
   
   .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}


@media screen and (max-width: 900px) {
   .coverDiv .mainHeader .navItems{
      width: 0%;
      position: absolute;
      top: 100px;
      right: 0;
      flex-direction: column;
      background-color: var(--blue-black);
      backdrop-filter: blur(5px);
      padding-block: 20px;
      transition: 0.5s;
      z-index: 5;
   }

   .coverDiv .mainHeader .hamburgerIcon{
      display: flex;
   }
   
   .coverDiv .mainHeader {
      flex-direction: column;
      height: auto;
      padding: 15px;
   }
   
   .coverDiv .mainHeader .logoSec {
      width: 100%;
      justify-content: center;
      margin-bottom: 15px;
   }
   
   .coverDiv .mainDiv {
      min-height: calc(100vh - 150px);
   }
}


@media screen and (max-width: 700px) {
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 60px;
   }

   .coverDiv .mainDiv .mainSec>p{
      font-size: 1.2rem;
   }

   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 70%;
   }

   .divFive .firstSec .subSec{
      width: 77%;
   }

   .divFive .firstSec .subSec:first-child{
      margin-left: 220%;
   }
   
   .gallery-grid {
      grid-template-columns: 1fr;
   }

}


@media screen and (max-width: 600px){
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 50px;
   }
   
   .school-name h1 {
      font-size: 1.3rem;
      text-align: center;
   }
}


@media screen and (max-width: 500px){
   :root{
      --rem2: 1.9rem; 
      --rem1-3: 1.2rem;
      --rem1-1: 1rem;
      --rem1-05: 0.95rem;
   }

   .coverDiv .mainHeader{
      padding-inline: max(5%, 30px);
   }

   .coverDiv .mainDiv .mainSec>h1{
      font-size: 43px;
   }

   .coverDiv .mainDiv .mainSec>p{
      font-size: 1rem;
   }

   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 90%;
   }

   .divTwo .firstSec .courseSec{
      margin-bottom: 20px;
   }
   
   .announcement-item, .class-item, .achievement-item {
      padding: 15px;
   }

}


@media screen and (max-width: 400px){
   .coverDiv .mainHeader .logoSec>i{
      font-size: x-large;
   }

   .coverDiv .mainHeader .logoSec>span{
      font-size: medium;
   }

   .coverDiv .mainHeader .hamburgerIcon>i{
      font-size: large;
   }

   .coverDiv .mainDiv .mainSec>h1{
      font-size: 37px;
   }

   .divTwo>section, .divThree>section, .divFour>section, .divFive>section, .divSeven>section{
      width: 90%;
   }
   
   .welcome-section>section, .announcements-section>section, 
   .classes-section>section, .gallery-section>section, 
   .achievements-section>section {
      width: 90%;
   }

   .divFive .firstSec .subSec{
      flex-direction: column-reverse;
   }

   .divFive .firstSec .subSec .quoteSec{
      width: 100%;

   }

   .divFive .firstSec .subSec .quoteSec>p{
      font-size: small;
   }

   .divFive .firstSec .subSec .imgSec{
      margin-top: 5px;
   }

   .divFive .firstSec .subSec .imgSec{
      width: 40px;
      height: 40px;
   }
   
   .logo-placeholder span {
      font-size: medium;
   }
   
   .school-name h1 {
      font-size: 1.1rem;
   }

}


@media screen and (max-width:350px){
   .coverDiv .mainHeader{
      padding-inline: max(5%, 20px);
   }

   .coverDiv .mainDiv .mainSec>h1{
      font-size: 32px;
   }

   .coverDiv .mainDiv .mainSec>p{
      padding-block: 15px;
   }

   .coverDiv .mainDiv .mainSec>a{
      padding: 8px 40px 8px;
   }

   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 100%;
   }
   
   .gallery-item p {
      font-size: 0.9rem;
   }

}


@media screen and (max-width:300px){
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 30px;
   }

   .coverDiv .mainDiv .mainSec>p{
      font-size: 1rem;
   }

   .coverDiv .mainDiv .mainSec>a{
      padding: 7px 30px 7px;
   }

   .divSeven .firstSec>a{
      margin-inline: 5px;
   }
   
   .school-name h1 {
      font-size: 1rem;
   }
   
   .motto, .location {
      font-size: 0.8rem !important;
   }

}


@media screen and (max-width:280px){
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 28px;
   }
}

@media screen and (max-height:400px){
   .coverDiv .mainDiv .mainSec{
      margin-block: 25%;
   }

   @keyframes topSlide {
      from{margin-top: -20%; opacity: 0;}
      to{margin-top: 25%; opacity: 1;}
   }
}
@media screen and (max-width: 1200px) {
   .welcome-content {
      flex-direction: column;
      align-items: center;
   }
   
   .headteacher-img, .welcome-message {
      width: 100%;
   }
   
   .headteacher-img {
      max-width: 400px;
      margin-bottom: 30px;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 2.5rem;
   }
}

@media screen and (max-width: 1000px) {
   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 45%;
   }

   .divThree .firstSec .imgSec::after{
      top: 0%;
      opacity: 1;
   }
   
   .classes-grid, .achievements-list {
      grid-template-columns: 1fr;
   }
   
   .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 2.2rem;
   }
}


@media screen and (max-width: 900px) {
   .coverDiv .mainHeader .navItems{
      width: 0%;
      position: absolute;
      top: 100px;
      right: 0;
      flex-direction: column;
      background-color: var(--blue-black);
      backdrop-filter: blur(5px);
      padding-block: 20px;
      transition: 0.5s;
      z-index: 5;
   }

   .coverDiv .mainHeader .hamburgerIcon{
      display: flex;
   }
   
   .coverDiv .mainHeader {
      flex-direction: column;
      height: auto;
      padding: 15px;
   }
   
   .coverDiv .mainHeader .logoSec {
      width: 100%;
      justify-content: center;
      margin-bottom: 15px;
   }
   
   .coverDiv .mainDiv {
      min-height: calc(100vh - 150px);
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 2rem;
   }
}


@media screen and (max-width: 700px) {
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 60px;
   }

   .coverDiv .mainDiv .mainSec>p{
      font-size: 1.2rem;
   }

   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 70%;
   }

   .divFive .firstSec .subSec{
      width: 77%;
   }

   .divFive .firstSec .subSec:first-child{
      margin-left: 220%;
   }
   
   .gallery-grid {
      grid-template-columns: 1fr;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 1.8rem;
      line-height: 1.3;
   }
   
   .divSix .overlay .mainSec>a {
      padding: 12px 40px;
   }

}


@media screen and (max-width: 600px){
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 50px;
   }
   
   .school-name h1 {
      font-size: 1.3rem;
      text-align: center;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 1.6rem;
   }
   
   .divSeven .firstSec>a {
      width: 45px;
      height: 45px;
      margin-inline: 10px;
      font-size: 1.1rem;
   }
}


@media screen and (max-width: 500px){
   :root{
      --rem2: 1.9rem; 
      --rem1-3: 1.2rem;
      --rem1-1: 1rem;
      --rem1-05: 0.95rem;
   }

   .coverDiv .mainHeader{
      padding-inline: max(5%, 30px);
   }

   .coverDiv .mainDiv .mainSec>h1{
      font-size: 43px;
   }

   .coverDiv .mainDiv .mainSec>p{
      font-size: 1rem;
   }

   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 90%;
   }

   .divTwo .firstSec .courseSec{
      margin-bottom: 20px;
   }
   
   .announcement-item, .class-item, .achievement-item {
      padding: 15px;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 1.4rem;
   }
   
   .divSix .overlay .mainSec>a {
      padding: 10px 35px;
      font-size: 0.9rem;
   }
   
   .divSeven .firstSec>a {
      width: 40px;
      height: 40px;
      margin-inline: 8px;
      font-size: 1rem;
   }

}


@media screen and (max-width: 400px){
   .coverDiv .mainHeader .logoSec>i{
      font-size: x-large;
   }

   .coverDiv .mainHeader .logoSec>span{
      font-size: medium;
   }

   .coverDiv .mainHeader .hamburgerIcon>i{
      font-size: large;
   }

   .coverDiv .mainDiv .mainSec>h1{
      font-size: 37px;
   }

   .divTwo>section, .divThree>section, .divFour>section, .divFive>section, .divSeven>section{
      width: 90%;
   }
   
   .welcome-section>section, .announcements-section>section, 
   .classes-section>section, .gallery-section>section, 
   .achievements-section>section {
      width: 90%;
   }

   .divFive .firstSec .subSec{
      flex-direction: column-reverse;
   }

   .divFive .firstSec .subSec .quoteSec{
      width: 100%;

   }

   .divFive .firstSec .subSec .quoteSec>p{
      font-size: small;
   }

   .divFive .firstSec .subSec .imgSec{
      margin-top: 5px;
   }

   .divFive .firstSec .subSec .imgSec{
      width: 40px;
      height: 40px;
   }
   
   .logo-placeholder span {
      font-size: medium;
   }
   
   .school-name h1 {
      font-size: 1.1rem;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 1.3rem;
   }
   
   .divSeven .firstSec>a {
      width: 35px;
      height: 35px;
      margin-inline: 6px;
      font-size: 0.9rem;
   }

}


@media screen and (max-width:350px){
   .coverDiv .mainHeader{
      padding-inline: max(5%, 20px);
   }

   .coverDiv .mainDiv .mainSec>h1{
      font-size: 32px;
   }

   .coverDiv .mainDiv .mainSec>p{
      padding-block: 15px;
   }

   .coverDiv .mainDiv .mainSec>a{
      padding: 8px 40px 8px;
   }

   .divTwo .firstSec .courseSec, .divThree .firstSec .imgSec, .divFour .firstSec .subSec{
      width: 100%;
   }
   
   .gallery-item p {
      font-size: 0.9rem;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 1.2rem;
   }
   
   .divSeven .firstSec>a {
      width: 32px;
      height: 32px;
      margin-inline: 5px;
      font-size: 0.8rem;
   }

}


@media screen and (max-width:300px){
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 30px;
   }

   .coverDiv .mainDiv .mainSec>p{
      font-size: 1rem;
   }

   .coverDiv .mainDiv .mainSec>a{
      padding: 7px 30px 7px;
   }

   .divSeven .firstSec>a{
      margin-inline: 5px;
   }
   
   .school-name h1 {
      font-size: 1rem;
   }
   
   .motto, .location {
      font-size: 0.8rem !important;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 1.1rem;
   }
   
   .divSeven .firstSec>p {
      font-size: 0.9rem;
   }

}


@media screen and (max-width:280px){
   .coverDiv .mainDiv .mainSec>h1{
      font-size: 28px;
   }
   
   .divSix .overlay .mainSec>h1 {
      font-size: 1rem;
   }
   
   .divSeven .firstSec>a {
      width: 30px;
      height: 30px;
      margin-inline: 3px;
   }
}

@media screen and (max-height:400px){
   .coverDiv .mainDiv .mainSec{
      margin-block: 25%;
   }

   @keyframes topSlide {
      from{margin-top: -20%; opacity: 0;}
      to{margin-top: 25%; opacity: 1;}
   }
   
   .divSix {
      min-height: 300px;
   }
}

@media screen and (max-width: 1000px) {
   .status-grid {
      grid-template-columns: 1fr;
      gap: 30px;
   }
}

@media screen and (max-width: 768px) {
   .status-item {
      padding: 30px 20px;
   }
   
   .status-grid {
      grid-template-columns: 1fr;
   }
   
   .cta-buttons {
      flex-direction: column;
      align-items: center;
   }
   
   .cta-btn {
      width: 100%;
      max-width: 300px;
      text-align: center;
   }
}

@media screen and (max-width: 600px) {
   .status-section>section{
      width: 95%;
   }
   
   .status-comparison {
      padding: 20px 15px;
   }
   
   .comparison-table table {
      font-size: 0.9rem;
   }
   
   .comparison-table th,
   .comparison-table td {
      padding: 10px 8px;
   }
   
   .cta-content h2 {
      font-size: 1.8rem;
   }
   
   .cta-content p {
      font-size: 1rem;
   }
}

@media screen and (max-width: 480px) {
   .status-grid {
      grid-template-columns: 1fr;
   }
   
   .status-item {
      padding: 25px 15px;
   }
   
   .status-icon {
      width: 60px;
      height: 60px;
      font-size: 1.5rem;
   }
   
   .status-item h3 {
      font-size: 1.5rem;
   }
   
   .cta-content {
      padding: 0 10px;
   }
}