@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600&family=Nunito:wght@400;600;700&display=swap');

:root {
  /* Default Colors (Will be overridden by Admin Settings) */
  --primary-color: #00bcd4; 
  --secondary-color: #ff9800; 
  --text-dark: #2c3e50;
  --text-muted: #666666;
  --bg-light: #f4f9fc;
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
}
p { line-height: 1.7; }

/* --- Top Bar --- */
.top-bar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 4px solid var(--secondary-color);
}
.top-bar a { color: #fff; text-decoration: none; font-weight: 600; transition: 0.3s; }
.top-bar a:hover { color: #ffe0b2; }

/* --- Navbar --- */
.navbar {
  padding: 15px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  background: #fff;
}
.navbar-brand span { 
    font-size: 1.6rem; 
    color: var(--text-dark); 
    font-weight: 700;
}
.nav-link {
  font-weight: 700;
  color: var(--text-dark) !important;
  margin: 0 10px;
  font-size: 1.05rem;
  transition: 0.3s;
}
.nav-link:hover { color: var(--secondary-color) !important; }

.btn-cta {
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 6px rgba(255, 152, 0, 0.3);
  transition: all 0.3s;
}
.btn-cta:hover {
  background-color: #f57c00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
}

/* --- Sections --- */
.section-padding { padding: 80px 0; }
.bg-light-custom { background-color: var(--bg-light); }

.sub-heading {
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-heading {
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 20px;
}

/* --- Hero Slider --- */
.carousel-item { height: 600px; }
.carousel-item img { 
    object-fit: cover; 
    height: 100%; 
    filter: brightness(0.85);
}
.carousel-caption {
  bottom: 35%;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.carousel-caption h2 { font-size: 4rem; color: #fff; }
.carousel-caption p { font-size: 1.5rem; color: #fff; }

/* --- Service Cards --- */
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid #edf2f7;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.15);
  border-color: var(--primary-color);
}
.service-card h4 { color: var(--text-dark); margin-top: 15px; }

.icon-box {
  width: 90px; height: 90px;
  background: #e0f7fa;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 2.5rem;
  transition: 0.3s;
}
.service-card:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
}
.icon-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* --- Testimonials --- */
.bg-pattern {
  background-color: var(--primary-color);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 0%, transparent 20%), 
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 0%, transparent 20%);
}
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
}

/* --- Contact --- */
.contact-icon-wrapper {
  width: 50px; height: 50px;
  background-color: #fff3e0;
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.form-control {
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  background-color: #fcfcfc;
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0,188,212,0.1);
  background-color: #fff;
}

/* --- Footer --- */
footer { background-color: #263238; color: #cfd8dc; }
footer h5 { color: #fff; }

/* --- WhatsApp FAB --- */
.whatsapp-fab {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}
.whatsapp-fab:hover { transform: scale(1.1); color: #fff; }

#page-loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #fff; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
}

/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    body, html { overflow-x: hidden; width: 100%; }
    .navbar-brand span { font-size: 1.1rem; white-space: normal; line-height: 1.2; max-width: 250px; }
    .navbar-brand img { height: 40px !important; }
    .section-heading { font-size: 2rem; word-wrap: break-word; }
    .carousel-item { height: 300px; }
    .carousel-caption h2 { font-size: 1.8rem; }
    .carousel-caption p { font-size: 1rem; }
    .contact-icon-wrapper { margin-bottom: 10px; }
    img { max-width: 100%; height: auto; }
    .top-bar .d-flex { flex-direction: column; align-items: flex-start; }
    .top-bar a { display: block; margin-bottom: 5px; }
}

/* --- Admin Content Formatting Fix --- */
#aboutContent strong, 
#admissionsContent strong,
#aboutContent b, 
#admissionsContent b {
    font-weight: 700 !important;
    /* Removed explicit color here so Editor colors work */
}

#aboutContent em, 
#admissionsContent em,
#aboutContent i, 
#admissionsContent i {
    font-style: italic !important;
}

#aboutContent ul, #admissionsContent ul {
    list-style-type: disc; padding-left: 20px; margin-bottom: 1rem;
}
#aboutContent ol, #admissionsContent ol {
    list-style-type: decimal; padding-left: 20px; margin-bottom: 1rem;
}