/* ==========================================================
   Custom styles — Nalanda Group of Schools (PHP version)
   Loaded after style.css so it can override theme defaults.
   ========================================================== */

/* ---------- Top bar ---------- */
.topbar-row .topper {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.topbar-tagline {
  width: auto !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .5px;
  font-size: 15px;
}
.topbar-social {
  display: flex;
  gap: 8px;
}
.topbar-social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.topbar-social li a:hover,
.topbar-social li a:focus {
  background: #fff;
  color: #1eaaf1;
}
@media (max-width: 767.98px) {
  .topbar-tagline { font-size: 14px; }
  .topbar-row .topper + .topper { margin-top: 6px; }
}

/* ---------- Results page ---------- */
.result-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f4fbff;
  border-left: 5px solid #1eaaf1;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.result-highlight .result-badge {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #1eaaf1;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(30, 170, 241, .35);
}
.result-highlight .result-badge strong { font-size: 28px; font-weight: 700; }
.result-highlight .result-badge small  { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.result-highlight p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}
@media (max-width: 575.98px) {
  .result-highlight { flex-direction: column; text-align: center; padding: 20px; }
  .result-highlight p { font-size: 17px; }
}

.results-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.results-table {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  margin-bottom: 0;
}
.results-table thead th {
  background: #1eaaf1;
  color: #fff;
  border-color: #1a98d8 !important;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}
.results-table tbody td {
  text-align: center;
  vertical-align: middle;
  font-size: 18px;
  color: #333;
}
.results-table .pass-pct {
  font-weight: 700;
  color: #1a9b4b;
}

/* ---------- Home: Welcome / Admissions / Why choose ---------- */
.home-welcome .lead-text {
  font-size: 18px;
  font-weight: 600;
  color: #1eaaf1;
}
.admission-card {
  background: #1eaaf1;
  background: linear-gradient(135deg, #1eaaf1 0%, #1688c4 100%);
  color: #fff;
  border-radius: 8px;
  padding: 32px 30px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(30, 170, 241, .3);
}
.admission-card h3 { color: #fff; font-size: 24px; font-weight: 700; margin: 12px 0 8px; }
.admission-card p  { color: rgba(255, 255, 255, .9); margin-bottom: 16px; }
.admission-tag {
  display: inline-block;
  background: #fff;
  color: #1688c4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.admission-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.admission-classes li {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 14px;
  color: #fff;
}
.admission-card .btn-light { color: #1688c4; font-weight: 600; }

.why-choose .why-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
  width: 100%;
  transition: transform .2s, box-shadow .2s;
}
.why-choose .why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}
.why-choose .why-item .icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1eaaf1;
  margin-right: 18px;
}
.why-choose .why-item .icon span { color: #fff; font-size: 30px; }
.why-choose .why-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.why-choose .why-item p  { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Admission form ---------- */
.admission-form-wrap {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
  padding: 36px;
}
@media (max-width: 575.98px) { .admission-form-wrap { padding: 22px 18px; } }
.admission-form-wrap h3.form-section {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #1eaaf1;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
  margin: 10px 0 20px;
}
.admission-form-wrap label { font-size: 14px; font-weight: 600; color: #333; }
.admission-form-wrap label .req { color: #e74c3c; }
.admission-form-wrap .form-control { height: 48px; font-size: 15px; border-radius: 4px; }
.admission-form-wrap textarea.form-control { height: auto; }
.admission-form-wrap .hp-field { position: absolute; left: -9999px; }
.admission-side {
  background: #f4fbff;
  border-left: 4px solid #1eaaf1;
  border-radius: 6px;
  padding: 24px;
}
.admission-side h4 { font-size: 18px; font-weight: 700; }
.admission-side ul { padding-left: 18px; margin-bottom: 0; }
.admission-side li { margin-bottom: 6px; }

/* ---------- Testimonials: initials avatar (replace with photos later) ---------- */
.testimony-wrap .user-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1eaaf1;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- Gallery ---------- */
.gallery-video { position: relative; padding-top: 56.25%; border-radius: 6px; overflow: hidden; }
.gallery-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-empty {
  background: #f8f9fa;
  border: 2px dashed #d6e9f5;
  border-radius: 8px;
  padding: 48px 24px;
}
.gallery-empty .icon-camera { font-size: 44px; color: #1eaaf1; }
.gallery-empty h3 { margin: 12px 0 6px; font-weight: 600; }
.ftco-footer .footer-more { color: #1eaaf1; font-size: 14px; }
.ftco-footer .footer-more:hover { color: #fff; }

/* ---------- Home: admission groups, compact why-choose, experience text ---------- */
.admission-groups { margin: 4px 0 24px; }
.admission-groups li {
  color: #fff;
  font-size: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.admission-groups li:last-child { border-bottom: 0; }
.admission-groups .icon-check { margin-right: 8px; font-size: 13px; opacity: .9; }
.why-choose .why-item-sm { padding: 18px 22px; margin-bottom: 24px; }
.why-choose .why-item-sm .icon { flex: 0 0 52px; width: 52px; height: 52px; }
.why-choose .why-item-sm .icon span { font-size: 24px; }
.why-choose .why-item-sm h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.experience-text { font-size: 16px; line-height: 1.8; color: #222; font-weight: 500; text-shadow: 0 0 6px #fff, 0 0 3px #fff, 0 0 1px #fff; }
.experience-text strong { color: #000; }

/* ---------- Testimonials: invitation shown until real quotes are added ---------- */
.testimony-invite {
  background: #f4fbff;
  border: 1px solid #d6ecfa;
  border-radius: 10px;
  padding: 40px 32px;
}
.testimony-invite .quote-mark { font-size: 36px; color: #1eaaf1; display: block; margin-bottom: 10px; }
.testimony-invite h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.testimony-invite p { font-size: 16px; margin-bottom: 22px; }

/* ---------- Admission enquiry form (single column) ---------- */
.admission-form-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; color: #222; }
.admission-form-intro { margin-bottom: 24px; }
.admission-form-wrap .form-group { margin-bottom: 20px; }
.admission-form-wrap .form-control { height: 52px; border-radius: 26px; padding: 0 22px; border: 1px solid #ced4da; }
.admission-form-wrap select.form-control { padding-right: 40px; }
.admission-form-wrap .form-control:focus { border-color: #1eaaf1; box-shadow: 0 0 0 3px rgba(30, 170, 241, .15); }
.admission-form-wrap label .opt { font-weight: 400; color: #888; }
.custom-radio-row { display: flex; align-items: center; margin: 6px 0; }
.custom-radio-row input[type="radio"] { width: 20px; height: 20px; margin: 0 10px 0 0; accent-color: #1eaaf1; cursor: pointer; }
.custom-radio-row label { margin: 0; font-weight: 500; font-size: 16px; cursor: pointer; }

/* ---------- About: founder ---------- */
.founder-name { font-size: 20px; font-weight: 700; color: #1eaaf1; letter-spacing: .5px; }
.founder-title { font-size: 15px; font-weight: 500; color: #555; }

/* ---------- Floating badge (right, middle) ---------- */
.float-badge {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  width: 130px;
  animation: badgeFloat 3s ease-in-out infinite;
}
.float-badge img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
.float-badge-close {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}
.float-badge-close:hover { background: rgba(0, 0, 0, .8); }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 8px)); }
}
@media (max-width: 767.98px) {
  .float-badge { width: 80px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-badge { animation: none; }
}

/* ---------- WhatsApp chat button (bottom-right) ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 12px;
  border-radius: 28px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover,
.whatsapp-float:focus { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(37, 211, 102, .55); }
.whatsapp-float svg { flex: 0 0 32px; }
.whatsapp-float-label { font-weight: 600; font-size: 15px; padding-right: 6px; white-space: nowrap; }
@media (max-width: 767.98px) {
  .whatsapp-float { right: 14px; bottom: 14px; width: 56px; padding: 0; justify-content: center; }
  .whatsapp-float-label { display: none; }
}