/* ================================================
   JAMIAT PRESENTATION THEME — Green & Gold Serenity
   ================================================ */

:root {
  --bg1: #0f3d3e;
  --bg2: #125b50;
  --primary: #10644f;
  --accent: #c49b31;
  --text: #fff;
  --muted: rgba(255,255,255,0.75);
  --glass: rgba(255,255,255,0.1);
  --glass-border: rgba(255,255,255,0.25);
}

/* Reveal base override */
.reveal {
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
  direction: rtl;
  color: var(--text);
  text-align: right;
}

.reveal .slides {
  padding-bottom: 2rem;
}

/* --------------------------------------------
   HEADINGS & TYPOGRAPHY
   -------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 1rem;
}

h1.main-title {
  font-size: 3rem;
  letter-spacing: 1px;
}

h3.sub-title {
  color: var(--muted);
  font-size: 1.5rem;
}

p, ul, li, blockquote {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--text);
}

blockquote {
  background: var(--glass);
  border-right: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 10px;
  color: var(--muted);
  font-style: italic;
  margin-top: 3rem;
}

/* --------------------------------------------
   LOGO & IMAGES
   -------------------------------------------- */

.logo {
  width: 120px;
  display: block;
  margin: 2rem auto 0;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
}

.logo.small {
  width: 80px;
  opacity: 0.9;
}

.portraits {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.portraits img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* --------------------------------------------
   TIMELINES & INFOGRAPHICS
   -------------------------------------------- */

.timeline {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline .event {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  color: var(--accent);
  backdrop-filter: blur(10px);
}

.timeline-horizontal {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  background: var(--glass);
  border-radius: 15px;
  padding: 1.2rem 1rem;
  margin-top: 2rem;
}

.timeline-horizontal div {
  flex: 1;
  text-align: center;
  color: var(--muted);
  border-right: 1px solid rgba(255,255,255,0.2);
  padding: 0 0.5rem;
}

.timeline-horizontal div:last-child {
  border-right: none;
}

.timeline-scroll {
  max-height: 400px;
  overflow-y: auto;
  background: var(--glass);
  padding: 1rem;
  border-radius: 12px;
}

.timeline-scroll div {
  margin-bottom: 0.8rem;
  border-right: 3px solid var(--accent);
  padding-right: 1rem;
}

/* --------------------------------------------
   CHAPTERS GRID
   -------------------------------------------- */

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.chapter {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 10px;
  color: var(--accent);
  text-align: center;
  font-weight: bold;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.chapter:hover {
  transform: scale(1.05);
}

/* --------------------------------------------
   STATS & COUNTERS
   -------------------------------------------- */

.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted);
}

.counter {
  font-size: 4rem;
  font-weight: bold;
  color: var(--accent);
  text-align: center;
  margin-top: 2rem;
}

/* --------------------------------------------
   GALLERY
   -------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.4s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* --------------------------------------------
   LISTS & BULLETS
   -------------------------------------------- */

ul.bullets {
  list-style: none;
  padding-right: 1.5rem;
}

ul.bullets li {
  margin-bottom: 0.7rem;
  position: relative;
}

ul.bullets li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  right: -1rem;
  font-size: 2rem;
  line-height: 1rem;
}

/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */

@media (max-width: 768px) {
  h1.main-title { font-size: 2.2rem; }
  p, ul, li { font-size: 1.2rem; }
  .portraits img { width: 160px; height: 160px; }
  .stats { flex-direction: column; }
}

/* --------------------------------------------
   AOS animation delay helpers
   -------------------------------------------- */
[data-aos] {
  transition: all 0.6s ease;
}

/* --------------------------------------------
   Decorative Infographic Additions (Batch 1)
   -------------------------------------------- */

.gold-divider {
  width: 120px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.credit {
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.1rem;
}

.glow-circle {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196,155,49,0.3), transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,100% {opacity: 0.4; transform: translate(-50%, -50%) scale(1);}
  50% {opacity: 0.8; transform: translate(-50%, -50%) scale(1.2);}
}

/* Leadership timeline */
.leadership-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.leader-card {
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  width: 240px;
}

.leader-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.arrow {
  font-size: 2rem;
  color: var(--accent);
}

/* Chapter wheel */
.chapter-wheel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.chapter-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  transition: transform 0.4s;
}

.chapter-item:hover {
  transform: translateY(-6px);
}

.icon-circle {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.icon-circle img {
  width: 40px;
  height: 40px;
  filter: invert(80%) sepia(60%) saturate(500%) hue-rotate(10deg);
}

/* --------------------------------------------
   Timeline Centered (Zig-zag)
   -------------------------------------------- */

.timeline-centered {
  position: relative;
  margin: 3rem auto;
  width: 90%;
  max-width: 800px;
}

.timeline-centered::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
}

.timeline-item.right {
  float: right;
  clear: both;
  text-align: right;
}

.timeline-item.left {
  float: left;
  clear: both;
  text-align: right;
}

.timeline-content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.timeline-item .year {
  position: absolute;
  top: 1rem;
  right: -3rem;
  color: var(--accent);
  font-weight: bold;
}

/* --------------------------------------------
   Tabs for Movements
   -------------------------------------------- */
.movement-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--accent);
  color: #0f3d3e;
}

.tab-content {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
}

.tab-content.active {
  display: block;
}

/* --------------------------------------------
   Relief Gallery Enlargement
   -------------------------------------------- */
.gallery.large img {
  height: 200px;
}

.relief-stats {
  margin-top: 1.5rem;
}

/* --------------------------------------------
   Org Flow Diagram
   -------------------------------------------- */
.org-flow {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.org-level {
  text-align: center;
  position: relative;
}
.org-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin: 0.5rem;
  color: var(--accent);
  backdrop-filter: blur(8px);
}
.org-box.center {
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.org-branches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.connector {
  width: 3px;
  height: 40px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

/* --------------------------------------------
   Training Cards
   -------------------------------------------- */
.training-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.training-card {
  width: 240px;
  text-align: center;
  transition: transform 0.4s;
}
.training-card:hover {
  transform: translateY(-6px);
}
.training-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------
   Counter Animation (secondary)
   -------------------------------------------- */
#ulamaCounter2 {
  color: var(--accent);
  font-size: 2rem;
  font-weight: bold;
}
/* --------------------------------------------
   Centenary Timeline
   -------------------------------------------- */
.timeline-scroll {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 2rem;
  max-height: 400px;
  overflow-y: auto;
  direction: rtl;
}

.event-year {
  border-right: 3px solid var(--accent);
  padding-right: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.year-label {
  position: absolute;
  right: -3.5rem;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

/* --------------------------------------------
   Reforms Grid
   -------------------------------------------- */
.reforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.reform-card {
  text-align: center;
  border-radius: 10px;
  transition: transform 0.4s;
  padding: 0.5rem;
}

.reform-card:hover {
  transform: translateY(-6px);
}

.reform-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------
   Closing Slide
   -------------------------------------------- */
.closing-slide {
  text-align: center;
  position: relative;
  padding-top: 3rem;
}

.crescent-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196,155,49,0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  animation: slowGlow 6s ease-in-out infinite;
}

@keyframes slowGlow {
  0%,100% {opacity: 0.4; transform: translate(-50%, -50%) scale(1);}
  50% {opacity: 0.8; transform: translate(-50%, -50%) scale(1.15);}
}

.closing-quote {
  font-size: 1.6rem;
  color: var(--muted);
  margin: 2rem auto;
  background: var(--glass);
  padding: 1rem 2rem;
  border-radius: 12px;
  width: 70%;
}

.thanks {
  color: var(--accent);
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.3rem;
}
