/* IMPORTING FONTS */
@import url("https://fonts.googleapis.com/css2?family=Courgette&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&family=Ruluko&display=swap");

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: Poppins, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f9fafb;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===============================  NAVIGATION BAR  =============================== */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f9fafb;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

.nav-bar .nav-container {
  display: flex;
}

#menu-open {
  display: none;
  cursor: pointer;
}

#menu-close {
  display: none;
  cursor: pointer;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6vw;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  text-decoration: none !important;
  color: inherit;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.school-logo {
  width: 85px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0px;
}

.school-name {
  font-size: 19px;
  font-weight: bold;
  background: linear-gradient(180deg, #b38b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  position: relative;
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a.nav-link {
  text-decoration: none;
  color: #0c0c0c;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

nav ul li a.nav-link:hover,
nav ul li a.nav-link.active {
  color: #d7bb00;
  transition: color 0.3s ease-in-out;
}

nav ul li a.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #d7bb00;
  transition: width 0.3s ease-in-out;
}

nav ul li a.nav-link:hover::after,
nav ul li a.nav-link.active::after {
  width: 100%;
}

/* ---------------------------------- Apply Button ---------------------------------- */

#apply-btn {
  background-color: #1e3ea8;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  display: inline-block;
}

#apply-btn:hover {
  background-color: #f1f8fd;
  color: #1e3ea8;
  transition: 0.3s ease-in-out;
}

/* ===============================  HOMEPAGE SECTION  =============================== */

#home {
  background-image: linear-gradient(
      rgba(64, 150, 225, 0.332),
      rgba(200, 189, 115, 0.263)
    ),
    url("../images/background-blur.png");
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 40px;
}

#home h1 {
  font-size: 2.6rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

#home h2 {
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 20px;
}

#home p {
  width: 60%;
  color: #f1f8fd;
  font-size: 0.9rem;
  line-height: 25px;
  font-weight: 400;
  margin-bottom: 40px;
}

#home.btn {
  margin-top: 30px;
}

#home a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 13px 35px;
  background-color: #ffffff;
  font-weight: 500;
  border-radius: 6px;
}

#home a.blue-btn {
  color: #ffffff;
  background-color: #1e3ea8;
  transition: 0.3s ease-in-out;
}

#home a.blue-btn:hover {
  color: #1e3ea8;
  background-color: #ffffff;
}

#home a.yellow-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #d7bb00, #f1d74c);
  transition: all 0.3s ease-in-out;
}

#home a.yellow-btn:hover {
  color: #d7bb00;
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
}

/* ===============================  ADMISSION PAGE SECTION  =============================== */

#admissions {
  background-color: #f9fafb;
  margin: 5vh 0;
  padding: 5vh 8vw;
  box-sizing: border-box;
  margin-bottom: 28px;
}

.info-container {
  max-width: 800px;
  margin: 0 auto 5vh auto;
  text-align: center;
}

.info-container h1 {
  font-size: 2rem;
  font-weight: 650;
  color: #1e3ea8;
  margin-bottom: 10px;
}

.info-container p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Cards Section Inside Admission */
.admission-cards-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 4vh;
  margin-bottom: -25px;
}

.admission-card {
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #d7bb00, #f1d74c) border-box;
  border-left: 4px solid transparent;
  border-radius: 10px;
  padding: 20px 20px 20px 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: start;
}

.admission-card .icon i {
  font-size: 2.3rem;
  background: linear-gradient(135deg, #d7bb00, #f1d74c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 15px;
}

.admission-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e3ea8;
  margin-bottom: 10px;
}

.admission-card p {
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
}

/* ===============================  Excellence SECTION  =============================== */

#excellence-page {
  background: linear-gradient(135deg, #2448a0, #387aea);
  border-radius: 20px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 60px auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#excellence-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ffffff;
}

#excellence-page .students,
#excellence-page .educators,
#excellence-page .pass-rate,
#excellence-page .years-experience {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 200px;
  min-width: 180px;
}

.icons {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #d7bb00, #f1d74c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icons i {
  font-size: 28px;
  color: #333;
}

.counter {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

#excellence-page p {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 300;
  color: #f9fafb;
}

/* ===============================  ABOUT PAGE SECTION  =============================== */

#staff {
  background-image: linear-gradient(
      rgba(64, 150, 225, 0.497),
      rgba(200, 189, 115, 0.352)
    ),
    url("../images/academic-staff_blur-1.png");
  background-repeat: no-repeat; /* Prevent tiling */
  background-size: cover; /* Stretch image to cover the area */
  background-position: center; /* Center the image */

  width: 100%;
  padding: 5vh 8vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-container {
  margin: 0 auto;
  text-align: left;
}

.content-container h1 {
  font-size: 2rem;
  font-weight: 650;
  color: #f9fafb;
  margin-bottom: 10px;
  text-align: center;
  margin-top: 30px;
}

.content-container h2 {
  font-size: 1.4rem;
  font-weight: 650;
  color: #1e3ea8;
  margin-bottom: 20px;
  text-align: center;
}

.content-container p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f9fafb;
  margin-bottom: 60px;
  margin-left: 100px;
  margin-right: 100px;
  text-align: center;
}

/* ===============================  SCHOOL LEADERS SECTION  =============================== */

.leaders-images {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 8vw;
  gap: 20px;
  cursor: pointer;
}

.leaders-images figure {
  position: relative;
  width: 280px;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.leaders-images figure p {
  margin: 10px 0;
  font-weight: bold;
  font-size: 0.9rem;
  color: #1e3ea8;
}

.leaders-images figure img {
  width: 100%;
  height: 50% !important;
  display: block;
  transition: transform 0.4s ease;
}

.leaders-images figure::after {
  content: attr(data-message);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: #e7eaf0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
  box-sizing: border-box;
  transform: translateY(100%);
}

.leaders-images figure:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.leaders-images figure:hover::after {
  opacity: 1;
}

.leaders-images figure:hover img {
  transform: scale(1.05);
}

/* ===============================  SCHOOL ACEDEMIC CURRICULUM SECTION  =============================== */

#curriculum {
  background-color: #f9fafb;
  padding: 5vh 8vw;
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 20px;
}

#curriculum h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3ea8;
  margin-bottom: 10px;
  margin-top: 30px;
}

#curriculum h2 {
  font-size: 1.4rem;
  font-weight: 650;
  color: #1e3ea8;
  margin-bottom: 20px;
  text-align: center;
}

strong {
  color: #b38b00;
}

#curriculum p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  max-width: 1000px; /* wider than 800px */
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.curriculum-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.curriculum-card {
  position: relative;
  width: 100%;
  max-width: 366px;
  height: 550px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.15);
  transition: 0.5s;
  cursor: pointer;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  box-sizing: border-box;
  transition: 0.5s;
}

.card-face.face1 {
  background-size: cover;
  background-position: center;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  z-index: 1;
}
.card-face.face2 {
  background-color: #fff;
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: 0.5s;
  z-index: 2;
  text-align: left;
}

.curriculum-card:hover .card-face.face1 {
  transform: translateY(-100%);
}

.curriculum-card:hover .card-face.face2 {
  transform: translateY(0);
}
.card-face.face2 h3 {
  font-size: 1.1rem;
  color: #1e3ea8;
  margin-bottom: 1px;
}

.card-face.face2 ul {
  font-size: 0.9rem;
  color: #333;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem 0;
  text-align: left;
}

.card-face.face2 li {
  margin-bottom: 0;
  position: relative;
  left: 10px;
}

.card-face.face2 ul {
  list-style-position: inside;
  padding-left: 0;
}

.card-face.face2 p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  text-align: center;
  margin: 0.5rem 0 1rem 0;
}

/* ===============================  STUDENT RESOURCES SECTION  =============================== */

.resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4vh 8vw;
  gap: 30px;
  background: #e7eaf0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

.resources h1 {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1e3ea8;
  margin-bottom: 20px;
  margin-top: 30px;
}

.resources p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 60px;
  margin-left: 100px;
  margin-right: 100px;
  text-align: center;
}

.icon-container {
  flex: 1;
  min-width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 45px;
  padding-left: -50px;
}

.book-icon i {
  font-size: 10rem;
  background: linear-gradient(135deg, #d7bb00, #f1d74c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.download-buttons {
  flex: 2;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f1f1;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.download-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.download-btn {
  background-color: #1e3ea8;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.download-btn:hover {
  background-color: #152e81;
}

/* ===============================  CONTACT US SECTION  =============================== */

#contact {
  background-image: linear-gradient(
      rgba(64, 150, 225, 0.5),
      rgba(200, 189, 115, 0.35)
    ),
    url("../images/blur-school.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  padding: 5vh 8vw 100px;
  height: 110vh;
  box-sizing: border-box;
}

.contactUs h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #f9fafb;
  text-align: center;
  margin: 3px 0 20px;
}

.contact.info h3 {
  margin-bottom: 20px;
}

/* Grid container */
#contact-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 5fr 4fr;
  grid-template-areas:
    "form info"
    "form map";
  gap: 20px;
  margin-top: 20px;
}

.contact.form,
.contact.info,
.contact.map {
  border-radius: 6px;
  overflow: hidden;
}

.contact.form {
  grid-area: form;
  background: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
  padding: 40px;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.15);
}

.contact.info {
  grid-area: info;
  background: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
  padding: 40px;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.15);
  max-width: 400px;
}

.contact.map {
  grid-area: map;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.formBox {
  width: 100%;
  margin-top: 1.5rem;
}

.row50 {
  display: flex;
  gap: 20px;
}

.row100 {
  width: 100%;
}

.inputBox {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 15px;
}

.inputBox label {
  color: #1e3ea8;
  margin-bottom: 5px;
  font-weight: 600;
}

.inputBox input,
.inputBox textarea {
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 400;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.inputBox input::placeholder,
.inputBox textarea::placeholder {
  color: #666;
}

.inputBox input:focus,
.inputBox textarea:focus {
  border-color: #1e3ea8;
}

/* Textarea adjustments */
.inputBox textarea {
  resize: vertical;
  min-height: 170px;
  margin-bottom: 10px;
}

/* Submit button */
.inputBox input[type="submit"] {
  background: #1e3ea8;
  color: #f1f1f1;
  border: none;
  font-size: 1.1rem;
  max-width: 140px;
  font-weight: 500;
  cursor: pointer;
  padding: 14px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.inputBox input[type="submit"]:hover {
  background: #d7bb00;
}

/* Contact info */
.infoBox {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iconBox {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.iconBox i {
  min-width: 40px;
  height: 40px;
  background: #1e3ea8;
  color: #f9fafb;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  border-radius: 50%;
}

/* Map iframe */
.map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  margin: 0;
}

/* ===============================  FOOTER SECTION  =============================== */

.footer {
  width: 100%;
  padding: 15px 8vw;
  background: #1e3ea8;
  color: #f9fafb;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Column base styles */
.footer .col-1,
.footer .col-2,
.footer .col-3 {
  flex: 1;
  min-width: 220px;
  text-align: left;
}

/* Headings */
.footer h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #f9fafb;
}

/* Paragraph styles */
.footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Contact icons */
.footer i {
  color: #d7bb00;
  margin-right: 8px;
}

/* Useful links */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 6px;
}

.footer ul li a {
  text-decoration: none;
  color: #f9fafb;
  font-size: 0.95rem;
}

.footer ul li a:hover {
  color: #d7bb00;
  transition: color 0.3s ease-in-out;
}

/* Developer credit link */
.footer .col-2 a {
  color: #f9fafb;
  font-weight: 500;
  text-decoration: none;
}

.footer .col-2 a:hover {
  color: #d7bb00;
  transition: color 0.3s ease-in-out;
}

/* Add spacing between middle and right columns */
.footer .col-1 {
  margin-left: 50px;
}

.footer .col-2 {
  margin-left: 20px;
}

.footer .col-3 {
  margin-right: 60px;
}
