:root {
  --primary-color: #003366;
  --accent-color: #d90429;
  --text-light: #f8f9fa;
  --sfws-yellow: #f4c242;
}
 
body {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

.section-gap { 
  margin-top: 80px;
  margin-bottom: 80px;
}

/* HERO SECTION - Updated Child Focus */
.hero-custom {
  height: 100vh;
  background: url("https://sfwsmeerut.com/wp-content/uploads/2025/12/st-francis-world-school-slide-11-scaled.jpg")
    no-repeat;
  background-size: cover;
  background-position: left center;
  position: relative;
}

.main-logo {
  max-width: 180px;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

.highlight {
  color: #ffc107;
  text-transform: uppercase;
}

.admission-form-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  margin-top: 315px;
}

.btn-action {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  padding: 12px;
}

/* WHY SFWS SECTION */
.bg-yellow-custom {
  background-color: var(--sfws-yellow);
}
.why-title {
  font-size: 3.5rem;
  color: var(--primary-color);
  line-height: 1.1;
}
.feature-item {
  padding: 40px 20px;
}
.color-blue {
  color: var(--primary-color);
}

/* STATS SECTION */
.stats-border {
  border-right: 1px solid #dee2e6;
}

/* AWARDS */
.award-line {
  width: 100px;
  height: 4px;
  background: var(--sfws-yellow);
  border-radius: 2px;
}
.award-icon {
  max-height: 120px;
  object-fit: contain;
}

/* FLOATING & DIAGONAL */
.diagonal-mask {
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  overflow: hidden;
}
.full-h-img {
  height: 500px;
  width: 100%;
  object-fit: cover;
}
.decoration-box {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  top: -20px;
  right: -20px;
  border-radius: 15px;
  z-index: 0;
}
.floating-content-card {
  border-radius: 15px;
  z-index: 2;
  position: relative;
  margin-right: -50px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
  .hero-custom {
    background-position: 55% center !important; /* Child face focus on phone */
    height: auto;
    min-height: 100vh;
  }
  .section-gap {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .floating-content-card {
    margin-right: 0;
    margin-top: 10px; 
  }
  .diagonal-mask {
    clip-path: none;
  }
  .stats-border {
    border-right: none;
  }
  .why-title {
    font-size: 2.2rem;
  }
  .full-h-img {
    height: 100%;
  }
}

@media (max-width: 576px) {
  .feature-item {
    border-right: none !important;
  }
  .stats-border {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
  }
}

h1.display-4.fw-bold {
  text-align: center;
}



/* --- EXACT 5 FACETS DESIGN STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

.facets-area {
    background-color: #1c355e; 
    color: white;
    padding: 60px 0;
}

.facets-header .main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.facets-header .yellow-text {
    color: #f4c242;
    border-bottom: 3px solid #f4c242; 
    padding-bottom: 2px;
}

.facets-header .sub-title-line {
    font-size: 2.2rem;
    font-weight: 300;
    opacity: 0.8;
}

/* 5 Column Grid for Desktop */
@media (min-width: 992px) {
    .col-lg-2-custom {
        flex: 0 0 20%;
        max-width: 20%;
    }
    /* Zig-Zag Effect: 2nd and 4th column pushed down */
    .facet-grid .facet-col:nth-child(2),
    .facet-grid .facet-col:nth-child(4) {
        margin-top: 60px;
    }
}

.cursive-head {
    font-family: 'Dancing Script', cursive;
    color: #f4c242;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.facet-img-wrapper {
    background: white;
    padding: 8px; /* White border effect around image */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.facet-img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.facet-caption {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 10px;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .facets-header .main-title { font-size: 2rem; }
    .facets-header .sub-title-line { font-size: 1.5rem; }
    .facet-img-wrapper img { height: 200px; }
    .facet-grid .facet-col { margin-top: 20px !important; } /* No zig-zag on mobile */
    .cursive-head { font-size: 1.5rem; }
}




/* Smooth Gradient Line Class */
.custom-line {
    position: relative;
    padding-bottom: 12px; 
    display: inline-block; 
    margin-bottom: 20px;
}

.custom-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 14px; 
    width: 225px;
    
    background: linear-gradient(to right, #003366, #f4c242);
    border-radius: 50px;
}


.text-center .custom-line::after {
    left: 50%;
    transform: translateX(-50%);
}




::placeholder {
    font-size: 12px; 
    opacity: 0.8;    
}


input::-webkit-input-placeholder { font-size: 12px; }
input::-moz-placeholder { font-size: 12px; }
input:-ms-input-placeholder { font-size: 12px; }
input::placeholder { font-size: 12px; }





/* UPDATED FOOTER DESIGN */
.main-footer {
    background-color: #1c355e; 
    color: #ffffff; /* White text color */
    font-family: 'Montserrat', sans-serif;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0px 0px 0px black) !important;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #f4c242; 
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #ffffff; /* Link color white */
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
    opacity: 0.8;
}

.footer-links li a:hover {
    color: #f4c242; 
    opacity: 1;
    padding-left: 5px;
}

.footer-social-icons a {
    width: 35px;
    height: 35px;
    background-color: #07163b; /* Transparent white circles */
    color: #f4c242;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social-icons a:hover {
    background-color: #f4c242; /* Hover yellow background */
    color: #21426E; /* Hover dark blue icon */
}

.footer-bottom {
    background-color: #1a3558; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
    .main-footer { text-align: center; }
    .footer-social-icons { justify-content: center; }
    .offset-lg-1 { margin-left: 0 !important; }
}


/* Iframe Section Styles */
.iframe-section {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    
    height: 800px; 
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .iframe-wrapper {
        
        height: 500px; 
    }
}

@media (max-width: 480px) {
    .iframe-wrapper {
        height: 400px;
    }
}



/* --- HERO SECTION BASE STYLES --- */
.hero-custom {
  min-height: 100vh;
  background-color: #f8f9fa;
  position: relative;
}


@media (min-width: 992px) {
  .hero-custom {
    background: url("https://sfwsmeerut.com/wp-content/uploads/2025/12/st-francis-world-school-slide-11-scaled.jpg") no-repeat;
    background-size: cover;
    background-position: center;
  }
}

/* --- MOBILE SPECIFIC (IMAGE ABOVE, FORM BELOW) --- */
@media (max-width: 991px) {
  .hero-custom {
    height: auto; 
    background: none;
  }

  /* Image Box Styles for Mobile */
  .hero-image-box {
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 0%)), url(https://sfwsmeerut.com/wp-content/uploads/2025/12/st-francis-world-school-slide-11-scaled.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 350px; 
    padding-bottom: 30px !important;
  }

  /* Form Box Styles for Mobile */
  .hero-form-box {
    background-color: #06163b; 
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .admission-form-card {
    margin-top: -50px; 
    position: relative;
    z-index: 10;
    max-width: 90% !important;
  }
  
  .hero-text h1 {
      font-size: 2.2rem;
  }
}


@media (min-width: 992px) {
    .content-overlay {
      background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    }
}


/* --- TOP HEADER RESPONSIVE STYLES --- */
.top-header {
    background-color: #21426E; /* Deep Blue */
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

.top-header-link {
    color: #f4c242; /* Yellow highlight */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap; 
    transition: 0.3s;
}

.top-header-link:hover {
    color: #ffffff;
}

/* Mobile Specific Fixes */
@media (max-width: 767px) {
    .top-header-text {
        font-size: 0.75rem; 
        max-width: 90%;
        margin: 0 auto;
    }
    .top-header-link {
        font-size: 0.8rem;
        margin-top: 5px;
        display: inline-block;
    }
}


