/* 
  Meenashree Institute of Nursing - Style Sheet
  Designed for a premium, academic-medical look with fluid interactions.
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design System --- */
:root {
  /* Colors */
  --primary: #0a192f;        /* Deep academic navy */
  --primary-rgb: 10, 25, 47;
  --secondary: #0f766e;      /* Medical teal */
  --secondary-rgb: 15, 118, 110;
  --accent: #d97706;         /* Golden accent for notifications & highlight */
  --accent-light: #fef3c7;
  --accent-rgb: 217, 119, 6;
  
  --bg-light: #f8fafc;       /* Clean neutral background */
  --bg-white: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.85);
  
  --text-dark: #0f172a;      /* Slate-900 */
  --text-muted: #475569;     /* Slate-600 */
  --text-light: #f1f5f9;     /* Slate-100 */
  
  --success: #10b981;        /* Emerald-500 */
  --border-color: #e2e8f0;   /* Slate-200 */
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px -5px rgba(10, 25, 47, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(10, 25, 47, 0.15);
  --shadow-glow: 0 0 20px rgba(15, 118, 110, 0.3);
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Utility Classes --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-alt {
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(15, 118, 110, 0.1);
  color: var(--secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 800;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- Button Styles & Interactive CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
  border-radius: inherit;
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary:hover {
  color: var(--bg-white);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: var(--shadow-glow);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  animation: pulse-accent 2s infinite;
}

.btn-accent:hover {
  background-color: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-text {
  padding: 0;
  background: none;
  border: none;
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-text::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* Pulsing Admission Button Overlay */
@keyframes pulse-accent {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(217, 119, 6, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}

/* --- Header & Navigation Bar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(10, 25, 47, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header.scrolled .nav-logo h1 {
  color: var(--bg-white);
  font-size: 1.3rem;
}

.header.scrolled .nav-logo span {
  color: var(--secondary);
}

.header.scrolled .nav-link {
  color: var(--bg-white);
}

.header.scrolled .nav-link:hover {
  color: var(--secondary);
}

.header.scrolled .mobile-menu-toggle {
  color: var(--bg-white);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background-color: var(--secondary);
  color: var(--bg-white);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.nav-logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  transition: var(--transition-normal);
}

.nav-logo span {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 650px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(10, 25, 47, 0.08) 0%, transparent 60%),
              var(--bg-white);
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(219, 144, 20, 0.1);
  border: 1px solid rgba(219, 144, 20, 0.2);
  color: #b45309;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-accent-dot 1.5s infinite;
}

@keyframes pulse-accent-dot {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-graphics {
  position: relative;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  animation: fade-in 1s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-card {
  width: 85%;
  height: 85%;
  background: linear-gradient(145deg, #115e59, #0f172a);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.4), transparent 70%);
  pointer-events: none;
}

.hero-card-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-card-title {
  color: var(--bg-white);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Floating overlay panel */
.hero-stats {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background-color: var(--bg-white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 5px solid var(--secondary);
  animation: float 4s ease-in-out infinite;
}

.hero-stats-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.hero-stats-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

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

/* --- Motive / Focus Section --- */
.motive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.motive-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.motive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.motive-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.2);
}

.motive-card:hover::before {
  transform: scaleX(1);
}

.motive-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(15, 118, 110, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.motive-card:hover .motive-icon {
  background-color: var(--secondary);
  color: var(--bg-white);
  transform: scale(1.1);
}

.motive-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.motive-card p {
  font-size: 0.95rem;
}

/* --- Courses Section --- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.course-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.15);
}

.course-img-wrapper {
  height: 200px;
  background-color: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-img-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(15, 118, 110, 0.8));
  z-index: 1;
}

.course-img-text {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  user-select: none;
}

.course-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--secondary);
  color: var(--bg-white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.course-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.course-duration {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
}

/* Tabs for Course Cards */
.course-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.course-tab-btn {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.course-tab-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.course-tab-content {
  flex-grow: 1;
  margin-bottom: 24px;
}

.course-tab-pane {
  display: none;
  font-size: 0.9rem;
  animation: fade-in var(--transition-fast) forwards;
}

.course-tab-pane.active {
  display: block;
}

.course-tab-pane ul {
  padding-left: 20px;
  margin-top: 10px;
}

.course-tab-pane li {
  margin-bottom: 5px;
  color: var(--text-muted);
}

.course-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Fees Structure Section --- */
.fees-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  overflow: hidden;
}

.fees-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  scrollbar-width: thin;
}

.fees-tab-btn {
  padding: 12px 24px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-normal);
}

.fees-tab-btn.active {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.fees-content {
  position: relative;
}

.fees-table-wrapper {
  display: none;
  animation: fade-in var(--transition-normal) forwards;
}

.fees-table-wrapper.active {
  display: block;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fees-table th, .fees-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.fees-table th {
  background-color: rgba(15, 118, 110, 0.05);
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--primary);
}

.fees-table tr:hover {
  background-color: rgba(15, 118, 110, 0.01);
}

.fees-total {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}

.fees-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- About Us & Video Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about-bullets {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-bullet-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(15, 118, 110, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-bullet-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-bullet-text p {
  font-size: 0.85rem;
}

/* Video card */
.about-video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.45), rgba(10, 25, 47, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--bg-white);
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 2;
}

.video-thumbnail-overlay:hover {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.55), rgba(10, 25, 47, 0.9));
}

.video-play-btn {
  width: 80px;
  height: 80px;
  background-color: var(--bg-white);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  padding-left: 6px; /* center play icon triangle */
  transition: var(--transition-normal);
  animation: video-pulse 2s infinite;
}

.video-thumbnail-overlay:hover .video-play-btn {
  transform: scale(1.1);
  background-color: var(--secondary);
  color: var(--bg-white);
}

.video-card-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes video-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- Gallery Section --- */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  padding: 10px 22px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-normal);
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: pointer;
  background-color: var(--primary);
  opacity: 1;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.gallery-item.hidden {
  display: none;
  opacity: 0;
}

.gallery-item-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-normal);
}

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

.gallery-item:hover .gallery-item-svg {
  transform: scale(1.08);
}

.gallery-category {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.gallery-caption {
  color: var(--bg-white);
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- Career Section --- */
.career-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 50px;
}

.career-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
}

.career-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.career-positions {
  list-style: none;
  margin-bottom: 30px;
}

.career-pos-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.career-pos-title {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}

.career-pos-type {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.career-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.career-perk-card {
  background-color: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.career-perk-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.career-perk-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.career-perk-card p {
  font-size: 0.85rem;
}

/* --- Contact Us & Mini Admission Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.90fr 1.10fr;
  gap: 50px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-white);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 0.9rem;
}

/* Social buttons */
.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.social-btn:hover {
  transform: translateY(-3px);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.social-btn.facebook:hover { background-color: #1877f2; border-color: #1877f2; }
.social-btn.instagram:hover { background-color: #e1306c; border-color: #e1306c; }
.social-btn.linkedin:hover { background-color: #0077b5; border-color: #0077b5; }
.social-btn.youtube:hover { background-color: #ff0000; border-color: #ff0000; }

/* Map card */
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  height: 250px;
  background-color: #cbd5e1;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Glassmorphic Admission Form */
.form-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 45px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 4px;
  cursor: pointer;
}

.form-checkbox span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  background-color: var(--secondary);
}

.footer-logo h2 {
  font-size: 1.4rem;
  color: var(--bg-white);
  font-weight: 800;
}

.footer-logo span {
  color: var(--secondary);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-link a:hover {
  color: var(--bg-white);
  transform: translateX(4px);
  display: inline-block;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--secondary);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 99;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* --- Modals (Video and Image Lightbox) --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--bg-white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.modal-content {
  width: 90%;
  max-width: 900px;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal.active .modal-content {
  transform: scale(1);
}

/* Video modal specific */
.video-modal-wrapper {
  aspect-ratio: 16 / 9;
  background-color: #000;
  position: relative;
}

.video-modal-wrapper iframe, .video-modal-wrapper video {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lightbox specific */
.lightbox-content {
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-img {
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--bg-white);
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

/* --- Dynamic Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-weight: 600;
  border-left: 4px solid var(--secondary);
  transform: translateY(100px);
  opacity: 0;
  animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left-color: var(--success);
}

.toast-icon {
  font-size: 1.2rem;
}

@keyframes toast-slide-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Animations --- */
@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .about-grid, .contact-grid, .career-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-grid > *:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header {
    height: 70px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 30px 0;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-link {
    color: var(--text-dark) !important;
  }
  
  .header.scrolled .nav-menu {
    background-color: var(--primary);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  .header.scrolled .nav-link {
    color: var(--bg-white) !important;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-graphics {
    display: none; /* Hide heavy graphical cards on mobile */
  }
  
  .hero {
    height: auto;
    min-height: auto;
    padding: 120px 0 80px 0;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .career-card {
    padding: 30px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid > *:last-child {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
