/* ============================================================
   JPC College - Main Stylesheet
   Color Theme: Royal Blue (#1a5276) + White (#ffffff)
   ============================================================ */

:root {
  --primary: #1a5276;
  --primary-dark: #0e3d5c;
  --primary-light: #2980b9;
  --white: #ffffff;
  --light: #f8f9fa;
  --light-gray: #f1f3f5;
  --gray: #6c757d;
  --dark: #212529;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(26, 82, 118, 0.2);
  --radius: 10px;
  --transition: all 0.3s ease;
}

/* ---- Base ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.5rem auto 2rem;
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Top Contact Bar ---- */
.top-bar {
  background: var(--primary-dark);
  padding: 5px 0;
  font-size: 0.78rem;
  z-index: 1001;
}

.top-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.top-contact a:hover {
  color: #fff;
}

.top-contact i {
  margin-right: 4px;
  font-size: 0.7rem;
}

.top-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 10px;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: all 0.25s;
}

.top-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}

.top-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---- Two-Tier Main Navbar ---- */
.main-navbar {
  background: var(--primary);
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.main-navbar.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

/* Tier 1 - Brand Row */
.nav-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 4px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.nav-brand:hover {
  color: #fff;
}

.nav-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: #fff;
  padding: 2px;
}

.nav-logo-placeholder {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.nav-college-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.nav-college-affil {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  letter-spacing: 0.2px;
}

/* Hamburger Toggle */
.nav-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggler.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggler.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Tier 2 - Navigation Menu Row */
.nav-menu-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu>li {
  position: relative;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s;
  border-bottom: 3px solid transparent;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #FFD700;
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: #FFD700;
}

.nav-item .fa-chevron-down {
  font-size: 0.55rem;
  opacity: 0.6;
  transition: transform 0.3s;
}

.has-dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

.ext-icon {
  font-size: 0.55rem !important;
  opacity: 0.45;
  margin-left: 2px;
}

/* Compact nav on smaller desktops */
@media (min-width: 992px) and (max-width: 1440px) {
  .nav-item {
    padding: 9px 7px;
    font-size: 0.74rem;
  }
  .nav-college-name {
    font-size: 1.15rem;
  }
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 9999;
  list-style: none;
}

.has-dropdown:hover>.nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-radius: 7px;
  transition: all 0.2s;
}

.nav-dropdown li a:hover {
  background: var(--primary);
  color: #fff;
}

.nav-dropdown li a i {
  width: 16px;
  font-size: 0.7rem;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-dropdown li a:hover i {
  color: #fff;
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}





/* ---- Hero Banner ---- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,144C96,128,192,96,288,112C384,128,480,192,576,197.3C672,203,768,149,864,128C960,107,1056,117,1152,138.7C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom no-repeat;
  background-size: cover;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content h1 span {
  color: #FFD700;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons .btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.btn-hero-primary {
  background: var(--white);
  color: var(--primary);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
  background: #FFD700;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-image-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: white;
}

.hero-image-card i {
  font-size: 5rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat .num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFD700;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

/* ---- Stats Section ---- */
.stats-section {
  background: var(--primary);
  padding: 3rem 0;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-dark), #FFD700, var(--primary-dark));
}

.stat-card-item {
  text-align: center;
  color: var(--white);
  padding: 1rem;
  position: relative;
}

.stat-card-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #FFD700;
  display: block;
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.3rem;
  font-weight: 500;
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* ---- Section Padding ---- */
.section-pad {
  padding: 80px 0;
}

.section-pad-sm {
  padding: 50px 0;
}

/* ---- About Section ---- */
.about-home-section {
  background: var(--light);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature-text h6 {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.about-feature-text p {
  color: var(--gray);
  font-size: 0.88rem;
  margin: 0;
}

.about-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.about-img-wrapper img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
}

.about-badge-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.about-badge-float .num {
  font-size: 2rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.about-badge-float .txt {
  font-size: 0.75rem;
}

/* ---- Courses Section ---- */
.courses-section {
  background: var(--white);
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.course-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-img .course-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.course-card-img .course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.course-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.course-card-body p {
  font-size: 0.85rem;
  color: var(--gray);
  flex: 1;
  margin-bottom: 1rem;
}

.course-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray);
}

.course-meta-item i {
  color: var(--primary);
}

.course-card-footer {
  padding: 0.8rem 1.2rem;
  background: var(--light);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-fee {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---- Notices Section ---- */
.notices-section {
  background: var(--light-gray);
}

.notice-card {
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notice-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.notice-date {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.notice-date i {
  color: var(--primary);
}

.notice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.notice-desc {
  font-size: 0.83rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.notice-card .btn-sm {
  font-size: 0.75rem;
  padding: 3px 12px;
}

/* ---- Gallery Section ---- */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 82, 118, 0.85), transparent);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-placeholder {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  color: var(--primary);
}

.gallery-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

/* Tablet: 3 columns */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: Horizontal slider */
@media (max-width: 575px) {
  .gallery-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gallery-grid::-webkit-scrollbar {
    display: none;
  }
  .gallery-item {
    flex: 0 0 72%;
    min-width: 72%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  .gallery-overlay {
    opacity: 1;
  }
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ---- Why Choose Us ---- */
.why-section {
  background: var(--primary);
  padding: 80px 0;
}

.why-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: white;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.why-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #FFD700;
}

.why-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ---- Inner Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Course Detail ---- */
.course-detail-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0 60px;
  position: relative;
  color: white;
}

.course-detail-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.course-detail-img-placeholder {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  height: 250px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 4rem;
}

.course-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  border: 1px solid var(--border);
}

.course-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.course-info-item:last-child {
  border: none;
}

.course-info-label {
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.course-info-label i {
  color: var(--primary);
  width: 16px;
}

.course-info-value {
  font-weight: 700;
  color: var(--dark);
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 22px;
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 22px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-red {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 10px 28px;
  transition: var(--transition);
}

.btn-red:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(26, 82, 118, 0.35);
}

.btn-view-all {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  padding: 10px 30px;
  transition: var(--transition);
}

.btn-view-all:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Course Detail ---- */
.course-detail-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0 60px;
  position: relative;
  color: white;
}

.course-detail-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 300px;
}

.course-detail-img-placeholder {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  height: 250px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 4rem;
}

.course-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  border: 1px solid var(--border);
}

.course-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.course-info-item:last-child {
  border: none;
}

.course-info-label {
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.course-info-label i {
  color: var(--primary);
  width: 16px;
}

.course-info-value {
  font-weight: 700;
  color: var(--dark);
}

/* ---- Contact Page ---- */
.contact-info-box {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  height: 100%;
}

.contact-info-box h3 {
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-text strong {
  display: block;
  margin-bottom: 2px;
}

.contact-text span,
.contact-text a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.social-links-contact {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 82, 118, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 5px;
  color: var(--dark);
}

/* ---- Alert ---- */
.alert-success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  border-radius: 8px;
}

.alert-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  border-radius: 8px;
}

/* ---- Footer ---- */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 60px;
}

.footer-top {
  padding-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: white;
  padding: 2px;
  margin-bottom: 15px;
}

.footer-brand .college-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.footer-brand .college-affil {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0 15px;
  font-style: italic;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #FFD700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: #FFD700;
  font-size: 1rem;
  font-weight: bold;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.footer-contact-item i {
  color: #FFD700;
  width: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: white;
}

/* ---- Back to Top ---- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26, 82, 118, 0.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---- Notice Page ---- */
.notice-list-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.notice-list-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.notice-list-header {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list-body {
  padding: 1.2rem 1.5rem;
}

.notice-list-body h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.notice-list-body p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.8rem;
}

/* ---- Gallery Page ---- */
.gallery-page-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 15px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.gallery-page-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-page-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 82, 118, 0.9), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 15px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-page-item:hover .gallery-page-overlay {
  opacity: 1;
}

.gallery-page-overlay span {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- Gallery Category Tabs ---- */
.gallery-tabs-wrapper {
  margin-bottom: 2rem;
  position: relative;
}

.gallery-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0 16px;
}

.gallery-tab {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 2px solid #dee2e6;
  border-radius: 50px;
  background: #ffffff;
  color: #6c757d;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gallery-tab i {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.gallery-tab:hover {
  border-color: #1a5276;
  color: #1a5276;
  background: #f0f7fc;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 82, 118, 0.15);
}

.gallery-tab:hover i {
  transform: scale(1.15);
}

.gallery-tab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.2);
}

.gallery-tab.active {
  background: linear-gradient(135deg, #1a5276, #2980b9);
  border-color: #1a5276;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(26, 82, 118, 0.35);
  transform: translateY(-1px);
}

.gallery-tab.active i {
  color: #FFD700;
}

.gallery-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  line-height: 1;
  transition: all 0.3s ease;
}

.gallery-tab.active .gallery-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ---- Gallery Category Badge ---- */
.gallery-cat-badge {
  display: inline-block;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 3px;
  backdrop-filter: blur(4px);
}

.gallery-cat-badge i {
  font-size: 0.6rem;
  margin-right: 3px;
}

/* ---- Skeleton Loading ---- */
.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.skeleton-img {
  width: 100%;
  height: 200px;
  background: #e9ecef;
}

.skeleton-body {
  padding: 15px;
}

.skeleton-line {
  height: 14px;
  background: #e9ecef;
  border-radius: 6px;
  margin-bottom: 8px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    #e9ecef 25%,
    #f8f9fa 37%,
    #e9ecef 63%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

#gallerySkeleton {
  transition: opacity 0.3s ease;
}

/* ---- Gallery Filter Animation ---- */
.gallery-item-col {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ---- 404 Page ---- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(26, 82, 118, 0.2);
}

.error-msg {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.error-desc {
  color: var(--gray);
  margin-bottom: 2rem;
}

/* ---- Badges ---- */
.badge-primary {
  background: var(--primary);
}

.badge-red {
  background: var(--primary);
  color: white;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease both;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ---- Department Cards ---- */
.dept-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.dept-card-header {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dept-card-header i {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.dept-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.dept-card-body {
  padding: 1.2rem;
  flex: 1;
}

.dept-card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.dept-card-body p {
  font-size: 0.83rem;
  color: var(--gray);
  margin-bottom: 0.8rem;
}

.dept-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.dept-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray);
}

.dept-meta span i {
  color: var(--primary);
  font-size: 0.75rem;
}

.dept-card-actions {
  padding: 0.8rem 1.2rem;
  background: var(--light);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* ---- Committee Cards ---- */
.committee-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.committee-icon {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: white;
}

.committee-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.committee-card p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* ---- Campus Life ---- */
.campus-img-placeholder {
  height: 280px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  gap: 10px;
}

.campus-img-placeholder i {
  font-size: 4rem;
  opacity: 0.7;
}

.campus-img-placeholder span {
  font-size: 0.9rem;
  font-weight: 600;
}

.campus-section-badge {
  display: inline-block;
  background: rgba(26, 82, 118, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.campus-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.campus-features li {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--dark);
}

.campus-features li i {
  color: var(--primary);
  margin-top: 5px;
  flex-shrink: 0;
}

/* ---- Admission Steps ---- */
.admission-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admission-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}

.admission-step:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(26, 82, 118, 0.1);
}

.step-num {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- About Sidebar Card ---- */
.about-sidebar-card {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 1.8rem;
}

.about-sidebar-card h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-sidebar-card ul li {
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.about-sidebar-card ul li:last-child {
  border: none;
}

.about-sidebar-card ul li strong {
  color: white;
}

/* ---- Image Quality ---- */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.course-detail-img,
.course-card-img img,
.dept-card-header img {
  image-rendering: auto;
  max-width: 100%;
  height: auto;
}

.course-detail-img {
  max-height: none;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Responsive ---- */

/* Tablets & below – collapse the nav menu */
@media (max-width: 991px) {
  .top-contact {
    display: none;
  }

  .nav-toggler {
    display: flex;
  }

  .nav-menu-row {
    display: none;
    border-top: none;
    background: var(--primary-dark);
    border-radius: 0 0 12px 12px;
    padding: 10px 0;
  }

  .nav-menu-row.open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .nav-item {
    padding: 11px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid transparent;
  }

  .nav-item:hover,
  .nav-item.active {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    border-left-color: #FFD700;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 0;
    display: none;
    margin: 0;
  }

  .has-dropdown.open>.nav-dropdown {
    display: block;
  }

  .nav-dropdown li a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px 10px 35px;
    border-radius: 0;
    font-size: 0.85rem;
  }

  .nav-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .nav-dropdown li a i {
    color: rgba(255, 255, 255, 0.4);
  }

  .nav-dropdown li a:hover i {
    color: #fff;
  }

  .nav-dropdown .dropdown-divider {
    background: rgba(255, 255, 255, 0.08);
    margin: 2px 20px;
  }

  .hero-section {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .stat-card-item::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small tablets / large phones */
@media (max-width: 767px) {
  .section-pad {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-section {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat {
    padding: 8px 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header {
    padding: 60px 0 40px;
  }

  .footer-top {
    padding-bottom: 20px;
  }

  .campus-img-placeholder {
    height: 200px;
  }

  .campus-features li {
    font-size: 0.82rem;
  }

  .committee-card {
    padding: 1.3rem 1rem;
  }

  .committee-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .dept-card-header {
    height: 110px;
  }

  .dept-card-header i {
    font-size: 2.5rem;
  }

  .admission-step {
    padding: 12px 14px;
    gap: 12px;
  }

  .step-num {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .about-sidebar-card {
    padding: 1.2rem;
  }

  .course-info-card {
    position: static;
  }

  .course-detail-img {
    max-height: none;
  }

  .nav-college-name {
    font-size: 1.1rem;
  }

  .nav-logo {
    height: 42px;
    width: 42px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .stat-number {
    font-size: 2rem;
  }

  .top-bar {
    font-size: 0.7rem;
  }

  .top-btn {
    font-size: 0.65rem;
    padding: 2px 10px;
  }

  .nav-college-name {
    font-size: 0.95rem;
  }

  .nav-college-affil {
    font-size: 0.6rem;
  }

  .nav-logo {
    height: 36px;
    width: 36px;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .section-heading {
    font-size: 1.2rem;
  }

  .dept-meta {
    flex-direction: column;
    gap: 5px;
  }

  .admission-step {
    flex-direction: column;
    text-align: center;
  }

  .campus-img-placeholder {
    height: 160px;
  }

  .committee-card h5 {
    font-size: 0.85rem;
  }

  .committee-card p {
    font-size: 0.78rem;
  }
}

/* ============================================
   CAREERS PAGE
   ============================================ */

/* ---- Job Listing Cards ---- */
.job-listing {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.job-listing:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-left-color: var(--primary-dark);
}

.job-listing.job-expired {
  border-left-color: #bdc3c7;
  opacity: 0.7;
}

.job-listing.job-expired:hover {
  opacity: 0.85;
}

.job-listing-top {
  padding: 1.3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.job-listing-info {
  flex: 1;
  min-width: 0;
}

.job-listing-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.job-type-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.job-listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.job-listing-tags span {
  font-size: 0.78rem;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.job-listing-tags span i {
  color: var(--primary);
  font-size: 0.68rem;
}

.job-listing-deadline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef5f5;
  border: 1px solid rgba(26, 82, 118, 0.12);
  padding: 8px 14px;
  border-radius: 10px;
  flex-shrink: 0;
}

.job-listing-deadline i {
  color: var(--primary);
  font-size: 1rem;
}

.job-listing-deadline small {
  display: block;
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.job-listing-deadline strong {
  display: block;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}

.job-listing-deadline.expired {
  background: #f8f8f8;
  border-color: #e0e0e0;
}

.job-listing-deadline.expired i,
.job-listing-deadline.expired strong {
  color: #999;
}

/* Detail Chips */
.job-listing-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 1.5rem 1.2rem;
}

.job-detail-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 170px;
}

.job-detail-chip>i {
  width: 32px;
  height: 32px;
  background: rgba(26, 82, 118, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.job-detail-chip label {
  display: block;
  font-size: 0.63rem;
  color: #aaa;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  cursor: default;
}

.job-detail-chip span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

/* Description */
.job-listing-desc {
  padding: 0 1.5rem 0.8rem;
}

.job-listing-desc p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
  padding: 10px 14px;
  background: #fafbfc;
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

/* Footer */
.job-listing-footer {
  padding: 0.9rem 1.5rem;
  background: #fafbfc;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Empty State ---- */
.job-empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: #fafbfc;
  border: 2px dashed #dfe4ea;
  border-radius: 16px;
}

.job-empty-icon {
  width: 70px;
  height: 70px;
  background: rgba(26, 82, 118, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--primary);
  opacity: 0.5;
}

.job-empty-state h5 {
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.job-empty-state p {
  color: var(--gray);
  font-size: 0.88rem;
  max-width: 380px;
  margin: 0 auto 1.2rem;
}

/* ---- Career Sidebar ---- */
.career-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}

.career-sidebar-card>h5 {
  font-size: 0.93rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

/* Why Join List */
.career-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f5f5f5;
}

.career-why-list li:last-child {
  border: none;
  padding-bottom: 0;
}

.cwl-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.career-why-list strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.career-why-list span {
  font-size: 0.73rem;
  color: var(--gray);
}

/* Quick Info */
.career-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.82rem;
}

.career-info-row:last-child {
  border: none;
  padding-bottom: 0;
}

.career-info-row span {
  color: var(--gray);
}

.career-info-row strong {
  color: var(--dark);
}

/* Apply Sidebar Card */
.career-sidebar-apply {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  border-radius: 14px;
  padding: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.career-sidebar-apply h5 {
  color: #fff;
  font-size: 0.93rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.career-sidebar-apply p {
  font-size: 0.81rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.career-sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0;
}

.career-sidebar-contact a {
  color: #fff;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  transition: opacity 0.2s;
}

.career-sidebar-contact a:hover {
  opacity: 0.8;
  color: #fff;
}

.career-sidebar-contact a i {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.career-sidebar-apply hr {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 12px 0;
}

/* ---- Careers Responsive ---- */
@media (max-width: 767px) {
  .job-listing-top {
    flex-direction: column;
    gap: 10px;
  }

  .job-listing-deadline {
    align-self: flex-start;
  }

  .job-listing-title {
    font-size: 1rem;
  }

  .job-detail-chip {
    min-width: calc(50% - 5px);
  }
}

@media (max-width: 480px) {
  .job-detail-chip {
    min-width: 100%;
  }

  .job-listing-details {
    gap: 8px;
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  background: #f8f9fb;
}

/* Outer wrapper — clips the track, positions arrows */
.testi-carousel-outer {
  position: relative;
  overflow: hidden;
  padding: 0 0 56px;
  /* room for dots below */
}

/* Scrollable track */
.testi-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* Every card takes 1/3 of the container minus gaps */
.testi-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 18px;
  padding: 2rem 1.8rem 1.6rem;
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
  position: relative;
}

.testi-card:hover {
  box-shadow: 0 10px 35px rgba(26, 82, 118, .1);
  transform: translateY(-4px);
}

/* Big red quote icon */
.testi-quote-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.testi-quote-icon i {
  color: #fff;
  font-size: 1rem;
}

/* Gold stars */
.testi-stars {
  margin-bottom: .75rem;
}

.testi-stars i {
  color: #f4b400;
  font-size: .8rem;
  margin-right: 1px;
}

/* Quote text */
.testi-text {
  font-size: .875rem;
  color: #555;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
  /* Clamp to 5 lines on desktop so all cards are same height */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author row */
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

/* Circular avatar with initials */
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.testi-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--dark);
}

.testi-role {
  font-size: .73rem;
  color: #999;
}

/* Arrow buttons */
.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  /* slight up offset because of dots padding */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  font-size: .85rem;
}

.testi-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.testi-prev {
  left: -8px;
}

.testi-next {
  right: -8px;
}

/* Dot indicators */
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all .3s;
  border: none;
  padding: 0;
}

.testi-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 991px) {
  .testi-card {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 575px) {
.testi-card {
  flex: 0 0 calc(100%);
  min-width: 100%;
}

.testi-arrow {
  display: none;
}

.testi-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
}

/* ============================================================
   Contact Page Styles
   ============================================================ */

/* Page Header Banner (used on inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 50px 0 40px;
  color: #fff;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
  color: #fff;
}

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.55);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* Contact Info Box (left column) */
.contact-info-box {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  height: 100%;
  box-shadow: var(--shadow-hover);
}

.contact-info-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Contact Detail Row */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.4rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFD700;
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
}

.contact-text span,
.contact-text a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  line-height: 1.5;
}

.contact-text a:hover {
  color: #FFD700;
}

/* Social Links inside contact box */
.social-links-contact {
  display: flex;
  gap: 10px;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border-color: transparent;
  transform: translateY(-3px);
}

/* Contact Form Card (right column) */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 8px;
  border: 1.5px solid var(--border);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
  outline: none;
}

/* Red Button */
.btn-red {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-red:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 82, 118, 0.35);
}

/* ---- Faculty Cards ---- */
.faculty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(26, 82, 118, 0.15);
  border-color: var(--primary);
}

.faculty-card-top {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.faculty-card-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.faculty-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.faculty-card:hover .faculty-photo {
  transform: scale(1.05);
}

.faculty-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.faculty-card-body {
  padding: 1.2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faculty-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.faculty-position {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.faculty-education {
  font-size: 0.75rem;
  color: var(--gray);
  display: block;
  margin-top: auto;
  padding-top: 0.5rem;
}
/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testi-outer {
    position: relative;
    overflow: hidden;
    padding-bottom: 52px;
}
.testi-track {
    display: flex;
    gap: 22px;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.testi-card-i {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 16px;
    padding: 28px 24px 22px;
    flex: 0 0 calc(33.333% - 15px);
    min-width: calc(33.333% - 15px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .06);
    transition: box-shadow .3s, transform .3s;
}
.testi-card-i:hover {
    box-shadow: 0 10px 32px rgba(26, 82, 118, .1);
    transform: translateY(-4px);
}
.testi-dots-i {
    display: flex;
    justify-content: center;
    gap: 7px;
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
}
.testi-dot-i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .3s;
}
.testi-dot-i.on {
    background: #1a5276;
    width: 24px;
    border-radius: 4px;
}
.testi-btn-i {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #1a5276;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all .25s;
    z-index: 5;
}
.testi-btn-i:hover {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}
@media(max-width:991px) {
    .testi-card-i {
        flex: 0 0 calc(50% - 11px);
        min-width: calc(50% - 11px);
    }
}
@media(max-width:575px) {
    .testi-card-i {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .testi-btn-i {
        display: none;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    color: var(--primary);
    border-radius: 6px;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pagination .page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
