/* =========================
   GLOBAL STYLES
========================= */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

h2 {
    color: #004aad;
    margin-bottom: 20px;
    text-align: center;
}

.main-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #004aad;
    margin: 20px auto;
    max-width: 90%;
}

/* =========================
   NAVIGATION
========================= */
nav {
    background: #004aad;
    position: sticky;
    top: 0;
    z-index: 5000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    position: relative;
}

/* Logo + Brand */
.nav-container .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    top: 3px;
    left: 20px;
    z-index: 2000;
    text-decoration: none;
}

.nav-container .logo img {
    height: 50px;
    width: auto;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    transition: color 0.3s ease-in-out;
}

.nav-container .logo:hover .brand-name {
    color: #ffd700;
}

/* Links */
.nav-links {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffdd57;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 2000;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile Menu */
@media screen and (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        width: 100%;
        background: #004aad;
        max-height: 0;
        overflow: hidden;
        text-align: center;
        padding: 0;
        z-index: 6000;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }

    .nav-links.active {
        max-height: 500px;
        padding: 15px 0;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
        z-index: 7000;
    }

    .nav-container .logo {
        position: static;
        margin: 0;
        justify-content: flex-start;
    }
}

/* =========================
   CAROUSEL
========================= */
.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  position: relative;
  height: 350px; /* same as your img */
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-image) center/cover no-repeat;
  filter: blur(15px) brightness(0.7);
  transform: scale(1.1); /* avoid blur edges */
  z-index: 0;
}

.carousel-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps full image */
}

/* 🔹 Disable blurred background on mobile */
@media (max-width: 768px) {
  .carousel-slide {
    height: 250px; /* optional: smaller height on mobile */
  }

  .carousel-slide img {
    object-fit: cover; /* fill full width/height */
    background-color: transparent; /* no black filler */
  }

  /* hide blurred background */
  .carousel-slide::before {
    display: none;
  }
}





.fade {
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Controls */
.prev,
.next {
    position: absolute;
    top: 50%;
    padding: 12px;
    margin-top: -22px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    z-index: 1000;
    text-decoration: none;
}

.next { right: 0; }
.prev { border-radius: 0 3px 3px 0; }

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* =========================
  INTRO SECTION
========================= */

.intro-section {
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.intro-heading {
  font-size: 28px;
  color: #004aad;
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
}

.intro-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-points li {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 18px;
  padding-left: 30px;
  position: relative;
  color: #333;
}

.intro-points li::before {
  content: "✔";
  color: #28a745; /* Green tick */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 20px;
}

.highlight-text {
  font-size: 20px;
  font-weight: bold;
  color: #0056b3;
  margin-top: 25px;
}



/* =========================
   HEADER BUTTONS
========================= */
.header-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover { transform: scale(1.05); }

.btn-blue {
    background: #007bff;
    color: #fff;
}
.btn-blue:hover { background: #0056b3; }

.btn-yellow {
    background: #ffc107;
    color: #000;
}
.btn-yellow:hover { background: #e0a800; }

/* Blinking animation */
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.4; }
}
.blink { animation: blink 1s infinite; }

/* =========================
   SERVICES SECTION
========================= */
.services {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 subjects side by side */
    gap: 30px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.subject-column {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subject-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.subject-column h3 {
    margin-bottom: 15px;
    color: #004aad;
}

/* Grid for service cards inside each subject */
.subject-column {
    display: flex;
    flex-direction: column;
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 columns for year cards */
    gap: 10px;
}

.service-card {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    background: #004aad;
    color: #fff;
    transform: scale(1.05);
}

/* Responsive for tablets */
@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr; /* Stack subjects vertically */
    }

    .service-list {
        grid-template-columns: 1fr; /* Stack year cards vertically */
    }
}

/* Extra small screens (mobile) */
@media (max-width: 480px) {
    .service-card {
        padding: 12px;
        font-size: 0.9rem;
    }
}


/* =========================
   BOARD SECTION
========================= */
#board-info {
    padding: 50px 20px;
    text-align: center;
}

.board-highlight {
    background: linear-gradient(135deg, #0078d7, #00aaff);
    color: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.board-label {
    display: inline-block;
    background: #fff;
    color: #0078d7;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.board-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-card:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* =========================
   FEES SECTION
========================= */
#fees {
    padding: 80px 20px;
    text-align: center;
}

#fees h2 { margin-bottom: 30px; }

.fees {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.fee-card {
    position: relative;
    flex: 1;
    max-width: 380px;
    padding: 40px 30px;
    background: #f4f4f4;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.fee-card:nth-child(1) { animation-delay: 0.2s; }
.fee-card:nth-child(2) { animation-delay: 0.4s; }

.fee-card h3 {
    font-size: 1.5rem;
    color: #004aad;
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.fee-card p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin: 4px 0;
}

.fee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.fee-card:hover h3 { color: #ff4081; }

.fee-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 6px 14px;
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
    background: #ff4081;
    border-radius: 50px;
    animation: pulse 2s infinite;
}

.original-price {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    text-decoration: line-through;
}

.fee-card.best-value {
    transform: scale(1.05);
    border: 2px solid #004aad;
    box-shadow: 0 12px 28px rgba(0, 74, 173, 0.25);
}

@media (max-width: 768px) {
    .fees { flex-direction: column; align-items: center; }
    .fee-card { max-width: 90%; }
}

.cta-btn {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    color: #fff;
    background: #004aad;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}

.cta-btn:hover {
    background: #ff4081;
    transform: scale(1.05);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   HIGHLIGHT BOX
========================= */
.highlight {
    background: #ffdd57;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    margin: 30px auto;
    max-width: 600px;
}

/* =========================
   CONTACT + FOOTER
========================= */
/* .contact {
    text-align: center;
    background: #f4f4f4;
    padding: 30px;
    border-radius: 10px;
} */

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* left-align items inside */
  text-align: left;         /* left-align text */
  gap: 12px;
  margin: 0 auto;           /* keep whole block centered */
  max-width: 600px;         /* optional: keeps it tidy */
}

.contact-item {
  display: flex;
  align-items: center;      /* icon + text vertically centered */
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

.contact-item span:first-child,
.contact-item svg {
  margin-right: 8px;        /* spacing between icon and label */
  flex-shrink: 0;
  font-size: 18px;
}

.contact-item a {
  margin-left: 4px;
  text-decoration: none;
  color: #0077cc;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Ensure form takes full width on small screens */
.booking-form {
  width: 100%;
  max-width: 600px; /* optional limit for readability */
  margin: 0 auto;   /* center on larger screens */
}

@media (max-width: 768px) {
  .booking-form {
    max-width: 100%;
    padding: 0 15px;  /* small side padding for mobile */
  }

  .form-container {
    width: 100%;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .btn {
    width: 100%;  /* make fields stretch */
    box-sizing: border-box;
  }
}

html {
  scroll-behavior: smooth;
}


footer {
    text-align: center;
    background: #004aad;
    color: #fff;
    padding: 15px;
    margin-top: 30px;
}

/* =========================
   BOOKING FORM
========================= */
#booking-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #f4f4f4;
    border-radius: 15px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input,
.form-group select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button[type="submit"] {
    padding: 12px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    color: #fff;
    background: #004aad;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

button[type="submit"]:hover {
    background: #003080;
    transform: scale(1.05);
}

@media screen and (max-width: 500px) {
    #booking-form { padding: 20px 15px; }
    .form-group input, .form-group select { font-size: 0.95em; padding: 8px; }
    button[type="submit"] { font-size: 0.95em; padding: 10px; }
}

/* =========================
   SCROLL TO TOP BUTTON
========================= */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    background-color: #004aad;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.3s;
    z-index: 1000;
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: #004aad;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

#scrollTopBtn::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: rotate(45deg);
}


/* =========================
   COMING SOON BOX
========================= */
.coming-soon-box {
    display: inline-block;
    padding: 30px;
    border: 2px dashed #4a90e2;
    border-radius: 12px;
    background: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* =========================
   TEAM SECTION
========================= */
.team-section {
    background: #f0f4f8;
    padding: 50px 20px;
    text-align: center;
}

.team-section h2 {
    margin-bottom: 15px;
    color: #4a90e2;
}

/* =========================
   MODAL
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    max-width: 800px;
    max-height: 80vh;
    margin: 5% auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 { margin-top: 0; }

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover { color: #000; }

#submitBtn:disabled {
    background-color: #ccc;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Two-column layout */
.two-column-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 50px auto;
  max-width: 1200px;
  padding: 20px;
}

.two-column-section .column {
  flex: 1;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive stacking on mobile */
@media (max-width: 768px) {
  .two-column-section {
    flex-direction: column;
  }
}


/* =========================
   BLOGS PAGE
========================= */
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background: #f9f9f9;
      color: #333;
    }
    .blogs-container {
      max-width: 1100px;
      margin: 2rem auto;
      padding: 0 1rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
    }
    .blog-card {
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.2s;
    }
    .blog-card:hover {
      transform: translateY(-5px);
    }
    .blog-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    .blog-content {
      padding: 1rem;
    }
    .blog-content h3 {
      margin: 0 0 0.5rem;
      font-size: 1.3rem;
      color: #004aad;
    }
    .blog-content p {
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 1rem;
    }
    .blog-content a {
      display: inline-block;
      text-decoration: none;
      background: #004aad;
      color: #fff;
      padding: 0.5rem 1rem;
      border-radius: 5px;
      font-size: 0.9rem;
    }
    .blog-content a:hover {
      background: #003080;
    }

 .section-title {
    text-align: center;           /* Center the heading */
    font-size: 2rem;              /* Adjust size */
    margin-bottom: 40px;          /* Space below heading */
    color: #333;                  /* Text color */
    font-weight: 600;             /* Slightly bold */
    position: relative;           /* Needed for pseudo-element */
}

.section-title::after {
    content: "";                  /* Empty content for underline */
    display: block;
    width: 80px;                  /* Length of the underline */
    height: 3px;                  /* Thickness of the underline */
    background-color: #ff6f61;    /* Underline color */
    margin: 10px auto 0 auto;     /* Center the underline with spacing */
    border-radius: 2px;           /* Rounded edges of underline */
}


   #cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 98%;
      background: #222;
      color: #fff;
      padding: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
      z-index: 9999;
    }
    #cookie-banner button {
      background: #4CAF50;
      border: none;
      padding: 8px 16px;
      color: white;
      border-radius: 5px;
      cursor: pointer;
    }

/* Hero Section */
.hero-banner {
    position: relative;
    height: 70vh;
    background: url("../Images/NewHeaderImage.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #fff;
}

/* ✅ Add dark overlay */
.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* darkness level */
    z-index: 1;
}

/* ✅ Text content */
.hero-banner .content {
    position: relative;
    z-index: 2; /* keeps text above overlay */
    max-width: 800px;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ✅ Buttons */
.hero-banner .btn-group button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Primary Button (Orange) */
.hero-banner .btn-primary {
    background-color: #ff9800;
    color: #fff;
}

.hero-banner .btn-primary:hover {
    background-color: #e68900;
    transform: translateY(-2px);
}

/* Secondary Button (White Outline) */
.btn-secondary {
  display: inline-block;       /* Make it behave like a block-level element */
  padding: 12px 24px;          /* Add padding */
  background-color: #007BFF;   /* Button color */
  color: #fff;                 /* Text color */
  text-align: center;           /* Center text */
  text-decoration: none;        /* Remove underline */
  border-radius: 5px;           /* Rounded corners */
  font-size: 16px;              /* Font size */
  font-weight: 600;             /* Optional: make text bold */
  cursor: pointer;              /* Pointer on hover */
  transition: background 0.3s;  /* Smooth hover effect */
}

.btn-secondary:hover {
  background-color: #0056b3;    /* Darker color on hover */
}



/* ✅ Responsive */
@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    .hero-banner p {
        font-size: 1rem;
    }
    .hero-banner {
        height: auto;
        padding: 60px 20px;
    }
}

.h2-color {
    color: #fff;
}




