/* ==========================================================================
   SOF Homepage — Custom Stylesheet
   ========================================================================== */

:root {
  --navy: #0e2a5e;
  --navy-dark: #0a2049;
  --blue: #1a56c4;
  --blue-light: #eaf1fc;
  --gold: #f5b400;
  --gold-dark: #e0a300;
  --red: #d0021b;
  --text-dark: #1c1c1c;
  --text-muted: #5a6472;
  --border-color: #e5e8ec;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--text-dark);
  background-color: #ffffff;
  font-size: 15px;
}

a {
  text-decoration: none;
  transition: color .2s ease;
}

img {
  max-width: 100%;
}

.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .3px;
  margin-bottom: 0;
  text-transform: uppercase;
}

.section-heading i {
  color: var(--red);
  margin-right: 8px;
}

.divider-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.divider-heading::before,
.divider-heading::after {
  content: "";
  flex: 1;
  max-width: 260px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blue));
}

.divider-heading::after {
  background: linear-gradient(to left, transparent, var(--blue));
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background-color: var(--navy-dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar-links {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
}

.top-bar-links a {
  color: #d7deea;
}

.top-bar-links a:hover {
  color: var(--gold);
}

.top-bar-contact {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  color: #fff;
}

.top-bar-contact i {
  color: var(--gold);
  margin-right: 2px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background-color: #fff;
}

.logo-block {
  display: block;
}

.logo-img {
  width: 130px;
  object-fit: contain;
}

.site-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
}

.trust-badge .badge-img {
  width: 130px;
  object-fit: contain;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.sof-navbar {
  background: #fff;
  padding-bottom: 1em;
  padding-top: 0px;
  padding-right: 1em;
  padding-left: 1em;
}

/* Home Button */
.home-btn,
.search-btn {
  width: 54px;
  height: 54px;
  background: var(--navy);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0px;
}

.home-btn:hover,
.search-btn:hover {
  background: #3144df;
}

/* Menu */
.collapse.navbar-collapse {
  background: #dddddd;
  position: relative;
}

.sof-navbar .navbar-nav {
  gap: 10px;
}

.sof-navbar .nav-link {
  color: #1d2a52;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: .3s;
}

.sof-navbar .nav-link:hover {
  color: #4458f6;
}

/* Bootstrap dropdown icon */

.dropdown-toggle::after {
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

/* Dropdown */

.dropdown-menu {
  border: none;
  border-radius: 0px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
  padding: 0;
  overflow: hidden;
}

.dropdown-item {
  padding: 10px 20px;
}

.dropdown-item:hover {
  background: var(--blue);
  color: #fff;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Give the carousel and every slide an explicit height so the
   background-image actually has room to "cover" the section.
   Without this, height comes only from the text content. */
.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
  height: 400px;
}

.hero-banner .carousel-item {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-position .6s ease;
}


.hero-banner .container {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-banner .container .row {
  height: 100%;
}

.hero-title {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  position: relative;
}

.hero-title span {
  color: var(--gold);
  font-family: inherit;
  font-weight: inherit;
}

.hero-title::after {
  content: '';
  position: relative;
  background: var(--gold);
  width: 30%;
  height: 2px;
  display: block;
  margin-top: 20px;
}

.hero-text {
  color: #d7deea;
  font-size: 15.5px;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-btn {
  background-color: var(--gold);
  color: var(--navy-dark);
  letter-spacing: .4px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 3px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.hero-btn:hover {
  background-color: var(--gold-dark);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.hero-trophy-img {
  max-height: 340px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35));
}

/* Indicators sit ON the slide (bottom-center overlay), not
   below it in a separate strip. */
.hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
}

.hero-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .4);
  border: none;
  opacity: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.hero-indicators button.active {
  background-color: var(--gold);
  transform: scale(1.15);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 3;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease;
}

.hero-banner:hover .carousel-control-prev,
.hero-banner:hover .carousel-control-next {
  opacity: .85;
}

.hero-banner .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {

  .hero-banner .carousel,
  .hero-banner .carousel-inner,
  .hero-banner .carousel-item {
    height: 520px;
  }

  .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 576px) {

  .hero-banner .carousel,
  .hero-banner .carousel-inner,
  .hero-banner .carousel-item {
    height: 460px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-text {
    font-size: 14px;
  }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  background-color: var(--blue);
  padding: 18px 0;
}

.stat-item {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 5px;
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item i {
  font-size: 26px;
  color: var(--gold);
}

.stat-item div {
  text-align: left;
  line-height: 1.2;
}

.stat-item strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  font-family: "Lora", serif;
}

.stat-item span {
  font-size: 12.5px;
  color: #d7deea;
}

.stat-item img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: invert(1);
}

/* ==========================================================================
   LATEST UPDATES
   ========================================================================== */
.latest-updates-section {
  background-color: #fff;
}

.section-head-row {
  margin-bottom: 10px;
}

.update-note {
  color: var(--red);
  font-size: 13.5px;
  font-weight: 500;
}

.update-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.update-card:hover {
  box-shadow: 0 10px 22px rgba(14, 42, 94, .12);
  transform: translateY(-3px);
}

.update-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--blue-light);
}

.update-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.update-card-body h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  min-height: 36px;
  text-transform: uppercase;
}

.update-card-body p {
  font-size: 12.5px;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 14px;
}

.read-more-btn {
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 3px;
  width: 100%;
  text-transform: uppercase;
}

.read-more-btn:hover {
  background-color: var(--navy);
  color: #fff;
}

/* xl 6-column helper (6 cards in a row on large screens) */
@media (min-width: 1200px) {
  .col-xl-2 {
    flex: 0 0 auto;
    width: 16.6667%;
  }
}

/* ==========================================================================
   OLYMPIADS SECTION
   ========================================================================== */
.olympiads-section {
  background-color: #f7f9fc;
}

.col-xl-1-5 {
  flex: 0 0 auto;
  width: 25%;
}

@media (min-width: 1200px) {
  .col-xl-1-5 {
    width: 12.5%;
  }
}

.olympiad-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px 12px;
  text-align: center;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}

.olympiad-card:hover {
  box-shadow: 0 10px 22px rgba(14, 42, 94, .12);
  transform: translateY(-3px);
}

.olympiad-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.olympiad-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bg-lime {
  background-color: #a8c700;
}

.bg-blue {
  background-color: #1a56c4;
}

.bg-orange {
  background-color: #f0721c;
}

.bg-cyan {
  background-color: #0fb4d4;
}

.bg-purple {
  background-color: #7b4fd0;
}

.bg-pink {
  background-color: #e21e6b;
}

.bg-brown {
  background-color: #a5502a;
}

.bg-green {
  background-color: #4c8c2b;
}

.olympiad-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.olympiad-card p {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 34px;
  margin-bottom: 10px;
}

.classes-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 12px;
}

.view-all-btn {
  background-color: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 30px;
  border-radius: 3px;
}

.view-all-btn:hover {
  background-color: var(--blue);
  color: #fff;
}

/* ==========================================================================
   WHY CHOOSE SOF
   ========================================================================== */
.why-choose-section {
  background-color: #fff;
}

.why-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 18px;
  height: 100%;
}

.why-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto;
  margin-bottom: 14px;
}

.why-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: #626262;
}
/* ==========================================================================
   AWARDS & RECOGNITION
   ========================================================================== */
.awards-section {
  background-color: #f7f9fc;
}

.awards-row {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.awards-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.awards-banner img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: center;
}

.awards-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 10px 30px;
  justify-content: end;
}

.awards-banner-overlay span {
  color: var(--gold);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
}

.awards-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
}

.awards-list img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background: rgb(255 215 0 / 44%);
  padding: 3px;
  border-radius: 6px;
}

.view-all-awards-btn {
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 3px;
}

.view-all-awards-btn:hover {
  background-color: var(--blue);
  color: #fff;
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners-section {
  background-color: #fff;
}

.partner-logo {
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(15%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: #c7d0dd;
  padding: 50px 0 0;
  font-size: 13.5px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 14px;
}

.footer-about {
  color: #aab6c8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.site-footer h4 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aab6c8;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-newsletter-text {
  color: #aab6c8;
  margin-bottom: 14px;
}

.newsletter-form .form-control {
  border-radius: 3px 0 0 3px;
  border: none;
}

.subscribe-btn {
  background-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 0 3px 3px 0;
  padding: 8px 18px;
}

.subscribe-btn:hover {
  background-color: var(--gold-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 40px;
  padding: 18px 0;
  font-size: 12.5px;
  color: #8b97a8;
}

.footer-bottom a {
  color: #8b97a8;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .site-title {
    font-size: 22px;
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .hero-title {
    font-size: 30px;
  }

  .main-nav .nav-link {
    padding: 12px 16px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 24px;
  }

  .logo-img {
    height: 50px;
  }

  .trust-badge .badge-img {
    height: 56px;
  }
}


.subject-section-desc{
    max-width:760px;
    margin:20px auto 0;
    color:var(--text-muted);
    font-size:16px;
    line-height:1.8;
}

.subject-card{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:250px;
    background:#fff;
    border-radius:16px;
    padding:35px 20px;
    text-align:center;
    border:1px solid #e7edf8;
    overflow:hidden;
    transition:.35s;
}



.subject-card:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 45px rgba(14,42,94,.15);
    border-color:transparent;
}

.subject-icon{
    width:90px;
    height:90px;
    background:linear-gradient(135deg,#eef5ff,#ffffff);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:22px;
    transition:.35s;
}

.subject-icon img{
    width:55px;
    height:55px;
    object-fit:contain;
}

.subject-card:hover .subject-icon{
    transform:rotate(8deg) scale(1.08);
    background:linear-gradient(135deg,var(--gold),#ffd967);
}

.subject-card h4{
    font-size:21px;
    color:var(--navy);
    margin-bottom:12px;
    font-weight:700;
}

@media(max-width:768px){

.subject-card{
    min-height:210px;
    padding:25px 15px;
}

.subject-card h4{
    font-size:17px;
}

.subject-icon{
    width:75px;
    height:75px;
}

.subject-icon img{
    width:46px;
}
}