:root {
    --navy: #0F2C2E;
    --navy-mid: #143C3E;
    --navy-light: #1B4D4F;
    --gold: #D98A3D;
    --gold-light: #F0A85C;
    --gold-pale: #FCEEDD;
    --cream: #F7FAFA;
    --white: #FFFFFF;
    --text-dark: #0F2C2E;
    --text-muted: #5C6B6D;
    --text-light: #93A3A5;
    --border: #E2E8E7;
    --accent: #1B8A93;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
  }

  /* ──── SCROLLBAR ──── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--navy); }
  ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ──── NAVBAR ──── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16, 44, 46, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 138, 61, 0.2);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-name {
  display: flex;
  flex-direction: column;
}

.nav-name span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.3px;
}

.nav-name span:last-child {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-btn {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
}

.lang-toggle-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.lang-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ──── BANGLA NAVBAR FIX ────
   Bangla text runs longer than English, so tighten
   spacing/size and force a single line to avoid
   messy wrapping in the fixed-height navbar. */
html[lang="bn"] .nav-links {
  gap: 18px;
}

html[lang="bn"] .nav-links a,
html[lang="bn"] .nav-btn,
html[lang="bn"] .lang-toggle-btn {
  white-space: nowrap;
}

html[lang="bn"] .nav-links a {
  font-size: 12.5px;
  letter-spacing: 0;
}

html[lang="bn"] .nav-btn {
  padding: 7px 14px;
  font-size: 12.5px !important;
}

html[lang="bn"] .lang-toggle-btn {
  padding: 6px 12px;
  font-size: 11.5px;
}

html[lang="bn"] .nav-name span:first-child {
  font-size: 13px;
  white-space: nowrap;
}

html[lang="bn"] .nav-name span:last-child {
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* If it still can't fit on very narrow desktop widths,
   scroll horizontally instead of wrapping. */
@media (max-width: 1300px) {
  html[lang="bn"] .nav-links {
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 62vw;
  }

  html[lang="bn"] .nav-links::-webkit-scrollbar {
    display: none;
  }

  html[lang="bn"] .nav-links li {
    flex-shrink: 0;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1002;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
}

/* Mobile Navbar */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-name span:first-child {
    font-size: 13px;
  }

  .nav-name span:last-child {
    font-size: 9px;
  }

  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(16, 44, 46, 0.98);
    padding: 22px 8%;
    z-index: 9999;
    border-top: 1px solid rgba(217,138,61,0.25);
    border-bottom: 1px solid rgba(217,138,61,0.25);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  }

  .mobile-menu.open {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-menu a {
    display: block;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
  }

  .mobile-menu a:hover {
    color: var(--gold);
  }

  .mobile-menu .mobile-menu-btn {
    background: var(--gold);
    color: var(--navy) !important;
    text-align: center;
    border-radius: 8px;
    padding: 12px 18px;
    margin-top: 8px;
  }
}
  /* ──── HERO ──── */
  .hero {
    min-height: 100vh;
    background: var(--navy);
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(217,138,61,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(27,138,147,0.06) 0%, transparent 50%);
  }

  .hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(217,138,61,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(217,138,61,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
  }

  .hero-content {
    position: relative;
    padding: 120px 8% 80px;
    max-width: 720px;
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(217,138,61,0.12);
    border: 1px solid rgba(217,138,61,0.3);
    padding: 6px 16px; border-radius: 20px;
    margin-bottom: 28px;
  }

  .hero-badge span {
    font-size: 12px; font-weight: 600;
    color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase;
  }

  .hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero h1 .highlight {
    color: var(--gold);
    display: block;
  }

  .hero-sub {
    font-size: 17px; color: rgba(255,255,255,0.85);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px; font-weight: 700;
  }

  .hero p {
    font-size: 17px; color: rgba(255,255,255,0.65);
    line-height: 1.8; max-width: 540px;
    margin-bottom: 40px;
  }

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

  .btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 14px;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.25s; display: inline-block;
    letter-spacing: 0.3px;
  }

  .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217,138,61,0.3);
  }

  .btn-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 32px; border-radius: 8px;
    font-weight: 500; font-size: 14px;
    text-decoration: none; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.25s; display: inline-block;
  }

  .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
  }

  .hero-right {
    position: absolute; right: 6%; top: 50%;
    transform: translateY(-50%);
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }

  .hero-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 24px 20px;
    text-align: center; min-width: 130px;
  }

  .hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 700;
    color: var(--gold); display: block;
  }

  .hero-stat .label {
    font-size: 12px; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 4px;
  }

  .hero-scroll {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }

  .hero-scroll span { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 2px; text-transform: uppercase; }

  .scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollAnim 2s infinite;
  }

  @keyframes scrollAnim {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
  }

  /* ──── SECTION SHARED ──── */
  section { padding: 90px 8%; }

  .section-label {
    font-size: 11px; font-weight: 600;
    color: var(--gold); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 12px;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700; line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
  }

  .section-desc {
    font-size: 16px; color: var(--text-muted);
    line-height: 1.8; max-width: 560px;
  }

  .divider {
    width: 48px; height: 3px;
    background: var(--gold); border-radius: 2px;
    margin: 20px 0;
  }

  /* ──── ABOUT ──── */
  .about { background: var(--white); }

  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    margin-top: 60px;
  }

  .about-img {
    position: relative;
  }

  .about-img-main {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
  }

  .about-img-main .school-crest {
    font-family: 'Playfair Display', serif;
    font-size: 100px; font-weight: 700;
    color: rgba(217,138,61,0.15);
    letter-spacing: -5px;
    user-select: none;
  }

  .about-img-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--gold);
    padding: 20px 24px; border-radius: 12px;
    text-align: center;
  }

  .about-img-badge .year {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 700;
    color: var(--navy); display: block;
  }

  .about-img-badge .year-label {
    font-size: 11px; color: var(--navy);
    opacity: 0.7; letter-spacing: 1px;
  }

  .about-values {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-top: 32px;
  }

  .value-card {
    background: var(--cream);
    border-radius: 10px; padding: 18px;
    border-left: 3px solid var(--gold);
  }

  .value-card h4 {
    font-size: 14px; font-weight: 600;
    color: var(--text-dark); margin-bottom: 4px;
  }

  .value-card p {
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
  }

  /* ──── STATS BAR ──── */
  .stats-bar {
    background: var(--navy);
    padding: 60px 8%;
  }

  .stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

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

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

  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 48px; font-weight: 700;
    color: var(--gold); display: block;
    line-height: 1;
  }

  .stat-text { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 8px; letter-spacing: 0.5px; }

  /* ──── EVENTS ──── */
  .events { background: var(--cream); }

  .events-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 48px;
  }

  .events-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .event-card {
    background: var(--white);
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(16,44,46,0.12);
    border-color: var(--gold);
  }

  .event-img {
    height: 180px;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; position: relative;
    overflow: hidden;
  }

  .event-img.reunion { background: linear-gradient(135deg, #0F2C2E, #1B4D4F); }
  .event-img.sports { background: linear-gradient(135deg, #1B8A93, #0F5A61); }
  .event-img.cultural { background: linear-gradient(135deg, #7B2D8B, #4A1160); }
  .event-img.academic { background: linear-gradient(135deg, #D98A3D, #8B6320); }

  .event-date-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--gold);
    padding: 6px 12px; border-radius: 6px;
    text-align: center;
  }

  .event-date-badge .day {
    font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 700;
    color: var(--navy); line-height: 1; display: block;
  }

  .event-date-badge .month {
    font-size: 10px; color: var(--navy);
    font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
  }

  .event-body { padding: 20px; }

  .event-type {
    font-size: 10px; font-weight: 600;
    color: var(--gold); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 8px;
  }

  .event-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 600;
    margin-bottom: 8px; color: var(--text-dark);
    line-height: 1.3;
  }

  .event-body p {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.6; margin-bottom: 16px;
  }

  .event-meta {
    display: flex; gap: 16px;
    font-size: 12px; color: var(--text-light);
  }

  .event-meta span { display: flex; align-items: center; gap: 4px; }

  /* ──── NEWS ──── */
  .news { background: var(--white); }

  .news-grid {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 40px; margin-top: 48px;
  }

 .news-main {
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
  min-height: 300px; /* ← এই line যোগ করো */
}

  .news-main:hover { transform: translateY(-4px); }

  .news-main-img {
    height: 280px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; position: relative;
  }

  .news-main-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--navy) 100%);
  }

  .news-main-body { padding: 24px; }

  .news-main-body .tag {
    display: inline-block;
    background: rgba(217,138,61,0.15);
    color: var(--gold); font-size: 11px;
    font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; padding: 4px 10px;
    border-radius: 4px; margin-bottom: 12px;
  }

  .news-main-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; color: var(--white);
    line-height: 1.3; margin-bottom: 10px;
  }

  .news-main-body p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }

  .news-list { display: flex; flex-direction: column; gap: 0; }

  .news-item {
    display: flex; gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer; transition: all 0.2s;
  }

  .news-item:hover { padding-left: 8px; }
  .news-item:last-child { border-bottom: none; }

  .news-item-img {
    width: 80px; height: 72px;
    background: var(--cream);
    border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
  }

  .news-item-body { flex: 1; }

  .news-item-body .date {
    font-size: 11px; color: var(--text-light);
    letter-spacing: 0.5px; margin-bottom: 4px;
  }

  .news-item-body h4 {
    font-size: 15px; font-weight: 600;
    color: var(--text-dark); line-height: 1.4;
    margin-bottom: 4px;
  }

  .news-item-body p {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.5;
  }

  /* ──── MEMBERS / DIRECTORY ──── */
  .directory { background: var(--cream); }

  .dir-controls {
    display: flex; gap: 16px; margin-top: 36px; margin-bottom: 36px;
    flex-wrap: wrap;
  }

  .dir-search {
    flex: 1; min-width: 240px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
  }

  .dir-search:focus { border-color: var(--gold); }

  .dir-filter {
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    outline: none; cursor: pointer;
  }

  .dir-filter:focus { border-color: var(--gold); }

  .members-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .member-card {
    background: var(--white);
    border-radius: 14px; padding: 24px 20px;
    text-align: center; border: 1px solid var(--border);
    transition: all 0.3s; cursor: pointer;
  }

  .member-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(217,138,61,0.1);
  }

  .member-avatar {
    width: 72px; height: 72px;
    border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 700;
    color: var(--white); position: relative;
  }

  .member-avatar .status-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--white);
  }

  .status-dot.active { background: #22c55e; }
  .status-dot.inactive { background: #94a3b8; }

  .member-card h4 {
    font-size: 15px; font-weight: 600;
    color: var(--text-dark); margin-bottom: 2px;
  }

  .member-batch {
    font-size: 12px; color: var(--gold);
    font-weight: 600; margin-bottom: 4px;
  }

  .member-profession {
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 14px;
  }

  .member-actions {
    display: flex; gap: 8px; justify-content: center;
  }

  .member-btn {
    padding: 6px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 500; cursor: pointer;
    transition: all 0.2s; border: 1px solid var(--border);
    background: transparent; font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
  }

  .member-btn:hover { border-color: var(--gold); color: var(--gold); }

  .member-btn.primary {
    background: var(--gold); color: var(--navy);
    border-color: var(--gold);
  }

  .member-btn.primary:hover { background: var(--gold-light); }

  /* ──── COMMITTEE ──── */
  .committee { background: var(--navy); }

  .committee .section-label { color: var(--gold-light); }
  .committee .section-title { color: var(--white); }
  .committee .section-desc { color: rgba(255,255,255,0.5); }
  .committee .divider { background: var(--gold); }

  .committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px; margin-top: 48px;
  }

  .committee-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 28px 20px;
    text-align: center; transition: all 0.3s;
  }

  .committee-card:hover {
    background: rgba(217,138,61,0.08);
    border-color: rgba(217,138,61,0.3);
    transform: translateY(-4px);
  }

  .committee-card:first-child {
    grid-column: span 2;
    background: rgba(217,138,61,0.08);
    border-color: rgba(217,138,61,0.3);
  }

  .com-avatar {
    width: 76px; height: 76px; border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 700;
    color: var(--navy);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
  }

  .committee-card h4 {
    font-size: 16px; font-weight: 600;
    color: var(--white); margin-bottom: 4px;
  }

  .com-role {
    font-size: 12px; color: var(--gold);
    font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 6px;
  }

  .com-batch {
    font-size: 12px; color: rgba(255,255,255,0.4);
  }

  /* ──── GALLERY ──── */
  .gallery { background: var(--white); }

  .gallery-tabs {
    display: flex; gap: 4px;
    background: var(--cream);
    padding: 4px; border-radius: 10px;
    width: fit-content; margin: 32px 0 36px;
  }

  .gallery-tab {
    padding: 8px 20px; border-radius: 7px;
    font-size: 13px; font-weight: 500;
    cursor: pointer; border: none;
    background: transparent; color: var(--text-muted);
    transition: all 0.2s; font-family: 'DM Sans', sans-serif;
  }

  .gallery-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 600;
  }

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

  .gallery-item {
    aspect-ratio: 1; border-radius: 10px;
    overflow: hidden; cursor: pointer;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    transition: transform 0.3s;
  }

  .gallery-item {
  background: var(--navy-light);
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 44, 46, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.gallery-overlay span {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

  /* ──── CONTACT ──── */
  .contact { background: var(--cream); }

  .contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 64px; margin-top: 56px;
  }

  .contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; margin-bottom: 16px;
    color: var(--text-dark);
  }

  .contact-info p {
    font-size: 15px; color: var(--text-muted);
    line-height: 1.8; margin-bottom: 32px;
  }

  .contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 20px;
  }

  .contact-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--navy);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--gold);
  }

  .contact-item-text h5 {
    font-size: 13px; font-weight: 600;
    color: var(--text-light); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 2px;
  }

  .contact-item-text p {
    font-size: 15px; color: var(--text-dark);
    margin-bottom: 0; line-height: 1.4;
  }

  .contact-form {
    background: var(--white);
    border-radius: 16px; padding: 36px;
    border: 1px solid var(--border);
  }

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

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

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: 'DM Sans', sans-serif;
    color: var(--text-dark); background: var(--cream);
    outline: none; transition: border-color 0.2s;
    resize: vertical;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
  }

  .form-group textarea { min-height: 100px; }

  /* ──── FOOTER ──── */
  footer {
    background: var(--navy);
    padding: 60px 8% 30px;
    border-top: 1px solid rgba(217,138,61,0.15);
  }

  .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
  }

  .footer-brand p {
    font-size: 14px; color: rgba(255,255,255,0.45);
    line-height: 1.8; margin-top: 16px; max-width: 280px;
  }

  .footer-socials {
    display: flex; gap: 10px; margin-top: 20px;
  }

  .social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    text-decoration: none; font-size: 16px;
    transition: all 0.2s; cursor: pointer;
  }

  .social-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
  }

  .footer-col h5 {
    font-size: 13px; font-weight: 600;
    color: var(--white); letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 20px;
  }

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

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

  .footer-col a {
    font-size: 14px; color: rgba(255,255,255,0.4);
    text-decoration: none; transition: color 0.2s;
  }

  .footer-col a:hover { color: var(--gold); }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
  }

  .footer-bottom p {
    font-size: 13px; color: rgba(255,255,255,0.3);
  }

  .footer-bottom .made {
    font-size: 13px; color: rgba(255,255,255,0.3);
  }

  .footer-bottom .made span { color: var(--gold); }

  /* ──── MODAL ──── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7);
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
  }

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

  .modal {
    background: var(--white);
    border-radius: 20px; padding: 40px;
    max-width: 480px; width: 90%;
    position: relative; animation: modalIn 0.3s ease;
  }

  @keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  .modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--cream); border: none; cursor: pointer;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
  }

  .modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; margin-bottom: 8px; color: var(--text-dark);
  }

  .modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

  /* ──── TOAST ──── */
  .toast {
    position: fixed; bottom: 30px; right: 30px; z-index: 99999;
    background: var(--navy);
    color: var(--white);
    padding: 14px 24px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    border-left: 3px solid var(--gold);
    transform: translateX(200px); opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
  }

  .toast.show { transform: translateX(0); opacity: 1; }

  /* ──── SCROLL ANIMATIONS ──── */
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.visible { opacity: 1; transform: translateY(0); }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ──── ANNOUNCEMENT TICKER ──── */
  .ticker {
    background: var(--gold);
    padding: 10px 8%;
    display: flex; align-items: center; gap: 16px;
    overflow: hidden;
  }

  .ticker-label {
    background: var(--navy);
    color: var(--gold); font-size: 11px;
    font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 4px 10px;
    border-radius: 4px; white-space: nowrap;
    flex-shrink: 0;
  }

  .ticker-track {
    overflow: hidden; flex: 1;
  }

  .ticker-content {
    display: flex; gap: 60px;
    animation: ticker 25s linear infinite;
    white-space: nowrap;
  }

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

  .ticker-item { font-size: 13px; font-weight: 500; color: var(--navy); }
  .ticker-dot { color: var(--navy); opacity: 0.4; }

  /* ──── MOBILE ──── */
  @media (max-width: 768px) {
    section { padding: 70px 6%; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-right { display: none; }
    .hero-content { padding: 100px 6% 60px; }
    .about-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item:nth-child(3), .gallery-item:nth-child(7) { grid-column: span 1; aspect-ratio: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .committee-card:first-child { grid-column: span 1; }
    .form-row { grid-template-columns: 1fr; }
    .about-img-badge { bottom: -10px; right: -10px; padding: 14px 18px; }

    .hero-sub {
      font-size: 14px;
      letter-spacing: 1px;
    }
  }
 /* NEWS DETAILS MODAL SCROLL FIX - SINGLE SCROLL */
#newsDetailsModal {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#newsDetailsModal .modal {
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
}

#newsDetailsContent {
  padding-right: 8px;
}

/* Only modal scrollbar */
#newsDetailsModal .modal::-webkit-scrollbar {
  width: 6px;
}

#newsDetailsModal .modal::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

#newsDetailsModal .modal::-webkit-scrollbar-track {
  background: var(--cream);
}

/* Gallery Popup */
#galleryModal {
  padding: 20px;
}

.gallery-popup-modal {
  max-width: 850px;
  width: 92%;
  padding: 18px;
  background: var(--white);
}

#galleryPopupImg {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: var(--navy);
}

.gallery-popup-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.gallery-item {
  cursor: pointer;
}

/* Event Details Modal */
#eventDetailsModal {
  padding: 20px;
}

#eventDetailsModal .modal {
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
}

#eventDetailsModal .modal::-webkit-scrollbar {
  width: 6px;
}

#eventDetailsModal .modal::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

#eventDetailsModal .modal::-webkit-scrollbar-track {
  background: var(--cream);
}

/* ================================
   MOBILE RESPONSIVE FIX
================================ */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent any section/card from overflowing */
section,
.container,
.events,
.news,
.gallery,
.committee,
.members,
.contact {
  max-width: 100%;
  overflow-x: hidden;
}

/* General mobile layout */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .section-title {
    font-size: 32px !important;
    line-height: 1.1 !important;
  }

  .section-desc {
    font-size: 14px !important;
  }

  /* Navbar fix */
  .navbar,
nav {
  width: 100%;
  max-width: 100%;
  padding-left: 16px !important;
  padding-right: 16px !important;
  overflow: visible !important;
}

  .nav-logo,
  .brand,
  .logo-wrap {
    max-width: 75%;
    overflow: hidden;
  }

  .nav-logo img,
  .brand-logo img {
    max-width: 42px;
    height: auto;
  }

  .nav-logo span,
  .brand-text,
  .logo-text {
    font-size: 14px !important;
    white-space: normal !important;
    line-height: 1.2;
  }

  /* Events section fix */
  .events-grid,
  #events-grid-dynamic {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .event-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .event-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
  }

  .event-date-badge {
    left: 16px !important;
    top: 16px !important;
  }

  .event-body {
    padding: 22px 20px !important;
  }

  .event-body h3 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    word-break: break-word;
  }

  .event-body p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .event-meta {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  /* Committee cards fix */
  .committee-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .committee-card {
    grid-column: span 1 !important;
    width: 100% !important;
  }

  /* Members directory fix */
  .members-grid,
  #membersGrid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .filter-box {
    flex-direction: column !important;
    width: 100% !important;
  }

  .filter-box input,
  .filter-box select,
  .filter-box button {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* News fix */
  .news-layout,
  .news-grid {
    grid-template-columns: 1fr !important;
  }

  .news-main,
  .news-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Gallery fix */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Modal popup mobile fix */
  .modal {
    width: 92% !important;
    max-width: 92% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }
}

/* Extra small mobile fix */
@media (max-width: 420px) {

  section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .section-title {
    font-size: 30px !important;
  }

  .event-img {
    height: 170px !important;
  }

  .event-body h3 {
    font-size: 20px !important;
  }

  .event-date-badge {
    width: 46px !important;
    min-height: 70px !important;
  }

  .event-date-badge .day {
    font-size: 18px !important;
  }

  .event-date-badge .month {
    font-size: 10px !important;
  }
}

/* =========================
   FINAL MOBILE MENU FIX
========================= */

@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    position: relative !important;
  }

  .hamburger span {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    transition: 0.3s ease !important;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
  }

  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(16, 44, 46, 0.98) !important;
    padding: 22px 8% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    z-index: 9999 !important;
    border-bottom: 1px solid rgba(217, 138, 61, 0.25) !important;
  }

  .nav-links.mobile-open {
    display: flex !important;
  }

  .nav-links li {
    width: 100% !important;
    list-style: none !important;
  }

  .nav-links a {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
  }

  .nav-links .nav-btn {
    text-align: center !important;
    margin-top: 8px !important;
  }
}
/* FINAL FIX: mobile menu visible outside navbar */
@media (max-width: 768px) {
  nav {
    overflow: visible !important;
  }

  .mobile-menu {
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(16, 44, 46, 0.98) !important;
    padding: 22px 8% !important;
    z-index: 1000000 !important;
  }

  .mobile-menu.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .mobile-menu a {
    display: block !important;
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* REAL MOBILE MENU FIX */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  nav {
    overflow: visible !important;
  }

  .mobile-menu {
    display: none !important;
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(16, 44, 46, 0.98) !important;
    padding: 22px 8% !important;
    z-index: 10000000 !important;
    border-top: 1px solid rgba(217, 138, 61, 0.25) !important;
    border-bottom: 1px solid rgba(217, 138, 61, 0.25) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
  }

  .mobile-menu.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .mobile-menu a {
    display: block !important;
    width: 100% !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-menu .mobile-menu-btn {
    background: var(--gold) !important;
    color: var(--navy) !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    margin-top: 8px !important;
  }
}
/* ================================
   ATTRACTIVE SCHOLARSHIP CTA
================================ */

.scholarship-cta {
  padding: 100px 8%;
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 138, 61, 0.25), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #0A2224 0%, #0F2C2E 55%, #143C3E 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.scholarship-cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(217, 138, 61, 0.18);
  border-radius: 50%;
  right: -140px;
  top: -120px;
}

.scholarship-cta::after {
  content: "JESF";
  position: absolute;
  right: 7%;
  bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 110px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: 8px;
}

.scholarship-cta-card {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 90px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}

.scholarship-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(217, 138, 61, 0.16);
  border: 1px solid rgba(217, 138, 61, 0.38);
  color: var(--gold);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 26px;
  letter-spacing: 0.4px;
}

.scholarship-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.scholarship-cta-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  color: var(--white);
  margin: 16px 0 20px;
}

.scholarship-cta-left p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.9;
  max-width: 690px;
}

.scholarship-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.scholarship-outline {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.35) !important;
}

.scholarship-outline:hover {
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}

.scholarship-cta-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.scholarship-mini-card {
  min-height: 132px;
  padding: 22px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.3s ease;
}

.scholarship-mini-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.13);
}

.scholarship-mini-card.highlight {
  background: linear-gradient(135deg, rgba(217,138,61,0.95), rgba(222,174,79,0.82));
  color: #0F2C2E;
}

.scholarship-mini-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 10px;
}

.scholarship-mini-card.highlight span {
  color: rgba(16,44,46,0.65);
}

.scholarship-mini-card strong {
  font-size: 18px;
  line-height: 1.35;
  color: var(--white);
}

.scholarship-mini-card.highlight strong {
  color: #0F2C2E;
}

@media (max-width: 900px) {
  .scholarship-cta {
    padding: 70px 20px;
  }

  .scholarship-cta-card {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .scholarship-cta-grid {
    grid-template-columns: 1fr;
  }

  .scholarship-cta-right {
    grid-template-columns: 1fr;
  }

  .scholarship-cta-actions a {
    width: 100%;
    text-align: center;
  }

  .scholarship-cta::after {
    font-size: 64px;
    right: 20px;
  }
}
.join-btn, .nav-btn {
  white-space: nowrap;      
  display: inline-flex;     
  align-items: center;
  justify-content: center;
  padding: 8px 16px;        
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px; 
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px; 
}
.brand-title {
  font-size: 1rem; 
}

/* ══════════════════════════════════════════
   TABLET / iPAD FIX (769px – 1024px)
   Covers iPad Mini/Air/Pro portrait, and
   Android tablets in portrait or landscape.
   Prevents navbar overflow, cramped 4-column
   grids, and hero-right overlapping hero text.
══════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {

  section { padding: 60px 6%; }

  /* ── Navbar: shrink + allow horizontal scroll instead of overflow/wrap ── */
  nav { padding: 0 4%; }

  .nav-name span:first-child { font-size: 13px; }
  .nav-name span:last-child { font-size: 9px; }

  .nav-links {
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 58vw;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links li { flex-shrink: 0; }

  .nav-links a { font-size: 12.5px; white-space: nowrap; }

  .nav-btn { padding: 7px 14px; font-size: 12.5px !important; white-space: nowrap; }

  .lang-toggle-btn { padding: 6px 12px; font-size: 11.5px; white-space: nowrap; }

  /* ── Hero: avoid hero-right overlapping hero text on narrower tablets ── */
  .hero-content { max-width: 56%; padding: 110px 6% 70px; }

  .hero-right {
    right: 4%;
    transform: translateY(-50%) scale(0.85);
    transform-origin: right center;
  }

  .hero h1 { font-size: clamp(36px, 5vw, 56px); }

  /* ── About section ── */
  .about-grid { gap: 40px; }
  .about-values { grid-template-columns: 1fr 1fr; }

  /* ── Stats bar: 2 columns instead of cramped 4 ── */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }

  /* ── Events ── */
  .events-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* ── News ── */
  .news-grid { grid-template-columns: 1fr; gap: 28px; }

  /* ── Alumni directory: let auto-fill breathe with a sensible min ── */
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  .filter-box, .dir-filters { flex-wrap: wrap; }

  /* ── Committee: keep auto-fit but stop the top card from spanning 2 on narrow tablets ── */
  .committee-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

  .committee-card:first-child { grid-column: span 1; }

  /* ── Gallery: 3 columns instead of 4 ── */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* ── Contact ── */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* ── Forms (contact / scholarship / donate) ── */
  .form-row, .form-grid { grid-template-columns: 1fr 1fr; }

  .scholarship-wrap, .donate-wrap { grid-template-columns: 1fr; padding: 60px 6%; }

  /* ── Bangla navbar on tablet: same scroll behaviour, tighter still ── */
  html[lang="bn"] .nav-links { max-width: 54vw; gap: 12px; }
}

/* Landscape phones / small tablets in landscape where height is short */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
  .hero-content { padding: 90px 6% 50px; }
  .hero-right { display: none; }
}

/* ──── SHARE BUTTONS (Event/News modal) ──── */
.share-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--white);
}