
@keyframes slide { /* bootstrap elements css*/
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.carousel-img {
    height: 300px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .carousel-img {
        height: 450px;
    }
}

@media (min-width: 1200px) {
    .carousel-img {
        height: 550px;
    }
}
.custom-caption {
  background: rgba(0, 0, 0, 0.7);  /* darker */
  padding: 15px 20px;
  border-radius: 12px;
}
.border-color {
    border-left: 6px solid #0d6efd; /* Bootstrap primary blue */
}
.event-blue{
  transition: color 0.25s ease;
}
.event-blue:hover{
  color: #0d6efd;
}
.card{
  cursor: pointer;
}
.td-remove{
  text-decoration: none;
}
.img-card {
  overflow: hidden; /* hides image when zoomed */
}
.img-effect {
  transform: scale(1);       /* initial shape */
  transition: transform 0.3s ease; /* smooth animation */
}

.img-effect:hover {
  transform: scale(1.04);     /* changed shape */
}
.bg-container{
  background-color: rgb(236, 236, 236);
}

.gallery-img {
  width: 100%;
  height: 180px; /* You can change this based on design */
  object-fit: cover;
  border-radius: 5px;
}

.bg-image{
  background-image: url("school_images/white_bg.jpg");
  background-size: cover;        /* image covers full area */
  background-position: center;   /* center the image */
  background-repeat: no-repeat;  /* no repeating */
  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);
}

/*parallax scroll effect*/
.hero-section {
  height: 100vh; /* full screen */
  background-image: url('school_images/VDS.png'); /* put your bg */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* FIXED BG (parallax effect) */
  background-repeat: no-repeat;
}

/*Blog css*/
.card-slider-container {
  position: relative;
}

.card-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

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

.slide-btn {
  position: absolute;
  top: 45%;
  z-index: 10;
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.7;
}
.slide-btn:hover {
  opacity: 1;
}

.slide-left {
  left: 0;
}

.slide-right {
  right: 0;
}




/* Section background */
.accreditations-section {
    background: #ffffff;
}

/* --- PILL TITLE STYLE --- */
.accreditations-title {
    background: #e9edf3;          /* grey shaded pill */
    color: #2d4f83;               /* school blue */
    padding: 10px 28px;
    display: inline-block;
    border-radius: 40px;          /* pill shape */
    font-weight: 600;
    font-size: 24px;
    margin-left: -50px;
}

/* --- LOGO STYLE --- */
.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);
}

/* -----------------------------------------
   MOBILE OPTIMIZATION
-------------------------------------------*/

/* Tablets (Portrait & Landscape) */
@media (max-width: 991px) {
    .accredit-logo {
        max-width: 110px;
    }
    .accreditations-title {
        font-size: 22px;
        padding: 8px 24px;
    }
}

/* Mobile Large (480px–767px) */
@media (max-width: 767px) {

    .accreditations-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .accredit-logo {
        max-width: 95px;
        margin-bottom: 10px;
    }

    .row.g-4 {
        --bs-gutter-y: 1rem !important; /* reduce vertical spacing */
    }

    .accreditations-title {
        font-size: 20px;
        padding: 6px 50px;
    }
}

/* Small Mobile (under 480px) */
@media (max-width: 480px) {

    .accredit-logo {
        max-width: 80px;
    }

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

    .accreditations-section {
        text-align: center;
    }
}


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

/* Force every image to stay same shape */
.ach-img {
    width: 100%;
    aspect-ratio: 3 / 2;   /* FIX: perfect visible size */
    object-fit: cover;
    object-position: top center; /* shows face area */
}

/* Content box */
.ach-content {
    padding: 12px;
    color: white;
}

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

/* Small screen fix */
@media (max-width: 576px) {
    .ach-img {
        aspect-ratio: 4 / 3;   /* a bit taller for mobile */
        object-fit: cover;
        object-position: top center;
    }
}




/* results popup section homepage */
/* Overlay */
.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;
}

/* Smaller Popup Box */
.popup-box {
    width: 65%;
    max-width: 550px;       /* Reduced from 750px */
    background: #ffffff;
    border: 3px solid #1aa0e2;
    padding: 15px;          /* Reduced padding */
    border-radius: 6px;
    position: relative;
    animation: fadeIn 0.3s;
}

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

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

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

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

.student-card img {
    width: 100%;
    max-width: 130px;      /* Reduced from 180px */
    border-radius: 6px;
}

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

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

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

/* Fade Animation */
@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;
}



/* other pages css*/

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