/* ==========================
   GLOBAL STYLES
========================== */
@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.bg-container {
  background-color: #ececec;
}

.ff-lb {
  font-family: 'Lato Bold';
}

.td-remove {
  text-decoration: none;
}

.card {
  cursor: pointer;
}

/* DESKTOP CAROUSEL */
.desktop-only {
  display: block;
}

/* Hide on Mobile */
@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }
}

/* ===============================
   DESKTOP CAROUSEL FIX
================================ */

.desktop-only .carousel-caption {
  bottom: 60px;
  /* move up a bit */
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 700px;
  padding: 0;
}

/* Caption background */
.custom-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 16px;
  border-radius: 8px;
}

/* Text size */
.desktop-only .carousel-caption h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.desktop-only .carousel-caption p {
  font-size: 16px;
}



/* MOBILE CAROUSEL */
.mobile-only {
  display: none;
}

/* Show only on Mobile */
@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }
}

/* Mobile Image Size */
.carousel-img-mobile {
  height: 220px;
  object-fit: contain;
  background-color: #000;
}




@media (max-width: 767.98px) {


  .carousel-indicators {
    bottom: -10px !important;
  }
}







/* SHOW ON DESKTOP ONLY */
.show-desktop {
  display: block !important;
}

/* HIDE ON MOBILE */
@media (max-width: 767.98px) {
  .show-desktop {
    display: none !important;
  }
}

/* HIDE BY DEFAULT */
.show-mobile {
  display: none !important;
}

/* SHOW ONLY ON MOBILE */
@media (max-width: 767.98px) {
  .show-mobile {
    display: block !important;
  }
}


/* =====================================
   DESKTOP TEXT SIZES
===================================== */
.carousel-caption h3 {
  font-size: 24px;
}

.carousel-caption p {
  font-size: 16px;
}

/* MOBILE ONLY */
@media (max-width: 767px) {
  .carousel-img {
    height: 220px;
    object-fit: contain;
    background-color: #000;
  }

  .carousel-caption {
    bottom: 38px;
    padding: 8px 10px;
    max-width: 92%;
    margin: 0 auto;
  }

  .custom-caption {
    padding: 8px 10px;
    border-radius: 6px;
  }

  .carousel-caption h3 {
    font-size: 12px;
  }

  .carousel-caption p {
    font-size: 10px;
  }
}

/* =====================================
   CALENDAR / EVENTS
===================================== */
.border-color {
  border-left: 6px solid #0d6efd;
}

.event-blue {
  transition: color 0.25s ease;
}

.event-blue:hover {
  color: #0d6efd;
}

/* =====================================
   VDS PHOTO GALLERY
===================================== */

.gallery-card {
  overflow: hidden;
  border-radius: 6px;
}

.gallery-hover {
  transform: scale(1);
  transition: transform 0.3s ease;
}

.gallery-hover:hover {
  transform: scale(1.04);
}

/* Shine effect */
.gallery-shine {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 1.5rem;
}

.gallery-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 35%,
      rgba(255, 255, 255, 0.35),
      transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.gallery-shine:hover::after {
  transform: translateX(100%);
}

.gallery-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
}

/* Caption text under image */
.gallery-caption-text {
  margin: 8px 0 6px;
  font-weight: 500;
  text-align: center;
}

/* Mobile only */
@media (max-width: 767px) {
  .gallery-image {
    height: 140px;
    border-radius: 4px;
  }

  .gallery-caption-text {
    font-size: 0.85rem;
  }

  .gallery-title {
    font-size: 1.25rem;
  }

  .gallery-link {
    font-size: 0.85rem;
  }
}


/* =====================================
   PRINCIPAL WELCOME
===================================== */
.principal-title {
  font-size: 1.4rem;
}

.principal-text {
  font-size: 1rem;
  line-height: 1.6;
}

.img-card_p {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

@media (min-width: 992px) {
  .principal-title {
    font-size: 2rem;
  }

  .principal-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .principal-title {
    padding-top: 25px;
  }
}

/* =====================================
   BACKGROUND / HERO
===================================== */
.bg-image {
  background-image: url("/school_images/white_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
}

.bg-color {
  background-color: rgb(226, 226, 226);
}

.smooth-zoom {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.smooth-zoom:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  .hero-section {
    height: 100vh;
    background-image: url('/school_images/VDS.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
}

@media (max-width: 991px) {
  .hero-section {
    display: none !important;
    background: none !important;
    height: auto !important;
  }
}

/* =====================================
   BLOG SLIDER
===================================== */
.card-slider-container {
  position: relative;
  padding: 0 20px;
}

.card-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.card-slider::-webkit-scrollbar {
  display: none;
}

.card-slider .card {
  flex: 0 0 80%;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  transition: transform 0.3s;
}

.card-slider .card:hover {
  transform: translateY(-3px);
}

.img-card {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.card-body p {
  margin: 0.2rem 0;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.45);
  border: none;
  color: white;
  font-size: 2rem;
  z-index: 10;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 50%;
}

.slide-left {
  left: 0;
}

.slide-right {
  right: 0;
}

@media (max-width: 768px) {
  .card-slider .card {
    flex: 0 0 80%;
  }

  .slide-btn {
    display: none;
  }
}

@media (min-width: 576px) {
  .card-slider .card {
    flex: 0 0 45%;
  }
}

@media (min-width: 768px) {
  .card-slider .card {
    flex: 0 0 30%;
  }
}

@media (min-width: 992px) {
  .card-slider .card {
    flex: 0 0 23%;
  }
}

/* =====================================
   ACCREDITATIONS
===================================== */
.accreditations-section {
  background: #fff;
}

.accreditations-title {
  background: #e9edf3;
  color: #2d4f83;
  padding: 10px 28px;
  display: inline-block;
  border-radius: 40px;
  font-weight: 600;
  font-size: 24px;
  margin-left: -50px;
}

.accredit-logo {
  width: 100%;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.4s ease;
}

.accredit-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .accredit-logo {
    max-width: 110px;
  }

  .accreditations-title {
    font-size: 22px;
    padding: 8px 24px;
  }
}

@media (max-width: 767px) {
  .accreditations-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    text-align: center;
  }

  .accredit-logo {
    max-width: 95px;
    margin-bottom: 10px;
    opacity: 1;
    filter: none;
  }

  .row.g-4 {
    --bs-gutter-y: 1rem !important;
  }

  .accreditations-title {
    font-size: 20px;
    padding: 6px 50px;
    border-radius: 30px;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .accredit-logo {
    max-width: 80px;
  }

  .accreditations-title {
    font-size: 18px;
    padding: 6px 18px;
    border-radius: 30px;
  }
}

/* =====================================
   ACHIEVEMENTS
===================================== */
.ach-card {
  background: #009fe3;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ach-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: top center;
}

.ach-content {
  padding: 12px;
  color: white;
}

.ach-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

@media (max-width: 576px) {
  .ach-img {
    aspect-ratio: 4/3;
  }

  .ach-content {
    padding: 10px;
  }

  .ach-text {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* =====================================
   RESULTS POPUP
===================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-box {
  width: 65%;
  max-width: 550px;
  background: #fff;
  border: 3px solid #1aa0e2;
  padding: 15px;
  border-radius: 6px;
  position: relative;
  animation: fadeIn 0.3s;
}

.close-popup {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 26px;
  cursor: pointer;
  color: #1aa0e2;
}

.popup-logo {
  width: 90px;
  display: block;
  margin: 0 auto 6px;
}

.popup-section h2 {
  text-align: center;
  color: #0080c9;
  font-size: 20px;
  margin-bottom: 12px;
}

.student-card {
  display: inline-block;
  width: 42%;
  text-align: center;
  margin: 5px 2%;
}

.student-card img {
  width: 100%;
  max-width: 130px;
  border-radius: 6px;
}

.name {
  font-size: 14px;
  margin-top: 5px;
}

.marks {
  font-size: 18px;
  color: #0d8ac9;
  font-weight: bold;
}

.congrats {
  text-align: center;
  font-family: 'Brush Script MT', cursive;
  font-size: 26px;
  margin-top: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#resultPopupOverlay.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}



.img-effect2 {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 1.5rem;
}

.img-effect2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 35%,
      rgba(255, 255, 255, 0.35),
      transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.img-effect2:hover::after {
  transform: translateX(100%);
}

.img-effect {
  transform: scale(1);
  /* initial shape */
  transition: transform 0.3s ease;
  /* smooth animation */
}

.img-effect:hover {
  transform: scale(1.04);
  /* changed shape */
}

/* =====================================
   MOBILE RESET (REAL APP)
===================================== */
@media (max-width: 768px) {

  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    background-attachment: scroll !important;
  }

  section,
  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  h1 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  small {
    font-size: 13px;
  }

  header,
  .top-bar {
    position: relative;
    padding: 6px 10px;
  }

  .hero-section {
    height: auto;
    min-height: unset;
  }

  .carousel-img {
    height: 220px;
    border-radius: 0;
  }

  .carousel-caption,
  .custom-caption {
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
  }

  .card {
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .card-body {
    padding: 12px;
  }

  .img-effect:hover,
  .smooth-zoom:hover,
  .accredit-logo:hover {
    transform: none !important;
    filter: none !important;
  }



  .gallery-img {
    height: 140px;
    border-radius: 4px;
  }

  .accreditations-title {
    font-size: 18px;
    padding: 6px 16px;
    margin-left: 0;
    border-radius: 20px;
  }

  .accredit-logo {
    max-width: 85px;
    opacity: 1;
    filter: none;
  }

  .ach-img {
    aspect-ratio: 4/3;
  }

  .ach-content {
    padding: 10px;
  }

  .ach-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .card-slider {
    gap: 12px;
    padding-bottom: 6px;
  }

  .popup-box {
    width: 94%;
    padding: 12px;
    border-width: 2px;
  }

  .popup-logo {
    width: 70px;
  }

  .popup-section h2 {
    font-size: 18px;
  }

  .student-card {
    width: 100%;
    margin: 10px 0;
  }

  .marks {
    font-size: 16px;
  }

  .congrats {
    font-size: 22px;
  }
}


/* =====================================
   REMOVE HOVER EFFECTS ON MOBILE
===================================== */
@media (max-width: 767px) {

  .gallery-hover:hover {
    transform: none !important;
  }

  .gallery-shine::after {
    display: none !important;
  }
}

/* ==========================
   NEWS TICKER FIX (MOBILE)
========================== */

.news-ticker {
  overflow: hidden;
  background: #0d6efd;
  color: #fff;
  white-space: nowrap;
}

.news-ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: slide 18s linear infinite !important;
}