  
    /* Stat Box Container - Horizontal & Centered */
    .col-lg-6 .row {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
      align-items: flex-start;
    }

    /* Stat Box - Horizontal Layout */
    .stat-box {
      text-align: center;
      padding: 30px 20px;
      background: #f8fafc;
      border-radius: 10px;
      border-left: 4px solid transparent;
      transition: all 0.3s ease;
    }

    .stat-box:nth-child(1) {
      border-left-color: #1e3a5f;
    }

    .stat-box:nth-child(2) {
      border-left-color: #28a745;
    }

    .stat-box:nth-child(3) {
      border-left-color: #17a2b8;
    }

    .stat-box:hover {
      background: #eef2ff;
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .stat-box i {
      transition: all 0.3s ease;
    }

    .stat-box:hover i {
      transform: scale(1.2);
    }

    .stat-box h4 {
      font-size: 20px;
      margin: 15px 0 8px 0 !important;
    }

    .stat-box p {
      font-size: 14px;
      margin: 0 !important;
    }

    @media (max-width: 992px) {
      .col-lg-6 .row {
        gap: 1rem;
      }

      .stat-box {
        padding: 25px 15px;
      }

      .stat-box h4 {
        font-size: 18px;
      }
    }

    @media (max-width: 768px) {
      .col-lg-6 .row {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
      }

      .col-lg-6 .row > div {
        width: 100%;
        max-width: 300px;
      }

      .stat-box {
        padding: 25px 15px;
      }

      .stat-box h4 {
        font-size: 18px;
      }

      .stat-box p {
        font-size: 13px;
      }
    }

    /* Cards */
    .card:hover {
      transform: translateY(-5px);
      transition: 0.3s;
    }

    /* Glass Card - Side by Side Layout */
    .glass-card {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      align-items: flex-start;
      /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%); */
      backdrop-filter: blur(10px);
      /* border: 1px solid rgba(0, 180, 216, 0.1);
      border-radius: 20px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); */
      transition: all 0.3s ease;
    }

    .glass-card:hover {
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
      border-color: rgba(0, 180, 216, 0.2);
    }

    .glass-card > .row {
      flex: 1 1 50%;
      min-width: 300px;
      width: 100%;
    }

    /* Responsive: Stack on smaller screens */
    @media (max-width: 968px) {
      .glass-card {
        flex-direction: column;
      }

      .glass-card > .row {
        flex: 1 1 100%;
      }
    }

    @media (max-width: 768px) {
      .glass-card {
        flex-direction: column;
        padding: 20px !important;
      }

      .glass-card > .row {
        flex: 1 1 100%;
      }

    }
    /* ===== STAT CARDS STYLING ===== */
    .stat-card {
      position: relative;
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid rgba(0, 180, 216, 0.1);
      border-radius: 15px;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 35px 25px !important;
    }

    /* Stat Card Icon Container */
    .stat-card i {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      filter: drop-shadow(0 4px 12px rgba(30, 58, 95, 0.1));
    }

    /* Stat Card Hover Effects */
    .stat-card:hover {
      transform: translateY(-15px);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
      border-color: rgba(0, 180, 216, 0.3);
    }

    .stat-card:hover i {
      transform: scale(1.25) rotateY(10deg);
    }

    /* Stat Card Title */
    .stat-card h4 {
      font-size: 22px;
      font-weight: 700;
      margin: 15px 0 10px 0 !important;
      letter-spacing: -0.3px;
      position: relative;
      z-index: 2;
    }

    .stat-card h4.text-primary {
      color: #1e3a5f !important;
    }

    .stat-card h4.text-success {
      color: #28a745 !important;
    }

    .stat-card h4.text-info {
      color: #17a2b8 !important;
    }

    /* Stat Card Description */
    .stat-card p {
      font-size: 14px;
      color: #6b7b8d;
      margin: 0 !important;
      line-height: 1.6;
      position: relative;
      z-index: 2;
    }

    /* Stat Card Background Animation */
    .stat-card::before {
      content: '';
      position: absolute;
      top: -100%;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(240, 165, 0, 0.05));
      transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1;
    }

    .stat-card:hover::before {
      top: 0;
    }

    /* Responsive Stat Cards */
    @media (max-width: 992px) {
      .stat-card {
        padding: 30px 20px !important;
      }

      .stat-card h4 {
        font-size: 20px;
      }
    }

    @media (max-width: 768px) {
      .stat-card {
        padding: 25px 18px !important;
      }

      .stat-card h4 {
        font-size: 18px;
      }

      .stat-card p {
        font-size: 13px;
      }
    }


/* why us section start here */


.carousel img {
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

h4 {
    margin-bottom: 15px;
}

p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* Smooth hover effect */
.carousel {
    transition: 0.3s;
}

.carousel:hover {
    transform: scale(1.02);
}


/* ===== TIMELINE MODERN STYLING ===== */
.timeline-modern {
    position: relative;
    padding: 30px 0;
}

/* Vertical connecting line */
.timeline-modern::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00b4d8 0%, #f0a500 100%);
    border-radius: 2px;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
    animation: timelineItemFade 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes timelineItemFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Timeline Icon Circle */
.timeline-icon {
    position: absolute;
    left: -5px;
    top: 5px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00b4d8 0%, #0099bb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid white;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.5);
    background: linear-gradient(135deg, #f0a500 0%, #ffc947 100%);
}

/* Timeline Content Card */
.timeline-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 25px 28px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Gradient overlay on hover */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 180, 216, 0.3);
}

.timeline-item:hover .timeline-content::before {
    left: 100%;
}

/* Timeline Content Typography */
.timeline-content h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.timeline-content p {
    font-size: 14px;
    color: #6b7b8d;
    line-height: 1.6;
    margin: 0;
}



/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-modern::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .timeline-icon {
        left: -15px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .timeline-content {
        padding: 20px 22px;
    }

    .timeline-content h5 {
        font-size: 16px;
    }

    .timeline-content p {
        font-size: 13px;
    }
}


/* ===== MISSION CARDS STYLING ===== */
.mission-point {
    position: relative;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 180, 216, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Mission Card Icon Container */
.mission-point .mb-3 {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Mission Card Icon Styling */
.mission-point i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(30, 58, 95, 0.15));
}

/* Mission Point Hover Effects */
.mission-point:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 180, 216, 0.3) !important;
}

.mission-point:hover i {
    transform: scale(1.15) rotate(10deg);
}

/* Mission Card Title */
.mission-point h5 {
    font-size: 18px;
    color: #1e3a5f;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 2;
}

/* Mission Card Title Underline */
.mission-point h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8, #f0a500);
    transition: width 0.4s ease;
}

.mission-point:hover h5::after {
    width: 100%;
}

/* Mission Card Text */
.mission-point p {
    font-size: 14px;
    color: #6b7b8d;
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

/* Mission Card Background Gradient on Hover */
.mission-point::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(240, 165, 0, 0.05));
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.mission-point:hover::before {
    top: 0;
}

/* Responsive Mission Cards */
@media (max-width: 768px) {
    .mission-point {
        padding: 30px 20px !important;
    }

    .mission-point h5 {
        font-size: 16px;
    }

    .mission-point p {
        font-size: 13px;
    }
}


/* ===== CORE VALUES CARDS STYLING ===== */
.value-card-modern {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 180, 216, 0.1) !important;
    border-radius: 18px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Value Icon Container */
.value-card-modern .value-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px !important;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(240, 165, 0, 0.05));
    border: 2px solid rgba(0, 180, 216, 0.2);
}

.value-card-modern i {
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(30, 58, 95, 0.1));
}

/* Value Card Hover Effects */
.value-card-modern:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 180, 216, 0.3) !important;
}

.value-card-modern:hover .value-icon {
    background: linear-gradient(135deg, #00b4d8, #0099bb);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(0, 180, 216, 0.3);
}

.value-card-modern:hover i {
    color: white !important;
    transform: scale(1.2) rotateZ(360deg);
}

/* Value Card Title */
.value-card-modern h6 {
    font-size: 16px;
    color: #1e3a5f;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 2;
    margin-bottom: 12px !important;
    text-transform: uppercase;
    font-weight: 700;
}

/* Value Card Description */
.value-card-modern p {
    font-size: 13px;
    color: #6b7b8d;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Value Card Background Animation */
.value-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    z-index: 1;
}

.value-card-modern:hover::before {
    top: -25%;
    right: -25%;
}

/* Preserve Hover Lift Class */
.hover-lift {
    position: relative;
}

.hover-lift::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #00b4d8, #f0a500);
    transition: width 0.4s ease;
    z-index: 2;
}

.value-card-modern:hover::after {
    width: 100%;
}

/* Responsive Value Cards */
@media (max-width: 992px) {
    .value-card-modern {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .value-card-modern {
        padding: 30px 20px !important;
    }

    .value-icon {
        width: 70px !important;
        height: 70px !important;
    }

    .value-card-modern h6 {
        font-size: 14px;
    }

    .value-card-modern p {
        font-size: 12px;
    }
}
.placement-testimonial {
    height: 100px;        /* fixed height (adjust as needed) */
    overflow-y: auto;     /* vertical scroll enable */
    padding-right: 5px;   /* scrollbar ke liye thoda space */
}
.quote-icon i {
    font-size: 20px;
    color: #0d6efd; /* primary color */
    /* background: #eaf2ff; */
    /* padding: 10px; */
    /* border-radius: 50%; */
}

.testimonial-text {
    font-style: italic;
    color: #444;
    position: relative;
    padding-left: 10px;
}
.card-img-top {
    height: 350px;
    width: 100%;
    /* object-fit: cover; */
}
/* Heading */
/* Styles now handled by .section-title in index.css */

/* Tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}



/* Placement Record Cards */

.placement-record-cards .card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: none;
}

.placement-record-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.label {
    font-weight: 600;
    margin-right: 5px;

}
/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .placement-record-cards {
    flex-direction: column !important;
    align-items: center;
  }
  
  .placement-record-cards .card {
    max-width: 100% !important;
  }
}




/* RESPONSIVE PLACEMENT SLIDER */
.placement-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    --slide-gap: 20px;
}

.placement-track {
    display: flex;
    gap: var(--slide-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.placement-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}


.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

/* Responsive Card Widths */
@media (max-width: 576px) {
  .card { flex: 0 0 90%; }
}
@media (min-width: 577px) and (max-width: 768px) {
  .card { flex: 0 0 80%; }
}
@media (min-width: 769px) {
  .placement-track {
    justify-content: center;
    flex-wrap: nowrap;
  }
  .card { flex: 0 0 calc(33.333% - var(--slide-gap)); }
}
@media (min-width: 1200px) {
  .card { flex: 0 0 calc(33.333% - var(--slide-gap)); }
}

/* Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 16px;
  color: #1e3a5f;
}

.slider-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

@media (max-width: 768px) {
  .slider-nav { display: none; }
}

/* Pause on hover */
.placement-slider:hover .placement-track {
  cursor: grab;
}

.placement-track:active {
  cursor: grabbing;
}

/* Testimonials styling refinement */
.placement-testimonial {
  border-top: 1px solid #e9ecef;
  padding: 15px;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-icon {
  color: #00b4d8;
  font-size: 24px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.testimonial-text {
  font-style: italic;
  font-size: 14px;
  color: #495057;
  line-height: 1.5;
  margin-bottom: 8px;
}

.author {
  font-weight: 600;
  color: #28a745;
  font-size: 13px;
  align-self: flex-end;
}

/* LABEL refinement */
.label {
  font-weight: 600;
  margin-right: 8px;
  font-size: 14px;
}


.facilities-overlap-row {
    position: relative;
}

.facilities-slider-col {
    position: relative;
    z-index: 1;
}

.facilities-content-col {
    position: relative;
    z-index: 2;
}

.facilities-content-box {
    margin-left: -80px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    background-color: var(--primary-dark); 
}
.facilities-content-box p{
    color: #f1f5f9;
}
.content-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 10px;
}
/* image fix */
.facilitiesSwiper .swiper-slide img {
    height: 450px;
    object-fit: cover;
}

.facilities-pagination.swiper-pagination-horizontal {
    bottom: 12px;
}

@media (max-width: 767.98px) {
    .facilities-content-box {
        margin-left: 0;
        margin-top: -24px;
    }

    .content-scroll {
        max-height: 220px;
    }
}
/*--------------------------------------------------------------
# Trainers Section
--------------------------------------------------------------*/
.trainers .member {
    position: relative;
    border: 1 px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.424);
    transition: all 0.3s ease;
}

.trainers .member .member-img {
    width: 200px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    height: 200px;
    margin: 0 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

@media (max-width: 1024px) {
    .trainers .member .member-img {
        margin: 0 60px;
    }
}

.trainers .member .member-img img {
    position: relative;
    z-index: 1;
}
.special-section .section-title {
    display: inline;
}
 
/* pop model start  */
  .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
        }
    
        .modal-overlay.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    
        .modal-box {
            background: white;
            border-radius: 10px;
            padding: 25px;
            max-width: 450px;
            width: 85%;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
        }
    
        .modal-close {
            position: absolute;
            top: 12px;
            right: 15px;
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #999;
        }
    
        .modal-close:hover {
            color: #000;
        }
    
        .modal-img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
        }
    
        .modal-name {
            font-size: 22px;
            font-weight: bold;
            color: #1e3a5f;
            margin-bottom: 8px;
        }
    
        .modal-role {
            display: inline-block;
            background: #0d6efd;
            color: white;
            padding: 5px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 15px;
        }
    
        .modal-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            text-align: left;
        }


/* ============================================
   FACULTY CARDS
============================================ */
.faculty-dept-block {
    margin-bottom: 3rem;
}

/* .faculty-dept-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0,180,216,0.08), rgba(30,58,95,0.06));
    border-left: 4px solid #00b4d8;
    border-radius: 0 10px 10px 0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
} */

.faculty-card {
    background: #fff;
    border-radius: 16px;
    height: 40vh;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,180,216,0.1);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
    border-color: rgba(0,180,216,0.3);
}

.faculty-card-img-wrap {
    display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px 0;
        background: transparent;
        aspect-ratio: unset;
        /* remove ratio */
}

.faculty-card-img-wrap img {
    width: 120px;
        height: 120px;
        border-radius: 50%;
        /* 🔥 circle */
        object-fit: cover;
        border: 4px solid #00b4d8;
        transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-card-img-wrap img {
    transform: scale(1.08);
}

.faculty-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,22,40,0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 0.4px;
}

.faculty-card:hover .faculty-card-overlay {
    opacity: 1;
}

.faculty-card-overlay i {
    margin-right: 6px;
}

.faculty-card-body {
    padding: 10px 10px 12px;
    text-align: center;
    border-top: 1px solid rgba(0,180,216,0.1);
}

.faculty-card-body h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px !important;
}

.faculty-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #00b4d8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.faculty-card-body p {
    font-size: 12px !important;
    color: #8a9bb0 !important;
    margin: 6px 0 0 !important;
    line-height: 1.5 !important;
}


/* ============================================
   FACULTY MODAL POPUP
============================================ */
.faculty-modal-backdrop {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(10, 22, 40, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9998;
    animation: backdropFadeIn 0.25s ease;
}

.faculty-modal-backdrop.active {
    display: block;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Make popup act as the full screen wrapper */
.faculty-modal-popup {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    height: 100vh; /* Exactly viewport height */
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.faculty-modal-popup.active {
    display: flex; /* activates flex centering */
    animation: _bgFadeIn 0.3s ease; /* optional extra fade */
}

/* Inner card styles instead of the wrapper */
.faculty-modal-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 820px;
    min-height: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.22);
    transform: scale(0.94) translateY(20px);
    opacity: 0;
    margin: auto; /* fallback for flex */
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}

.faculty-modal-popup.active .faculty-modal-inner {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.faculty-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(30,58,95,0.08);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    font-size: 15px;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.faculty-modal-close:hover {
    background: #e74c3c;
    color: #fff;
}

/* LEFT PHOTO PANEL */
.faculty-modal-photo-panel {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #1e3a5f 0%, #00b4d8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px 28px;
    border-radius: 20px 0 0 20px;
    gap: 18px;
}

.faculty-modal-img-wrap {
    width: 170px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.faculty-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-modal-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.fm-exp-badge {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* RIGHT INFO PANEL */
.faculty-modal-info-panel {
    flex: 1;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.faculty-modal-header-block h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 8px !important;
}

.fm-role-pill {
    display: inline-block;
    background: linear-gradient(135deg, #00b4d8, #0d6efd);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.fm-dept {
    font-size: 13px !important;
    color: #6b7b8d !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Detail Row */
.fm-detail-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.fm-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,180,216,0.06);
    padding: 12px 16px;
    border-radius: 12px;
    flex: 1;
    min-width: 160px;
    border: 1px solid rgba(0,180,216,0.12);
}

.fm-detail-item i {
    font-size: 18px;
    color: #00b4d8;
    flex-shrink: 0;
}

.fm-detail-item small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8a9bb0;
    margin-bottom: 2px;
}

.fm-detail-item strong {
    font-size: 13px;
    color: #1e3a5f;
    font-weight: 600;
    display: block;
}

/* About Block */
.fm-about-block h6,
.fm-skills-block h6 {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8a9bb0;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

.fm-about-block p {
    font-size: 14px !important;
    color: #4a5568 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

/* Tags */
.fm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fm-tag {
    background: linear-gradient(135deg, rgba(0,180,216,0.1), rgba(13,110,253,0.08));
    border: 1px solid rgba(0,180,216,0.25);
    color: #00b4d8;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.fm-tag:hover {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
}

/* RESPONSIVE MODAL */
@media (max-width: 640px) {
    .faculty-modal-inner {
        flex-direction: column;
    }

    .faculty-modal-photo-panel {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px 24px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }

    .faculty-modal-img-wrap {
        width: 100px;
        height: 120px;
    }

    .faculty-modal-info-panel {
        padding: 24px 20px 24px;
        gap: 14px;
    }

    .faculty-modal-header-block h3 {
        font-size: 1.25rem;
    }

    .fm-detail-item {
        min-width: 120px;
    }
}
