@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@font-face {
  font-family: 'AlgerianCustom';
  src: url('../../assets/fonts/ALGERIAN.ttf') format('truetype');
}
body {
  font-family: 'Poppins', sans-serif;
}

.custom-navbar {
  background: rgba(13, 162, 83, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.navbar-brand span {
  font-size: 18px;
  color: white;
}

.nav-link {
  color: white !important;
  margin-left: 10px;
  position: relative;
  transition: 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #ffc107;
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #ffc107 !important;
}

@media (max-width: 768px) {
  .nav-link {
    margin: 10px 0;
  }
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.overlay h1 {
  font-size: 3rem;
  font-weight: bold;
}

/* Sections */
.section {
  padding: 70px 20px;
}

.card-box {
  padding: 20px;
  border-radius: 15px;
  background: #f8f9fa;
  transition: 0.3s;
}

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

/* Gallery */
.gallery img {
  border-radius: 10px;
  width: 100%;
}

/* Footer */
footer {
  background: #0d6efd;
  color: white;
  padding: 10px;
  text-align: center;
}

/* WhatsApp Chat */
.chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.chat-btn:hover {
  background: #1ebe5d;
}

/* Contact Section */
.contact-section {
  background: #f8f9fa;
  padding: 70px 20px;
}

.contact-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.social-icon {
  font-size: 22px;
  color: #0d6efd;
  transition: 0.3s;
}

.social-icon:hover {
  color: #000;
  transform: scale(1.2);
}

.map-container iframe {
  border-radius: 10px;
}

@media (max-width: 768px) {
  .overlay h1 {
    font-size: 2rem;
  }
}

/* School Banner */
.school-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1f6f78, #2aa3a3);
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  border: 2px solid #ffffff40;
}

.banner-logo img {
  width: 90px;
  height: auto;
  border-radius: 5px;
  padding-left: 5px;
}

.banner-content {
  flex: 1;
  text-align: left;
  padding: 0 20px;
}

.banner-content h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  margin: 0;
}

.banner-content p {
  font-size: 15px;
  margin: 2px 0;
}

.banner-content h3 {
  font-size: 17px;
  margin: 0;
}

.admission-btn {
  background: #ffc107;
  color: black;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.admission-btn:hover {
  background: #e0a800;
}

@media (max-width: 768px) {
  .school-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .banner-content {
    text-align: center;
  }
  .banner-content h1 {
    font-size: 18px;
  }
}

/* =============================================
   MAIN HEADER SECTION
   ============================================= */

.main-header {
  background: linear-gradient(to bottom, #529add, #ddd2dd);
  padding: 60px 20px;
  text-align: center;
  margin-top: 3vh;
}

/* LOGO â€” base size for all devices */
.main-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: yellow;
  padding: 10px;
  border-radius: 8px;
}

/* Large screens: bigger */
@media (min-width: 992px) {
  .main-logo {
    width: 260px;
    height: 260px;
  }
}

/* TITLE â€” Cinzel Decorative (Algerian-style Google Font) */
 
.main-title {
  font-family: 'AlgerianCustom' !important;
  font-size: 4rem;        /* increased from 2.8rem */
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: #092c60;
  font-weight: 900;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 1.8rem;      /* increased from 1.4rem */
    letter-spacing: 1px;
  }
}

@media (min-width: 992px) {
  .main-title {
    font-size: 3.8rem;      /* increased from 3.2rem */
  }
}

.estd {
  font-size: 32px;
  font-weight: 600;
  color: #1b3b6f;
}

@media (max-width: 576px) {
  .estd {
    font-size: 20px;
  }
}

/* MOTTO â€” button style with increased padding */
.motto-badge {
  display: inline-block;
  background: #1b3b6f;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 50px;
  border: 3px solid #ffc107;
  box-shadow: 0 4px 14px rgba(27, 59, 111, 0.25);
  font-style: italic;   /* ← adds italic to match moto style */
}
@media (max-width: 600px) {
  .legacy-grid {
    grid-template-columns: 1fr !important;
  }
  .legacy-card {
    width: 100% !important;
    max-width: 280px;
  }
}

.moto {
  font-size: 24px;
  font-style: italic;
}

/* PRINCIPAL'S HEADING */
.principals-heading {
  font-size: 1.4rem;
  color: #1b3b6f;
  font-weight: 700;
}

/* PRINCIPAL'S TEXT */
.main-text {
  max-width: 950px;
  margin: auto;
  font-size: 1.2rem;
  line-height: 1.9;
  color: #111;
}

@media (min-width: 992px) {
  .main-text {
    font-size: 1.3rem;
  }
}

/* Legacy card responsive */
@media (min-width: 500px) {
  .legacy-card {
    flex-direction: row !important;
    align-items: center;
  }

  .legacy-card > div:first-child {
    width: 40%;
  }

  .legacy-card > div:last-child {
    width: 60%;
    padding-left: 15px;
  }
}