/* ===== Dr. Imdadul Haque Memorial Degree College ===== */
/* ===== Global Styles ===== */
:root {
  --primary: #0B3D91;
  --primary-dark: #082a66;
  --secondary: #1F6FEB;
  --accent: #2DA44E;
  --bg: #FFFFFF;
  --light-gray: #F8FAFC;
  --text: #1E293B;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(11, 61, 145, 0.08);
  --shadow-hover: 0 8px 32px rgba(11, 61, 145, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-bangla: 'Hind Siliguri', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

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

.bn { font-family: var(--font-bangla); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 61, 145, 0.25);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #22863a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 164, 78, 0.25);
}

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

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar a { color: rgba(255,255,255,0.9); transition: var(--transition); }
.top-bar a:hover { color: #fff; }
.top-bar .social-icon { font-size: 1.1rem; }

/* ===== Header / Navbar ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  height: var(--header-height);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.logo-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(11, 61, 145, 0.06);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
  padding: 8px 0;
  border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.88rem;
  color: var(--text);
}
.dropdown-menu a:hover { background: var(--light-gray); color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0a2d6b 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://scontent.fdac177-2.fna.fbcdn.net/v/t39.30808-6/473991489_1016981293784557_265557473357736514_n.jpg?stp=dst-jpg_tt6&cstp=mx1138x640&ctp=s1138x640&_nc_cat=104&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=yYdof7m_yTMQ7kNvwEGFzF1&_nc_oc=AdpCdR4fqrCxQLIIkq8_14pqtvIjainy-15uskRc8qG-bfCwPGKKHPue9Qo7lC1usy4&_nc_zt=23&_nc_ht=scontent.fdac177-2.fna&_nc_gid=8JLhWFvSMq4jYCN8rRms8Q&_nc_ss=7b2a8&oh=00_AQBCufHWVYHxJxq8FFFYfvU8AY7Wva_le7fWXZ1u5w7zpg&oe=6A6B199F') center/cover no-repeat;
  opacity: 0.15;
}
.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-title span { color: #4ade80; }
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.hero-actions .btn-primary:hover { background: rgba(255,255,255,0.9); }
.hero-actions .btn-outline {
  border-color: #fff;
  color: #fff;
}
.hero-actions .btn-outline:hover { background: #fff; color: var(--primary); }

/* ===== Notice Ticker ===== */
.notice-ticker {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
}
.notice-ticker .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  position: relative;
  height: 28px;
}
.ticker-list {
  display: flex;
  gap: 48px;
  animation: ticker 25s linear infinite;
  position: absolute;
  white-space: nowrap;
}
.ticker-list a {
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}
.ticker-list a:hover { color: var(--primary); }
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-200%); }
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ===== Stats Section ===== */
.stats {
  background: var(--primary);
  padding: 60px 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== Principal Message ===== */
.principal-card {
  display: flex;
  gap: 48px;
  align-items: center;
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 48px;
}
.principal-img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid var(--primary);
  flex-shrink: 0;
}
.principal-content h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 16px;
}
.principal-content blockquote {
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.principal-content .name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}
.principal-content .designation {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Quick Notice ===== */
.quick-notice {
  background: var(--light-gray);
}
.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-left: 4px solid var(--accent);
  margin-bottom: 16px;
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.notice-card.pinned {
  border-left-color: #dc2626;
  background: #FFF5F5;
}
.notice-icon { font-size: 1.5rem; flex-shrink: 0; }
.notice-card h4 { font-size: 1rem; margin-bottom: 4px; }
.notice-card .meta { font-size: 0.82rem; color: var(--text-light); }

/* ===== News & Events ===== */
.news-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
}
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-body { padding: 20px; }
.news-body .tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(45, 164, 78, 0.1);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.news-body h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.news-body p { font-size: 0.9rem; color: var(--text-light); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 145, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: #fff;
  font-weight: 600;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== Teachers Preview ===== */
.teacher-card {
  text-align: center;
  padding: 32px 24px;
}
.teacher-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
}
.teacher-card .teacher-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 16px rgba(11,61,145,0.2);
}
.teacher-card h4 { font-size: 1.05rem; color: var(--primary); }
.teacher-card .desig { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin: 4px 0; }
.teacher-card .dept { font-size: 0.82rem; color: var(--text-light); }

/* ===== Facilities ===== */
.facility-card {
  text-align: center;
  padding: 36px 24px;
}
.facility-icon {
  width: 64px;
  height: 64px;
  background: rgba(11, 61, 145, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}
.facility-card:hover .facility-icon { background: var(--primary); color: #fff; }
.facility-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.facility-card p { font-size: 0.88rem; color: var(--text-light); }

/* ===== Events ===== */
.event-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
}
.event-date {
  text-align: center;
  min-width: 64px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
}
.event-date .day { font-size: 1.6rem; font-weight: 800; display: block; line-height: 1; }
.event-date .month { font-size: 0.8rem; text-transform: uppercase; }
.event-info h4 { font-size: 1rem; margin-bottom: 4px; }
.event-info p { font-size: 0.85rem; color: var(--text-light); }

/* ===== Contact Section ===== */
.contact-section {
  background: var(--light-gray);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(11, 61, 145, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item p { font-size: 0.88rem; color: var(--text-light); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ===== Map ===== */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.footer {
  background: #0a0f24;
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
  font-size: 1.1rem;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--accent); }

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0a2d6b 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}
.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-banner .breadcrumb { font-size: 0.9rem; opacity: 0.8; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-banner .breadcrumb a:hover { color: #fff; }

/* ===== Admission ===== */
.admission-steps {
  counter-reset: step;
}
.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-gray);
  transition: var(--transition);
}
.faq-question:hover { background: #eef2f6; }
.faq-question .arrow { transition: var(--transition); }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-light);
  font-size: 0.9rem;
}
.faq-item.active .faq-answer {
  padding: 18px 24px;
  max-height: 300px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.pagination a {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}
.pagination a:hover,
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Search Bar ===== */
.search-bar {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 32px;
}
.search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.search-bar input:focus { outline: none; border-color: var(--primary); }
.search-bar button {
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

/* ===== Filter Tabs ===== */
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text);
}
.filter-tab:hover,
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Downloads ===== */
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.download-icon {
  width: 48px;
  height: 48px;
  background: rgba(45, 164, 78, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}
.download-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.download-info p { font-size: 0.82rem; color: var(--text-light); }
.download-btn {
  margin-left: auto;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.download-btn:hover { background: #22863a; }

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-btn:hover { transform: scale(1.1); background: #20bd5a; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead { background: var(--primary); color: #fff; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--light-gray); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; margin-bottom: 8px; }
  .section-subtitle { font-size: 0.92rem; margin-bottom: 32px; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero { min-height: 60vh; padding: 60px 0; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 16px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }
  .dropdown.open > a { color: var(--primary); }
  .dropdown.open .dropdown-menu { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { padding: 20px; }
  .stat-item h3 { font-size: 2rem; }
  .stat-item p { font-size: 0.82rem; }
  .principal-card { flex-direction: column; text-align: center; padding: 24px; }
  .principal-img { width: 140px; height: 140px; border-radius: 12px; margin: 0 auto 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .top-bar-right { display: none; }
  .top-bar-mobile { display: flex; align-items: center; gap: 10px; }
  .logo-text h1 { font-size: 0.85rem; }
  .logo-text span { font-size: 0.65rem; }
  .logo-img { width: 36px; height: 36px; }
  .page-banner { padding: 40px 0; }
  .page-banner h1 { font-size: 1.5rem; }
  .page-banner .breadcrumb { font-size: 0.82rem; }
  .search-bar { flex-direction: column; gap: 8px; }
  .search-bar input { font-size: 16px !important; }
  .search-bar button { width: 100%; justify-content: center; }
  .filter-tabs { gap: 6px; margin-bottom: 24px; }
  .filter-tab { padding: 8px 16px; font-size: 0.8rem; }
  .card { padding: 16px; }
  .notice-card { padding: 16px; gap: 12px; }
  .notice-card h4 { font-size: 0.92rem; }
  .event-card { padding: 14px; }
  .event-date { width: 56px; height: 56px; }
  .event-date .day { font-size: 1.2rem; }
  .event-date .month { font-size: 0.65rem; }
  .teacher-card { padding: 20px 16px; }
  .teacher-card img { width: 80px; height: 80px; }
.teacher-card .teacher-icon { width: 80px; height: 80px; font-size: 1.8rem; }
  .teacher-card h4 { font-size: 0.9rem; }
  .facility-card { padding: 20px; text-align: center; }
  .facility-icon { width: 48px; height: 48px; font-size: 1.2rem; margin: 0 auto 12px; }
  .news-card img { height: 160px; }
  .news-body { padding: 16px; }
  .news-body h3 { font-size: 0.95rem; }
  .section-divider { margin-bottom: 12px; }
  .download-card { flex-wrap: wrap; gap: 12px; }
  .download-btn { margin-left: 0; width: 100%; justify-content: center; }
  .pagination { gap: 6px; margin-top: 24px; }
  .pagination a { padding: 8px 12px; font-size: 0.82rem; }
  .whatsapp-btn { width: 48px; height: 48px; font-size: 1.3rem; bottom: 16px; right: 16px; }
  .back-to-top { width: 38px; height: 38px; font-size: 1rem; bottom: 16px; left: 16px; }
  table { font-size: 0.8rem; }
  th, td { padding: 10px 12px; }
  .step-card { padding: 16px; gap: 14px; }
  .step-card::before { width: 32px; height: 32px; font-size: 0.85rem; }
  .faq-question { padding: 14px 16px; font-size: 0.88rem; }
  .faq-answer { font-size: 0.85rem; }
  .container { padding: 0 14px; }
  .header { height: 60px; }
  .header .container { height: 60px; }
  .top-bar { height: auto; min-height: 40px; padding: 6px 0; }
  .top-bar-left span { font-size: 0.72rem; }
  :root { --header-height: 60px; }
}

@media (max-width: 480px) {
  .section { padding: 32px 0; }
  .section-title { font-size: 1.3rem; }
  .section-subtitle { font-size: 0.85rem; margin-bottom: 24px; }
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 0.88rem; }
  .hero { min-height: 50vh; padding: 40px 0; }
  .hero-actions .btn { font-size: 0.85rem; padding: 10px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-item { padding: 16px; }
  .stat-item h3 { font-size: 1.6rem; }
  .stat-item p { font-size: 0.78rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .gallery-item { height: 200px; }
  .grid-2, .grid-3, .grid-4 { gap: 12px; }
  .card { padding: 14px; border-radius: 12px; }
  .page-banner { padding: 32px 0; }
  .page-banner h1 { font-size: 1.3rem; }
  .notice-ticker .ticker-label { font-size: 0.72rem; padding: 4px 10px; }
  .container { padding: 0 12px; }
  .contact-item { padding: 14px; }
  .contact-item .icon { width: 40px; height: 40px; font-size: 1rem; }
  .news-card img { height: 140px; }
  .teacher-card img { width: 70px; height: 70px; }
.teacher-card .teacher-icon { width: 70px; height: 70px; font-size: 1.5rem; }
  .facility-icon { width: 40px; height: 40px; font-size: 1rem; }
  .footer-social a { width: 36px; height: 36px; font-size: 0.9rem; }
  .whatsapp-btn { width: 44px; height: 44px; font-size: 1.2rem; bottom: 12px; right: 12px; }
  .back-to-top { width: 34px; height: 34px; font-size: 0.9rem; bottom: 12px; left: 12px; }
  .top-bar-left { flex-wrap: wrap; gap: 6px; }
  .top-bar-left span { font-size: 0.68rem; }
  .logo-text h1 { font-size: 0.78rem; }
  .logo-text span { font-size: 0.6rem; }
  .logo-img { width: 32px; height: 32px; }
  .header { height: 54px; }
  .header .container { height: 54px; }
  .nav { top: 54px; max-height: calc(100vh - 54px); }
  :root { --header-height: 54px; }
}

/* ===== Language Switcher ===== */
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}
.lang-btn.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.lang-btn:hover { color: #fff; }
.top-bar-mobile { display: none; align-items: center; gap: 8px; }
.top-bar-mobile a { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.top-bar-mobile a:hover { color: #fff; }

/* ===== Mobile Bottom Nav ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 998;
  padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav .nav-links { display: flex; justify-content: space-around; }
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; color: var(--text-light); font-size: 0.6rem; transition: var(--transition); }
.mobile-bottom-nav a i { font-size: 1.1rem; }
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: var(--primary); }
@media (max-width: 768px) { body { padding-bottom: 52px; } .mobile-bottom-nav { display: block; } .whatsapp-btn { bottom: 68px; } .back-to-top { bottom: 68px; } }

/* ===== Admin Login ===== */
.admin-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0f24 0%, var(--primary) 100%);
  padding: 20px;
}
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.admin-card .logo {
  justify-content: center;
  margin-bottom: 32px;
}
.admin-card h2 {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.admin-card p {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-form label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.admin-form input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--light-gray);
}
.admin-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,61,145,0.1);
  background: #fff;
}
.admin-form .btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.admin-error {
  background: #FEF2F2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
  text-align: center;
  border: 1px solid #FECACA;
}

/* ===== Admin Dashboard ===== */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background: #0a0f24;
  color: #fff;
  padding: 24px 0;
}
.dash-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 0 20px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dash-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dash-sidebar a:hover,
.dash-sidebar a.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-left-color: var(--accent);
}
.dash-main {
  background: var(--light-gray);
  padding: 32px;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.dash-header h1 { font-family: var(--font-heading); color: var(--primary); font-size: 1.5rem; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.dash-stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.dash-stat h3 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.dash-stat p { font-size: 0.85rem; color: var(--text-light); }

@media (max-width: 768px) {
  .dashboard { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
}

/* ===== Mobile Touch Improvements ===== */
@media (pointer: coarse) {
  .nav a, .dropdown-menu a, .btn, .filter-tab, .download-btn {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .event-card, .notice-card { padding: 16px; }
  input, textarea, select { font-size: 16px !important; }
}
