.am-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(170deg, #FDF6E8 0%, #F6E8C9 45%, #EEDBAE 100%);
}

/* Subtle grain/texture overlay for a less "flat" digital feel */
.am-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Subtle tiled Islamic geometric pattern, low opacity, gold linework */
.am-hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.09;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

/* Sun glow, positioned toward the right where the image sits,
   giving the illustration a warm halo to stand out against */
.am-hero-sun {
  position: absolute;
  top: 12%;
  right: 6%;
  width: 620px;
  height: 620px;
  max-width: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,174,85,0.55) 0%, rgba(216,174,85,0.22) 40%, rgba(216,174,85,0) 72%);
  z-index: 0;
  pointer-events: none;
}

/* Layered desert dunes along the base of the section, gives real
   "desert" grounding and depth instead of a flat gradient */
.am-hero-dunes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 38%;
  z-index: 0;
  pointer-events: none;
}

.am-hero-dunes svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Container: two-column grid (text left, image right) ---- */
.am-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.am-hero-content {
  padding: 110px 0;
  max-width: 640px;
}

/* ---- Label ---- */
.am-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.4);
  padding: 8px 18px;
  border-radius: 50px;
  margin: 0 0 28px;
}

.am-hero-label-icon {
  font-size: 13px;
  color: #BD9332;
}

/* ---- Title ---- */
.am-hero-title {
  font-family: 'Poppins', sans-serif;
  margin: 0 0 24px;
  line-height: 1.15;
}

.am-hero-title-main {
  display: block;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #0B1E40 0%, #12A66C 60%, #BD9332 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-hero-title-sub {
  display: block;
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 500;
  color: #0B1E40;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* ---- Subheading & description ---- */
.am-hero-subheading {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #1D8F92;
  margin: 0 0 16px;
}

.am-hero-description {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(11, 30, 64, 0.72);
  margin: 0 0 40px;
}

/* ---- CTA Buttons ---- */
.am-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.am-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}

.am-button i {
  font-size: 15px;
  transition: transform 0.35s ease;
}

.am-button-primary {
  background: linear-gradient(135deg, #12A66C 0%, #1D8F92 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(18, 166, 108, 0.28);
}

.am-button-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(18, 166, 108, 0.36);
}

.am-button-secondary {
  background: rgba(189, 147, 50, 0.08);
  color: #0B1E40;
  border: 1.5px solid #BD9332;
}

.am-button-secondary:hover {
  background: #BD9332;
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.02);
}

.am-button:hover i {
  transform: translateX(3px);
}

/* ---- Right-side image panel ----
   safar-header-image.png sits directly over the enhanced desert
   background above (sun glow + dunes), no hard crop/frame so a
   transparent PNG isn't clipped awkwardly. */
.am-hero-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 26px 44px rgba(11, 30, 64, 0.20));
}

/* Small gold badge, positioned over the lower-left of the image */
.am-hero-media-badge {
  position: absolute;
  left: 6%;
  bottom: 10%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 243, 227, 0.92);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0B1E40;
  box-shadow: 0 8px 20px rgba(11, 30, 64, 0.15);
}

.am-hero-media-badge i {
  color: #BD9332;
  font-size: 13px;
}

/* Small geometric corner motif, gold linework */
.am-hero-media-motif {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 56px;
  height: 56px;
  z-index: 2;
  opacity: 0.85;
}

/* ---- Fade-up / fade-in animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-am-animate="fade-in"] {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1.1s ease 0.15s, transform 1.1s ease 0.15s;
}

[data-am-animate="fade-in"].am-in-view {
  opacity: 1;
  transform: scale(1);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991px) {
  .am-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .am-hero-content {
    max-width: 100%;
    padding: 100px 0 20px;
    margin: 0 auto;
  }
  .am-hero-cta {
    justify-content: center;
  }
  .am-hero-media {
    min-height: 360px;
    padding-bottom: 60px;
  }
  .am-hero-photo {
    max-width: 400px;
  }
  .am-hero-sun {
    right: 50%;
    transform: translateX(50%);
    top: 4%;
  }
}

@media (max-width: 767px) {
  .am-hero-content {
    padding: 90px 0 10px;
  }
  .am-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .am-button {
    justify-content: center;
  }
  .am-hero-media-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
  }
  .am-hero-dunes {
    height: 26%;
  }
}

@media (max-width: 480px) {
  .am-hero-label {
    font-size: 12px;
    padding: 7px 14px;
  }
  .am-hero-subheading {
    font-size: 16px;
  }
  .am-hero-description {
    font-size: 15px;
  }
  .am-hero-media-badge {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ================================================
   AM SECTION 1 — What Is Safar?
================================================ */

.am-safar-what {
  position: relative;
  background: #FFFFFF;
  padding: 110px 0;
  overflow: hidden;
}

/* Faint geometric pattern in the corner, very low opacity, non-intrusive */
.am-safar-what-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 420px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Section heading ---- */
.am-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 20px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 14px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #BD9332);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(11, 30, 64, 0.65);
  margin: 0;
}

/* ---- 4 Icon Cards ---- */
.am-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 90px;
}

.am-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(189, 147, 50, 0.18);
  border-radius: 20px;
  padding: 36px 26px;
  text-align: left;
  box-shadow: 0 6px 22px rgba(11, 30, 64, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.am-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 30, 64, 0.12);
  border-color: rgba(189, 147, 50, 0.4);
}

.am-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(18,166,108,0.12) 0%, rgba(29,143,146,0.12) 100%);
  transition: transform 0.4s ease;
}

.am-card:hover .am-card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.am-card-icon i {
  font-size: 22px;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0B1E40;
  margin: 0 0 12px;
}

.am-card-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(11, 30, 64, 0.68);
  margin: 0;
}

/* Small gold accent line under each card title */
.am-card-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: #BD9332;
  margin-top: 10px;
  border-radius: 2px;
}

/* ---- Two-column row: Timeline (left) + Quick Reference (right) ---- */
.am-timeline-reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 0;
}

/* ---- Hijri Calendar Timeline ---- */
.am-timeline-wrap {
  background: linear-gradient(160deg, #FDF6E8 0%, #F6E8C9 100%);
  border-radius: 28px;
  padding: 56px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.am-timeline-label {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  margin: 0 0 40px;
}

.am-timeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
}

/* Base connecting line */
.am-timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(189, 147, 50, 0.25);
  transform: translateY(-50%);
  z-index: 0;
}

/* Animated fill line that draws in on scroll, teal-to-gold */
.am-timeline-line-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #1D8F92, #BD9332);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 4px;
  transition: width 1.4s ease;
}

.am-timeline-line-fill.am-in-view {
  width: 100%;
}

.am-timeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.am-timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #BD9332;
  margin-bottom: 14px;
  transition: transform 0.4s ease;
}

.am-timeline-node-month {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(11, 30, 64, 0.55);
}

/* Current / highlighted month — Safar */
.am-timeline-node.is-current .am-timeline-dot {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  border: 4px solid #BD9332;
  box-shadow: 0 0 0 6px rgba(189, 147, 50, 0.15);
}

.am-timeline-node.is-current .am-timeline-node-month {
  font-size: 18px;
  font-weight: 700;
  color: #0B1E40;
}

.am-timeline-node.is-current .am-timeline-node-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ---- Quick Reference Table ---- */
.am-reference {
  background: #FFFFFF;
  border: 1px solid rgba(189, 147, 50, 0.2);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(11, 30, 64, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.am-reference-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-reference-title i {
  color: #BD9332;
  font-size: 19px;
}

.am-reference-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: rgba(11, 30, 64, 0.55);
  margin: 0 0 28px;
}

.am-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
}

.am-table thead th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8C6A22;
  padding: 0 0 14px;
  border-bottom: 2px solid rgba(189, 147, 50, 0.3);
}

.am-table tbody td {
  padding: 18px 0;
  border-bottom: 1px solid rgba(11, 30, 64, 0.08);
  font-size: 15px;
  color: #0B1E40;
}

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

.am-table tbody td:first-child {
  font-weight: 600;
}

.am-table tbody td:last-child {
  text-align: right;
  color: #1D8F92;
  font-weight: 600;
}

.am-table tbody tr {
  transition: background 0.3s ease;
}

.am-table tbody tr:hover {
  background: rgba(189, 147, 50, 0.04);
}

/* Warning / disclaimer note */
.am-reference-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(189, 147, 50, 0.08);
  border: 1px solid rgba(189, 147, 50, 0.25);
  border-radius: 14px;
}

.am-reference-note i {
  color: #BD9332;
  font-size: 16px;
  margin-top: 2px;
}

.am-reference-note p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(11, 30, 64, 0.7);
}

/* ---- Fade-up animation (triggered via JS), staggered via delay ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1100px) {
  .am-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .am-timeline-reference-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 767px) {
  .am-safar-what {
    padding: 80px 0;
  }
  .am-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }
  .am-timeline-reference-grid {
    gap: 20px;
  }
  .am-timeline-wrap {
    padding: 40px 20px;
  }
  .am-timeline-node-month {
    font-size: 13px;
  }
  .am-timeline-node.is-current .am-timeline-node-month {
    font-size: 15px;
  }
  .am-reference {
    padding: 28px 22px;
  }
  .am-table thead th:nth-child(1),
  .am-table tbody td:nth-child(1) {
    font-size: 13.5px;
  }
  .am-table tbody td {
    font-size: 13.5px;
    padding: 14px 0;
  }
}

@media (max-width: 480px) {
  .am-timeline {
    max-width: 100%;
  }
  .am-timeline-dot {
    width: 14px;
    height: 14px;
  }
  .am-timeline-node.is-current .am-timeline-dot {
    width: 20px;
    height: 20px;
  }
}
/* ================================================
   AM SECTION 2 — Common Myths About Safar
================================================ */

.am-myths {
  position: relative;
  background: #FDFBF3;
  padding: 110px 0;
  overflow: hidden;
}

.am-myths-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 420px;
  height: 420px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Section heading (shared pattern with Section 1) ---- */
.am-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
}

.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 20px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 14px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #BD9332);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(11, 30, 64, 0.65);
  margin: 0;
}

.am-myths-hint {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #1D8F92;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 50px;
}

.am-myths-hint i {
  font-size: 13px;
}

/* ---- Flip Card Grid ---- */
.am-flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 5 cards: last row centers its 2 items on wide screens */
.am-flip-grid .am-flip-card:nth-child(4) {
  grid-column: 1 / 2;
}
.am-flip-grid .am-flip-card:nth-child(5) {
  grid-column: 2 / 3;
}

/* ---- Flip Card mechanics ---- */
.am-flip-card {
  position: relative;
  perspective: 1600px;
  min-height: 340px;
}

.am-flip-card-btn {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.am-flip-card-btn:focus-visible .am-flip-card-inner {
  outline: 3px solid #1D8F92;
  outline-offset: 4px;
  border-radius: 22px;
}

.am-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.am-flip-card.is-flipped .am-flip-card-inner {
  transform: rotateY(180deg);
}

.am-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(11, 30, 64, 0.08);
}

/* ---- FRONT face: muted, neutral, not scary ---- */
.am-flip-front {
  background: #F8F5F0;
  border: 1px solid rgba(196, 55, 46, 0.14);
  justify-content: space-between;
}

.am-flip-myth-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4372E;
  background: #FBE4E1;
  border: 1px solid rgba(196, 55, 46, 0.25);
  padding: 6px 14px 6px 8px;
  border-radius: 50px;
}

.am-flip-myth-tag .am-flip-x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E15347;
  color: #FFFFFF;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.am-flip-myth-text {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: #33312C;
  margin: 22px 0 0;
}

.am-flip-front-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  padding: 11px 20px;
  border-radius: 50px;
  margin-top: 22px;
  box-shadow: 0 8px 20px rgba(18, 166, 108, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.am-flip-card:hover .am-flip-front-cta {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(18, 166, 108, 0.32);
}

.am-flip-front-cta i {
  font-size: 12px;
  transition: transform 0.5s ease;
}

.am-flip-card:hover .am-flip-front-cta i {
  transform: rotate(180deg);
}

/* ---- BACK face: teal/gold reveal ---- */
.am-flip-back {
  background: linear-gradient(160deg, #FFFFFF 0%, #F6E8C9 130%);
  border: 1px solid rgba(189, 147, 50, 0.3);
  transform: rotateY(180deg);
  justify-content: flex-start;
  overflow-y: auto;
}

.am-flip-truth-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  padding: 6px 14px;
  border-radius: 50px;
}

.am-flip-truth-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0B1E40;
  margin: 18px 0 8px;
}

.am-flip-truth-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(11, 30, 64, 0.75);
  margin: 0;
  flex: 1;
}

.am-flip-truth-text strong {
  color: #0B1E40;
}

.am-flip-source {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(189, 147, 50, 0.4);
}

.am-flip-source i {
  color: #BD9332;
  font-size: 12px;
  margin-top: 2px;
}

.am-flip-source span {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-style: italic;
  line-height: 1.55;
  color: #8C6A22;
}

/* ---- Fade-up animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1100px) {
  .am-flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .am-flip-grid .am-flip-card:nth-child(4) {
    grid-column: auto;
  }
  .am-flip-grid .am-flip-card:nth-child(5) {
    grid-column: 1 / 3;
    max-width: calc(50% - 14px);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .am-myths {
    padding: 80px 0;
  }
  .am-flip-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .am-flip-grid .am-flip-card:nth-child(5) {
    max-width: 100%;
  }
  .am-flip-card,
  .am-flip-card-inner {
    min-height: 300px;
  }
  .am-flip-myth-text {
    font-size: 16px;
  }
}
/* ================================================
   AM SECTION 3 — What Did the Prophet ﷺ Teach?
================================================ */

.am-hadith {
  position: relative;
  background: linear-gradient(135deg, #1B4A3A 0%, #123527 55%, #0E2C22 100%);
  padding: 110px 0;
  overflow: hidden;
}

/* Subtle tiled Islamic geometric pattern, low opacity, gold linework */
.am-hadith-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23D8AE55' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

/* Soft radial glow, warm gold, top-left of the section */
.am-hadith-glow {
  position: absolute;
  top: -10%;
  left: -8%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,174,85,0.16) 0%, rgba(216,174,85,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Two-column layout ---- */
.am-hadith-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ================================================
   LEFT COLUMN — Featured Hadith + Arabic calligraphy
================================================ */

.am-hadith-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D8AE55;
  background: rgba(216, 174, 85, 0.08);
  border: 1px solid rgba(216, 174, 85, 0.45);
  padding: 8px 18px;
  border-radius: 50px;
  margin: 0 0 30px;
}

.am-hadith-badge i {
  font-size: 11px;
}

/* Large Arabic calligraphy */
.am-hadith-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.9;
  color: #D8AE55;
  direction: rtl;
  text-align: right;
  margin: 0 0 18px;
}

.am-hadith-translit {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(233, 239, 233, 0.6);
  margin: 0 0 16px;
}

.am-hadith-translation {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: #F3F1E8;
  margin: 0 0 12px;
}

.am-hadith-citation {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #D8AE55;
  margin: 0 0 34px;
}

/* Dotted divider with 3 gold dots */
.am-hadith-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 34px;
}

.am-hadith-divider::before,
.am-hadith-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(216,174,85,0.5));
}

.am-hadith-divider::after {
  background: linear-gradient(90deg, rgba(216,174,85,0.5), transparent);
}

.am-hadith-divider span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D8AE55;
  display: inline-block;
}

.am-hadith-divider span:nth-child(2) {
  width: 7px;
  height: 7px;
}

/* Quote box — second narration */
.am-hadith-quote-box {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(216, 174, 85, 0.28);
  border-radius: 22px;
  padding: 40px 36px 32px;
  backdrop-filter: blur(4px);
}

.am-hadith-quote-mark {
  position: absolute;
  top: 18px;
  left: 28px;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: rgba(216, 174, 85, 0.3);
  user-select: none;
}

.am-hadith-quote-label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D8AE55;
  margin: 0 0 16px;
}

.am-hadith-quote-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.8;
  color: #D8AE55;
  direction: rtl;
  text-align: right;
  margin: 0 0 14px;
}

.am-hadith-quote-translit {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 13.5px;
  color: rgba(233, 239, 233, 0.55);
  margin: 0 0 16px;
}

.am-hadith-quote-text {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: #F3F1E8;
  margin: 0 0 20px;
}

.am-hadith-quote-text strong {
  color: #D8AE55;
  font-weight: 700;
}

.am-hadith-quote-attr {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #D8AE55;
  text-align: right;
  margin: 0;
}

/* ================================================
   RIGHT COLUMN — Scholarly Understanding
================================================ */

.am-hadith-intro {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
  color: rgba(233, 239, 233, 0.85);
  margin: 0 0 34px;
}

.am-hadith-intro strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* 2x2 card grid */
.am-hadith-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.am-hadith-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(216, 174, 85, 0.18);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.am-hadith-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(216, 174, 85, 0.4);
}

.am-hadith-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.am-hadith-card-icon i {
  font-size: 19px;
}

/* Icon color variants cycling through the brand accent palette */
.am-hadith-card-icon.is-teal {
  background: rgba(29, 143, 146, 0.18);
}
.am-hadith-card-icon.is-teal i {
  color: #4FC3C9;
}

.am-hadith-card-icon.is-gold {
  background: rgba(216, 174, 85, 0.18);
}
.am-hadith-card-icon.is-gold i {
  color: #E8C67D;
}

.am-hadith-card-icon.is-emerald {
  background: rgba(18, 166, 108, 0.18);
}
.am-hadith-card-icon.is-emerald i {
  color: #4FD69C;
}

.am-hadith-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.am-hadith-card-text {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(233, 239, 233, 0.65);
  margin: 0;
}

/* ---- Fade-up animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-am-animate="fade-right"] {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-am-animate="fade-right"].am-in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991px) {
  .am-hadith-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .am-hadith-arabic,
  .am-hadith-quote-arabic {
    text-align: right;
  }
}

@media (max-width: 767px) {
  .am-hadith {
    padding: 80px 0;
  }
  .am-hadith-arabic {
    font-size: 26px;
    line-height: 1.8;
  }
  .am-hadith-quote-box {
    padding: 34px 22px 26px;
  }
  .am-hadith-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .am-hadith-translation {
    font-size: 17px;
  }
  .am-hadith-intro {
    font-size: 17px;
  }
}

/* ================================================
   AM SECTION 4 — Replacing Superstition with Tawakkul
================================================ */

.am-shift {
  position: relative;
  background: #FFFFFF;
  padding: 110px 0;
  overflow: hidden;
}

.am-shift-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 420px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ================================================
   SINGLE ROW — Text + Lists (left) / Animation (right)
================================================ */

.am-shift-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

/* ---- LEFT COLUMN ---- */
.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 22px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 24px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #BD9332);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Superstition / Faith stacked list blocks */
.am-shift-block {
  margin-bottom: 16px;
}

.am-shift-block:last-child {
  margin-bottom: 0;
}

.am-shift-block-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 10px;
}

.am-shift-block-title.is-superstition {
  color: #C4372E;
  background: #FBE4E1;
  border: 1px solid rgba(196, 55, 46, 0.25);
}

.am-shift-block-title.is-faith {
  color: #1D8F92;
  background: #E6F5F1;
  border: 1px solid rgba(29, 143, 146, 0.25);
}

.am-shift-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.am-shift-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0;
}

.am-shift-list-item.is-superstition {
  color: rgba(11, 30, 64, 0.62);
}

.am-shift-list-item.is-faith {
  color: #0B1E40;
  font-weight: 500;
}

.am-shift-list-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  margin-top: 2px;
}

.am-shift-list-icon.is-x {
  background: #FBE4E1;
  color: #C4372E;
}

.am-shift-list-icon.is-check {
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  color: #FFFFFF;
}

/* ---- RIGHT COLUMN: Animated balance scale ---- */
.am-scale-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Soft glowing backdrop behind the scale, gold + teal blend */
.am-scale-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  max-width: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,174,85,0.22) 0%, rgba(29,143,146,0.11) 55%, rgba(216,174,85,0) 78%);
  z-index: 0;
  pointer-events: none;
}

.am-scale-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 34px rgba(11, 30, 64, 0.12));
}

/* Continuous, non-stop tipping animation — starts once the
   section scrolls into view, then loops forever, gently
   oscillating between the Superstition and Faith sides. */
.am-scale-tilt-group {
  transform-origin: 280px 108px;
  transform: rotate(0deg);
}

.am-scale-wrap.am-in-view .am-scale-tilt-group {
  animation: am-scale-tip 5s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}

@keyframes am-scale-tip {
  0%   { transform: rotate(-7deg); }
  25%  { transform: rotate(-1deg); }
  50%  { transform: rotate(6deg); }
  75%  { transform: rotate(-1deg); }
  100% { transform: rotate(-7deg); }
}

/* Gentle floating idle motion on the whole assembly for extra polish */
.am-scale-wrap.am-in-view .am-scale-float {
  animation: am-scale-float 4.5s ease-in-out infinite;
}

@keyframes am-scale-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Pan icon counter-motion for a subtle "swing" feel */
.am-scale-wrap.am-in-view .am-scale-pan-left {
  animation: am-pan-swing-left 5s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}
.am-scale-wrap.am-in-view .am-scale-pan-right {
  animation: am-pan-swing-right 5s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}

@keyframes am-pan-swing-left {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(4px); }
}
@keyframes am-pan-swing-right {
  0%, 100% { transform: translateY(4px); }
  50%      { transform: translateY(-3px); }
}

/* Labels beneath the scale */
.am-scale-labels {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  margin: 8px auto 0;
  padding: 0 6px;
}

.am-scale-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.am-scale-label.is-superstition {
  color: #C4372E;
}

.am-scale-label.is-faith {
  color: #1D8F92;
}

.am-scale-label span.am-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.am-scale-label.is-superstition span.am-dot {
  background: #C4372E;
}

.am-scale-label.is-faith span.am-dot {
  background: linear-gradient(135deg, #12A66C, #1D8F92);
}

/* ---- Fade-up animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991px) {
  .am-shift-row {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .am-scale-wrap {
    order: -1;
  }
}

@media (max-width: 767px) {
  .am-shift {
    padding: 80px 0;
  }
  .am-shift-list-item {
    font-size: 14px;
  }
  .am-scale-label {
    font-size: 12px;
  }
}

/* ================================================
   AM SECTION 5 — Lessons We Can Learn From Safar
================================================ */

.am-lessons {
  position: relative;
  background: #FDFBF3;
  padding: 110px 0;
  overflow: hidden;
}

.am-lessons-pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 420px;
  height: 420px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Section heading (shared pattern) ---- */
.am-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 20px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 14px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #BD9332);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(11, 30, 64, 0.65);
  margin: 0;
}

/* ---- Lesson Card Grid ---- */
.am-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.am-lesson-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(189, 147, 50, 0.18);
  border-radius: 20px;
  padding: 34px 28px 28px;
  box-shadow: 0 6px 22px rgba(11, 30, 64, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.am-lesson-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 30, 64, 0.12);
  border-color: rgba(189, 147, 50, 0.4);
}

.am-lesson-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(18,166,108,0.12) 0%, rgba(29,143,146,0.12) 100%);
  transition: transform 0.4s ease;
}

.am-lesson-card:hover .am-lesson-icon {
  transform: scale(1.08) rotate(-4deg);
}

.am-lesson-icon i {
  font-size: 21px;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Muted red variant for the "Reject Superstition" card */
.am-lesson-icon.is-reject {
  background: rgba(196, 55, 46, 0.10);
}

.am-lesson-icon.is-reject i {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: #C4372E;
}

.am-lesson-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 10px;
}

.am-lesson-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(11, 30, 64, 0.65);
  margin: 0 0 20px;
}

.am-lesson-citation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px dashed rgba(189, 147, 50, 0.35);
}

.am-lesson-citation i {
  color: #BD9332;
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

.am-lesson-citation p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.6;
  color: #8C6A22;
}

/* ---- Fade-up animation (triggered via JS), staggered ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1100px) {
  .am-lesson-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .am-lessons {
    padding: 80px 0;
  }
  .am-lesson-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .am-section-head {
    margin-bottom: 44px;
  }
}
/* ================================================
   AM SECTION 6 — Quranic Reminder
================================================ */

.am-verses {
  position: relative;
  background: linear-gradient(135deg, #1B4A3A 0%, #123527 55%, #0E2C22 100%);
  padding: 110px 0;
  overflow: hidden;
}

/* Subtle tiled Islamic geometric pattern, low opacity, gold linework */
.am-verses-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23D8AE55' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

/* Soft radial glow, warm gold, centered top */
.am-verses-glow {
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,174,85,0.14) 0%, rgba(216,174,85,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Section heading ---- */
.am-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D8AE55;
  background: rgba(216, 174, 85, 0.08);
  border: 1px solid rgba(216, 174, 85, 0.45);
  padding: 8px 18px;
  border-radius: 50px;
  margin: 0 0 24px;
}

.am-section-eyebrow i {
  font-size: 11px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
  line-height: 1.25;
}

.am-section-title span {
  color: #D8AE55;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(233, 239, 233, 0.65);
  margin: 0;
}

/* ---- Verse Card Grid ---- */
.am-verse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.am-verse-card {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(216, 174, 85, 0.28);
  border-radius: 22px;
  padding: 44px 30px 34px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.am-verse-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(216, 174, 85, 0.5);
}

.am-verse-quote-mark {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 50px;
  line-height: 1;
  color: rgba(216, 174, 85, 0.28);
  user-select: none;
}

.am-verse-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: center;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #D8AE55;
  background: rgba(216, 174, 85, 0.10);
  border: 1px solid rgba(216, 174, 85, 0.3);
  padding: 5px 14px;
  border-radius: 50px;
  margin: 0 0 24px;
}

.am-verse-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.9;
  color: #D8AE55;
  direction: rtl;
  margin: 0 0 16px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-verse-translit {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(233, 239, 233, 0.5);
  margin: 0 0 18px;
}

.am-verse-translation {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.65;
  color: #F3F1E8;
  margin: 0 0 18px;
}

.am-verse-citation {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #D8AE55;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(216, 174, 85, 0.3);
}

/* ---- Fade-up animation (triggered via JS), staggered ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991px) {
  .am-verse-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .am-verses {
    padding: 80px 0;
  }
  .am-section-head {
    margin-bottom: 44px;
  }
  .am-verse-card {
    padding: 38px 24px 28px;
  }
  .am-verse-arabic {
    font-size: 21px;
    line-height: 1.8;
  }
}

/* ================================================
   AM SECTIONS 7 + 8 — FAQ (left) + Historical Events (right)
================================================ */

.am-faq-history {
  position: relative;
  background: #FFFFFF;
  padding: 100px 0;
  overflow: hidden;
}

.am-faq-history-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Section heading ---- */
.am-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 20px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 12px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #BD9332);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(11, 30, 64, 0.65);
  margin: 0;
}

/* ---- Two-column row ---- */
.am-fh-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

/* Shared panel shell */
.am-fh-panel {
  background: #FDFBF3;
  border: 1px solid rgba(189, 147, 50, 0.18);
  border-radius: 22px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.am-fh-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 20px;
  flex-shrink: 0;
}

.am-fh-panel-title i {
  color: #BD9332;
  font-size: 16px;
}

/* Scrollable content area within each panel */
.am-fh-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}

/* Custom slim gold scrollbar */
.am-fh-scroll::-webkit-scrollbar {
  width: 5px;
}
.am-fh-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.am-fh-scroll::-webkit-scrollbar-thumb {
  background: rgba(189, 147, 50, 0.35);
  border-radius: 10px;
}
.am-fh-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(189, 147, 50, 0.35) transparent;
}

/* ================================================
   LEFT: FAQ Accordion
================================================ */

.am-faq-item {
  border: 1px solid rgba(189, 147, 50, 0.16);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.3s ease;
}

.am-faq-item:last-child {
  margin-bottom: 0;
}

.am-faq-item.is-open {
  border-color: rgba(189, 147, 50, 0.4);
}

.am-faq-question {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #0B1E40;
}

.am-faq-question-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(189, 147, 50, 0.12);
  color: #BD9332;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.am-faq-item.is-open .am-faq-question-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  color: #FFFFFF;
}

.am-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.am-faq-item.is-open .am-faq-answer {
  grid-template-rows: 1fr;
}

.am-faq-answer-inner {
  overflow: hidden;
}

.am-faq-answer-inner p {
  margin: 0;
  padding: 0 18px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(11, 30, 64, 0.65);
}

/* ================================================
   RIGHT: Historical Events Timeline
================================================ */

.am-history-timeline {
  position: relative;
  padding-left: 26px;
}

.am-history-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #BD9332, rgba(189,147,50,0.15));
}

.am-history-item {
  position: relative;
  padding-bottom: 22px;
}

.am-history-item:last-child {
  padding-bottom: 4px;
}

.am-history-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  border: 3px solid #FDFBF3;
  box-shadow: 0 0 0 1.5px rgba(189, 147, 50, 0.4);
}

.am-history-year {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: linear-gradient(135deg, #BD9332, #D8AE55);
  padding: 3px 11px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.am-history-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 6px;
}

.am-history-text {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(11, 30, 64, 0.62);
  margin: 0;
}

/* ---- Fade-up animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991px) {
  .am-fh-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .am-fh-panel {
    height: auto;
    max-height: 520px;
  }
}

@media (max-width: 767px) {
  .am-faq-history {
    padding: 70px 0;
  }
  .am-section-head {
    margin-bottom: 36px;
  }
  .am-fh-panel {
    padding: 24px 20px;
    max-height: none;
  }
  .am-fh-scroll {
    overflow-y: visible;
  }
}
/* ================================================
   AM SECTION 9 — Daily Sunnah Checklist
================================================ */

.am-checklist {
  position: relative;
  background: #FDFBF3;
  padding: 100px 0;
  overflow: hidden;
}

.am-checklist-pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Section heading ---- */
.am-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 20px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 12px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #BD9332);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(11, 30, 64, 0.65);
  margin: 0;
}

/* ---- Checklist panel ---- */
.am-checklist-panel {
  max-width: 920px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid rgba(189, 147, 50, 0.2);
  border-radius: 26px;
  padding: 40px;
  box-shadow: 0 14px 36px rgba(11, 30, 64, 0.06);
}

/* ---- Progress bar ---- */
.am-checklist-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.am-checklist-progress-label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0B1E40;
}

.am-checklist-progress-count {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1D8F92;
}

.am-checklist-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 50px;
  background: rgba(189, 147, 50, 0.15);
  overflow: hidden;
  margin-bottom: 34px;
}

.am-checklist-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 50px;
  background: linear-gradient(90deg, #12A66C, #1D8F92, #BD9332);
  transition: width 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
}

/* ---- Checklist grid: 2 columns ---- */
.am-checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 26px;
}

.am-checklist-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  cursor: pointer;
  padding: 11px 16px;
  border: 1px solid rgba(189, 147, 50, 0.2);
  border-radius: 14px;
  background: #FDFBF3;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
}

.am-checklist-item:hover {
  transform: translateY(-2px);
  border-color: rgba(189, 147, 50, 0.4);
}

.am-checklist-item.is-checked {
  background: linear-gradient(135deg, rgba(18,166,108,0.08), rgba(29,143,146,0.08));
  border-color: rgba(29, 143, 146, 0.35);
}

.am-checklist-box {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  border: 2px solid rgba(189, 147, 50, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FFFFFF;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.am-checklist-box i {
  font-size: 12px;
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.am-checklist-item.is-checked .am-checklist-box {
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  border-color: transparent;
  transform: scale(1.05);
}

.am-checklist-item.is-checked .am-checklist-box i {
  opacity: 1;
  transform: scale(1);
}

.am-checklist-label {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #0B1E40;
  text-align: left;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.am-checklist-item.is-checked .am-checklist-label {
  color: #1D8F92;
  opacity: 0.75;
}

/* ---- Footer: reset + encouragement message ---- */
.am-checklist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px dashed rgba(189, 147, 50, 0.3);
}

.am-checklist-message {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-style: italic;
  color: rgba(11, 30, 64, 0.6);
}

.am-checklist-reset {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #8C6A22;
  padding: 9px 18px;
  border: 1px solid rgba(189, 147, 50, 0.4);
  border-radius: 50px;
  transition: background 0.3s ease, color 0.3s ease;
}

.am-checklist-reset:hover {
  background: rgba(189, 147, 50, 0.1);
}

.am-checklist-reset i {
  font-size: 11px;
}

/* ---- Fade-up animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 640px) {
  .am-checklist {
    padding: 70px 0;
  }
  .am-checklist-panel {
    padding: 28px 22px;
    border-radius: 20px;
  }
  .am-checklist-grid {
    grid-template-columns: 1fr;
  }
  .am-checklist-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ================================================
   AM SECTION 10 — Myth vs Truth Quiz
================================================ */

.am-quiz {
  position: relative;
  background: #FFFFFF;
  padding: 100px 0;
  overflow: hidden;
}

.am-quiz-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Section heading ---- */
.am-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 20px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 12px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #BD9332);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(11, 30, 64, 0.65);
  margin: 0;
}

/* ---- Quiz panel ---- */
.am-quiz-panel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: #FDFBF3;
  border: 1px solid rgba(189, 147, 50, 0.2);
  border-radius: 26px;
  padding: 44px 40px;
  box-shadow: 0 14px 36px rgba(11, 30, 64, 0.06);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

/* Progress bar */
.am-quiz-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.am-quiz-progress-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #8C6A22;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.am-quiz-score {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1D8F92;
}

.am-quiz-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 50px;
  background: rgba(189, 147, 50, 0.15);
  overflow: hidden;
  margin-bottom: 32px;
}

.am-quiz-progress-fill {
  height: 100%;
  width: 14.28%;
  border-radius: 50px;
  background: linear-gradient(90deg, #12A66C, #1D8F92, #BD9332);
  transition: width 0.5s ease;
}

/* Question */
.am-quiz-question {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  color: #0B1E40;
  line-height: 1.5;
  margin: 0 0 30px;
  flex-grow: 0;
}

/* Yes / No buttons */
.am-quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

.am-quiz-option {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  padding: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0B1E40;
  background: #FFFFFF;
  border: 2px solid rgba(189, 147, 50, 0.25);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.am-quiz-option:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: #BD9332;
  box-shadow: 0 10px 24px rgba(189, 147, 50, 0.15);
}

.am-quiz-option:disabled {
  cursor: default;
}

.am-quiz-option.is-correct {
  background: linear-gradient(135deg, rgba(18,166,108,0.12), rgba(29,143,146,0.12));
  border-color: #12A66C;
  color: #0F7A4F;
}

.am-quiz-option.is-wrong {
  background: #FBE4E1;
  border-color: #C4372E;
  color: #C4372E;
}

.am-quiz-option.is-dim {
  opacity: 0.5;
}

/* Explanation box */
.am-quiz-explanation {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
}

.am-quiz-explanation.is-visible {
  display: flex;
}

.am-quiz-explanation.is-correct-state {
  background: rgba(18, 166, 108, 0.08);
  border: 1px solid rgba(18, 166, 108, 0.3);
}

.am-quiz-explanation.is-wrong-state {
  background: rgba(196, 55, 46, 0.06);
  border: 1px solid rgba(196, 55, 46, 0.25);
}

.am-quiz-explanation i {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.am-quiz-explanation.is-correct-state i {
  color: #12A66C;
}

.am-quiz-explanation.is-wrong-state i {
  color: #C4372E;
}

.am-quiz-explanation p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #0B1E40;
}

.am-quiz-explanation p strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.am-quiz-explanation.is-correct-state p strong {
  color: #0F7A4F;
}

.am-quiz-explanation.is-wrong-state p strong {
  color: #C4372E;
}

/* Next button */
.am-quiz-next {
  all: unset;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-end;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  padding: 13px 28px;
  border-radius: 50px;
  margin-top: auto;
  box-shadow: 0 10px 24px rgba(18, 166, 108, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.am-quiz-next.is-visible {
  display: inline-flex;
}

.am-quiz-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 166, 108, 0.32);
}

/* ---- Results screen ---- */
.am-quiz-results {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex: 1;
}

.am-quiz-results.is-visible {
  display: flex;
}

.am-quiz-results-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 14px 30px rgba(18, 166, 108, 0.25);
}

.am-quiz-results-icon i {
  color: #FFFFFF;
  font-size: 30px;
}

.am-quiz-results-score {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 8px;
}

.am-quiz-results-score span {
  color: #BD9332;
}

.am-quiz-results-message {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(11, 30, 64, 0.65);
  max-width: 440px;
  margin: 0 0 30px;
}

.am-quiz-retake {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8C6A22;
  padding: 12px 26px;
  border: 1.5px solid #BD9332;
  border-radius: 50px;
  transition: background 0.3s ease, color 0.3s ease;
}

.am-quiz-retake:hover {
  background: #BD9332;
  color: #FFFFFF;
}

/* ---- Fade-up animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Question fade transition when moving between questions */
.am-quiz-question-body {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.am-quiz-question-body.is-transitioning {
  opacity: 0;
  transform: translateY(8px);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 640px) {
  .am-quiz {
    padding: 70px 0;
  }
  .am-quiz-panel {
    padding: 32px 24px;
    border-radius: 20px;
    min-height: 380px;
  }
  .am-quiz-options {
    grid-template-columns: 1fr;
  }
  .am-quiz-next {
    align-self: stretch;
    justify-content: center;
  }
}
/* ================================================
   AM SECTION 11 — Teach Your Family
================================================ */

.am-family {
  position: relative;
  background: #FFFFFF;
  padding: 90px 0;
  overflow: hidden;
}

.am-family-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3Cpath d='M42 22 L62 42 L42 62 L22 42 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  background-repeat: repeat;
}

.am-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* ---- Two-column row ---- */
.am-family-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
}

/* ---- LEFT: Illustration ----
   family-discussion.png is treated like the hero image: no
   hard crop or frame box (in case it's a transparent PNG
   graphic), just floats over a soft glow backdrop. */
.am-family-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-family-media-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  max-width: 90%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,143,146,0.14) 0%, rgba(189,147,50,0.10) 55%, rgba(189,147,50,0) 78%);
  z-index: 0;
  pointer-events: none;
}

.am-family-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 36px rgba(11, 30, 64, 0.14));
}

.am-family-media-badge {
  position: absolute;
  left: 8%;
  bottom: 6%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 251, 243, 0.94);
  backdrop-filter: blur(6px);
  padding: 9px 16px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #0B1E40;
  box-shadow: 0 8px 20px rgba(11, 30, 64, 0.15);
}

.am-family-media-badge i {
  color: #1D8F92;
  font-size: 12px;
}

/* ---- RIGHT: Guidance content ---- */
.am-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C6A22;
  background: rgba(189, 147, 50, 0.10);
  border: 1px solid rgba(189, 147, 50, 0.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin: 0 0 18px;
}

.am-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #0B1E40;
  margin: 0 0 10px;
  line-height: 1.25;
}

.am-section-title span {
  background: linear-gradient(90deg, #12A66C, #1D8F92);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(11, 30, 64, 0.65);
  margin: 0 0 24px;
  max-width: 520px;
}

/* Guidance tips: compact 2-column grid, 2 / 2 / 1 layout */
.am-family-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.am-family-tip {
  background: #FDFBF3;
  border: 1px solid rgba(189, 147, 50, 0.18);
  border-radius: 16px;
  padding: 18px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.am-family-tip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(11, 30, 64, 0.08);
  border-color: rgba(189, 147, 50, 0.4);
}

.am-family-tip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(18,166,108,0.12), rgba(29,143,146,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.am-family-tip-icon i {
  font-size: 13.5px;
  background: linear-gradient(135deg, #12A66C, #1D8F92);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.am-family-tip-text {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(11, 30, 64, 0.7);
  margin: 0;
}

.am-family-tip-text strong {
  display: block;
  color: #0B1E40;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 3px;
}

/* ---- Fade-up / fade-in animation (triggered via JS) ---- */
[data-am-animate="fade-up"] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-am-animate="fade-up"].am-in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-am-animate="fade-in"] {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s ease 0.1s, transform 1s ease 0.1s;
}

[data-am-animate="fade-in"].am-in-view {
  opacity: 1;
  transform: scale(1);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991px) {
  .am-family-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .am-family-media {
    min-height: 280px;
  }
  .am-section-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .am-family {
    padding: 60px 0;
  }
  .am-family-tips {
    grid-template-columns: 1fr;
  }
}