/* ═══════════════════════════════════════════════════
   Jamia Darululoom Sukkur — Sindhi Section Design System
   Lightweight · RTL-first · No template dependencies
   ═══════════════════════════════════════════════════ */

:root {
  --green:       #0a6e42;
  --green-dark:  #054a2c;
  --green-light: #10a060;
  --gold:        #c9a227;
  --gold-light:  #e8c84a;
  --blue:        #1a4a8a;
  --bg:          #f4f7f5;
  --surface:     #ffffff;
  --text:        #1a2e24;
  --muted:       #5a7068;
  --border:      #dde8e2;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 32px rgba(10,110,66,0.12);
  --header-h:    72px;
  --topbar-h:    38px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --font-sindhi: sindhi, 'Noto Nastaliq Urdu', serif;
  --font-ui:     'Segoe UI', system-ui, sans-serif;
  --container:   1200px;
  --header-wide: 100%;
}

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

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

body {
  font-family: var(--font-sindhi);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.9;
  font-size: 1.12rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@font-face {
  font-family: sindhi;
  src: url('../fonts/MB_Lateefi_Regular.ttf') format('truetype');
  font-display: swap;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }
ul, ol { list-style: none; }

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

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sindhi);
  font-weight: 700;
  line-height: 1.4;
  color: var(--green-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.8vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
p  { font-size: 1.15rem; color: var(--text); margin-bottom: 0.85rem; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border: none;
  border-radius: 2px;
  margin: 0 auto 2.5rem;
}

/* ── Top bar ── */
.topbar {
  background: var(--green-dark);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  position: relative;
  z-index: 1001;
}
.topbar-langs { display: flex; align-items: center; gap: 0.25rem; }
.topbar-langs a {
  color: rgba(255,255,255,0.8);
  padding: 0.15rem 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.topbar-langs a.active,
.topbar-langs a:hover { color: var(--gold-light); }
.topbar-langs .sep { color: rgba(255,255,255,0.25); font-size: 0.75rem; }
.topbar-dates {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-align: center;
  flex: 1;
}
.topbar-social { display: flex; gap: 0.5rem; }
.topbar-social a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}
.topbar-social a:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); color: #fff; }

/* ── Site header / nav ── */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 0.75rem;
  max-width: var(--header-wide);
  margin: 0 auto;
  gap: 0.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 1002;
}
.header-brand img { height: 50px; width: auto; }
.header-brand-text {
  display: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.35;
}
.header-brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 0.1rem;
}
@media (min-width: 1400px) { .header-brand-text { display: block; } }

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav menu */
.main-nav { display: none; }
.main-nav.open {
  display: block;
  position: fixed;
  inset: 0;
  top: calc(var(--topbar-h) + var(--header-h));
  background: var(--surface);
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
  z-index: 999;
  animation: slideDown 0.3s var(--ease);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main-nav > ul { display: flex; flex-direction: column; gap: 0; }
.main-nav > ul > li { border-bottom: 1px solid var(--border); }
.main-nav > ul > li > a,
.main-nav .nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font-sindhi);
  text-align: right;
}
.main-nav > ul > li > a:hover,
.main-nav .nav-parent:hover { color: var(--green); }

.main-nav .submenu {
  display: none;
  padding: 0.25rem 0 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.main-nav .submenu.open { display: block; }
.main-nav .submenu li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-radius: 6px;
}
.main-nav .submenu li a:hover {
  background: rgba(10,110,66,0.08);
  color: var(--green);
}
.main-nav .submenu .submenu {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  background: var(--surface);
}

.nav-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--muted);
}
.nav-parent.open .nav-arrow { transform: rotate(180deg); }

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    gap: 0;
  }
  .header-brand {
    grid-column: 1;
    justify-self: start;
    z-index: 2;
  }
  .main-nav {
    display: block !important;
    position: static;
    overflow: visible;
    padding: 0;
    background: none;
    animation: none;
    grid-column: 2;
    justify-self: center;
    max-width: 100%;
  }
  .main-nav > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .main-nav > ul > li {
    border: none;
    position: relative;
    flex-shrink: 0;
  }
  .main-nav > ul > li > a,
  .main-nav .nav-parent {
    width: auto;
    padding: 0.52rem 0.55rem;
    font-size: 1rem;
    white-space: nowrap;
    justify-content: center;
    gap: 0.25rem;
  }
  .main-nav .nav-parent .nav-arrow {
    font-size: 0.58rem;
    margin-top: 0.12rem;
  }
  .main-nav .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 100;
    margin: 0;
  }
  .main-nav .submenu .submenu {
    top: 0;
    right: 100%;
    margin-right: 0;
  }
  .main-nav > ul > li:hover > .submenu { display: block; }
  .main-nav > ul > li:hover > .submenu .submenu { display: none; }
  .main-nav .submenu li:hover > .submenu { display: block; }
}

@media (min-width: 1200px) {
  .header-inner { padding: 0 1rem; }
  .main-nav > ul > li > a,
  .main-nav .nav-parent {
    padding: 0.55rem 0.65rem;
    font-size: 1.06rem;
  }
}

@media (min-width: 1400px) {
  .header-inner { padding: 0 1.25rem; }
  .main-nav > ul > li > a,
  .main-nav .nav-parent {
    padding: 0.55rem 0.75rem;
    font-size: 1.1rem;
  }
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--blue) 100%);
  padding: 2.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='1'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  color: #fff;
  position: relative;
  margin-bottom: 0.35rem;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  position: relative;
  margin: 0;
}

/* ── Main content area ── */
.page-content {
  padding: 2.5rem 0 3rem;
  min-height: 50vh;
}
.page-content .container { max-width: var(--container); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }
.card h3, .card h4 {
  color: var(--green);
  margin-bottom: 0.75rem;
  text-align: right;
}
.card p { text-align: justify; font-size: 1.12rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
}
.card-link:hover { color: var(--green-dark); gap: 0.55rem; }
.card-link::after { content: '←'; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Hero slider (home) ── */
.hero-slider {
  position: relative;
  height: clamp(280px, 45vw, 480px);
  overflow: hidden;
  background: var(--green-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider .dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}
.hero-slider .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.hero-slider .dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 3rem 1.25rem;
  text-align: center;
  position: relative;
}
.cta-banner h2 { color: #fff; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-sindhi);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--text);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--text);
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }

/* ── About split section ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .about-split { grid-template-columns: 1fr 1fr; }
}
.about-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.about-split .contact-info {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-split .contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ── Tabs ── */
.jamia-tabs { margin-top: 1rem; }
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}
.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  font-family: var(--font-sindhi);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.tab-btn:hover { color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Accordion ── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface);
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: none;
  font-family: var(--font-sindhi);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  text-align: right;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--bg); }
.accordion-header .icon {
  font-size: 1.2rem;
  color: var(--green);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.accordion-item.open .accordion-header .icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion-item.open .accordion-body { max-height: 5000px; }
.accordion-inner { padding: 0 1.25rem 1.25rem; }

/* ── Audio table ── */
.audio-list { width: 100%; }
.audio-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.audio-item:last-child { border-bottom: none; }
.audio-meta {
  flex: 0 0 160px;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  font-family: var(--font-ui);
}
.audio-item audio { flex: 1; min-width: 200px; height: 40px; }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(10,110,66,0.85));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-card:hover .overlay { opacity: 1; }
.gallery-card .overlay span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Photo grid (album view) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.photo-grid a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.photo-grid a:hover img { transform: scale(1.05); }

/* ── Gallery page ── */
.gallery-page .gallery-intro {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg);
}
.gallery-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .gallery-stats { grid-template-columns: repeat(4, 1fr); }
}
.gallery-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.gallery-stat strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  color: var(--green-dark);
  line-height: 1.2;
}
.gallery-stat span {
  font-family: var(--font-sindhi);
  font-size: 1rem;
  color: var(--muted);
}

.gallery-featured { padding: 2.5rem 0; }
.gallery-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .gallery-featured-card { grid-template-columns: 320px 1fr; }
}
.gallery-featured-cover {
  position: relative;
  min-height: 280px;
  background: var(--green-dark);
}
.gallery-featured-cover img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.gallery-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font-sindhi);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
}
.gallery-meta {
  font-family: var(--font-sindhi);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
  display: inline-block;
}
.gallery-featured-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.gallery-featured-body h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin-bottom: 0.75rem;
}
.gallery-featured-body > p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.gallery-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.gallery-preview-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

.gallery-grid-rich {
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .gallery-grid-rich { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .gallery-grid-rich { grid-template-columns: repeat(3, 1fr); }
}
.gallery-card-rich {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.gallery-card-rich:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
  color: inherit;
}
.gallery-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.gallery-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-card-rich:hover .gallery-card-cover img {
  transform: scale(1.05);
}
.gallery-card-count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(5,74,44,0.88);
  color: #fff;
  font-family: var(--font-sindhi);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}
.gallery-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
  text-align: right;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gallery-card-icon {
  color: var(--green);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.gallery-card-rich h3 {
  font-family: var(--font-sindhi);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 0.45rem;
}
.gallery-card-desc {
  font-family: var(--font-sindhi);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
  flex: 1;
}
.gallery-card-link {
  font-family: var(--font-sindhi);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-top: auto;
}
.gallery-card-link i { margin-right: 0.25rem; }

.gallery-about {
  padding: 3rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.gallery-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .gallery-about-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}
.gallery-about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--green-dark);
}
.gallery-about-card h3 i {
  color: var(--green);
  margin-left: 0.35rem;
}
.gallery-about-card p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

/* Album detail */
.gallery-album-nav {
  padding: 1.5rem 0 0.5rem;
  background: var(--bg);
}
.gallery-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sindhi);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}
.gallery-breadcrumb a {
  color: var(--green);
  font-weight: 700;
}
.gallery-breadcrumb-sep { opacity: 0.5; }
.gallery-album-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
}
.gallery-album-header h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.35rem;
}
.gallery-album-header p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}
.gallery-back-btn {
  border-color: var(--green) !important;
  color: var(--green) !important;
  white-space: nowrap;
}

.photo-grid-rich {
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .photo-grid-rich { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .photo-grid-rich { grid-template-columns: repeat(3, 1fr); }
}
.photo-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.photo-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(10,110,66,0.88));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
}
.photo-tile-overlay i {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.photo-tile-overlay span {
  font-family: var(--font-sindhi);
  font-size: 1rem;
  font-weight: 700;
}
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile:hover .photo-tile-overlay { opacity: 1; }

.gallery-related {
  padding: 3rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.gallery-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-related-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.25s, border-color 0.25s;
}
.gallery-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  color: inherit;
}
.gallery-related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.gallery-related-body {
  padding: 0.85rem 1rem 1rem;
}
.gallery-related-body h4 {
  font-family: var(--font-sindhi);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--green-dark);
}
.gallery-related-body span {
  font-family: var(--font-sindhi);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Lightbox */
.jamia-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.jamia-lightbox-inner {
  position: relative;
  max-width: min(92vw, 1100px);
  width: 100%;
  text-align: center;
}
.jamia-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.jamia-lightbox-caption {
  font-family: var(--font-sindhi);
  color: #fff;
  margin-top: 0.85rem;
  font-size: 1.05rem;
}
.jamia-lightbox-close,
.jamia-lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.jamia-lightbox-close:hover,
.jamia-lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.jamia-lightbox-close {
  top: -0.5rem;
  left: -0.5rem;
}
.jamia-lightbox-prev { right: calc(100% + 0.75rem); top: 50%; transform: translateY(-50%); }
.jamia-lightbox-next { left: calc(100% + 0.75rem); top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .jamia-lightbox-prev { right: auto; left: 0.5rem; top: auto; bottom: -3rem; transform: none; }
  .jamia-lightbox-next { left: auto; right: 0.5rem; top: auto; bottom: -3rem; transform: none; }
  .jamia-lightbox-inner { padding-bottom: 3rem; }
}

/* ── Books grid ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.book-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.book-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.book-card .book-info {
  padding: 1rem;
}
.book-card h4 {
  font-size: 0.95rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

/* ── Books page ── */
.books-page .books-intro {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg);
}
.books-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .books-stats { grid-template-columns: repeat(4, 1fr); }
}
.books-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.books-stat strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  color: var(--green-dark);
  line-height: 1.2;
}
.books-stat span {
  font-family: var(--font-sindhi);
  font-size: 1rem;
  color: var(--muted);
}

.books-featured { padding: 2.5rem 0; }
.books-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .books-featured-card { grid-template-columns: 280px 1fr; }
}
.books-featured-cover {
  position: relative;
  min-height: 320px;
  background: var(--green-dark);
}
.books-featured-cover img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.books-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font-sindhi);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
}
.books-featured-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.books-meta {
  font-family: var(--font-sindhi);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.books-featured-body h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin-bottom: 0.75rem;
}
.books-featured-body > p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.books-series-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.books-series-list li {
  padding: 0.4rem 0;
  font-family: var(--font-sindhi);
  font-size: 1.05rem;
  color: var(--text);
}
.books-series-list i {
  color: var(--green);
  margin-left: 0.4rem;
}
.books-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.book-grid-rich {
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .book-grid-rich { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .book-grid-rich { grid-template-columns: repeat(3, 1fr); }
}
.book-card-rich {
  text-align: right;
  display: flex;
  flex-direction: column;
}
.book-card-cover {
  position: relative;
  overflow: hidden;
}
.book-card-cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.book-card-rich:hover .book-card-cover img {
  transform: scale(1.04);
}
.book-card-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(5,74,44,0.88);
  color: #fff;
  font-family: var(--font-sindhi);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}
.book-card-demo {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(201,162,39,0.95);
  color: var(--green-dark);
  font-family: var(--font-sindhi);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.book-card-year {
  display: inline-block;
  font-family: var(--font-sindhi);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.book-card-desc {
  font-family: var(--font-sindhi);
  font-size: 1.02rem !important;
  color: var(--muted) !important;
  line-height: 1.75 !important;
  margin-bottom: 0.85rem !important;
  flex: 1;
}
.book-card-rich .book-info {
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-card-rich h4 {
  font-family: var(--font-sindhi);
  font-size: 1.2rem !important;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.book-btn-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.books-library-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .books-library-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .books-library-grid { grid-template-columns: repeat(4, 1fr); }
}
.books-library-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  color: inherit;
}
.books-library-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.books-library-card i {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.65rem;
}
.books-library-card h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.books-library-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.books-about {
  padding: 3rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.books-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .books-about-grid { grid-template-columns: 1fr 1fr; }
}
.books-about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.books-about-card h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.books-about-card h3 i { color: var(--green); }
.books-about-card p {
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.books-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.books-empty i {
  font-size: 2.5rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.books-empty p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sindhi);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10,110,66,0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.info-card {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.info-card h2 { color: #fff; margin-bottom: 1rem; }
.info-card p, .info-card h3 {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  margin-bottom: 0.35rem;
  font-weight: normal;
}

/* ── Department sections / dept intro page ── */
.dept-section {
  padding: 3rem 0;
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 1rem);
}
.dept-section.section-alt { background: var(--bg); }

.dept-page .dept-intro {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg);
}
.dept-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
}
.dept-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.dept-jump-link i { color: var(--green); font-size: 0.85rem; }
.dept-jump-link:hover,
.dept-jump-link.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.dept-jump-link:hover i,
.dept-jump-link.active i { color: #fff; }

.dept-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dept-card-head {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.dept-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--gold-light);
}
.dept-card-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.2rem;
}
.dept-card-head h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}
.dept-card-body {
  padding: 1.75rem;
}
.dept-card-body > p,
.dept-card-body .tab-panel p {
  text-align: justify;
  line-height: 1.95;
}

.dept-subtitle {
  margin: 1.5rem 0 0.75rem;
  color: var(--green-dark);
  font-size: 1.15rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--border);
}
.dept-list {
  margin: 1rem 0;
  padding-right: 1.25rem;
  line-height: 1.9;
}
.dept-list li { margin-bottom: 0.45rem; }
.dept-list-compact li { margin-bottom: 0.3rem; }

.dept-phases {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}
.dept-phase {
  padding: 1rem 1.15rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: 4px solid var(--green);
  border-radius: var(--radius-sm);
}
.dept-phase h4 {
  color: var(--green-dark);
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}
.dept-phase p { margin: 0; font-size: 1rem; }

.dept-checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.dept-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  line-height: 1.75;
}
.dept-checklist i {
  color: var(--green);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.dept-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(201,162,39,0.1);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  line-height: 1.85;
}
.dept-note i { color: var(--gold); margin-left: 0.35rem; }

.dept-cta {
  padding: 3rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.dept-cta h3 { color: var(--green-dark); margin-bottom: 0.5rem; }
.dept-cta p { color: var(--muted); margin-bottom: 1.25rem; }
.dept-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.dept-card .jamia-tabs { margin-top: 0; }
.dept-card .tab-nav { margin-bottom: 1.25rem; }

/* legacy */
.dept-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--green-dark);
}

/* ── Nizam-e-Jamia page ── */
.nizam-page .nizam-intro {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg);
}
.nizam-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.75rem 0 2rem;
}
.nizam-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.nizam-jump-link i { color: var(--green); }
.nizam-jump-link:hover,
.nizam-jump-link.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.nizam-jump-link:hover i,
.nizam-jump-link.active i { color: #fff; }

.nizam-flow {
  max-width: 520px;
  margin: 0 auto 0.5rem;
  text-align: center;
}
.nizam-flow-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.nizam-flow-item i {
  display: block;
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.nizam-flow-item span {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.05rem;
}
.nizam-flow-item small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.nizam-flow-main {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-color: transparent;
}
.nizam-flow-main i,
.nizam-flow-main span { color: #fff; }
.nizam-flow-main small { color: rgba(255,255,255,0.85); }
.nizam-flow-arrow {
  color: var(--gold);
  font-size: 1.25rem;
  padding: 0.5rem 0;
}
.nizam-flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.nizam-section {
  padding: 3rem 0;
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 1rem);
}
.nizam-section.section-alt { background: var(--bg); }

.nizam-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nizam-card-head {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.nizam-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--gold-light);
}
.nizam-card-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.2rem;
}
.nizam-card-head h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.nizam-card-body {
  padding: 1.75rem;
}
.nizam-card-body > p {
  text-align: justify;
  line-height: 1.95;
}

.nizam-roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 1.5rem 0;
}
@media (min-width: 576px) {
  .nizam-roles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .nizam-roles-grid { grid-template-columns: repeat(3, 1fr); }
}
.nizam-role {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nizam-role:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(10,110,66,0.1);
}
.nizam-role-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
}
.nizam-role span:last-child {
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.5;
}

.nizam-subtitle {
  margin: 1.75rem 0 0.75rem;
  color: var(--green-dark);
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.nizam-checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.nizam-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  line-height: 1.75;
}
.nizam-checklist i {
  color: var(--green);
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.nizam-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
}
@media (min-width: 768px) {
  .nizam-checklist-grid { grid-template-columns: repeat(2, 1fr); }
}

.nizam-note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(201,162,39,0.1);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text);
  line-height: 1.85;
}
.nizam-note i { color: var(--gold); margin-left: 0.35rem; }

.nizam-cta {
  padding: 3rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.nizam-cta h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.nizam-cta p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.nizam-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.88);
  margin-top: auto;
}

.footer-cta {
  background: linear-gradient(135deg, rgba(10,110,66,0.95), rgba(5,74,44,1));
  border-bottom: 3px solid var(--gold);
  padding: 2rem 0;
}
.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-cta-text h3 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.35rem;
}
.footer-cta-text p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 1.05rem;
  max-width: 520px;
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.footer-cta-actions .btn {
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
}

.footer-main {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, transparent 120px),
    var(--green-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 1.15fr 1fr 1fr 1.2fr; gap: 2rem; }
}

.footer-brand { max-width: 340px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-logo img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.footer-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}
.footer-about {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.25rem;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.15rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-widget h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  position: relative;
}
.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-widget ul li a {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  transition: color 0.2s, padding-right 0.2s;
  display: inline-block;
}
.footer-links a:hover,
.footer-widget ul li a:hover {
  color: var(--gold-light);
  padding-right: 5px;
}

.footer-contact-list { margin-bottom: 1.25rem; }
.footer-contact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.7;
}
.footer-contact-list i {
  color: var(--gold-light);
  margin-top: 0.35rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.footer-contact-list a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-contact-list a:hover { color: var(--gold-light); }

.footer-hours-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
}
.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-hours li:last-child { border-bottom: none; }

.footer-map-wrap {
  padding-top: 2rem;
}
.footer-map-wrap > h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-map-wrap > h3 i { color: var(--gold-light); }
.footer-map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.footer-map-frame iframe {
  display: block;
  width: 100%;
  border: none;
}
.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-family: var(--font-ui);
}
.footer-map-link:hover { color: #fff; }

.footer-bottom {
  background: rgba(0,0,0,0.28);
  padding: 1rem 0 0.75rem;
  font-family: var(--font-ui);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-langs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
}
.footer-langs a {
  color: rgba(255,255,255,0.7);
  padding: 0.15rem 0.35rem;
}
.footer-langs a.active,
.footer-langs a:hover { color: var(--gold-light); }
.footer-langs span { color: rgba(255,255,255,0.25); font-size: 0.75rem; }
.footer-top-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.footer-top-link:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.footer-credit {
  text-align: center;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-credit a { color: var(--gold-light); }
.footer-credit a:hover { color: #fff; }

/* legacy footer class aliases */
.footer-widget ul li { margin-bottom: 0.4rem; }
.footer-widget iframe {
  border-radius: var(--radius-sm);
  width: 100%;
  border: none;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* Hide old template remnants when new CSS is active */
#preloader, .header-area, .south-load,
.classy-nav-container, .classy-navbar,
.hero-area, .featured-properties-area,
.listings-content-wrapper, .elements-area,
.south-contact-area, .south-editor-area,
.call-to-action-area, .footer-area,
.main-header-area, .top-header-area,
.jamia-topbar, .jamia-brand, .jamia-accent-line {
  /* only hide if body has .jamia-new class */
}

body.jamia-new #preloader { display: none !important; }

@media (max-width: 768px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 0.35rem 0.75rem; gap: 0.25rem; }
  .topbar-langs { order: 1; width: 100%; justify-content: center; }
  .topbar-dates { order: 0; width: 100%; font-size: 0.75rem; }
  .topbar-social { display: none; }
  .header-brand-text { display: none !important; }
}

/* ═══════════════════════════════════════════════════
   UNIVERSITY-LEVEL HOME SECTIONS
   ═══════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.section-header .label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,39,0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  margin-bottom: 0.65rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0;
}

/* Hero university */
.hero-university {
  position: relative;
  height: clamp(420px, 58vw, 680px);
  overflow: visible;
  background: var(--green-dark);
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.hero-university.hero-slider {
  overflow: visible;
}
.hero-university .hero-slide {
  overflow: hidden;
}
.hero-university .hero-slide img {
  transform: scale(1.06);
  transition: transform 8s var(--ease), opacity 1.2s;
}
.hero-university .hero-slide.active img { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,74,44,0.88) 0%, rgba(10,110,66,0.55) 45%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}
.hero-content-inner { max-width: 820px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1rem;
  border-radius: 30px;
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content .hero-tagline {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-2px);
}
.hero-university .dots { bottom: clamp(5rem, 10vw, 7rem); z-index: 4; }

/* News ticker — site-wide, very top, full width */
.news-strip {
  width: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
  position: relative;
  z-index: 1002;
}
.news-strip-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem 1rem;
  gap: 1rem;
}
.news-strip-label {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.4rem 0.95rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.news-strip-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.news-strip-text {
  display: inline-block;
  white-space: nowrap;
  color: #fff;
  font-size: 1.08rem;
  animation: newsScroll 40s linear infinite;
}
@keyframes newsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Stats — half on banner, half below */
.stats-section {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(50%);
  z-index: 10;
  padding: 0 1.25rem;
  pointer-events: none;
}
.stats-section .stats-grid { pointer-events: auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(5,74,44,0.18);
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  background: var(--surface);
  padding: 2rem 1.15rem;
  text-align: center;
  transition: background 0.3s;
}
.stat-item:hover { background: var(--bg); }
.stat-icon {
  width: 52px; height: 52px;
  margin: 0 auto 0.85rem;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.35rem;
}
.stat-number {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}
.stat-number span { font-size: 1.35rem; color: var(--gold); }
.stat-label {
  font-size: 1.12rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Pillars */
.pillars-section {
  padding: 5rem 0 4rem;
  background: var(--bg);
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pillar-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(10,110,66,0.1), rgba(201,162,39,0.15));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--green);
}
.pillar-card h3 { margin-bottom: 0.65rem; }
.pillar-card p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* Quick portal */
.portal-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 576px) { .portal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .portal-grid { grid-template-columns: repeat(4, 1fr); } }
.portal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow);
}
.portal-item:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  color: var(--green-dark);
}
.portal-item i {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  transition: transform 0.3s;
}
.portal-item:hover i { transform: scale(1.08); }
.portal-item span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Program cards rich */
.program-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.program-card-head {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.program-card-head i {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.program-card-head h4 {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
  text-align: right;
  flex: 1;
}
.program-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-card-body p {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.95;
  margin-bottom: 1.15rem;
  color: var(--text);
}
.program-card-body .card-link { margin-top: auto; }

/* Timeline */
.timeline-section { padding: 4rem 0; background: var(--surface); }
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-right: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green), var(--gold));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 0 2rem 2rem 0;
  margin-right: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  right: -2.35rem;
  top: 0.35rem;
  width: 14px; height: 14px;
  background: var(--gold);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green);
}
.timeline-year {
  font-family: var(--font-ui);
  font-weight: 800;
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.timeline-item p { margin: 0; font-size: 0.98rem; }

/* Feature split */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 992px) {
  .feature-split { grid-template-columns: 1fr 1fr; }
}
.feature-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.feature-list {
  margin: 1.25rem 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.feature-list li i {
  color: var(--green);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Highlight banner */
.highlight-banner {
  position: relative;
  padding: 4rem 1.25rem;
  background: url('../img/bg-img/cta.jpg') center/cover no-repeat;
  text-align: center;
}
.highlight-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,74,44,0.92), rgba(26,74,138,0.85));
}
.highlight-banner .container { position: relative; z-index: 1; }
.highlight-banner h2 { color: #fff; margin-bottom: 1rem; }
.highlight-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}
.highlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Publications row */
.pub-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pub-card:hover { transform: translateY(-4px); color: inherit; }
.pub-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.pub-card-info {
  padding: 1rem;
  text-align: center;
}
.pub-card-info h4 {
  font-size: 0.92rem;
  color: var(--green-dark);
  margin: 0;
}

/* Campus cards */
.campus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .campus-grid { grid-template-columns: 1fr 1fr; } }
.campus-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-right: 4px solid var(--green);
}
.campus-card h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.campus-card h3 i { color: var(--green); }
.campus-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Affiliations */
.affiliations {
  padding: 2.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.affiliations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.affiliation-item {
  text-align: center;
  opacity: 0.75;
  transition: opacity 0.3s;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.affiliation-item:hover { opacity: 1; color: var(--green); border-color: var(--green); }

/* Contact strip */
.contact-strip {
  background: var(--green-dark);
  padding: 2.5rem 1.25rem;
  color: #fff;
}
.contact-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-strip-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-strip-item i {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-light);
  flex-shrink: 0;
}
.contact-strip-item strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-ui);
}
.contact-strip-item span { font-size: 0.95rem; opacity: 0.9; }

.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 576px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.section-alt { background: var(--bg); }
.section-white { background: var(--surface); }
.py-section { padding: 4.5rem 0; }

/* Buttons small + book actions */
.btn-sm {
  padding: 0.55rem 1.15rem !important;
  font-size: 1rem !important;
}
.book-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.book-card-rich .book-actions {
  justify-content: flex-start;
}
.book-card-rich .book-actions .btn {
  font-family: var(--font-sindhi);
  font-size: 1rem !important;
}
.book-card h4 { font-size: 1.15rem !important; }

/* Audio demo placeholders */
.audio-demo-body {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.audio-demo-body strong { font-size: 1.05rem; color: var(--green-dark); }
.demo-badge {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(201,162,39,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.audio-meta { font-size: 0.95rem !important; }

/* Bigger forms & footer */
.form-control { font-size: 1.12rem; padding: 0.85rem 1.1rem; }
.form-group label { font-size: 1.08rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem) !important; }
.page-hero p { font-size: 1.12rem !important; }
.footer-links a { font-size: 1rem !important; }
.pub-card-info h4 { font-size: 1.05rem !important; }
.program-card-body p { font-size: 1.1rem !important; line-height: 1.95 !important; }
.portal-item span { font-size: 1.05rem !important; }
.news-strip-text { font-size: 1.08rem !important; }

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .card, .hero-slide { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
