/* ==========================================================================
   ABOUT US PAGE STYLES (about.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESKTOP STYLES (Default / 1200px and up)
   -------------------------------------------------------------------------- */

/* Hero Banner */
.about-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Principal Photo & Card */
.principal-card {
  height: 440px;
}

.principal-card img {
  height: 100%;
  object-fit: cover;
}

.principal-badge {
  background: linear-gradient(180deg, rgba(13, 110, 253, 0) 0%, rgba(13, 110, 253, 0.95) 100%);
}

/* Vision & Mission Cards */
.vision-card,
.mission-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.vision-card:hover,
.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Core Values Card */
.value-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  background-color: #ffffff !important;
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.1) !important;
}

/* Timeline Layout */
.about-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 45px;
  width: 2px;
  background-color: #dee2e6;
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
}

.timeline-year {
  min-width: 90px;
  text-align: center;
}


/* --------------------------------------------------------------------------
   2. TABLET VIEWPORT (768px to 991.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  
  .principal-card {
    height: 380px;
  }

  .about-hero h1 {
    font-size: 2.25rem;
  }

  .about-timeline::before {
    left: 40px;
  }

}


/* --------------------------------------------------------------------------
   3. MOBILE VIEWPORT (Under 767.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {

  /* Hero Section */
  .about-hero {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .about-hero h1 {
    font-size: 1.85rem;
  }

  /* Principal Card */
  .principal-card {
    height: 320px;
  }

  /* Timeline Layout Adjustments for Mobile */
  .about-timeline::before {
    display: none; /* Hide vertical line on small screens */
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .timeline-year {
    min-width: auto;
    align-self: flex-start !important;
  }

  /* CBSE Banner Button */
  .cbse-banner .btn {
    width: 100%;
  }

}
/* --------------------------------------------------------------------------
   FACULTY & LEADERSHIP SECTION STYLES
   -------------------------------------------------------------------------- */

/* Card Container Hover Effects */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0.85rem 1.5rem rgba(0, 0, 0, 0.09) !important;
}

/* Image Aspect Ratio Control */
.team-img-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f8f9fa;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}

/* Quick Action Overlay Button */
.team-social {
  position: absolute;
  bottom: 12px;
  right: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social a {
  width: 38px;
  height: 38px;
  background-color: #0d6efd;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
}

.team-social a:hover {
  background-color: #0b5ed7;
  color: #ffffff;
}

/* Responsive Touch Devices Safeguard */
@media (max-width: 991.98px) {
  /* Show social icons permanently on touch devices (no hover required) */
  .team-social {
    opacity: 1;
    transform: translateY(0);
  }
}