/* ==========================================================================
   Tripura Mathematical Society (TMS) - Modern Academic Styling
   ========================================================================== */

:root {
  --primary: #0d2b45;
  --primary-dark: #071726;
  --primary-light: #16426a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-dark: #b45309;
  --success: #059669;
  --danger: #dc2626;
  --info: #0284c7;
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-dark: #091a2b;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --text-white: #ffffff;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-accent: #bfdbfe;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT & CONTACT BAR
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-contacts a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-contacts a:hover {
  color: #ffffff;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-links a {
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.top-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.top-links .badge-pill {
  background: var(--gold);
  color: #ffffff;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Ticker bar */
.news-ticker-bar {
  background: linear-gradient(90deg, #1e3a5f 0%, #0d2b45 100%);
  color: #ffffff;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-label {
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-slide 28s linear infinite;
}

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

.ticker-track span {
  margin-right: 2.5rem;
  color: #e2e8f0;
}

.ticker-track a {
  color: #fef08a;
  text-decoration: underline;
  font-weight: 600;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   HEADER & BRANDING
   ========================================================================== */
.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.brand-logo-frame {
  height: 72px;
  width: auto;
  max-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.brand-identity:hover .brand-logo-frame {
  transform: scale(1.02);
}

.brand-logo-frame img {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.brand-text h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.brand-text .bengali-title {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.3;
}

.brand-text .sub-motto {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.brand-award-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.award-badge-icon {
  font-size: 1.6rem;
  color: var(--gold);
}

.award-badge-text {
  font-size: 0.76rem;
  color: #78350f;
  line-height: 1.25;
}

.award-badge-text strong {
  display: block;
  font-size: 0.82rem;
  color: #92400e;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.main-nav-bar {
  background: var(--primary);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 1.1rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link:focus,
.nav-item.active > .nav-link {
  color: #ffffff;
  background: var(--primary-light);
}

.nav-link .chevron-icon {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1050;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-link:hover {
  background: #f1f5f9;
  color: var(--accent);
  padding-left: 1.5rem;
}

/* Nested Submenu (3rd Level) */
.has-submenu {
  position: relative;
}

.nested-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 280px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.has-submenu:hover > .nested-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 0.6rem;
  cursor: pointer;
}

/* Header CTAs */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-nav-apply {
  background: var(--gold);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
  transition: var(--transition);
}

.btn-nav-apply:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-size: 0.92rem;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #ffffff;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #ffffff;
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: #ffffff;
}

.btn-success,
.btn-results {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.btn-success:hover,
.btn-results:hover {
  background: #047857;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.35);
}

.btn-outline {
  border-color: var(--border-medium);
  background: #ffffff;
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f8fafc;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1;
  text-transform: uppercase;
}

.badge-new {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  animation: pulse-glow 2s infinite;
}

.badge-pill-soft {
  background: #dbeafe;
  color: #1e40af;
  border-radius: var(--radius-full);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.badge-blink {
  background: #dc2626;
  color: #ffffff;
  border-color: #b91c1c;
  margin-left: 0.4rem;
  vertical-align: middle;
  animation: new-blink 1.1s steps(2, start) infinite;
}

@keyframes new-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #071a2e 0%, #0d2b45 50%, #153c63 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero-math-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-symbols {
  position: absolute;
  top: 10%;
  right: 5%;
  font-size: 9rem;
  font-weight: 900;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fef08a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: #60a5fa;
}

.hero-motto {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fef08a;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats-bar {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 1rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-number.highlight-gold {
  color: #fbbf24;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT (SIDEBAR + MAIN)
   ========================================================================== */
.page-section {
  padding: 3rem 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.layout-single {
  max-width: 960px;
  margin: 0 auto;
}

/* ==========================================================================
   SIDEBAR COMPONENTS
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-card-header {
  background: var(--primary);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-card-header.accent-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.sidebar-card-body {
  padding: 1.25rem;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-list-item {
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.75rem;
}

.sidebar-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-list-item a {
  display: block;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  transition: var(--transition);
}

.sidebar-list-item a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.sidebar-list-item .item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sidebar-search-box {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.scrollable-sidebar-list {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.scrollable-sidebar-list::-webkit-scrollbar {
  width: 5px;
}

.scrollable-sidebar-list::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.scrollable-sidebar-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* ==========================================================================
   CARDS & CONTENT BLOCKS
   ========================================================================== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* Exam Feature Box */
.exam-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.exam-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.exam-card.card-olympiad::before {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.exam-card.card-aptitude::before {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

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

.exam-card-header {
  margin-bottom: 1rem;
}

.exam-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.tag-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tag-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.exam-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.exam-card-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.exam-card-meta {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
}

.exam-card-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.exam-card-meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  font-weight: 600;
  color: var(--text-primary);
}

.exam-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Bank Account Callout */
.bank-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.bank-callout-title {
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.bank-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  font-size: 0.88rem;
}

.bank-detail-item {
  background: #ffffff;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid #dcfce7;
}

.bank-detail-item span {
  display: block;
  font-size: 0.74rem;
  color: #15803d;
  font-weight: 600;
  text-transform: uppercase;
}

.bank-detail-item strong {
  font-size: 0.95rem;
  color: #0f172a;
}

/* Award Showcase */
.award-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.award-banner-icon {
  font-size: 3.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.award-banner-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 0.5rem;
}

.award-banner-content p {
  font-size: 0.92rem;
  color: #92400e;
  line-height: 1.6;
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  background: #000000;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  padding: 1rem 0.75rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.modal-box {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-box img {
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}

.modal-caption {
  color: #ffffff;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--primary);
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) td {
  background: #f8fafc;
}

.data-table tr:hover td {
  background: #f1f5f9;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary-light);
}

.footer-top {
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
  gap: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-about p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.footer-links-list li {
  margin-bottom: 0.65rem;
}

.footer-links-list a {
  color: #cbd5e1;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: #60a5fa;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.footer-contact-icon {
  color: #60a5fa;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  background: #040d16;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE / TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    background: #091a2b;
    padding: 0;
    display: none;
  }
  
  .nav-item.open > .dropdown-menu {
    display: block;
  }
  
  .dropdown-link {
    color: #cbd5e1;
    padding: 0.65rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
  
  .nested-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    background: #06121e;
    padding: 0;
    display: none;
  }
  
  .has-submenu.open > .nested-dropdown {
    display: block;
  }
  
  .nested-dropdown .dropdown-link {
    padding-left: 2.25rem;
  }
  
  .brand-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand-logo-frame {
    height: 60px;
    max-width: 210px;
  }

  .brand-logo-frame img {
    height: 60px;
  }

  .brand-text h1 {
    font-size: 1.25rem;
  }
  
  .brand-award-pill {
    width: 100%;
  }
  
  .hero-title {
    font-size: 1.85rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-identity {
    gap: 0.75rem;
  }

  .brand-logo-frame {
    height: 50px;
    max-width: 175px;
  }

  .brand-logo-frame img {
    height: 50px;
  }

  .brand-text h1 {
    font-size: 1.1rem;
  }

  .brand-text .bengali-title {
    font-size: 0.88rem;
  }

  .brand-text .sub-motto {
    font-size: 0.72rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
}

