/* ============================================
   Omotoso Reliance Nursery and Primary School
   Modern Blue-Gold Theme | Mobile-Friendly
   ============================================ */

:root {
  --blue: #0a3d62;
  --blue-dark: #062a45;
  --blue-light: #1a5f8a;
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --white: #ffffff;
  --light: #f5f7fa;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ========== HEADER ========== */
header {
  background: var(--blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--blue-dark);
  padding: 8px 20px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.header-top a {
  color: var(--gold-light);
}

.header-top a:hover {
  text-decoration: underline;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--blue-dark);
}

.logo-text h1 {
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.8rem;
  opacity: 0.9;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.25s;
  font-size: 0.92rem;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  background: var(--gold);
  color: var(--blue-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(rgba(10, 61, 98, 0.88), rgba(6, 42, 69, 0.9)),
    url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1400') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 90px 20px;
}

.hero h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.25s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  margin-left: 10px;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--blue-dark);
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.9rem;
  color: var(--blue);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 55px;
  height: 4px;
  background: var(--gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 25px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card h3 {
  color: var(--blue);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-content h3 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.about-content p {
  margin-bottom: 14px;
  color: var(--text-light);
}

.mission-box {
  background: var(--blue);
  color: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.mission-box h4 {
  color: var(--gold);
  margin-bottom: 8px;
}

/* ========== STAFF ========== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.staff-card {
  background: var(--white);
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.staff-card:hover {
  transform: translateY(-5px);
}

.staff-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  margin: 0 auto 14px;
}

.staff-card h3 {
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.staff-card .role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.staff-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ========== FEES TABLE ========== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 500px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

tr:hover td {
  background: #f0f7ff;
}

.note {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  margin-top: 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  padding: 30px 12px 10px;
  font-size: 0.9rem;
  opacity: 0;
  transition: 0.3s;
}

.gallery-item:hover .caption {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ========== NEWS ========== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
  transition: 0.25s;
}

.news-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-item h3 {
  color: var(--blue);
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.news-meta {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ========== RESULTS ========== */
.results-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  color: var(--blue);
  margin-bottom: 18px;
}

.contact-info p {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light);
}

.contact-info .icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.2s;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.15);
}

form button {
  width: 100%;
}

/* ========== ADMISSIONS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  padding: 25px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  padding-top: 50px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -15px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.step h3 {
  color: var(--blue);
  margin-bottom: 8px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h3 {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.footer-grid p,
.footer-grid a {
  color: #ccc;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--gold);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: #999;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}

.page-header h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.9;
}

/* ========== UTILITY ========== */
.bg-white {
  background: var(--white);
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  nav ul {
    gap: 0;
  }

  nav a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue);
    padding: 15px 20px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  nav ul.show {
    display: flex;
  }

  nav a {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 10px;
    display: inline-block;
  }

  .logo-text h1 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 16px;
  }

  section {
    padding: 40px 0;
  }

  .header-top {
    font-size: 0.8rem;
    justify-content: center;
    text-align: center;
  }
}
