/*
 * Panihati Mahavidyalaya — Main Stylesheet
 * Theme  : Bridge Across Water
 * Author : Panihati Mahavidyalaya
 * Version: 1.1
 *
 * Table of Contents
 * -----------------
 * 1.  CSS Variables (Design Tokens)
 * 2.  Base / Typography
 * 3.  Top Bar
 * 4.  Logo Section & Admission Button
 * 5.  Navbar & Dropdowns
 * 6.  Hero Carousel
 * 7.  Features Section
 * 8.  Programs / Certificate Courses
 * 9.  Gallery
 * 10. Notice Board
 * 11. Flash News Bar
 * 12. Quick Links
 * 13. Stats Highlight
 * 14. Welcome & Principal
 * 15. Inner Pages — Left Menu Area
 * 16. Inner Pages — Right Content Area
 * 17. Footer
 * 18. Buttons
 * 19. Animations & Utilities
 * 20. Responsive (Media Queries)
 */


/* ============================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Water & Bridge Inspired Color Palette */
  --primary-color:    #2563EB; /* Deep Water Blue    */
  --secondary-color:  #0891B2; /* Teal Water         */
  --accent-color:     #F97316; /* Sunset Orange      */
  --accent-secondary: #DC2626; /* Bridge Red         */
  --tertiary-color:   #059669; /* River Green        */
  --bridge-gray:      #64748B; /* Bridge Steel Gray  */
  --water-light:      #BAE6FD; /* Light Water Blue   */
  --mist-color:       #F1F5F9; /* Morning Mist       */

  /* Supporting Colors */
  --dark-color:  #0F172A;
  --light-color: #ffffff;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Functional Colors */
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --info-color:    #3B82F6;
  --danger-color:  #EF4444;
}


/* ============================================================
   2. BASE / TYPOGRAPHY
   ============================================================ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  color: var(--gray-800);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "EB Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

ul li {
	list-style:none;
}


/* ============================================================
   3. TOP BAR
   ============================================================ */
.top-bar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.top-bar a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-bar a:hover {
  color: var(--water-light);
  transform: translateY(-1px);
}

.social-top a {
  margin-right: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-top a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.1);
}

.top-login-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.top-login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  color: white;
  border-color: var(--water-light);
  box-shadow: 0 4px 15px rgba(186, 230, 253, 0.3);
}

.top-login-btn i {
  margin-right: 6px;
  font-size: 0.9rem;
}


/* ============================================================
   4. LOGO SECTION & ADMISSION BUTTON
   ============================================================ */
.logo-section {
  padding: 15px 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  border-bottom: 3px solid var(--water-light);
}

.college-logo {
  max-height: 100px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 15px rgba(37, 99, 235, 0.2));
}

.college-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(37, 99, 235, 0.3));
}

.college-name {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.college-tagline {
  font-size: 1rem;
  color: var(--bridge-gray);
  font-weight: 500;
}

.admission-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.admission-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  background: #6397ec;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: admissionGlow 2s infinite;
}

.admission-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.8s;
}

.admission-btn:hover::before {
  left: 100%;
}

.admission-btn i {
  margin-right: 8px;
  font-size: 1rem;
  animation: iconFloat 1.5s ease-in-out infinite;
}

.admission-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.admission-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  animation: waterGlow 3s infinite;
  z-index: -1;
}


/* ============================================================
   5. NAVBAR & DROPDOWNS
   ============================================================ */
.navbar {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
  padding: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-top: 3px solid var(--bridge-gray);
}

.navbar-nav {
  width: 100%;
}

.nav-link {
  color: white !important;
  font-weight: 500;
  padding: 15px 20px !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, var(--accent-color), var(--water-light));
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--water-light) !important;
}

.navbar-toggler {
  border: none;
  outline: none;
  color: white;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(186, 230, 253, 0.3);
}

.dropdown-menu {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  padding: 10px 0;
  margin-top: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--water-light);
}

.dropdown-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  color: var(--gray-700);
}

.dropdown-item:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding-left: 30px;
  border-radius: 8px;
  margin: 0 10px;
}


/* ============================================================
   6. HERO CAROUSEL
   ============================================================ */
.carousel-item {
  position: relative;
}

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  text-align: center;
}

.carousel-caption h1 {
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
  color: white;
  text-shadow: 0 4px 15px rgba(15, 23, 42, 0.5);
}

.carousel-caption p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.8s;
  color: var(--water-light);
}

.carousel-caption .mt-4 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 1.1s;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--accent-color);
  border: 2px solid white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* ============================================================
   7. FEATURES SECTION
   ============================================================ */
.features {
  padding: 20px 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.features .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
}

.features h3 {
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.features .card {
  border: none;
  border-radius: 20px;
  transition: all 0.4s ease;
  height: 100%;
  background: white;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
}

.features .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.features .card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
  border-color: var(--water-light);
}


/* ============================================================
   8. PROGRAMS / CERTIFICATE COURSES
   ============================================================ */
.programs {
  padding: 40px 0 50px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f4fd 50%, #f5f9ff 100%);
  position: relative;
}

.programs .section-title h2 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.programs .section-title p {
  color: var(--gray-600);
}

.program-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 340px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.13);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  border: 1.5px solid rgba(37, 99, 235, 0.1);
}

.program-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.22);
}

.program-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.program-card:hover .card-bg {
  transform: scale(1.06);
}

.program-card.cs .card-bg {
  background-image: url('../../images/computer-science.jpg');
}
.program-card.cs .card-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(37,99,235,.35) 45%, rgba(10,15,40,.97) 100%);
}

.program-card.eng .card-bg {
  background-image: url('../../images/communicative-english.jpg');
}
.program-card.eng .card-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(8,145,178,.35) 45%, rgba(5,30,45,.97) 100%);
}

.card-overlay {
  position: absolute;
  inset: 0;
}

.program-card .card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  z-index: 2;
}

.program-card .card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--water-light);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 8px;
  width: fit-content;
}

.program-card .card-title-text {
  font-family: "EB Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 7px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.program-card .card-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-card .card-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.program-card .card-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  gap: 11px;
}

.program-card .card-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.program-card .card-btn:hover svg {
  transform: translateX(3px);
}

.program-card .card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  z-index: 3;
  transition: all 0.3s ease;
}

.program-card:hover .card-icon {
  background: rgba(255,255,255,0.25);
  transform: rotate(10deg) scale(1.1);
}

.section-title {
  margin-bottom: 40px;
  text-align: center;
}

.section-title h2 {
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--bridge-gray));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  transform: translateX(-50%);
  border-radius: 2px;
}


/* ============================================================
   9. GALLERY
   ============================================================ */
.gallery-section {
  padding: 10px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(249,115,22,0.05));
  z-index: 0;
}

.gallery-section::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(8,145,178,0.1) 0%, transparent 70%);
  z-index: 0;
}

.gallery-container {
  position: relative;
  z-index: 1;
}

.gallery-title {
  position: relative;
  margin-bottom: 80px;
}

.gallery-title h2 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  position: relative;
  text-align: center;
}

.gallery-title h2::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 80px;
  background: linear-gradient(45deg, var(--accent-color), var(--water-light));
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.gallery-title::after {
  content: '';
  width: 120px; height: 6px;
  background: linear-gradient(45deg, var(--accent-color), var(--water-light), var(--secondary-color));
  display: block;
  margin: 25px auto;
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.gallery-title p {
  font-size: 1.2rem;
  color: var(--bridge-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btn {
  padding: 15px 30px;
  border: 3px solid var(--secondary-color);
  background: rgba(255,255,255,0.9);
  color: var(--secondary-color);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(8,145,178,0.2);
  backdrop-filter: blur(10px);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color), var(--bridge-gray));
  transition: left 0.4s ease;
  z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(8,145,178,0.4);
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
  background: white;
  cursor: pointer;
  height: 280px;
  border: 3px solid transparent;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(186,230,253,0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 2;
}

.gallery-item:hover::before {
  transform: translateX(100%);
}

.gallery-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 60px rgba(37,99,235,0.2);
  border-color: var(--water-light);
}

.gallery-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(37,99,235,0.9) 0%,
    rgba(8,145,178,0.8) 30%,
    rgba(249,115,22,0.7) 70%,
    rgba(100,116,139,0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  text-align: center;
  color: white;
  transform: translateY(40px);
  transition: all 0.5s ease;
  padding: 30px;
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h6 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gallery-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.95;
  line-height: 1.5;
}

.gallery-icon {
  width: 60px; height: 60px;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
  transition: all 0.4s ease;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-icon {
  transform: scale(1.2) rotate(360deg);
  background: white;
  color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.gallery-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(45deg, var(--accent-color), var(--water-light));
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  transform: translateY(-15px);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(249,115,22,0.4);
}

.gallery-item:hover .gallery-badge {
  transform: translateY(0);
  opacity: 1;
}

.view-more-section {
  text-align: center;
  margin-top: 60px;
}

.btn-view-more {
  padding: 20px 50px;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(8,145,178,0.3);
}

.btn-view-more::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--accent-color), var(--bridge-gray));
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-view-more:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 50px rgba(8,145,178,0.5);
  color: white;
}

.btn-view-more:hover::before {
  left: 0;
}

.btn-view-more i:last-child {
  transition: transform 0.3s ease;
}

.btn-view-more:hover i:last-child {
  transform: translateX(8px);
}


/* ============================================================
   10. NOTICE BOARD
   ============================================================ */
.notice-board {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.notice-category-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(37,99,235,0.1);
  transition: all 0.4s ease;
  height: 450px;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.notice-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(37,99,235,0.2);
  border-color: var(--water-light);
}

.notice-category-header {
  padding: 25px 20px;
  color: white;
  text-align: center;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.notice-category-card:nth-child(1) .notice-category-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.notice-category-card:nth-child(2) .notice-category-header {
  background: linear-gradient(135deg, var(--secondary-color), var(--bridge-gray));
}
.notice-category-card:nth-child(3) .notice-category-header {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}
.notice-category-card:nth-child(4) .notice-category-header {
  background: linear-gradient(135deg, var(--tertiary-color), var(--secondary-color));
}

.notice-category-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.notice-category-card:hover .notice-category-icon {
  transform: scale(1.1);
  background: rgba(255,255,255,0.3);
}

.notice-category-icon i {
  font-size: 1.8rem;
  color: white;
}

.notice-category-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.notice-category-content {
  flex: 1;
  padding: 0;
  /*overflow-y: auto;*/
  max-height: 330px;
}

.notice-category-content::-webkit-scrollbar { width: 6px; }
.notice-category-content::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 3px; }
.notice-category-content::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }
.notice-category-content::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

.notice-entry {
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  cursor: pointer;
}

.notice-entry:hover {
  background: linear-gradient(135deg, var(--gray-50), white);
  border-left: 4px solid var(--secondary-color);
}

.notice-entry:last-child {
  border-bottom: none;
}

.notice-date {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
}

.notice-title {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-entry:hover .notice-title {
  color: var(--primary-color);
}


/* ============================================================
   11. FLASH NEWS BAR
   ============================================================ */
.flash-news-bar {
  background: linear-gradient(135deg, var(--water-light) 0%, var(--gray-100) 100%);
  border-top: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--secondary-color);
  padding: 8px 0;
}

.flash-label {
  font-weight: bold;
  font-size: 0.8rem;
  min-width: 80px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #6397ec;
  color: white;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: 0 2px 10px rgba(249,115,22,0.3);
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
}

.ticker {
  padding: 8px 0;
}

marquee {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
}

.news-item {
  padding: 0 12px;
  font-weight: 600;
}

.news-divider {
  color: var(--accent-color);
  font-weight: bold;
  margin: 0 12px;
}


/* ============================================================
   12. QUICK LINKS
   ============================================================ */
.quick-links {
  padding: 30px 0;
  background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
}

.link-item {
  text-align: center;
  padding: 25px 20px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(37,99,235,0.1);
  height: 100%;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.link-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(37,99,235,0.2);
  border-color: var(--water-light);
}

.link-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 15px rgba(37,99,235,0.3));
}

.link-item:hover .link-icon {
  transform: scale(1.1);
}

.link-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 15px;
}

.link-desc {
  margin-bottom: 25px;
  color: var(--bridge-gray);
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  padding: 10px 25px;
  border-radius: 25px;
  display: inline-block;
}

.btn-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}


/* ============================================================
   13. STATS HIGHLIGHT
   ============================================================ */
.stats-highlight {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.05)"/><circle cx="800" cy="600" r="150" fill="rgba(255,255,255,0.03)"/></svg>');
  opacity: 0.6;
  z-index: 1;
}

.stats-highlight .container {
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  margin-bottom: 30px;
}

.stat-item .card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 35px 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.stat-item .card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-8px);
  border-color: var(--water-light);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}


/* ============================================================
   14. WELCOME & PRINCIPAL
   ============================================================ */
.welcome-principal {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.welcome-principal .card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(37,99,235,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.welcome-principal .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.15);
  border-color: var(--water-light);
}

.welcome-principal .icon-box {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.welcome-principal h3 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ============================================================
   15. INNER PAGES — LEFT MENU AREA
   ============================================================ */
.left-menu-area {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
  border: 1.5px solid var(--gray-200);
}

.left-menu-area h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  margin: -24px -20px 16px;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}

.left-menu-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-menu-area ul li {
  border-bottom: 1px solid var(--gray-100);
}

.left-menu-area ul li:last-child {
  border-bottom: none;
}

.left-menu-area ul li a {
  display: block;
  padding: 10px 12px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.left-menu-area ul li a:hover,
.left-menu-area ul li.active a {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), transparent);
  padding-left: 18px;
}


/* ============================================================
   16. INNER PAGES — RIGHT CONTENT AREA
   ============================================================ */
.right-content-area {
  background: white;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
  border: 1.5px solid var(--gray-200);
}

.right-content-area h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--water-light);
}

.right-content-area h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--secondary-color), var(--bridge-gray));
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.right-content-area p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.right-content-area table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.92rem;
}

.right-content-area table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.right-content-area table td {
  padding: 11px 16px;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  vertical-align: middle;
}

.right-content-area table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

.right-content-area table td:first-child {
  font-weight: 600;
  color: var(--gray-800);
  background: var(--gray-50);
}


/* ============================================================
   17. FOOTER
   ============================================================ */
footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="100" cy="100" r="80" fill="rgba(37,99,235,0.1)"/><circle cx="800" cy="300" r="120" fill="rgba(249,115,22,0.08)"/><circle cx="300" cy="700" r="100" fill="rgba(8,145,178,0.06)"/><circle cx="900" cy="800" r="60" fill="rgba(186,230,253,0.1)"/></svg>');
  opacity: 0.4;
  z-index: 1;
}

footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 25%, var(--secondary-color) 50%, var(--bridge-gray) 75%, var(--primary-color) 100%);
  z-index: 2;
}

footer .container {
  position: relative;
  z-index: 2;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 12px;
  display: inline-block;
  font-size: 1.3rem;
  position: relative;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 60%; height: 3px;
  background: var(--primary-color);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.4s ease;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

footer ul li a::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
}

footer ul li a:hover {
  color: var(--water-light);
  padding-left: 15px;
  transform: translateX(5px);
}

footer ul li a:hover::before {
  width: 100%;
}

.social-links a {
  display: inline-block;
  width: 35px; height: 35px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  color: white;
  margin-right: 5px;
  transition: all 0.4s ease;
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  transition: left 0.4s ease;
  z-index: -1;
}

.social-links a:hover::before {
  left: 0;
}

.social-links a:hover {
  border-color: var(--water-light);
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 12px 30px rgba(37,99,235,0.4);
}

.copyright {
  border-top: 2px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  margin-top: 60px;
  color: rgba(255,255,255,0.8);
  text-align: center;
  font-weight: 500;
  position: relative;
}

.copyright::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}


/* ============================================================
   18. BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--bridge-gray));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-3px);
  border-color: transparent;
}

.btn-outline-light {
  border: 2px solid white;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}


/* ============================================================
   19. ANIMATIONS & UTILITIES
   ============================================================ */
@keyframes admissionGlow {
  0%, 100% { box-shadow: 0 8px 25px rgba(23,52,86,.3);  transform: scale(1); }
  50%       { box-shadow: 0 8px 30px rgba(23,52,86,.6), 0 0 25px rgba(23,52,86,.4); transform: scale(1.02); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

@keyframes waterGlow {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes waterFlow {
  0%   { transform: translateX(-10px); opacity: 0.5; }
  50%  { transform: translateX(10px);  opacity: 1;   }
  100% { transform: translateX(-10px); opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes ripple {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
  50%  { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37,99,235,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

@keyframes wave {
  0%, 100% { transform: translateY(0px); }
  25%       { transform: translateY(-5px); }
  50%       { transform: translateY(0px); }
  75%       { transform: translateY(-3px); }
}

.animate        { animation: fadeIn 1s ease forwards; }
.water-effect   { animation: waterFlow 4s ease-in-out infinite; }
.floating       { animation: float 3s ease-in-out infinite; }
.floating:nth-child(2n) { animation-delay: -1s; }
.floating:nth-child(3n) { animation-delay: -2s; }
.ripple-effect  { animation: ripple 2s infinite; }
.wave-effect    { animation: wave 4s ease-in-out infinite; }

.loading-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.loading-animation.loaded {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   20. RESPONSIVE (MEDIA QUERIES)
   ============================================================ */

/* ── ≥ 992px: large navbar dropdown ── */
@media (min-width: 992px) {
  .navbar-nav { justify-content: space-between; }

  .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s ease;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ── < 1200px: gallery 3 cols ── */
@media (max-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gallery-item { height: 260px; }
}

/* ── < 992px ── */
@media (max-width: 991.98px) {
  .top-bar { text-align: center; padding: 8px 0; }
  .logo-section .row { text-align: center; }
  .college-logo { margin-bottom: 15px; max-width: 150px; height: auto; }
  .college-name { font-size: 1.6rem; }
  .college-tagline { font-size: 0.9rem; }

  .top-login-buttons { margin-top: 10px; justify-content: center; }
  .top-login-btn { padding: 5px 10px; font-size: 0.75rem; }

  .navbar { padding: 0; }
  .navbar-toggler { margin: 10px 15px; background: rgba(37,99,235,.1); }
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-link { padding: 15px !important; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .dropdown-menu { background: rgba(0,0,0,.2); border: none; box-shadow: none; padding: 0; }
  .dropdown-item { color: rgba(255,255,255,.8) !important; border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 30px; white-space: normal; }
  .dropdown-item:hover { background: rgba(255,255,255,.1); color: white !important; }

  .carousel-item > div { min-height: 400px; }
  .carousel-caption { display: flex !important; padding: 20px; }
  .carousel-caption h1 { font-size: 1.8rem; margin-top: 0; padding-top: 20px; }
  .carousel-caption p { font-size: 1rem; padding: 0 15px; margin-bottom: 20px; }
  .carousel-caption .btn { margin: 5px; padding: 8px 16px; font-size: 0.9rem; }
  .carousel-indicators { bottom: 10px; }

  .features, .programs, .notice-board, .quick-links { padding: 40px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 1.8rem; }

  footer { text-align: left; padding: 50px 0 20px; }
  footer .col-lg-3 { margin-bottom: 30px; }
  .social-links { display: flex; flex-wrap: wrap; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gallery-item { height: 240px; }
  .gallery-title h2 { font-size: 2.8rem; }
  .filter-btn { padding: 12px 24px; font-size: 14px; }

  /* Inner pages */
  .left-menu-area { margin-bottom: 24px; }
}

/* ── < 768px ── */
@media (max-width: 767.98px) {
  .carousel-item > div { min-height: 350px; }
  .carousel-caption h1 { font-size: 1.6rem; margin-bottom: 10px; }
  .carousel-caption p { font-size: 0.9rem; margin-bottom: 15px; }
  .carousel-caption .btn { margin: 5px; min-width: 140px; }

  .features .card, .programs .card { margin-bottom: 25px; }
  .features .card { padding: 15px; }
  .features .icon { font-size: 2.5rem; margin-bottom: 15px; }
  .features h3 { font-size: 1.4rem; }

  footer h5 { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); }
  footer .col-md-6:first-child h5 { border-top: none; margin-top: 0; padding-top: 0; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .gallery-item { height: 200px; border-radius: 20px; }
  .gallery-title h2 { font-size: 2.2rem; }
  .gallery-title p { font-size: 1rem; }
  .filter-btn { padding: 10px 20px; font-size: 13px; }
  .gallery-content h6 { font-size: 1.1rem; }
  .gallery-content p { font-size: 0.9rem; }

  /* Inner pages */
  .right-content-area { padding: 20px 16px; }
  .right-content-area h1 { font-size: 1.4rem; }
  .right-content-area table th,
  .right-content-area table td { padding: 9px 10px; font-size: 0.85rem; }
}

/* ── < 576px ── */
@media (max-width: 575.98px) {
  .carousel-item > div { min-height: 300px; }
  .carousel-caption { padding: 15px 10px; }
  .carousel-caption h1 { font-size: 1.4rem; margin-bottom: 8px; }
  .carousel-caption p { font-size: 0.85rem; margin-bottom: 10px; padding: 0 5px; }
  .carousel-caption .mt-4 { margin-top: 0.5rem !important; }
  .btn-lg { padding: 6px 12px; font-size: 0.85rem; }
  .carousel-caption .btn { display: inline-block; margin: 3px; min-width: 120px; font-size: 0.8rem; padding: 8px 12px; }

  .section-title { margin-bottom: 25px; }
  .section-title h2 { font-size: 1.5rem; }
  .section-title p { font-size: 0.9rem; }

  .card-body { padding: 15px; }
  .card-title { font-size: 1.2rem; }
  .card-text { font-size: 0.9rem; }

  .top-links a { font-size: 0.7rem !important; }
  .top-login-btn { padding: 3px 6px; font-size: 0.65rem; min-width: 80px; }
  .top-login-btn i { font-size: 0.7rem; margin-right: 4px; }

  .admission-btn { padding: 7px 14px; font-size: 0.75rem; letter-spacing: 0.3px; }
  .admission-btn i { font-size: 0.85rem; margin-right: 5px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
  .gallery-item { height: 250px; }
  .gallery-section { padding: 60px 0; }
  .gallery-title { margin-bottom: 50px; }
  .btn-view-more { padding: 15px 35px; font-size: 1rem; }

  /* Inner pages */
  .right-content-area table { display: block; overflow-x: auto; }
}
