h1 { color: blue; }

.footer-link {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.45rem;
  word-break: break-word;
}

.footer-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.footer-callback-card {
  min-height: 100%;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  word-break: break-word;
  /* Ensures long content never overflows */
  overflow-wrap: anywhere;
}

.footer-phone-icon {
  font-size: 2.1rem;
  width: 2.8rem;
  height: 2.8rem;
  background: #e7f1ff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-column {
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .footer-callback-card {
    margin-bottom: 2rem;
  }
  .footer-phone-icon {
    font-size: 1.7rem;
    width: 2.1rem;
    height: 2.1rem;
  }
}

.hero-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
  background-image: url('/static/background.jfif'); /* Replace with your actual filename */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 380px;
  width: 100%;
  position: relative;
}

.hero-section::before {
  /* Optional: Add a soft overlay for better text readability */
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.67); /* Adjust overlay opacity/color as needed */
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 250px;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Styling for footer */

.footer-bg-img {
  background-image: url("/static/footer.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.footer-bg-img::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);  /* Dark overlay */
  z-index: 1;
}

.footer-bg-img,
.footer-bg-img * {
  color: #fff !important;
}

/* Remove card background in footer */
.footer-bg-img .card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ensure footer content stays above overlay */
.footer-bg-img > .container {
  position: relative;
  z-index: 2;
}

/* Make Bootstrap alert close button (cross) smaller */
.alert .btn-close {
    width: 0.9em;
    height: 0.9em;
    font-size: 0.8rem;
    padding: 0.3em;
    top: 0.5em;
    right: 0.7em;
}

/* This is for the grade_calculator page */
.calculator-box {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    padding: 2.5rem 2rem;
    max-width: 500px;
    margin: 0 auto 3rem auto;
}
.result-box {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0275d8;
    background: #eaf4fd;
    border-radius: 0.8rem;
    padding: 1.25rem;
    margin-top: 1.2rem;
    text-align: center;
}

/* Styling for about section */
.about-heading {
    font-size: 2.7rem;
    letter-spacing: 0.02em;
    color: #11397b;
}
.about-lead {
    font-size: 1.2rem;
    color: #444;
}
.about-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.about-image {
    border-radius: 1.3rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    transition: 0.5s ease;
    display: block;
    max-height: 340px;
    width: 100%;
    object-fit: cover;
    /* No transform here */
}

.col-lg-6 {
    overflow: hidden; /* This is the trick! */
}
.about-subheading {
    color: #2474df;
    font-size: 1.5rem;
}

.about-image:hover {
    transform: scale(1.1);
}
.about-description {
    font-size: 1.08rem;
    color: #222;
    line-height: 1.8;
    background: rgba(240, 245, 255, 0.9);
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0;
}
@media (max-width: 991.98px) {
    .about-image {
        max-height: 280px;
    }
}
@media (max-width: 767.98px) {
    .about-section {
        flex-direction: column !important;
    }
    .about-image {
        max-height: 180px;
    }
    .about-heading {
        font-size: 2.1rem;
    }
    .about-subheading {
        font-size: 1.1rem;
    }
    .about-description {
        font-size: 1rem;
        padding: 0.7rem 0.6rem;
    }
}
/* Ends here */

/* Styling for welcome section */

.admission-package {
    max-width: 1400px; /* Slightly wider container */
    margin: 40px auto;
    padding: 30px;
    background: #f9f9ff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.package-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.package-subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Larger min-width */
    gap: 30px; /* More spacing */
    margin-bottom: 40px;
}

.service-card {
    background: white;
    padding: 30px 25px; /* More padding */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.service-card h3 {
  color: #3498db;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.service-card p {
  color: #7f8c8d;
  font-size: 1.05rem;
  line-height: 1.5;
}

.highlight {
    background: #f0f8ff;
}

/* Reuse existing styles from your package */
.service-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cta-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.cta-button:hover {
  background: #2980b9;
}
/* Ends here */

/* Social Media button starts here */
.social-cards-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.social-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Card Styles */
.social-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.social-card:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: -1;
  transition: height 0.3s ease;
}

.social-card:hover:after {
  height: 100%;
}

/* Card Specific Styles */
.whatsapp-card:after {
  background: linear-gradient(to top, #25D366, #128C7E);
}
.instagram-card:after {
  background: linear-gradient(to top, #E1306C, #833AB4);
}
.youtube-card:after {
  background: linear-gradient(to top, #FF0000, #C4302B);
}

/* Icon Styles */
.social-icon-container {
  margin-bottom: 25px;
}

.icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-bg { background-color: rgba(37, 211, 102, 0.1); }
.instagram-bg { background-color: rgba(225, 48, 108, 0.1); }
.youtube-bg { background-color: rgba(255, 0, 0, 0.1); }

.social-card:hover .icon-circle {
  transform: scale(1.1);
}

.social-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Text Styles */
.social-card-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.social-card-desc {
  color: #7f8c8d;
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  min-height: 50px;
}

/* Button Styles */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  font-size: 1rem;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
}
.instagram-btn {
  background: #E1306C;
  color: white;
}
.youtube-btn {
  background: #FF0000;
  color: white;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.social-btn:hover .arrow {
  transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .social-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
/* Ends Here */




.reviews-section {
            padding: 80px 20px;
            background: #f8f9fa;
            font-family: 'Segoe UI', sans-serif;
        }
        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }
        .section-title {
            font-size: 2.5rem;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        .reviews-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }
        .reviews-slider {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            transition: transform 0.5s ease;
        }
         .review-card {
            flex: 1 1 30%; /* roughly 3 per row on desktop */
            max-width: 30%;
            padding: 1rem;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            border-radius: 8px;
            background-color: #fff;
            text-align: center;
        }
        .stars {
            color: #FFD700;
            font-size: 1.5rem;
            margin-bottom: 15px;
        }
        .review-text {
            color: #555;
            line-height: 1.6;
            margin-bottom: 20px;
            font-size: 1rem;
        }
        .review-author {
            font-weight: 600;
            color: #2c3e50;
        }
        .slider-nav {
            text-align: center;
            margin-top: 30px;
        }
        .slider-dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            background: #ccc;
            border-radius: 50%;
            margin: 0 5px;
            cursor: pointer;
        }
        .slider-dot.active {
            background: #3498db;
        }
        @media (max-width: 768px) {
            .review-card {
                flex: 1 1 100%;
                min-width: calc(100% - 30px);
            }
        }

/* styling for Contact Us page */
.contact-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.contact-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.contact-section .contact-wrapper {
    display: flex;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    align-items: center;   /* Center vertically */
}

.contact-section .contact-form-box,
.contact-section .contact-info-box {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    flex: 1;
}

.contact-section .contact-form-box {
    border-right: 1px solid #eee;
}

.contact-section .contact-form-box h2,
.contact-section .contact-info-box h2 {
    margin-bottom: 24px;
    color: #2c3e50;
}

.contact-section .form-group {
    margin-bottom: 20px;
}

.contact-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fdfdfd;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-section .submit-btn {
    background-color: #3498db;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-section .submit-btn:hover {
    background-color: #2980b9;
}

.contact-section .contact-info-box {
    background-color: #f9f9f9;
}

.contact-section .contact-details {
    list-style: none;
    font-size: 16px;
    line-height: 1.8;
}

.contact-section .contact-details li {
    margin-bottom: 10px;
}

.contact-section .contact-details a {
    color: #3498db;
    text-decoration: none;
}

.contact-section .contact-details a:hover {
    text-decoration: underline;
}

.pricing-page .contact-whatsapp-btn {
  margin-top: 40px;
  margin-bottom: 32px;
  text-align: center;
}
.pricing-page .contact-whatsapp-btn .btn-success {
  background: #3498db;
  border: none;
}
.pricing-page .contact-whatsapp-btn .btn-success:hover {
  background: #078071;
}
.pricing-page .contact-whatsapp-btn .btn-success i {
  font-size: 1.3em;
  margin-right: 7px;
  vertical-align: -2px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section .contact-wrapper {
        flex-direction: column;
    }

    .contact-section .contact-form-box {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Ends here  */