/* ============================================
   VIDYASAGAR INTERNATIONAL SCHOOL — MAIN CSS
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2236;
  --primary-light: #2a5080;
  --accent: #e8a020;
  --accent-light: #f5c050;
  --success: #2e7d32;
  --danger: #c62828;
  --warning: #e65100;
  --info: #1565c0;
  --text-dark: #1c1c1c;
  --text-muted: #5a5a5a;
  --bg-light: #f4f6f9;
  --bg-white: #ffffff;
  --border: #dde3ea;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.hindi { font-family: 'Noto Sans Devanagari', sans-serif; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ============ ANNOUNCEMENT TICKER ============ */
.ticker-bar {
  background: var(--primary-dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.ticker-wrap {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-wrap:hover { animation-play-state: paused; }

.ticker-item { padding: 0 40px; display: inline-block; }
.ticker-item span { margin-right: 8px; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.navbar.has-ticker { top: 34px; }

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand .logo {
  width: 45px;
  height: 45px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.nav-brand span { color: var(--accent); }

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-links .dropdown { position: relative; }

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.88rem;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
}

.nav-cta:hover { background: var(--accent-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 70px;
  overflow: hidden;
}

.hero.has-ticker { margin-top: 104px; }

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://picsum.photos/1600/800?random=10') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,34,54,0.85), rgba(26,58,92,0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-content h1 span { color: var(--accent); }

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover { background: var(--accent-light); color: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: #fff; color: var(--primary); }

.btn-navy { background: var(--primary); color: #fff; }
.btn-navy:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-item p {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.stat-item i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 { margin-bottom: 12px; }

.section-header .line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============ CARDS ============ */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-body { padding: 24px; }
.card-img { width: 100%; height: 200px; object-fit: cover; }

.card h4 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ QUICK LINKS GRID ============ */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--accent);
}

.quick-link:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.quick-link i {
  font-size: 1.8rem;
  color: var(--accent);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,160,32,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.quick-link span { font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 1rem; }

/* ============ ABOUT SNIPPET ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 { margin-bottom: 16px; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }

.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; display: block; }

/* ============ HIGHLIGHTS ============ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.highlight-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}

.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.highlight-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 16px; }
.highlight-card h4 { margin-bottom: 12px; }
.highlight-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============ RESULTS PREVIEW ============ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.result-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.result-card .board-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.result-card h4 { margin-bottom: 8px; }
.result-card .stat { font-size: 2rem; font-weight: 700; color: var(--accent); }
.result-card .details { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
}

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h5 { font-size: 0.95rem; margin-bottom: 2px; }
.testimonial-author small { color: var(--text-muted); font-size: 0.82rem; }

/* ============ NEWS CARDS ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card { overflow: hidden; }

.news-card .card-body { padding: 20px; }

.news-card .date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card .category {
  display: inline-block;
  background: rgba(232,160,32,0.12);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card h4 { font-size: 1.1rem; margin-bottom: 8px; }

.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ EVENTS LIST ============ */
.events-list { display: flex; flex-direction: column; gap: 12px; }

.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.event-item:hover { transform: translateX(4px); }

.event-date {
  min-width: 60px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.event-date .day { font-size: 1.5rem; font-weight: 700; display: block; }
.event-date .month { font-size: 0.7rem; text-transform: uppercase; }

.event-info h5 { font-size: 0.95rem; margin-bottom: 2px; }
.event-info p { font-size: 0.82rem; color: var(--text-muted); }

.event-type {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-type.exam { background: #fce4ec; color: #c62828; }
.event-type.sports { background: #e8f5e9; color: #2e7d32; }
.event-type.cultural { background: #fff3e0; color: #e65100; }
.event-type.academic { background: #e3f2fd; color: #1565c0; }
.event-type.national { background: #f3e5f5; color: #6a1b9a; }
.event-type.meeting { background: #fce4ec; color: #c62828; }

/* ============ BREADCRUMB ============ */
.breadcrumb-wrap {
  background: var(--bg-light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  margin-top: 70px;
}

.breadcrumb-wrap.has-ticker { margin-top: 104px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ============ PAGE HERO (INNER PAGES) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 60px 0 40px;
  color: #fff;
  text-align: center;
  margin-top: 70px;
}

.page-hero.has-ticker { margin-top: 104px; }

.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; font-size: 1.05rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer h4 {
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-about .footer-logo .logo {
  width: 45px;
  height: 45px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-family: 'Poppins', sans-serif;
}

.footer-about .footer-logo h3 { color: #fff; font-size: 1.1rem; }

.footer-about p { font-size: 0.9rem; line-height: 1.7; }

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i { color: var(--accent); margin-top: 4px; min-width: 16px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--accent); color: var(--primary-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
}

.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: var(--accent); }

/* ============ WHATSAPP BUTTON ============ */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-btn:hover { transform: scale(1.1); color: #fff; }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.data-table tbody tr:hover { background: var(--bg-light); }

.data-table tbody tr:nth-child(even) { background: rgba(244,246,249,0.5); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control { cursor: pointer; }

/* ============ BADGES ============ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-success { background: #e8f5e9; color: var(--success); }
.badge-danger { background: #fce4ec; color: var(--danger); }
.badge-warning { background: #fff3e0; color: var(--warning); }
.badge-info { background: #e3f2fd; color: var(--info); }
.badge-primary { background: rgba(26,58,92,0.1); color: var(--primary); }

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-item .year {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.timeline-item p { color: var(--text-muted); margin-top: 4px; }

/* ============ GALLERY ============ */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.gallery-filters .filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
}

.gallery-filters .filter-btn.active, .gallery-filters .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,34,54,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item .overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
}

/* ============ NOTICE BOARD ============ */
.notice-item {
  background: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.notice-item:hover { border-left-color: var(--accent); }
.notice-item.urgent { border-left-color: var(--danger); }

.notice-item .notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notice-item h4 { font-size: 1rem; }
.notice-item .notice-id { font-size: 0.78rem; color: var(--text-muted); }
.notice-item .notice-date { font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.notice-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ CONTACT FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 50px;
  height: 50px;
  background: rgba(232,160,32,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ FACULTY GRID ============ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.faculty-card {
  text-align: center;
  padding: 30px 20px;
}

.faculty-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--accent);
}

.faculty-card h4 { font-size: 1rem; margin-bottom: 4px; }
.faculty-card .designation { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.faculty-card .dept { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }

/* ============ FEE TABLE ============ */
.fee-total { font-weight: 700; color: var(--primary); }

/* ============ ADMISSION STEPS ============ */
.steps-grid { display: flex; flex-direction: column; gap: 20px; }

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h4 { margin-bottom: 8px; }
.step-content p { color: var(--text-muted); font-size: 0.92rem; }

/* ============ ALUMNI GRID ============ */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.alumni-card {
  display: flex;
  gap: 20px;
  padding: 24px;
}

.alumni-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.alumni-card h4 { font-size: 1rem; margin-bottom: 2px; }
.alumni-card .batch { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.alumni-card .current { color: var(--text-muted); font-size: 0.85rem; margin: 4px 0; }
.alumni-card blockquote { color: var(--text-muted); font-style: italic; font-size: 0.9rem; margin-top: 8px; border-left: 3px solid var(--accent); padding-left: 12px; }

/* ============ MAP ============ */
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 400px; border: none; }

/* ============ SEARCH BOX ============ */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 998;
  transition: var(--transition);
  border: none;
}

.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--accent); }

/* ============ 404 PAGE ============ */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page h1 { font-size: 8rem; color: var(--accent); line-height: 1; }
.error-page h2 { margin-bottom: 16px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* ============ TIMETABLE ============ */
.timetable-table th, .timetable-table td {
  font-size: 0.82rem;
  padding: 10px 12px;
  text-align: center;
}

.timetable-table .break-row { background: #fff3e0 !important; font-weight: 600; color: var(--warning); }
.timetable-table .lunch-row { background: #e8f5e9 !important; font-weight: 600; color: var(--success); }

/* ============ LOADING SPINNER ============ */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ PROGRESS BAR ============ */
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.progress-fill.green { background: var(--success); }
.progress-fill.blue { background: var(--info); }
.progress-fill.orange { background: var(--warning); }
.progress-fill.red { background: var(--danger); }

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
