/********** Template CSS **********/   
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px; /* ensure columns readable */
}

.fees-table th, .fees-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

.fees-table th {
  background-color: var(--primary);
  color: white;
}

.highlight {
  color: var(--primary);
  font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .fees-table {
    font-size: 14px;
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .fees-table {
    font-size: 12px;
    min-width: 500px;
  }
}

.fees-container {
      max-width: 1100px;
      margin: 40px auto;
      padding: 0 20px;
    }

    .fees-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 40px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .fees-table th, .fees-table td {
      border: 1px solid #ddd;
      padding: 16px;
      text-align: center;
    }

    .fees-table th {
      background: var(--dark);
      color: var(--light);
      font-size: 1rem;
    }

    .fees-table tr:nth-child(even) {
      background: #f3f3f3;
    }

    .highlight {
      background: #f9ecec !important;
      font-weight: bold;
    }

    .info-box {
      background: var(--light);
      border-left: 6px solid var(--primary);
      padding: 20px;
      margin-bottom: 25px;
      border-radius: 8px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .info-box h3 {
      margin-top: 0;
      color: var(--primary);
    }

    .discount-box {
      background: #fff5f5;
      padding: 20px;
      border-radius: 8px;
      margin-bottom: 25px;
      border: 1px solid #ffd6d6;
    }

    .discount-box h4 {
      margin-top: 0;
      color: var(--primary);
    }

    .fees-footer {
      background: var(--dark);
      color: var(--light);
      text-align: center;
      padding: 20px;
      margin-top: 40px;
    }
/* Chat Icon */
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
#chat-icon:hover { background: #7d1a1f; }

/* Chatbox */
.chatbox {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 400px;
  max-height: 600px;
  background: var(--light);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 9999;
  font-family: "Heebo", sans-serif;
}

/* Responsive for Mobile */
/* Mobile Responsive Fix */
@media (max-width: 600px) {
  .chatbox {
    width: 90%;
    max-height: 80%;
    right: 5%;
    bottom: 80px;
    border-radius: 12px;
  }
}


/* Header */
.chat-header {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  font-size: 15px;
}

/* Messages */
.chat-messages {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}
.message.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.message.bot {
  background: #e9ecef;
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Typing dots */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  gap: 4px;
}
.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--dark);
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}
.chat-input input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
}
.chat-input button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 16px;
  cursor: pointer;
}
.chat-input button:hover { background: #7d1a1f; }
.chat-input input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #007bff33; /* halka blue glow */
  border-radius: 4px; /* rounded corners */
}

.chatbox-header {
  background: var(--primary);
  color: var(--light);
  padding:8px 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.chatbox-actions {
  display: flex;
  gap: 8px;
}

.chat-action {
  background: transparent;
  border: none;
  color: var(--light);
  font-size: 16px;
  cursor: pointer;
}
.chat-action:hover {
  opacity: 0.8;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #555;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.2s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
.chatbox-logo {
  width: 24px;  
  height: 28px;
  object-fit: contain;
  margin-right: 8px;
}
.chatbox-title {
  font-weight: 600;
  font-size: 14px;
  flex-grow: 1;           /* span ko logo ke saath left align karega */
  text-align: left;
}
.chatbox-center-logo {
  text-align: center;
  margin: 12px 0 -4px 0;
}

.chatbox-center-logo img {
  height: 40px;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chatbox-info {
  text-align: center;
  font-size: 12px;
  color: #666;
  background: #f1f1f1;
  padding: 8px 12px;
  margin: 10px auto;
  border-radius: 12px;
  max-width: 85%;
}

.chatbox-info p {
  margin: 0;
  line-height: 1.4;
}

.chatbox-info a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}


/* Flip Card Base */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
    min-height: 420px;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.modal-header-cil{
background-color: #A02128;
color: #fff;
}

/* Logo responsive fix */
.navbar-logo {
    max-height: 40px;
}
.navbar .btn {
    display: flex;
    align-items: center;     /* Text + icon vertical center */
    justify-content: center; /* Horizontal center */
    height: 45px;            
}
/* Mobile brand text small */
@media (max-width: 576px) {
    .navbar-brand span {
        font-size: 14px;
    }
}


.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    /* height: 100%; */
    backface-visibility: hidden;
    border-radius: 10px;
}

.flip-card-front {
    background: #fff;
}

.flip-card-back {
    background: #f8f9fa;
    transform: rotateY(180deg);
    text-align: center;
}

.course-item {
    background-color: #c6e2ff40;
}

:root {
    --primary: #A02128;
    --light: #FFFFFF;
    --dark: #0A2D45;
}

.navbar-logo {
    max-height: 60px;
    /* Limits the height */
    height: auto;
    width: auto;
    object-fit: contain;
    margin-left: 6px;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 45px;
    bottom: 45px;
    z-index: 99;
}

.join {
    color: #FFFFFF;
    background-color: #A02128;
}

.join:hover {
    color: #FFFFFF;
    background-color: #0A2D45;
}

.text-fight {
    color: #A02128;
}

.text-tag {
    color: #d1e0eb;
}

.text-admin {
    color: #0A2D45;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
        color: #0A2D45;
    }
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: #0A2D45;
    color: #fff; /* text white karne ke liye */
}

/* Dropdown active state (clicked / current page) */
.navbar .dropdown-menu .dropdown-item.active {
    background-color: #0A2D45;
    color: #fff;
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/about.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.page-header-10 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/blog.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-10 {
    background: rgba(15, 23, 43, .7);
}
.page-header-11 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/fees.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-11 {
    background: rgba(15, 23, 43, .7);
}

.page-header-1 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/writing-essay.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-1 {
    background: rgba(15, 23, 43, .7);
}

.page-header-2 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/contactimg.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-2 {
    background: rgba(15, 23, 43, .7);
}

.page-header-3 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/testimo.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-3 {
    background: rgba(15, 23, 43, .7);
}

.page-header-4 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/teams.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-4 {
    background: rgba(15, 23, 43, .7);
}

.page-header-5 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/privacypolicy.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-5 {
    background: rgba(15, 23, 43, .7);
}

.page-header-6 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/tandc.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-6 {
    background: rgba(15, 23, 43, .7);
}

.page-header-7 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/admission.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-7 {
    background: rgba(15, 23, 43, .7);
}

.page-header-8 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/help.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-8 {
    background: rgba(15, 23, 43, .7);
}

.page-header-9 {
    background: linear-gradient(rgba(19, 37, 82, 0.619), rgba(106, 18, 18, 0.7)), url(../img/applicatonfrom.avif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner-9 {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

.new-join {
    color: #A02128;
}

.new-join-btn {
    background-color: #A02128;
    color: #FFFFFF;
}

.new-join-btn:hover {
    background-color: #0A2D45;
    color: #FFFFFF;
}

.about-join {
    color: #0A2D45;
}

/*** Service ***/
.service-item {
    background: var(--light);
    border-radius: 14px;
    transition: 0.5s;
    box-shadow: 0 4px 8px rgba(77, 77, 77, 0.308),
        0 6px 20px rgba(65, 65, 65, 0.322);
}

.service-item:hover {
    margin-top: -10px;
    cursor: pointer;
    background: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12),
        0 12px 40px rgba(0, 0, 0, 0.18);
}

.items {
    border-radius: 14px !important;
    transition: 0.5s !important;
    box-shadow: 0 4px 8px rgba(131, 131, 131, 0.296),
        0 6px 20px rgba(123, 123, 123, 0.147) !important;
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}
/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}