/* ==========================================================================
   মারকাযুল ঈমান — Design System
   ========================================================================== */

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

/* ---------- Custom Properties ---------- */
:root {
  /* Brand palette — drawn from the logo's teal‑navy gradient */
  --teal-deep: #0B6E5F;
  --teal-mid:  #0E8C7A;
  --navy:      #1B3A5C;
  --emerald:   #2DA87A;
  --gold:      #D4A843;
  --ivory:     #F7F5F0;
  --charcoal:  #2B2D32;
  --white:     #FFFFFF;
  --light-gray:#E8E6E1;
  --muted:     #6A6D75;

  /* Functional */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-card: 0 4px 24px rgba(27,58,92,.08);
  --shadow-elevated: 0 12px 40px rgba(27,58,92,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);

  /* Layout */
  --container: 1200px;
  --nav-height: 72px;
}

/* ---------- Typography ---------- */
body {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif Bengali', serif;
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.arabic { font-family: 'Amiri', serif; direction: rtl; }

a { color: var(--teal-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--emerald); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Arch Motif (signature element) ---------- */
.arch-divider {
  width: 60px;
  height: 30px;
  margin: 0 auto 40px;
  position: relative;
}
.arch-divider::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--gold);
  border-radius: 60px 60px 0 0;
  border-bottom: none;
  top: 0;
  left: 0;
}
.arch-divider::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
  z-index: 1000;
  transition: all var(--transition);
}
.navbar.navbar-transparent {
  background: transparent;
  box-shadow: none;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  transition: all var(--transition);
}
.navbar.navbar-transparent:not(.scrolled) .nav-logo img {
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.2);
}
.nav-logo-text {
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-deep);
  line-height: 1.2;
  transition: color var(--transition);
}
.navbar.navbar-transparent:not(.scrolled) .nav-logo-text {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.nav-logo-text small {
  display: block;
  font-family: 'Noto Sans Bengali', sans-serif;
  font-weight: 400;
  font-size: .7rem;
  color: var(--muted);
  transition: color var(--transition);
}
.navbar.navbar-transparent:not(.scrolled) .nav-logo-text small {
  color: rgba(255,255,255,.85);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.navbar.navbar-transparent:not(.scrolled) .nav-links a {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  left: 14px;
  right: 14px;
}
.nav-links a:hover {
  color: var(--teal-deep);
}
.navbar.navbar-transparent:not(.scrolled) .nav-links a:hover {
  color: var(--gold);
}
.nav-links a.active {
  color: var(--teal-deep);
  font-weight: 600;
}
.navbar.navbar-transparent:not(.scrolled) .nav-links a.active {
  color: var(--gold);
}
.nav-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1877F2;
  color: var(--white) !important;
  font-size: 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.navbar.navbar-transparent:not(.scrolled) .nav-fb {
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.2);
}
.nav-fb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(24,119,242,.3);
}
.nav-fb svg { width: 18px; height: 18px; fill: var(--white); }
.nav-fb::after { display: none; }

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.navbar-transparent:not(.scrolled) .hamburger span {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--charcoal);
  transition: all var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(11,110,95,.06);
  color: var(--teal-deep);
}

/* ---------- Hero Carousel ---------- */
.hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
}
.carousel-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}
.slide.active .slide-bg {
  transform: scale(1);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27, 58, 92, 0.95) 0%,
    rgba(11, 110, 95, 0.7) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
}
.slide-content-wrapper {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}
.slide-content {
  max-width: 600px;
  color: var(--white);
}
.slide-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212,168,67,.2);
  border: 1px solid rgba(212,168,67,.5);
  color: var(--gold);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}
.slide.active .slide-tag {
  opacity: 1;
  transform: translateY(0);
}
.slide-content h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}
.slide.active .slide-content h2 {
  opacity: 1;
  transform: translateY(0);
}
.slide-content p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}
.slide.active .slide-content p {
  opacity: 1;
  transform: translateY(0);
}
.slide-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.6s;
}
.slide.active .slide-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel Navigation Thumbnails */
.carousel-thumbnails {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}
.thumb {
  width: 220px;
  height: 80px;
  background: rgba(0,0,0,.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
  overflow: hidden;
  position: relative;
}
.thumb:hover {
  background: rgba(255,255,255,.1);
  transform: translateX(-5px);
}
.thumb.active {
  background: rgba(255,255,255,.15);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transform: translateX(-10px);
}
.thumb-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.thumb-text {
  color: var(--white);
  display: flex;
  flex-direction: column;
}
.thumb-text span {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
}
.thumb-text h4 {
  color: var(--white);
  font-size: .95rem;
  margin: 0;
  font-family: 'Noto Sans Bengali', sans-serif;
  font-weight: 600;
}

/* ---------- Category Filter ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--white);
  border: 2px solid var(--light-gray);
  transition: all var(--transition);
  font-family: 'Noto Sans Bengali', sans-serif;
}
.filter-btn:hover {
  border-color: var(--teal-mid);
  color: var(--teal-deep);
}
.filter-btn.active {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
  box-shadow: 0 4px 16px rgba(11,110,95,.2);
}

/* ---------- Project Cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  color: inherit;
}
.card-icon-area {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-icon-area--education {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.card-icon-area--dawah {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}
.card-icon-area--service {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
}
.card-icon {
  font-size: 3.5rem;
  position: relative;
  z-index: 1;
}
/* Decorative arch in card */
.card-icon-area::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 60px;
  border: 2px solid rgba(11,110,95,.08);
  border-radius: 60px 60px 0 0;
  border-bottom: none;
}
.card-category {
  display: inline-block;
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.card-category--education {
  background: rgba(11,110,95,.1);
  color: var(--teal-deep);
}
.card-category--dawah {
  background: rgba(27,58,92,.1);
  color: var(--navy);
}
.card-category--service {
  background: rgba(212,168,67,.15);
  color: #8a6c22;
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.4;
}
.card-body p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  flex: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--teal-deep);
  transition: gap var(--transition);
}
.card-link:hover {
  gap: 10px;
}
.card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Active Project Banner ---------- */
.active-banner {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--navy) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}
.active-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border: 3px solid rgba(212,168,67,.15);
  border-radius: 50%;
}
.active-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border: 3px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(212,168,67,.2);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.active-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.active-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
}
.active-banner p {
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  max-width: 500px;
}
.active-banner-content {
  position: relative;
  z-index: 1;
  flex: 1;
}
.active-banner-icon {
  font-size: 5rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ---------- Impact Stats ---------- */
.stats-section {
  background: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  transition: transform var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- About Section (homepage) ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-preview-image {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.about-preview-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-preview-content h2 {
  margin-bottom: 16px;
}
.about-preview-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--teal-deep);
  color: var(--white);
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(11,110,95,.25);
  color: var(--white);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--teal-deep);
  border: 2px solid var(--teal-deep);
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--teal-deep);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand-text h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.footer-brand-text small {
  color: rgba(255,255,255,.5);
  font-size: .75rem;
}
.footer-desc {
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Noto Sans Bengali', sans-serif;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}
.footer-contact-item a { color: rgba(255,255,255,.6); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

/* ---------- Project Detail Page ---------- */
.detail-hero {
  margin-top: var(--nav-height);
  padding: 60px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%);
  color: var(--white);
}
.detail-hero .breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .85rem;
  margin-bottom: 20px;
  color: rgba(255,255,255,.6);
}
.detail-hero .breadcrumb a {
  color: rgba(255,255,255,.7);
}
.detail-hero .breadcrumb a:hover {
  color: var(--gold);
}
.detail-hero .breadcrumb span { color: rgba(255,255,255,.4); }
.detail-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.detail-hero p {
  color: rgba(255,255,255,.8);
  max-width: 700px;
  line-height: 1.8;
}
.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.detail-main h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.detail-main p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.sub-project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.sub-project-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--ivory);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.sub-project-item:hover {
  background: #eef0ea;
  transform: translateX(4px);
}
.sub-project-item .sp-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.sub-project-item h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.sub-project-item p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}

/* Sidebar */
.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--charcoal);
  transition: all var(--transition);
}
.related-item:hover {
  background: var(--ivory);
  color: var(--teal-deep);
}
.related-item .ri-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.related-item span {
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- About Page ---------- */
.about-hero {
  margin-top: var(--nav-height);
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%);
  text-align: center;
  color: var(--white);
}
.about-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.about-hero p {
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto;
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}
.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.value-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.value-card .v-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.value-card p {
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .ci-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(11,110,95,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-size: .95rem;
  margin-bottom: 4px;
}
.contact-info-item p {
  font-size: .9rem;
  color: var(--muted);
}
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.contact-form h2 {
  margin-bottom: 24px;
  font-size: 1.4rem;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: .95rem;
  transition: border-color var(--transition);
  background: var(--ivory);
  color: var(--charcoal);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-deep);
  background: var(--white);
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Additions: notice, halaqah schedule, diploma, mosques, dept, rules
   (same palette, same card/button language as above)
   ========================================================================== */
.section-alt { background: var(--white); }
.section-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,.75); }

.notice-bar { background: var(--navy); color: var(--white); padding: 18px 0; }
.notice-bar-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.notice-bar .active-badge { margin: 0; }
.notice-bar-text { flex: 1; min-width: 240px; }
.notice-bar-text strong { display: block; font-family: 'Noto Serif Bengali', serif; }
.notice-bar-text span { color: rgba(255,255,255,.75); font-size: .9rem; }
.btn-light { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; background: var(--white); color: var(--navy); border-radius: 50px; font-size: .9rem; font-weight: 600; transition: all var(--transition); }
.btn-light:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-outline-light { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border: 2px solid rgba(255,255,255,.6); color: var(--white); border-radius: 50px; font-size: .9rem; font-weight: 600; transition: all var(--transition); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }

.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.two-col h2 { margin-bottom: 12px; }
.two-col > div > p { color: var(--muted); margin-bottom: 20px; }
.schedule { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.schedule-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--light-gray); align-items: baseline; }
.schedule-row:last-child { border-bottom: none; }
.schedule-day { font-family: 'Noto Serif Bengali', serif; font-weight: 700; color: var(--teal-deep); }
.schedule-day small { display: block; font-family: 'Noto Sans Bengali', sans-serif; font-weight: 400; color: var(--muted); font-size: .8rem; }
.schedule-place { font-weight: 600; line-height: 1.5; }
.schedule-place small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.schedule-foot { background: rgba(11,110,95,.08); padding: 16px 24px; font-size: .92rem; }
.fine-print { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 6px 16px; border-radius: 50px; background: rgba(11,110,95,.08); color: var(--teal-deep); font-size: .9rem; font-weight: 500; }
.section-dark .tag-list li { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.25); }

.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); padding: 18px 20px; }
.fact dt { font-size: .8rem; color: var(--gold); }
.fact dd { font-family: 'Noto Serif Bengali', serif; font-size: 1.1rem; color: var(--white); line-height: 1.4; margin-top: 4px; }

.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dept { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); }
.dept h3 { margin-bottom: 14px; }
.dept p { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.rules-list { counter-reset: r; display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.rules-list li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 18px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); font-size: .95rem; }
.rules-list li::before { content: counter(r, bengali); font-family: 'Noto Serif Bengali', serif; font-weight: 700; color: var(--gold); }
.mosque-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mosque { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--white); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-card); }
.mosque strong { display: block; line-height: 1.45; font-weight: 600; }
.mosque small { color: var(--muted); }
.mosque a { flex-shrink: 0; font-size: .85rem; font-weight: 600; padding: 8px 16px; border-radius: 50px; border: 2px solid var(--light-gray); }
.mosque a:hover { border-color: var(--teal-deep); background: rgba(11,110,95,.06); }
.channel-note { font-size: .9rem; color: var(--muted); margin-top: 8px; }


/* ---------- Course library ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: all var(--transition); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.course-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.course-meta { font-size: .82rem; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.course-body p:not(.course-meta) { color: var(--muted); font-size: .92rem; line-height: 1.65; flex: 1; }
@media (max-width: 1024px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail-content {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-carousel {
    height: 700px;
    min-height: 0;
  }
  .slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(27, 58, 92, 0.7) 0%,
      rgba(11, 110, 95, 0.9) 100%
    );
  }
  .slide-content-wrapper {
    padding-top: var(--nav-height);
    padding-bottom: 120px;
    text-align: center;
  }
  .slide-content {
    margin: 0 auto;
  }
  .carousel-thumbnails {
    right: 20px;
    left: 20px;
    top: auto;
    bottom: 20px;
    transform: none;
    flex-direction: row;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }
  .thumb {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 56px;
    padding: 6px;
    gap: 8px;
    transform: none !important;
  }
  .thumb {
    justify-content: center;
    height: 44px;
    padding: 0 8px;
    border-radius: 50px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .thumb.active {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
  }
  .thumb-img { display: none; }
  .thumb-text span { display: none; }
  .thumb-text h4 { font-size: .95rem; text-align: center; }
  .thumb.active .thumb-text h4 { color: var(--teal-deep); }
  .carousel-thumbnails { bottom: 28px; gap: 10px; }
  .section { padding: 56px 0; }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .active-banner {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .detail-main {
    padding: 24px;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: .85rem;
  }
  .dept-grid, .mosque-list, .fact-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr; gap: 2px; padding: 14px 20px; }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .nav-logo-text {
    font-size: .9rem;
  }
  .nav-logo-text small {
    display: none;
  }
}

/* ---------- Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Diploma course cards ---------- */
.diploma-courses { margin-top: 56px; }
.diploma-courses-title { color: var(--white); margin-bottom: 24px; font-size: 1.3rem; }
.course-grid.course-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .course-grid.course-grid--two { grid-template-columns: 1fr; } }
.card-thumb { height: 160px; position: relative; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .card-category { z-index: 1; background: rgba(255,255,255,.92); }
.detail-image { width: 100%; border-radius: var(--radius-md); margin-bottom: 24px; }

/* ---------- Madrasa, seerat, quizzes, gallery ---------- */
.notice-bar--alt { background: var(--teal-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); border-top: 4px solid var(--teal-deep); }
.feature:nth-child(3n) { border-top-color: var(--gold); }
.feature:nth-child(3n+2) { border-top-color: var(--navy); }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.admission { margin-top: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; background: var(--white); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-card); align-items: center; }
.admission .active-badge { background: rgba(11,110,95,.1); color: var(--teal-deep); }
.admission h3 { margin-bottom: 14px; }
.check-list { display: grid; gap: 10px; margin: 12px 0; }
.check-list li { position: relative; padding-left: 28px; color: var(--charcoal); font-size: .95rem; line-height: 1.6; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-deep); box-shadow: inset 0 0 0 4px #D9EBE4; }
.admission-card { background: var(--ivory); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 12px; }
.admission-card h4 { font-size: 1.1rem; }
.admission-card p { color: var(--muted); font-size: .92rem; }
.admission-card .btn-primary, .admission-card .btn-outline { justify-content: center; }
.timeline-card { background: var(--ivory); border-radius: var(--radius-lg); padding: 32px; }
.timeline-card h3 { margin-bottom: 16px; }
.mini-timeline { display: grid; gap: 16px; border-left: 3px solid var(--gold); padding-left: 20px; }
.mini-timeline li { position: relative; color: var(--charcoal); font-size: .95rem; line-height: 1.6; }
.mini-timeline li::before { content: ''; position: absolute; left: -29px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.mini-timeline strong { display: block; color: var(--teal-deep); font-size: .88rem; }
.quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quiz-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.quiz-tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; background: rgba(212,168,67,.18); color: #8a6c22; margin-bottom: 12px; }
.quiz-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.quiz-meta { color: var(--teal-deep); font-weight: 600; font-size: .85rem; margin-bottom: 10px; }
.quiz-card p:last-child { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.gallery-grid { columns: 4 220px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: zoom-in; background: var(--light-gray); display: block; width: 100%; padding: 0; }
.gallery-item img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); text-align: left; }
.lightbox { position: fixed; inset: 0; background: rgba(8,20,18,.92); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-md); }
.lightbox button { position: absolute; top: 16px; right: 20px; font-size: 2rem; color: #fff; background: none; line-height: 1; padding: 8px; }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .92rem; }
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } .quiz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .feature-grid, .quiz-grid, .admission { grid-template-columns: 1fr; } .admission { padding: 26px; } .gallery-grid { columns: 2 140px; } }
@media (min-width: 769px) and (max-width: 1180px) { .nav-links a { padding: 8px 9px; font-size: .84rem; } .nav-links { gap: 2px; } }

/* ---------- About timeline, people, contact, support ---------- */
.timeline { max-width: 760px; margin: 0 auto; border-left: 3px solid var(--gold); padding-left: 28px; display: grid; gap: 22px; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -37px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-deep); border: 3px solid var(--ivory); box-shadow: 0 0 0 2px var(--gold); }
.tl-date { display: inline-block; font-weight: 700; font-size: .88rem; color: var(--teal-deep); margin-bottom: 2px; }
.tl-item p { color: var(--charcoal); font-size: .98rem; line-height: 1.7; }
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.person { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); }
.person h3 { font-size: 1.15rem; margin-bottom: 4px; }
.person-role { color: var(--teal-deep); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.person p:last-child { color: var(--muted); font-size: .92rem; line-height: 1.75; }
.phone-list { display: grid; gap: 12px; }
.phone-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--ivory); border-radius: var(--radius-md); color: var(--charcoal); transition: all var(--transition); }
.phone-row:hover { background: #e6efe9; transform: translateX(4px); color: var(--charcoal); }
.phone-num { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--teal-deep); white-space: nowrap; }
.phone-label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.phone-label strong { color: var(--charcoal); font-size: .95rem; }
.route-list { display: grid; gap: 14px; margin-bottom: 24px; }
.route-list li { padding-bottom: 12px; border-bottom: 1px solid var(--light-gray); display: grid; gap: 2px; }
.route-list strong { font-size: .98rem; }
.route-list span { color: var(--muted); font-size: .9rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row .btn-primary { padding: 12px 22px; font-size: .88rem; }
.social-row svg { width: 16px; height: 16px; fill: currentColor; }
.pay-card { background: var(--white); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-card); border-top: 5px solid var(--gold); }
.pay-card h3 { margin-bottom: 14px; }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ivory); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 16px; }
.pay-number span { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--teal-deep); letter-spacing: .5px; }
.copy-btn { background: var(--teal-deep); color: var(--white); border-radius: 50px; padding: 8px 18px; font-size: .85rem; font-weight: 600; transition: background var(--transition); }
.copy-btn:hover { background: var(--emerald); }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.acct-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.acct-table th, .acct-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--light-gray); font-size: .95rem; }
.acct-table th { background: var(--navy); color: var(--white); font-weight: 600; }
.acct-table td:last-child, .acct-table th:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.acct-table tr.total td { background: rgba(11,110,95,.07); font-weight: 700; }
@media (max-width: 900px) { .feature-grid--3, .people-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .phone-row { flex-direction: column; align-items: flex-start; gap: 4px; } .pay-number span { font-size: 1.2rem; } }

/* ---------- Latest news, light check list ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item { background: var(--white); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-card); border-left: 4px solid var(--gold); }
.news-date { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--teal-deep); margin-bottom: 6px; }
.news-item p { font-size: .93rem; line-height: 1.7; color: var(--charcoal); }
.news-item a { font-weight: 600; white-space: nowrap; }
.check-list--light li { color: rgba(255,255,255,.9); }
.check-list--light li::before { background: var(--gold); box-shadow: inset 0 0 0 4px rgba(255,255,255,.25); }
@media (max-width: 1000px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-list { grid-template-columns: 1fr; } }

/* ---------- Platforms, semesters, stages ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.platform { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); border-top: 5px solid var(--teal-deep); display: flex; flex-direction: column; }
.platform:nth-child(2) { border-top-color: var(--gold); }
.platform:nth-child(3) { border-top-color: var(--navy); }
.platform--app { background: linear-gradient(135deg, var(--teal-deep), var(--navy)); color: var(--white); border-top-color: var(--gold); }
.platform--app h3, .platform--app p { color: var(--white); }
.platform--app p { opacity: .88; }
.platform-tag { align-self: flex-start; font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; color: var(--teal-deep); background: rgba(11,110,95,.1); padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.platform--app .platform-tag { background: rgba(255,255,255,.15); color: var(--gold); }
.platform h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.platform p { color: var(--muted); font-size: .94rem; line-height: 1.75; flex: 1; }
.platform-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.platform-links .btn-primary, .platform-links .btn-outline { padding: 10px 22px; font-size: .88rem; }
.platform--app .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); }
.platform--app .btn-outline:hover { background: rgba(255,255,255,.15); }
.platform--app .btn-primary { background: var(--gold); color: var(--navy); }
.diploma-right { display: grid; gap: 4px; }
.sem { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); margin-bottom: 8px; }
.sem summary { cursor: pointer; padding: 12px 18px; font-weight: 600; color: var(--white); list-style: none; display: flex; justify-content: space-between; }
.sem summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.sem[open] summary::after { content: '−'; }
.sem p { padding: 0 18px 14px; color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.7; }
.stage-list { display: grid; gap: 8px; }
.stage-list li { font-size: .9rem; color: var(--charcoal); line-height: 1.55; }
.stage-list strong { color: var(--teal-deep); margin-right: 6px; }
@media (max-width: 800px) { .platform-grid { grid-template-columns: 1fr; } }

.sem--light { background: var(--white); border-color: var(--light-gray); margin-top: 14px; }
.sem--light summary { color: var(--teal-deep); }
.sem--light summary::after { color: var(--gold); }

/* ---------- Hero identity: Arabic name + tagline ---------- */
.slide-ident { margin-bottom: 14px; opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.2s; }
.slide.active .slide-ident { opacity: 1; transform: translateY(0); }
.slide-arabic { display: inline-block; font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.5; color: var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.slide-content p.slide-tagline { font-family: 'Noto Serif Bengali', serif; font-size: clamp(1.45rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.4; color: var(--white); margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.slide-tagline em { font-style: normal; color: var(--gold); }

.admin-link { font-size: .75rem; opacity: .35; color: inherit; text-decoration: none; }
.admin-link:hover { opacity: .9; }

/* ---------- গ্যালারি: বিভাগ-বাছাই ও লাইটবক্সের আগে/পরে ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.gallery-filter:empty { display: none; }
.gf-chip { border: 1.5px solid var(--light-gray); background: var(--white); color: var(--charcoal); padding: 7px 16px; border-radius: 50px; font: 600 .88rem 'Noto Sans Bengali', sans-serif; cursor: pointer; transition: .2s; }
.gf-chip:hover { border-color: var(--teal-mid); color: var(--teal-deep); }
.gf-chip.on { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.gallery-item.gf-hide { display: none; }
.lightbox .lb-close { top: 16px; right: 20px; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 72px; font-size: 3rem; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; padding: 0 0 6px; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-prev { left: 12px; right: auto; }
.lightbox .lb-next { right: 12px; }
@media (max-width: 600px) { .lightbox .lb-nav { width: 40px; height: 56px; font-size: 2.2rem; } }


/* ---------- জরুরি নোটিশ ও বন্ধ করার বাটন ---------- */
.notice-bar { position: relative; }
.notice-bar--urgent { background: #B3261E; }
.notice-bar--urgent .active-badge { background: rgba(255,255,255,.2); color: #fff; }
.notice-x { position: absolute; top: 6px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.notice-x:hover { background: rgba(255,255,255,.3); }
body.mi-editing .notice-x { display: none; }

/* মোবাইলে সব নোটিশ-পট্টি একই ধাঁচে: ব্যাজ, লেখা, তারপর পুরো-প্রস্থ বাটন */
@media (max-width: 640px) {
  .notice-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .notice-bar-inner .btn-light { width: 100%; text-align: center; justify-content: center; }
  .notice-bar-text { min-width: 0; width: 100%; }
}

/* ---------- সহজে ব্যবহার: মূল অংশে যান লিংক ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 5000; background: var(--teal-deep); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 10px; outline: 3px solid var(--gold); }
.thumb[role="button"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
