h1 { color: blue; }

.red-black-gradient {
    background: linear-gradient(90deg, #000000, #DD0000, #000000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

/* Alternative: Black to Red gradient */
.red-black-gradient-alt {
    background: linear-gradient(90deg, #000000 0%, #DD0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Alternative: Red to Black gradient */
.red-black-gradient-reverse {
    background: linear-gradient(90deg, #DD0000 0%, #000000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}


/* Popup overlay */
/* Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    z-index: 9999;
}

/* Popup Box */
.popup-box {
    background: #ffffff;
    max-width: 420px;
    width: 90%;
    margin: 8% auto;
    padding: 28px 26px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    font-family: inherit;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

/* Title */
.popup-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

/* Subtitle */
.popup-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
}

/* Inputs */
.popup-box input {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.popup-box input:focus {
    outline: none;
    border-color: #198754;
}

/* Button */
.popup-btn {
    width: 100%;
    background: #198754; /* Bootstrap success green */
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
}

.popup-btn:hover {
    background: #157347;
}

/* Pop up styles end here */

.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/images/hero/background.png'); /* 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.3); /* 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;
  }
}

/* ----------------------------------------------
   FOOTER FIX (OPTIMIZED FOR ONE-LINE LINKS)
------------------------------------------------ */

/* Footer Background */
.footer-bg-img,
footer.footer-bg-img {
  background: url("/static/images/hero/footer.jpg") no-repeat center center/cover;
  color: #ffffff !important;
  position: relative;
}

footer.footer-bg-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

footer.footer-bg-img > .container {
  position: relative;
  z-index: 1;
}

/* Footer Text Colors */
footer.footer-bg-img h5,
footer.footer-bg-img h6 {
  color: #ffffff !important;
  font-weight: 600;
}

footer.footer-bg-img .footer-link {
  color: #e8e8e8 !important;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.8rem !important;
}

footer.footer-bg-img .footer-link:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Footer Columns */
.footer-column h6 {
  font-size: 0.9rem !important;
  margin-bottom: 0.75rem !important;
  white-space: nowrap;
}

.footer-column ul li {
  margin-bottom: 0.25rem !important;
}

/* Compact Callback Card */
.footer-callback-card {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(3px);
}

.footer-callback-card h6 {
  font-size: 0.9rem !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem !important;
}

.footer-callback-card p {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  color: #e8e8e8 !important;
  margin-bottom: 0.75rem !important;
}

.footer-callback-card .btn {
  font-size: 0.8rem !important;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.footer-callback-card .btn:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
}

/* Phone Icon Circle */
.footer-phone-icon {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Company Logo Section */
.footer-column.text-center .fw-bold {
  font-size: 0.9rem !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

/* Copyright */
.footer-bg-img .small {
  color: #cccccc !important;
}

/* Horizontal Line */
.footer-bg-img hr {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-column {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .footer-column h6 {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .footer-link {
    font-size: 0.8rem !important;
  }
  
  .footer-callback-card {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Stack columns on mobile */
  .col-6 {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .footer-column {
    margin-bottom: 0.75rem;
  }
  
  /* Adjust column width for better mobile layout */
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}



/* 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: #000000;
  margin-bottom: 10px;
}

.package-subtitle {
  font-size: 1.2rem;
  color: #000000;
  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 h3 {
    background: linear-gradient(90deg, #000000, #DD0000, #ffde37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.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: #000000; /* Pure black */
    font-size: 1.1rem;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    font-weight: 600; /* Bold */
}

.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: #000000;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #000000;
  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  */
