/* Custom site overrides — keep separate from the compiled theme main.css */

/* Floating WhatsApp chat button, fixed bottom-left (back-to-top owns bottom-right) */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  inset-inline-start: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: var(--tj-color-common-white);
  display: grid;
  place-items: center;
  font-size: 30px;
  z-index: 100;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 15px 0px;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
}
.whatsapp-float-btn:hover {
  -webkit-transform: scale(1.08);
      -ms-transform: scale(1.08);
          transform: scale(1.08);
  color: var(--tj-color-common-white);
}
@media (max-width: 575px) {
  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 20px;
    inset-inline-start: 20px;
  }
}

/* BS ONLINE Assistant chatbot: floating button stacked above the WhatsApp button */
.chatbot-float-btn {
  position: fixed;
  bottom: 104px;
  inset-inline-start: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  display: grid;
  place-items: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 100;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 15px 0px;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
}
.chatbot-float-btn:hover {
  -webkit-transform: scale(1.08);
      -ms-transform: scale(1.08);
          transform: scale(1.08);
}
@media (max-width: 575px) {
  .chatbot-float-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 84px;
    inset-inline-start: 20px;
  }
}

.chatbot-window {
  position: fixed;
  bottom: 104px;
  inset-inline-start: 100px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: var(--tj-color-common-white);
  border-radius: 16px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 40px 0px;
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chatbot-window[hidden] {
  display: none;
}
@media (max-width: 575px) {
  .chatbot-window {
    inset-inline-start: 20px;
    bottom: 84px;
    width: calc(100vw - 40px);
    height: calc(100vh - 160px);
  }
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  flex-shrink: 0;
}
.chatbot-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--tj-fw-sbold);
}
.chatbot-close-btn {
  border: none;
  background: transparent;
  color: var(--tj-color-common-white);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.chatbot-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--tj-color-grey-1);
}
.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.chatbot-msg p {
  margin: 0;
}
.chatbot-msg p + p {
  margin-top: 8px;
}
.chatbot-msg-bot {
  align-self: flex-start;
  background-color: var(--tj-color-common-white);
  color: var(--tj-color-text-body);
  border-bottom-left-radius: 2px;
}
.chatbot-msg-user {
  align-self: flex-end;
  background-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  border-bottom-right-radius: 2px;
}
.chatbot-msg-error {
  align-self: flex-start;
  background-color: #fdecea;
  color: #b3261e;
  border-bottom-left-radius: 2px;
}
.chatbot-msg-typing {
  align-self: flex-start;
  background-color: var(--tj-color-common-white);
  color: var(--tj-color-text-body);
  padding: 12px 16px;
  display: inline-flex;
  gap: 4px;
}
.chatbot-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--tj-color-theme-dark-4);
  display: inline-block;
  -webkit-animation: bsnkTypingBounce 1.2s infinite ease-in-out;
          animation: bsnkTypingBounce 1.2s infinite ease-in-out;
}
.chatbot-msg-typing span:nth-child(2) {
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
}
.chatbot-msg-typing span:nth-child(3) {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}
@-webkit-keyframes bsnkTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes bsnkTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--tj-color-border-1);
  flex-shrink: 0;
}
.chatbot-input-area input {
  flex: 1 1 auto;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}
.chatbot-input-area input:focus {
  border-color: var(--tj-color-theme-primary);
}
.chatbot-input-area button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.chatbot-input-area button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Our Classes section: make every card the same height per row */
.h10-service-wrapper .swiper-slide {
  height: auto;
  display: flex;
}
.h10-service-wrapper .service-item.style-4 {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.h10-service-wrapper .service-item.style-4 .service-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.h10-service-wrapper .service-item.style-4 .desc {
  flex: 1 1 auto;
}
.h10-service-wrapper .service-item.style-4 .text-btn {
  margin-top: 24px;
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
}
.h10-service-wrapper .service-item.style-4 .text-btn .btn-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  -webkit-transition: max-width 0.4s ease-in-out, opacity 0.3s ease-in-out;
  transition: max-width 0.4s ease-in-out, opacity 0.3s ease-in-out;
}
.h10-service-wrapper .service-item.style-4:hover .text-btn .btn-text {
  max-width: 160px;
  opacity: 1;
}

/* Our Classes section: smaller icons */
.h10-service-wrapper .service-item.style-4 .service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 30px;
  font-size: 40px;
}
.h10-service-wrapper .service-item.style-4 .service-icon i {
  font-size: 40px;
}

/* MCQ section feature checklist: default list-items text color is too dark for this card's dark background */
.h6-about-funfact .list-items li {
  color: var(--tj-color-text-body-2);
}

/* MCQ section: two "Know More Us" buttons side by side in one line */
.h6-about-content .btn-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* App Store / Play Store buttons: cancel the -45deg rotation meant for the arrow icon */
.tj-primary-btn .btn-icon i.fa-apple,
.tj-primary-btn .btn-icon i.fa-google-play {
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
}

/* Primary button arrow circle: use the secondary (cyan) brand color instead of the dark navy, which read as plain black against the new blue buttons. Dark arrow for contrast against the lighter cyan. */
.tj-primary-btn:not(.btn-dark) .btn-icon {
  background-color: var(--tj-color-theme-secondary);
}
.tj-primary-btn:not(.btn-dark) .btn-icon i {
  color: var(--tj-color-theme-dark);
}

/* Hero blur shape: source PNG is a teal gradient blur; hue-rotate shifts it to match the new blue theme without re-exporting the asset */
.h11-shape-1 img {
  filter: hue-rotate(34deg);
}

/* Inner-page header (Contact, Hall of Fame, Gallery): show the background photo and glow shape in their original colors, no theme tinting */
.tj-page-header {
  background-blend-mode: normal;
}

/* Contact page info cards: make all 4 cards in a row match height (Bootstrap stretches the columns already, but the card div itself wasn't filling its column) */
.contact-item.style-2 {
  height: 100%;
}

/* Hall of Flame testimonial cards: District Rank badge on the same line as the star rating, right-aligned */
.testimonial-item .rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.testimonial-item .district-rank {
  font-weight: var(--tj-fw-bold);
  color: var(--tj-color-theme-primary);
  white-space: nowrap;
}

/* Gallery page: uniform cropped thumbnails with a hover zoom overlay */
.gallery-grid .image-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-grid .image-box a {
  display: block;
  position: relative;
}
.gallery-grid .image-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.4s ease-in-out;
  transition: transform 0.4s ease-in-out;
}
.gallery-grid .image-box:hover img {
  -webkit-transform: scale(1.08);
      -ms-transform: scale(1.08);
          transform: scale(1.08);
}
.gallery-grid .image-box-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--tj-color-common-white);
  background: rgba(12, 30, 33, 0.45);
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}
.gallery-grid .image-box:hover .image-box-overlay {
  opacity: 1;
}

/* Hall of Fame page: testimonial cards in a static grid (no slider mask/fade) */
.hof-grid .testimonial-item {
  background-color: var(--tj-color-common-white);
  border: 2px solid var(--tj-color-common-white);
  padding: 40px 30px 35px;
  height: 100%;
  border-radius: 8px;
}
.hof-grid .testimonial-item {
  display: flex;
  flex-direction: column;
}
.hof-grid .testimonial-item .desc {
  font-size: 18px;
  line-height: 1.444;
  padding-top: 23px;
  padding-bottom: 22px;
  flex: 1 1 auto;
}
.hof-grid .testimonial-item .desc p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hof-grid .testimonial-item .testimonial-author .author-img {
  width: 80px;
  height: 80px;
}
.hof-grid .testimonial-item .testimonial-author .title {
  font-weight: var(--tj-fw-sbold);
  margin-bottom: 3px;
}
.hof-grid .testimonial-item .read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-theme-primary);
}
.hof-grid .testimonial-item .read-more-btn i {
  font-size: 12px;
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

/* Hero banner title image */
.banner-title-img-wrap {
  margin: 0 0 30px;
  line-height: 1;
}
.banner-title-img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 767px) {
  .banner-title-img {
    max-width: 320px;
  }
}

/* Footer marquee: swiper.min.css ships .swiper-wrapper/.swiper-slide at height:100%, which
   inherits a real pixel height from an ancestor (GSAP smooth-scroll wrapper) and stretches
   every slide to fill the viewport. Force it back to content-driven auto height. */
.footer-marquee .swiper,
.footer-marquee .swiper-wrapper,
.footer-marquee .swiper-slide.marquee-item {
  height: auto !important;
}
.footer-marquee .swiper-wrapper {
  align-items: center;
}

/* Read More popup pages (loaded inside the venobox iframe): full untruncated feedback */
.feedback-popup-page {
  padding: 30px 20px;
}
.feedback-popup-page .testimonial-item {
  background-color: var(--tj-color-common-white);
  border-radius: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.feedback-popup-page .testimonial-item .desc {
  font-size: 17px;
  line-height: 1.5;
  padding-top: 18px;
  padding-bottom: 18px;
}
.feedback-popup-page .testimonial-item .testimonial-author .author-img {
  width: 64px;
  height: 64px;
}
.feedback-popup-page .testimonial-item .testimonial-author .title {
  font-weight: var(--tj-fw-sbold);
  margin-bottom: 3px;
}
