@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

/* =========================
   1. CSS Variables
   ========================= */
:root {
  /* Brand Colors */
  --primary: #1e90ff;
  --primary-dark: #0c4a8c;
  --accent: rgba(4, 244, 60, 0.8);
  --background: #ecf0f3;
  --white: #fff;
  --footer-background: rgba(7, 41, 77, 0.9);
  --overlay: rgba(4, 9, 30, 0.5);
  --overlay-strong: rgba(4, 9, 30, 0.7);
  --motto-bg: #cbd5e1;
  --para-color: #4e4e4e;
  --logo-bg: rgb(45, 58, 84);
  --newFooter-bg: rgb(93, 163, 239);
  --socials-bg: rgba(4, 244, 60, 0.8);

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 10px;

  /* Box Shadows */
  --shadow-accent: 2px 3px var(--accent);
  --shadow-primary-dark: 2px 3px var(--primary-dark);
  --shadow-primary: 2px 5px rgba(30, 144, 255, 0.6);

  /* Font Sizes */
  --font-xs: 0.8rem;
  --font-sm: 1rem;
  --font-md: 1.1rem;
  --font-lg: 1.5rem;
  --font-xl: 3.25rem;

  /* Padding */
  --padding-xs: 0.25rem;
  --padding-sm: 0.5rem;
  --padding-md: 1rem;
  --padding-lg: 1.25rem;
  --padding-xl: 6.25rem;

  /* Margins */
  --margin-sm: 0.625rem;
  --margin-md: 1.25rem;
  --margin-lg: 6.25rem;

  /* Heading Color */
  --heading-color: var(--primary-dark);
}

/* =========================
   2. Reset & Base Styles
   ========================= */
*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
button,
textarea {
  font: inherit;
}

a:any-link {
  color: var(--white);
}

/* =========================
   3. Typography
   ========================= */
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  min-height: 100vh;
  overflow-x: hidden;
}

h1:not(.hero_section h1, .sub-header h1),
h2:not(.hero_section h2, .sub-header h2),
h3:not(.hero_section h3, .sub-header h3) {
  color: var(--heading-color);
}

.logo img {
  height: 45px;
  width: 45px;
  border-radius: 1.5px;
}

.header-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding-sm);
  background: var(--logo-bg);
  color: var(--primary);
  font-size: var(--font-xs);
}

/* =========================
   4. Navigation
   ========================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding-sm);
}

nav .sch-name {
  text-transform: uppercase;
  color: var(--white);
  font-weight: 900;
}

.nav_links {
  flex: 1;
  text-align: right;
}

.nav_links ul li {
  display: inline-block;
  padding-right: var(--padding-sm);
  position: relative;
}

.nav_links ul li a {
  text-transform: uppercase;
  font-weight: 900;
}

.nav_links ul li::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--primary);
  display: block;
  margin: auto;
}

.nav_links ul li:hover::after {
  width: 100%;
  transition: 0.5s;
}
/* Hover or touch effect */
nav ul li a:hover,
nav ul li a:focus {
  color: var(--accent);
  transform: scale(1.1);
  text-decoration: none;
}

/* Sticky nav initial state */
nav.sticky {
  position: fixed;
  top: -80px;
  left: 0;
  width: 100%;
  background: var(--primary);
  z-index: 100;
  transition: transform 1s ease-in-out;
}

/* When nav is visible */
nav.sticky.visible {
  transform: translateY(80px);
}

nav.sticky.visible a:hover {
  color: var(--accent);
  transition: color 0.5s ease-in-out;
}

nav .fa {
  display: none;
}

/* =========================
   6. Layout & Containers
   ========================= */
main {
  width: 90%;
  text-align: center;
  margin: var(--margin-lg) auto auto;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.highlight {
  position: relative;
}

.highlight::before {
  content: "";
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
}

/* =========================
   7. Buttons
   ========================= */
.more-info {
  text-align: left;
}

.more-btn {
  display: inline-block;
  margin: 2.5% 0 2.5% 5%;
  padding: 0.5em;
  border: none;
  border-radius: 0.3em;
  background: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
  box-shadow: var(--shadow-accent);
}

.more-btn:hover {
  background: var(--accent);
  box-shadow: none;
  transition: 1s;
}

.red-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-primary-dark);
}

.red-btn:hover {
  background: var(--primary-dark);
  color: var(--accent);
  box-shadow: none;
  transition: 1s;
}

/* =========================
   8. Scroll to Top Button & Socials
   ========================= */
.scrollToTopBtn {
  position: fixed;
  bottom: 50px;
  right: 5px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  z-index: 1000;
  transition: all 0.6s ease-in-out;
}

.scrollToTopBtn.showBtn {
  opacity: 1;
}

.scrollToTopBtn:hover {
  background-color: #0674f7;
}

.fixed-socials {
  position: fixed;
  top: 50%;
  left: 0.5%;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  z-index: 1000;
}

.fixed-socials a {
  background: var(--socials-bg);
  color: var(--background);
  border: none;
  border-radius: 0.15em;
  padding: 0.2em;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.fixed-socials a:hover {
  background: var(--primary);
}

/* =========================
   9. Home Page - Hero Section
   ========================= */
.hero_section {
  min-height: 60vh;
  width: 100%;
  background-position: center;
  background-size: cover;
  background-image: url(../images/home-carousel/classes-1.jpg); /* Default image */
  opacity: 0; /* hidden at start */
  position: relative;
  overflow: hidden;
  transition: opacity 1s ease-in-out;
}
.hero_section.ready {
  opacity: 1; /* show when JS loads */
}

.prevBtn,
.nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 144, 255, 0.4);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.1em;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
  display: none;
  z-index: 1000;
}

.prevBtn {
  left: 5px;
}

.nextBtn {
  right: 5px;
}

.hero_section:hover .prevBtn,
.hero_section:hover .nextBtn {
  display: block;
}

.hero_text-box {
  width: 50%;
  position: absolute;
  top: 30%;
  left: 27%;
  text-align: left;
  color: var(--white);
  font-size: var(--font-md);
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 1s ease-in-out, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero_text-box.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hero-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: var(--margin-sm);
  background: #bbb;
  cursor: pointer;
  transition: background 0.5s;
}

.hero-dots span.active {
  background: var(--accent);
}

/* =========================
   10. Introduction & Motto
   ========================= */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--margin-md);
  position: relative;
  margin-bottom: var(--margin-lg);
  background: rgba(30, 144, 255, 0.1);
  padding: var(--padding-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-primary);
}

.intro-grid::after {
  content: "";
  position: absolute;
  top: -30px;
  left: 3px;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.intro-grid img {
  border-radius: var(--radius-sm);
}

.intro-grid p {
  line-height: 1.5;
  color: var(--para-color);
  text-align: justify;
}

.motto-col {
  flex-basis: 31%;
  background-color: var(--motto-bg);
  border: 1px solid var(--motto-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--margin-md);
  box-shadow: var(--shadow-primary);
}

.motto-col h3,
.motto-col p {
  text-align: left;
  padding: 0.75rem;
}

.motto-col p {
  color: var(--para-color);
  text-align: justify;
}

/* =========================
   11. Admin Section
   ========================= */
.admin {
  margin: var(--margin-lg) 0;
}

.admin .grid-content,
.admin .grid-img {
  max-width: 50%;
  text-align: left;
  padding: var(--padding-sm);
}

.grid-content p {
  text-align: justify;
}

.grid-img .title {
  margin-top: var(--margin-sm);
}

/* Mobile */
@media screen and (max-width: 768px) {
  .admin .grid-content,
  .admin .grid-img {
    max-width: 100%;
  }
}

/* Tablet */
@media screen and (min-width: 680px) and (max-width: 1024px) {
  .admin .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   12. Facilities
   ========================= */
.facilities {
  margin-bottom: var(--margin-lg);
}

.facilities-col {
  flex-basis: 32%;
  border-radius: var(--radius-md);
  margin-bottom: var(--margin-md);
  position: relative;
  overflow: hidden;
}

.layer {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s;
}

.layer:hover {
  background: rgb(172, 200, 229, 0.7);
}

.layer h3,
.layer p {
  font-weight: 800;
  font-size: var(--font-lg);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: 0.5s;
}

.layer:hover h3,
.layer:hover p {
  bottom: 49%;
  opacity: 1;
}

.facilities-col img {
  height: 100%;
}

/* =========================
   13. Testimonials
   ========================= */

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  background-image: linear-gradient(
      var(--overlay-strong),
      var(--overlay-strong)
    ),
    url(../images/prize-giving/agm-6.jpeg);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-md);

  position: relative;
}

.testimonial__swiper {
  padding-bottom: 3rem;
}

.testimonial__title {
  margin: 2rem 0;
  color: var(--white) !important;
}

.testimonial__card {
  width: 280px;
  background-color: var(--primary);
  box-shadow: var(--shadow-primary);
  padding: 2rem 1.5rem 3rem;
  border-radius: 1.5rem;
  text-align: center;
}

.testimonial__image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--white);
  margin: 0 auto 0.5rem;
}

.testimonial__name {
  font-size: var(--font-md);
  margin-bottom: var(--margin-sm);
}

.testimonial__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial__stars {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.testimonial__stars i {
  font-size: var(--font-md);
  color: var(--accent);
}

.testimonial__number {
  font-size: var(--font-md);
}

.testimonial__description {
  color: #505050;
  line-height: 1.5;
  text-align: left;
  padding-left: var(--padding-md);
}

/* Swiper class */
.testimonial .swiper-pagination-bullets {
  bottom: 1.5rem; /* absolutely positioned*/
}

.testimonial .swiper-pagination-bullet {
  background-color: var(--accent);
  transition: opacity 0.4s;
}

/*=============== BREAKPOINTS ===============*/

/* For small devices */
@media screen and (max-width: 300px) {
  .testimonial__card {
    width: 240px;
    padding-inline: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 640px) {
  .testimonial__swiper {
    max-width: 640px;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .testimonial__swiper {
    min-width: 760px;
  }

  .testimonial__card {
    width: 330px;
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
  }
}

/* =========================
   14. Call to Action
   ========================= */
.cta {
  margin: var(--margin-lg) auto;
  padding: 100px 0;
  border-radius: var(--radius-md);
  background-image: linear-gradient(var(--overlay), var(--overlay)),
    url(../images/views/view-1.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
}

.cta h4 {
  color: var(--white);
  padding: 0;
  font-size: var(--font-lg);
}

/* =========================
   15. Footer
   ========================= */
footer {
  margin-top: 150px;
  width: 100%;
  background: var(--newFooter-bg);
}

.footer-sec article {
  padding: 50px;
  margin-bottom: 0.5em;
}

.footer-sec article h4 {
  margin-bottom: 0.5rem;
}

.footer-sec p,
.footer-sec li {
  line-height: 1.5;
}

footer a:hover {
  text-decoration: underline; /* Blue underline appears on hover */
  text-decoration-color: blue;
}

.socials [class^="fa"] {
  padding-right: 1rem;
  cursor: pointer;
  color: var(--primary);
}

.socials [class^="fa"]:hover {
  color: var(--accent);
  transition: 0.5s;
}

.author {
  font-size: 0.75rem;
  font-weight: 900;
  font-style: italic;
  text-align: right;
  padding: 2.5%;
}

.author_link {
  text-decoration: underline;
}

.copyright-sec {
  display: flex;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  color: var(--white);
  background: var(--primary);
  font-size: 0.75rem;
  padding: 0.25em 1.5em;
  z-index: 3;
}

/* =========================
   16. Sub-header & About
   ========================= */
.sub-header {
  height: 60vh;
  width: 100%;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.sub-header > h1 {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
}

/* PARA-COL & IMG-COL */
.col-content {
  flex: 0 0 48%;
  padding: 0 15px;
  text-align: justify;
}

.col-img {
  flex: 0 0 33.3333%;
  padding: 0 15px;
  text-align: left;
}

.col-content p {
  color: #505050;
  line-height: 1.5;
  padding: 30px 0;
}

.col-content a {
  margin-left: 0;
}

/* About */
.about-header {
  background-image: linear-gradient(var(--overlay), var(--overlay)),
    url(../images/header-backgrd/about_bckgrd.jpg);
  background-position: center;
  background-size: cover;
}

.about-main {
  width: 90%;
}

.about-main > h1 {
  color: var(--heading-color);
  position: relative;
}

.about-main h1::before {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  margin-left: 2px;
}

/* =========================
   17. Departments
   ========================= */
.departs-header {
  background-image: linear-gradient(
      var(--overlay-strong),
      var(--overlay-strong)
    ),
    url(../images/header-backgrd/departs-header.jpg);
  background-position: center;
  background-size: cover;
}

.departs-main {
  width: 80%;
}

.departs-main article {
  border-bottom: 1px solid rgba(30, 144, 255, 0.4);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  padding-bottom: 5%;
}

.title h4 {
  color: #1d2025;
}

.col-content h4 {
  font-size: 1.375rem;
}

.title h5 {
  font-size: 1rem;
  color: var(--heading-color);
}

.col-img img {
  border-radius: var(--radius-sm);
}

.col-img .title {
  margin-top: 1.8rem;
}
.col-img .title h5 {
  margin-top: 0.75rem;
}

.col-img .title h6 {
  font-style: italic;
}

/* =========================
   18. Contact
   ========================= */
.contact-header {
  background-image: linear-gradient(
      var(--overlay-strong),
      var(--overlay-strong)
    ),
    url(../images/header-backgrd/cont_banner2.jpg);
  background-position: center;
  background-size: cover;
}

.location {
  width: 80%;
  margin: auto;
  padding: 80px 0;
}

.location iframe {
  width: 100%;
  height: 400px;
}

.contact-us {
  width: 80%;
  margin: auto;
}

.contact-col {
  flex: 0 0 48%;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 10%;
}

.contact-col > div {
  display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  text-align: left;
}

.contact-col div [class^="fa"] {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-right: 1rem;
  display: grid;
  place-content: center;
  width: 50px;
  height: 50px;
  border: thin solid gray;
  border-radius: 50%;
}

.contact-col div h5 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
  font-weight: 400;
}

.contact-col div p {
  padding: 0;
  font-size: 0.875rem;
  color: #555;
}

.contact-col input,
.contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: none;
  border-radius: 4px;
  background-color: var(--footer-background);
}

.contact-col form {
  padding: 1rem;
}

.thankyou_modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.thankyou_container {
  text-align: initial;
  position: relative;
  max-width: 600px;
  margin: 0 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.thankyou_container h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: var(--margin-md);
}

.thankyou_container p,
.thankyou_container ul {
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: var(--margin-md);
}

.close_icon {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: #0674f7;
  font-size: 1.5rem;
  cursor: pointer;
}

.show-modal {
  opacity: 1;
  visibility: visible;
}

/* =========================
   19. Gallery
   ========================= */
.gallery-header {
  background-image: linear-gradient(var(--overlay), var(--overlay)),
    url(../images/header-backgrd/photo-collage.jpg);
  background-position: center;
  background-size: cover;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.gallery > div {
  flex: 0 0 calc(33.3333% - 1rem);
  margin-bottom: var(--margin-sm);
  position: relative;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.gallery p {
  font-size: var(--font-sm);
  color: #112a46;
}

.thankyou-header {
  height: 40vh;
  background-image: linear-gradient(var(--overlay), var(--overlay)),
    url(../images/header-backgrd/thankyou-bcgrd.jpg);
  background-position: center;
  background-size: cover;
}

.thankyou-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thankyou-container h1 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.thankyou-container p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.thankyou-container .quote {
  font-style: italic;
  color: #555;
  margin-top: 30px;
}

/* =========================
   20. Responsive Design
   ========================= */
@media screen and (max-width: 680px) {
  .nav_links {
    position: absolute;
    top: 38px;
    right: -45vw; /* Hide off-screen */
    width: 42vw;
    height: 100vh;
    background: var(--shadow-primary-dark);
    text-align: left;
    z-index: 2;
    transition: 1s;
  }

  .nav_links ul li {
    display: block;
    padding: var(--padding-sm);
  }

  nav .fa {
    display: block;
    color: var(--white);
    font-size: 1.325rem;
    cursor: pointer;
  }

  .nav_links ul li:hover::after {
    display: none;
  }

  .row {
    flex-direction: column;
  }

  .col-content,
  .col-img {
    max-width: 100%;
  }

  .contact-col div [class^="fa"] {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border: none;
  }

  .contact-col div h5 {
    font-size: 1rem;
  }

  .location {
    width: 100%;
  }

  main.contact-main {
    width: 100%;
  }

  .hero_section:hover .prevBtn,
  .hero_section:hover .nextBtn {
    display: none;
  }
}
