/*
Theme Name: Histree
Author: Histree
Version: 1.0
*/

  /* google fonts */
  /* body font mulish */
   /* font-family: "Mulish", sans-serif; */
  @import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
  /* title font */
   /* font-family: "Literata", serif; */
  @import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap');
  /* arabic */
   /* font-family: "Noto Sans Arabic", sans-serif; */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

body{
 font-family: "Mulish", sans-serif;
}
.arabic{font-family: "Noto Sans Arabic", sans-serif;}
.arabic-name{font-family: "Noto Sans Arabic", sans-serif; font-size:1.3rem}

/* body {
  font-family: 'Inter', sans-serif;
  font-weight: 300; 
} */
 body{
 font-family: "Mulish", sans-serif;
}
.arabic{font-family: "Noto Sans Arabic", sans-serif;}
.arabic-name{font-family: "Noto Sans Arabic", sans-serif; font-size:1.3rem}
/* Remove default link styles globally (optional) */
a,a:link,a:visited,a:hover,a:active,a:focus{color:inherit;text-decoration:none;} a:focus-visible{outline:none;}

/* Remove Bootstrap nav underline */
.navbar .nav-link {
    border: none !important;
}

.site-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Reusable highlight class */
.link-highlight {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

/* Hidden underline */
.link-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #000; /* change to your highlight colour */
    opacity: 0;
}

/* Instantly appear on hover */
.link-highlight:hover::after {
    opacity: 1;
}



.navbar .nav-link {
    color: #111;
    font-size: 0.9rem;
    padding: 0.6rem 0.4rem;
    letter-spacing: 0.3px;
}

.navbar .nav-link:hover {
    color: #000;
}

.navbar-brand img {
    display: block;
}

/* front-page hero */
/* HERO */
.hero {
  position: relative;
  padding-top: 7%;
  padding-bottom: 7%;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.80);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Title (serif, big, white) */
.hero__title {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  font-size: 2.5rem;
}

/* Lead text */
.hero__lead {
      font-family: 'Inter', sans-serif;
  font-weight: 300; 
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  line-height: 1.5;
  color:#fff;
}

/* CTA button */
.hero__btn {
  background: #f3f3f3;
  color: #111;
  border: 0;
  border-radius: 6px;
  padding: 1rem 2.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__btn:hover {
  background: #ffffff;
  color: #000;
}

/* ===== Home Intro Section (tight + editorial) ===== */

.home-intro {
  background: #f6f6f6;
}

/* Big heading stays, but not too heavy */
.home-intro__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1.15;
  color: #3d3d3d;
}

/* Panel same colour as outside */
.home-intro__panel {
  background: transparent; /* SAME as outside */
  border: 1px solid rgba(0,0,0,0.14);
}

/* Cells tighter */
.home-intro__cell {
  padding: 1.5rem 1.5rem;   /* smaller padding */
  height: 100%;
}

/* Vertical dividers on md+ */
@media (min-width: 768px) {
  .home-intro__cell--divider {
    border-right: 1px solid rgba(0,0,0,0.14);
  }
}

/* Titles less bold + smaller */
.home-intro__h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;         /* less bold */
  font-size: 1.25rem;       /* smaller */
  margin-bottom: 0.8rem;
  color: #2b2b2b;
}

/* Paragraphs tighter line height */
.home-intro__p {
      font-family: 'Inter', sans-serif;
  font-weight: 300; 
  font-size: 1.05rem;       /* slightly smaller */
  line-height: 1.5;         /* as requested */
  color: #4a4a4a;
}

/* Mobile behaviour: stack + center everything */
@media (max-width: 767.98px) {

  /* centre the text */
  .home-intro__cell,
  .home-intro__h3,
  .home-intro__p {
    text-align: center;
  }

  /* remove vertical dividers and add horizontal dividers between cells */
  .home-intro__cell--divider {
    border-right: none;
  }

  .home-intro__cell {
    border-top: 1px solid rgba(0,0,0,0.12);
  }

  .home-intro__cell:first-child {
    border-top: none;
  }
}

/* ===== How It Works Section ===== */


/* Title */
.how-it-works__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  color: #3d3d3d;
}

/* Vertical divider */
.how-it-works__divider {
  width: 4px;
  height: 60px;
  background: #3d3d3d;
}

/* Card */
.how-it-works__card {
  position: relative;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 24px;
  padding: 3rem 2rem 2rem;
  box-shadow: 15px 20px rgba(0,0,0,0.06);
  height: 100%;
}

/* Number badge */
.how-it-works__badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 0 20px 20px 20px;
  padding: 0.8rem 1.4rem;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Card heading */
.how-it-works__h3 {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c2c2c;
}

/* Paragraph */
.how-it-works__p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #4a4a4a;
}

/* ===== Explore Islamic History Section ===== */

.explore-history__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  color: #3d3d3d;
}

.explore-history__intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #4a4a4a;
}

.explore-history__h3 {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #2b2b2b;
}

.explore-history__p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a4a4a;
}

/* Slight soft feel for image */
.explore-history__img {
  max-width: 90%;
}

/* Responsive */
@media (max-width: 991.98px) {
  .explore-history__block {
    text-align: center;
  }
}
/* ===== Split feature section ===== */

.feature-split {
 background: #f6f6f6;
}

/* left image */
.feature-split__img {
  width: 90%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* feature list layout */
.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  position: relative;
}

.feature-item__icon {
  width: 64px;
  flex: 0 0 64px;
  display: flex;
  justify-content: center;
  position: relative;
}

/* the vertical line */
.feature-item__icon::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: -18px;
  width: 2px;
  background: rgba(40, 80, 90, 0.35);
}

/* last item: stop line */
.feature-item--last .feature-item__icon::after {
  display: none;
}

/* icon bubble */
.feature-item__icon-dot {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f3f3f3;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: inline-block;
  position: relative;
}

/* typography */
.feature-item__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #2b2b2b;
}

.feature-item__p {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #4a4a4a;
  margin-bottom: 0;
}

/* ===== Reveal on scroll animation ===== */

.reveal {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}


.feature-item__icon-dot {
  width: 64px;
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Custom corner shape */
  border-radius: 22px  0px 22px 22px;
  box-shadow: 10px 10px 0px 0px  rgba(0,0,0,0.08);
}

/* Icon inside */
.feature-item__icon-dot img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Hover state — move pointy corner */
.feature-item__icon-dot:hover {
  border-radius: 22px 22px 0px 22px;
  box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.08);

}

.feature-item__icon-dot img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.feature-item__icon-dot img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Mobile: stack and centre a bit */
@media (max-width: 991.98px) {
  .feature-item {
    gap: 1rem;
  }
}


/* ===== Unlock section ===== */

.unlock {
  position: relative;
  overflow: hidden;
}

.unlock__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.unlock__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.unlock__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  margin-bottom: 2rem;
}

/* Cards */
.unlock-card {
  position: relative;
  background: #e9e9e9;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 22px;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

/* Badge that sits on top edge, centred */
.unlock-card__badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 5px 0px 0px rgba(0,0,0,0.22);
   border-radius: 0px  22px 22px 22px;
}

.unlock-card__badge img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  display: block;
}

.unlock-card__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: #222;
  margin-bottom: 1rem;
}

.unlock-card__p {
  font-family: 'Inter', sans-serif;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Responsive: reduce padding a bit */
@media (max-width: 575.98px) {
  .unlock-card {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* Base reveal */
.reveal {
  opacity: 0;
  transition: opacity 800ms ease, transform 800ms ease;
  will-change: opacity, transform;
}

/* Slide up version */
.reveal--up {
  transform: translateY(60px);
}

/* Visible state */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--up {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== Journey Section ===== */


/* Left Image */
.journey__img {
  width: 90%;
  max-width: 520px;
  border-radius: 8px;
 box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

/* Main Heading */
.journey__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  color: #3d3d3d;
}

/* Each Journey Item */
.journey-item {
  display: flex;
  flex-direction: column;
}

/* Sub Headings */
.journey-item__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1,35rem;
  color: #3d3d3d;
  margin-bottom: 0.4rem;
}

/* Paragraphs */
.journey-item__p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a4a;
}


.section-title{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  color: #3d3d3d;
}

.env-title{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight:600;
  margin-bottom:8px;
  color:#2b2b2b;
}

.env-item p{
  font-family:'Inter', sans-serif;
  font-size:1.05rem;
  line-height:1.6;
  color:#4a4a4a;
}

.env-graphic{
  width:80%;
  max-width:380px;
}
.reveal--spin {
  opacity: 0;
  transform: scale(0.6) rotate(-180deg);
  transition: 
    transform 1s cubic-bezier(.34,1.56,.64,1),
    opacity 0.6s ease;
}

.reveal--spin.spin-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (max-width: 991.98px){

  .env-graphic{
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
  }

}
/* ===== Subscription Benefits Section ===== */
.subs-benefits{
  overflow: hidden;
}

/* background image layer */
.subs-benefits__bg{
  position:absolute;
  inset:0;
  background-size: cover;
 background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.02); /* tiny scale to avoid edge seams */
}

/* dark overlay */
.subs-benefits__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.80);
}

/* typography */
.subs-benefits__title{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  color: #fff;
}

.subs-benefits__lead{
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #fff;
  max-width: 900px;
}

/* ===== Cards ===== */
.subs-card{
  position: relative;
  padding: 3.1rem 2.2rem 2.2rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(2px);
}

/* icon badge sitting on top border */
.subs-card__badge{
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 0px 22px 22px 22px;
  background: #fff;
  display: grid;
  place-items: center;
}

/* icon inside badge */
.subs-card__badge img{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display:block;
}

.subs-card__title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.55rem;
  margin-bottom: 1rem;
  color: #fff;
}

.subs-card__text{
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

/* responsive spacing */
@media (max-width: 991px){
  .subs-card{
    padding: 3rem 1.6rem 1.9rem;
  }
}

/* ===== FAQ Section ===== */


.faq-title{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
 color: #3d3d3d;
}

.faq-sub{
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 920px;
}

.faq-link{
  color: #4a4a4a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Remove Bootstrap's default accordion styling */
.faq-accordion .accordion-item{
  border: 0;
  background: transparent;
}

.faq-item{
 border-top: 1px solid rgba(0,0,0,0.08);
  padding: 0.15rem 0;
}

.faq-item:last-child{
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Button */
.faq-btn{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: #2f2f2f;

  background: transparent;
  padding: 0.6rem 0 0.6rem 2.8rem;  
  box-shadow: none;
}

/* kill default caret + focus ring */
.faq-accordion .accordion-button::after{ display:none; }
.faq-accordion .accordion-button:focus{
  box-shadow: none;
}
.faq-accordion .accordion-button{
  background: transparent;
}

.faq-accordion .accordion-button:not(.collapsed){
  background: transparent;
  color: inherit;
  box-shadow: none;
}
/* Triangle on the left (closed = points right, open = points down) */
.faq-btn::before{
  content:"";
  position:absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #111;
  transition: transform 180ms ease;
}

/* When open (aria-expanded=true) rotate triangle down */
.faq-btn[aria-expanded="true"]::before{
  transform: translateY(-50%) rotate(90deg);
}

/* Answer box */
.faq-body{
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a4a4a;

  background: #ffffff;
  padding: 1.4rem 0 1.4rem 3.1rem;

  border-radius: 6px;

  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
/* tighten spacing on mobile */
@media (max-width: 576px){
  .faq-btn{ font-size: 1.25rem; padding-left: 2.4rem; }
  .faq-body{ padding-left: 2.4rem; }
  .faq-btn::before{ left: 0.15rem; }
}

/* ===== CTA Stats Section ===== */
.cta-stats{
  overflow:hidden;
  color:#fff;
}

/* background image */
.cta-stats__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center 60%; /* tweak if needed */
  background-repeat:no-repeat;
  transform: scale(1.02);
}

/* dark overlay (warm) */
.cta-stats__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.75);
}

/* heading */
.cta-stats__title{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
 color: #fff;
}

/* cards */
.cta-card{
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.12);
  padding: 2.4rem 2rem;
  text-align: center;
  backdrop-filter: blur(2px);
}

.cta-card__num{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: clamp(3rem, 4vw, 4.6rem);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.cta-card__sub{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.cta-card__p{
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 420px;
  margin-left:auto;
  margin-right:auto;
}

/* bottom text */
.cta-stats__note{
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 900px;
}

/* button */
.cta-stats__btn{
  background: rgba(255,255,255,0.92);
  color: #1f1f1f;
  border-radius: 8px;
  padding: 0.9rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 100;
  border: 1px solid rgba(255,255,255,0.4);
}

.cta-stats__btn:hover{
  background: #fff;
  color: #1f1f1f;
}

/* spacing similar to screenshot */
@media (min-width: 992px){
  .cta-stats{ padding-top: 4.8rem; padding-bottom: 4.8rem; }
}

/* mobile */
@media (max-width: 575px){
  .cta-card{ padding: 2rem 1.4rem; }
  .cta-stats__btn{ width: 100%; }
}

.site-footer{
  background:#3a3a3a;
  border-top:1px solid rgba(255,255,255,0.08);
}

.footer-copy{
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
}

/* Center everything on small screens */
@media (max-width: 991.98px){

  /* text */
  .hero,
  .home-intro,
  .how-it-works,
  .explore-history,
  .feature-split,
  .unlock,
  .journey,
  .learning-environments,
  .subs-benefits,
  /* .faq-section, */
  .cta-stats{
    text-align: center;
  }

  /* make paragraphs center nicely */
  .hero__lead,
  .home-intro__p,
  .how-it-works__p,
  .explore-history__intro,
  .explore-history__p,
  .feature-item__p,
  .unlock-card__p,
  .journey-item__p,
  .subs-benefits__lead,
  .subs-card__text,
  /* .faq-sub,
  .faq-body, */
  .cta-card__p,
  .cta-stats__note{
    margin-left: auto;
    margin-right: auto;
  }

  /* buttons */
  .hero__btn,
  .cta-stats__btn{
    display: inline-block;
  }
}

@media (max-width: 991.98px){
  .feature-item{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-item__icon{
    width: auto;
    flex: 0 0 auto;
  }

  /* stop the vertical connector line on mobile (looks odd when stacked) */
  .feature-item__icon::after{
    display: none;
  }
}
/* ---------------------------------------------------------------------------------------  */
/* front page styling end */
/* --------------------------------------------------------------------------------------- */
.courses-title{
    font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
 color: #1f1f1f;

}

/* Controls the visible "shortness" */
.course-img{
  height: 130px;          /* adjust: 130–170px usually looks like your screenshot */
  object-fit: cover;      /* crops nicely instead of squashing */
  display: block;
  border-radius: 22px 22px 0px 0px;
}

.course-badge{
  position: absolute;
  top: 30px;
  left: -4px;
  padding: 8px 12px;
  font-weight: thin;
  font-size: 0.9rem;
  color: #fff;
  text-transform: uppercase;
  border-radius: 0;       /* square like your screenshot */
}

/* colour variants */
.badge-free{ background: #49a942; }
.badge-subs{ background: #184d8d; }

.course-card{
 border: 1px solid rgba(46, 46, 46, 0.5);
  border-radius: 22px;   /* TL TR BR BL */
   overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.course-card:hover{
  border-color: transparent; /* outline disappears */
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}












/***************************************************
   TIMELINE
****************************************************/
/* Early access btn styling */
/* Early access button */

#offerModal .btn-dark{
  background: linear-gradient(135deg, #2b3137, #1c2126);
  border: none;
  color: #fff;
  padding: 8px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: .2px;

  transition: all .25s ease;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.25);
}

/* hover */

#offerModal .btn-dark:hover{
  background: linear-gradient(135deg, #3a4046, #23282e);

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 20px rgba(133,159,253,0.25);
}


/* section 1 */
.tl-cloud-row{
  position: relative;
  margin-top: 120px;
  height: 0px;
  z-index: -1;
}

.tl-cloud{
  position: absolute;
  opacity: 0.7;
}

/* DESKTOP */
.cloud-1{
  left: 20px;
  top: -20px;
  width: 400px;
}

.cloud-2{
  left: 600px;
  top: -100px;
  width: 300px;
}

.cloud-3{
  right: 20px;
  top: 50px;
  width: 300px;
}

/* TABLET */
@media (max-width: 992px){

  .tl-cloud-row{
    margin-top: 90px;
  }

  .cloud-1{
    width: 260px;
    left: -10px;
    top: -10px;
  }

  .cloud-2{
    width: 220px;
    left: 52%;
    top: -40px;
  }

  .cloud-3{
    width: 200px;
    right: 5%;
    top: 20px;
  }

}

/* MOBILE */
@media (max-width: 576px){

  .tl-cloud-row{
    margin-top: 40px;
    height: 30px;
  }

  .cloud-1{
    width: 180px;
    left: -50px;
    top: -20px;
  }

  .cloud-2{
    width: 150px;
    left: 60%;
    top: -8px;
  }

  .cloud-3{
    display: none;
  }

}


.vert-move1{animation: mover 3s infinite}
.vert-move2{animation: mover 2s infinite}
.vert-move3{animation: mover 2.5s infinite}
@keyframes mover {
0% { transform: translateY(0); }
50% { transform: translateY(-7px); }
100% { transform: translateY(0px); }
}

/***************************************************
   FLOATING TIMELINE / TOP BUTTONS
****************************************************/
.floating-btn{
  position: fixed;
  bottom: 90px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    bottom .3s ease,
    opacity .3s ease,
    visibility .3s ease;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#top-btn{
  right: 20px;
}

#tl-menu-btn{
  left: 20px;
}

#top-btn img{
  height: 50px;
  display: block;
}

#tl-menu-btn img{
  height: 40px;
  display: block;
}

#top-btn.show,
#tl-menu-btn.show{
  opacity: 1;
  visibility: visible;
}

/* move both up when footer is near */
#top-btn.footer-clear,
#tl-menu-btn.footer-clear{
  bottom: 170px;
}

/* hover jiggle only for up button */
#top-btn:hover{
  animation: shake 0.5s;
  animation-iteration-count: 2;
}


/* Timeline Menu list */
.tl-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tl-menu-list li {
  border-bottom: 1px solid #99f6e4;
}

.tl-menu-list li:last-child {
  border-bottom: none;
}

.tl-menu-list a {
  display: block;
  padding: 0.65rem 0.25rem;
  text-decoration: none;
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.3;
}

.tl-menu-list a:hover {
  text-decoration: underline;
}

/* Active item (optional) */
.tl-menu-list a.is-active {
  font-weight: 600;
  box-shadow: inset 3px 0 0 #14b8a6;
  padding-left: 0.5rem;
}
/* keep accordion headers visible */
.tl-accordion .accordion-item{
  display: flex;
  flex-direction: column;
}

/* make body scroll */
.tl-accordion-body{
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 1rem 1rem;
}


/***************************************************
   go to course inside the explore section
****************************************************/
.course-collapse-footer{
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #d6dde6;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* simple link */
.course-footer-link{
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-arrow{
  opacity:0.7;
}
.course-footer-link:hover{
  color: #414040;
}
.go-course{
  font-weight:600;
}
.course-collapse-footer{
  row-gap:0.5rem;
}
/* arrow animation */
.footer-arrow{
  transition: transform 0.2s ease;
}

.go-course:hover .footer-arrow{
  transform: translateX(4px);
}




/* card base */
.companion-card{
  transition:all .2s ease;
}

/* hover effect */
.companion-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

/* name colour change */
/* .companion-card:hover .card-title{
  color:#1f62b5;
} */




/* === Timeline Offcanvas (White + Turquoise) === */
.tl-offcanvas {
  --bs-offcanvas-width: 360px;
  background-color: #ffffff;
}

/* Header */
.tl-offcanvas-header {
  border-bottom: 1px solid #99f6e4;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
}

.tl-offcanvas-header .offcanvas-title {
  color: #0f766e;
}

/* Accordion */
.tl-accordion .accordion-item {
  border: none;
}

.tl-accordion-btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  color: #0f766e;
}

.tl-accordion-btn:not(.collapsed) {
  background-color: #ffffff;
  color: #0d9488;
}

/* Subtle separator under open accordion header */
.tl-accordion-btn:not(.collapsed)::after {
  filter: hue-rotate(110deg);
}

/* Accordion body */
.tl-accordion-body {
  padding: 0.5rem 1.25rem 1rem;
  background-color: #ffffff;
}



/* Menu list */
/* === Timeline Offcanvas (White, Black Text, Turquoise Accents) === */
.tl-offcanvas {
  --bs-offcanvas-width: 360px;
  background-color: #ffffff;
  color: #000000;
}

/* Header */
.tl-offcanvas-header {
  border-bottom: 1px solid #99f6e4;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
}

.tl-offcanvas-header .offcanvas-title {
  color: #000000;
}

/* Accordion */
.tl-accordion .accordion-item {
  border: none;
}

.tl-accordion-btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  color: #000000;
}

.tl-accordion-btn:not(.collapsed) {
  background-color: #ffffff;
  color: #000000;
}

/* Subtle turquoise indicator for open section */
.tl-accordion-btn:not(.collapsed) {
  box-shadow: inset 4px 0 0 #14b8a6;
}

/* Accordion body */
.tl-accordion-body {
  padding: 0.5rem 1.25rem 1rem;
  background-color: #ffffff;
  color: #000000;
}



/* Remove Bootstrap blue focus styles */
.tl-accordion-btn:focus {
  box-shadow: none;
  border-color: transparent;
}

/* Also remove active outline */
.tl-accordion-btn:active {
  box-shadow: none;
}



/* Improve tap targets on mobile */
@media (max-width: 768px) {
  .tl-accordion-btn {
    padding: 1.1rem 1.25rem;
  }
}


.tl-accordion-btn:not(.collapsed) {
  box-shadow: inset 4px 0 0 #14b8a6;
}


/***************************************************
****************************************************/

/* main timeline */
/* sticky features on timeline: up-icon, tl menu, and tl-date */

/* generic styles for what is apparent on tl: styles for titles, text for tl entrys, card design and styles, icon design, media queries  */
.line{width: 50px; background: linear-gradient( #181818,  #181818) no-repeat center/4px 100%;}
.time-stamp{display: block; margin:auto; width:25px;}
.tl-circle{
  height: 22px;
  width: 22px;
  background-color: white;
  border:solid #000 2px;
  border-radius: 50%;
    margin:auto;
  /* display: inline-block; */
  z-index: 2;

}
.tl-circle-sm{
  height: 20px;
  width: 20px;
  background-color: #181818;
  border-radius: 50%;
margin:auto;
  z-index: 2;
}


.box{position: relative; opacity: 0;}
.bounce {opacity: 1; animation-duration: 1.5s; animation-name: bounce; animation-timing-function: ease-out;}
@keyframes bounce {
  0%   { transform: translateY(400px); }
  65%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.empty{display:block;}

.float-right{float:right; text-align: right; padding-bottom: 0;}

.tl-spacer{height:50px}
.bible-name{font-size:1rem}
.tl-deco{z-index:-1}

.tl-title{font-size:1rem; margin-bottom: 10px; line-height: 1.5rem; color:#181818; max-width:25rem}
.tl-title.prophet{font-family: "Literata", serif; font-size:1.5rem;}
.quran-hadith-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#485067}
.prophet-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#6aabd2}
.scholar-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:rgb(94, 23, 94)}
.science-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#00b1b0}
.politics-and-war-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#955670}
.economy-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#ba0f30}
.population-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#3a6a59}
.civilisation-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#ff8370}
.invention-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#385e72}
.migration-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#37c080}
.agriculture-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#cc7722;}
.trade-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#536878}
.technology-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#10987f}
.culture-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#81277e}
.environment-tag{text-transform: uppercase;   font-family: "Lato", sans-serif; font-weight: 300; font-style: normal; font-size:0.8rem; color:#007f5f;}
.religion-tag{text-transform: uppercase;font-family: "Lato", sans-serif;font-weight: 300;font-style: normal;font-size: 0.8rem;color:#e7625f}
.islamic-world-tag{text-transform: uppercase;font-family: "Lato", sans-serif;font-weight: 300; font-style: normal;font-size: 0.8rem; color:#c99700;}
.world-war-tag{text-transform: uppercase; font-family: "Lato", sans-serif; font-weight: 300;font-style: normal; font-size: 0.8rem; color: #7d4e57;}
.nation-formation-tag {text-transform: uppercase; font-family: "Lato", sans-serif; font-weight: 300;  font-style: normal; font-size: 0.8rem;  color: #37c080;}
/* .tl-title.quran{color:#181818}
.tl-title.islamic{color: rgb(143, 60, 60);}
.tl-title.europe{color: rgb(#083d56);}
.tl-title.asia{color: #2f5233;}
.tl-title.africa{color: #d48c70;}
.tl-title.america{color: rgb(103, 81, 133);}
.tl-title.australia{color: rgb(50, 50, 147);}
.tl-title.normal{color: #181818} */
.tl-card>.card-body>.card-title{font-size:1.2rem;}


.tl-card{background:transparent; border:1; width:18rem; text-align:center; box-shadow:rgba(0, 0,0 ,0, 0.15);}
.tl-card.card-transparent{border:0;}
.card-transparent>.card-body{padding:0; margin:0}
.tl-card .card-img{display: block; margin-left: auto; margin-right: auto; padding-top:10px; padding-bottom:0; margin-bottom:0}
.tl-card .card-img.img-50{width: 50%;}
.tl-card .card-img.img-30{width: 30%;}
.tl-card .card-img.img-70{width: 70%;}
.tl-card .card-img.img-90{width: 90%;}
.tl-card .card-img.img-100{width: 100%;}
.tl-card .card-title{font-family: "Literata", serif; font-size:1.5rem; color: #181818}
.tl-card .card-text{color:#282828;}
.tl-card .card-link-text{color:#282828; font-size:0.9rem; padding-bottom:0; margin-bottom:0; text-align:left}
.tl-card .card-link-text:hover{color:#181818;}
.tl-card.arrow-top {margin-top:15px;}
/* .tl-explore-link{ font-family: "Mulish", sans-serif; font-size:1rem; color:#282828;} */
/* .tl-explore-link:hover{color:#282828} */


/* .tl-card.explore-card{width:22rem;margin-top:30px; margin-bottom:30px} */

.tl-card.arrow-top:after {
  content: " ";
  position: absolute;
  left: 10px;
  top: -15px;
  border-top: none;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-bottom: 15px solid #282828;
}

.tl-card.arrow-right:after {
  content: " ";
  position: absolute;
  right: -14px;
  top: 1px;
  border-top: 15px solid transparent;
  border-right: none;
  border-left: 15px solid #282828;
  border-bottom: 15px solid transparent;
}

.tl-card.arrow-bottom:after {
  content: " ";
  position: absolute;
  right: 30px;
  bottom: -15px;
  border-top: 15px solid #282828;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-bottom: none;
}

.tl-card.arrow-left:after {
  content: " ";
  position: absolute;
  left: -15px;
  top: 1px;
  border-top: 15px solid transparent;
  border-right: 15px solid #282828;
  border-left: none;
  border-bottom: 15px solid transparent;
}

.image-tooltip{color:#181818; font-size:1.5rem;}

.explore-icon{height:50px}
.explore-icon:hover {
  animation: shake-explore-icon 0.5s;
  animation-iteration-count: 2;
}
@keyframes shake-explore-icon {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-2px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-1px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.btn4{
  /* background-image: linear-gradient(to top, rgb(167, 232, 250) 60%, transparent 0); */
  margin: 5px;
  margin-left:0px;
  color: #25bec8;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  text-decoration: none;
  display:inline-block;
}

.btn4::before {
  content: '';
  position: absolute;
  bottom: 0%;
  left: 0px;
  width: 100%;
  height: 2px;
  background: #000;
  display: block;
  transform: scale(0, 1);
  transition: transform 0.3s cubic-bezier(1, 0, 0, 1)
}

.btn4:hover::before {transform-origin: left top; transform: scale(1, 1)}

.playbtn {
  position: relative;
  display: block;
  padding: 6px;
  text-align: center;
  /* margin: 40px 0; */
  color: #181818;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.5s;
  /* font-weight: 600; */
  /* letter-spacing: 4px; */
  overflow: hidden;
}
.playbtn:hover {
  background: #181818;
  color: #fff;
  /* box-shadow: 0 0 5px #c2a7c0, 0 0 25px #c2a7c0, 0 0 50px #c2a7c0, 0 0 200px #c2a7c0; */
}

.playbtn span {
  position: absolute;
  display: block;
}

.playbtn span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #000);
  animation: animate1 3s linear infinite;
}



@keyframes animate1 {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

.playbtn span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #977a95);
  animation: animate2 3s linear infinite;
  animation-delay: 0.75s;
}

@keyframes animate2 {
  0% {
    top: -100%;
  }
  50%,
  100% {
    top: 100%;
  }
}

.playbtn span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #977a95);
  animation: animate3 3s linear infinite;
  animation-delay: 1.4s;
}

@keyframes animate3 {
  0% {
    right: -100%;
  }
  50%,
  100% {
    right: 100%;
  }
}

.playbtn span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #977a95);
  animation: animate4 3s linear infinite;
  animation-delay: 2s;
}

@keyframes animate4 {
  0% {
    bottom: -100%;
  }
  50%,
  100% {
    bottom: 100%;
  }
}

/* ************************************
datemarkers on the timeline
************************************* */
/* https://codepen.io/MarkBoots/pen/yLPwvda */
.line-filler-for-date-gap{
  position: absolute;
  top:50%;
  left: 50%; 
  transform: translate(-24.75px, -50px);
  height: 4rem;
  width: 50px;
  background: linear-gradient( black,  black) no-repeat center/4px 100%;
}

.sticky-date {
  position: sticky;
  z-index: 1;
  top: 10px;
}

.sticky-date-flag {
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.sticky-date-title{
  padding:0.3rem;
  color: white;
  /* font-size: 1rem;
  font-weight: 700; */
}

.sticky-date-flag li {
  display: grid;
  grid-template:
    "role"
    "icon"
    "title"
    "descr";
  align-items: flex-start;
  text-align: center;
  background: #6BD2C3;
  width:12rem;
}




/* //when screen is small */
@media screen and (max-width:768px) {
  .float-right{float:left; text-align: left;}
  .show-md-hide-sm{display:none}
  .tl-spacer{height:40px}
  .empty{display:none;}
  .sticky-date-flag {position: relative;}
.sticky-date-flag li {position:absolute; left:-4px;}
/* .tl-card{width:95%;} */
}

@media screen and (min-width:768px) {
.hide-md-show-sm{display:none}
}

.flag{  
  display: inline-flex;
  position: relative;
  /* margin-top: 20px; */
  padding: 5px 25px;
  color: white;
  left:-25px;
  top:10px;
  border-radius: 0px 45px;
  text-align: center;
  font-size: 0.9rem;
  background-color: rgb(228, 48, 48);
}



#myDIV {
  position: sticky;
  /* position:relative;  */
  align-content: center;
text-align: center;
  margin: auto;
  top: 200px;
  width: 500px;
  height: 100px;
  z-index:1000;
  background-color: rgb(252, 213, 220);
  border-radius: 15px;
  font-size: 2rem;
}


.line-filler-for-cover{
  position: absolute;
  top:0px;
  left: 50%; 
  transform: translate(-24.75px, -50px);
  height: 150px;
  width: 50px;
  background: linear-gradient( rgb(0, 0, 0),  rgb(0, 0, 0)) no-repeat center/4px 100%;
}



/* scholors inner text styles */
.modal-scholor .btn-scholor-modal-close {
  background-color: #40c4c4;  
  border: #40c4c4; ;
}
.modal-scholor .btn-scholor-modal-close:hover {
  background-color: #34a6a6;  
}
.quran-quote{
  font-family: "Inconsolata", monospace;
  /* font-optical-sizing: auto; */
  font-weight: 900;
  font-style: normal;
  font-variation-settings:
    "wdth" 50;
    font-size:1.2rem;
}





/* https://codepen.io/bogdansandu/pen/bNGrzKV */


/* body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse 75% 15% at left 90%,
      rgba(255,140,180,0.35) 0%,
      rgba(133,159,253,0.35) 60%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 75% 15% at right 90%,
      rgba(255,140,180,0.35) 0%,
      rgba(133,159,253,0.35) 60%,
      transparent 70%
    );

  filter: blur(50px);
  transform: translateY(0px);
  will-change: transform;
}


 */


:root{
  --glow1: rgba(212,160,92,0.35);
  --glow2: rgba(188,122,80,0.35);
}

:root{
  --glow1: rgba(212,160,92,0.30);
  --glow2: rgba(188,122,80,0.28);
}

body.page-id-38::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse 80% 22% at left 85%,
      var(--glow1) 0%,
      var(--glow2) 60%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 80% 22% at right 85%,
      var(--glow1) 0%,
      var(--glow2) 60%,
      transparent 72%
    );

  filter: blur(50px);
  transition: background 1.6s ease;
}


.present-node{
  width:25px;
  height:25px;
  border-radius:50%;
  background:#2bbfa9;

  margin:0 auto;

  box-shadow:
    0 0 10px rgba(43,191,169,0.7),
    0 0 24px rgba(43,191,169,0.35);

  animation: presentGlow 3.2s ease-in-out infinite;
}

@keyframes presentGlow{

  0%{
    box-shadow:
      0 0 5px rgba(43,191,169,1),
      0 0 10px rgba(43,191,169,1);
  }

  50%{
    box-shadow:
      0 0 16px rgba(43,191,169,1),
      0 0 40px rgba(43,191,169,1);
  }

  100%{
    box-shadow:
      0 0 5px rgba(43,191,169,1),
      0 0 10px rgba(43,191,169,1);
  }

}

.present-day{
  font-weight:600;
  font-size:1.2rem;
}

.present-line{width: 50px;}


/* explore sections modals */
  /* Mini timeline: always show a vertical scrollbar + allow scrolling */
/* Default (desktop) */
/* =========================
   MINI TIMELINE MODALS ONLY
   Scope everything to .mini-timeline
   No box-shadows / no transforms
   ========================= */

.mini-timeline {
  --mt-border: rgba(0, 0, 0, .08);
  --mt-border-soft: rgba(103, 157, 169, 0.2);
  --mt-text: #000;
  --mt-bg: rgba(255, 255, 255, .88);
  --mt-bg-soft: rgba(248, 249, 250, .85);
  --mt-hover: rgba(103, 157, 169, 0.15);
  --mt-active-bg: rgba(103, 157, 169, 0.2);
}

/* Modal shell */
.mini-timeline .modal-content {
  border: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: none; /* explicitly none */
}

.mini-timeline .modal-header {
  border: 0;
  padding: 1rem;
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(13,110,253,.18), transparent 60%),
    radial-gradient(900px 450px at 80% 10%, rgba(32,201,151,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
  backdrop-filter: blur(8px);
}

.mini-timeline .modal-body {
  padding: 1rem;
  background:
    radial-gradient(900px 400px at 10% 10%, rgba(13,110,253,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,249,250,.95));
  display: flex;
  align-items: stretch;
}


/* Panels */
.mini-timeline .explore-panel {
  border: 1px solid var(--mt-border-soft);
  border-radius: 1rem;
  background: var(--mt-bg);
  box-shadow: none;
    min-width: 300px;
  border-right: 1px solid #e5e5e5;
}

.mini-timeline .panel-title {
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}

/* Mini timeline scroll (scroll happens on this wrapper) */
.mini-timeline .ww1-mini-scroll {
  height: 60vh;
  overflow-y: scroll;        /* always shows scrollbar */
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: .25rem;
   min-height: 0;
    scrollbar-width: thin;
}


/* Responsive timeline height */
@media (max-width: 991.98px) {
  .mini-timeline .ww1-mini-scroll { height: 40vh; }
}
@media (max-width: 575.98px) {
  .mini-timeline .ww1-mini-scroll { height: 30vh; }
}

/* Timeline pills: text-only rows; only ACTIVE is “boxed” */
.mini-timeline .nav-pills {
  gap: .35rem;
}

.mini-timeline .nav-pills .nav-link {
  color: var(--mt-text);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: .6rem .75rem;
  border-radius: .6rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .12s ease; /* no transform/box-shadow transitions */
}

.mini-timeline .nav-pills .nav-link:hover,
.mini-timeline .nav-pills .nav-link:focus {
  color: var(--mt-text);
  background: var(--mt-hover);
}

.mini-timeline .nav-pills .nav-link.active,
.mini-timeline .nav-pills .show > .nav-link {
  color: var(--mt-text);
  background: var(--mt-active-bg);
  border: 1px solid var(--mt-border);
  font-weight: 600;
}

/* Right-pane visual */
.mini-timeline .explore-visual {
  border-radius: 1rem;
  box-shadow: none;
}







/* =========================
   Image info toggle (neutral)
   ========================= */

.explore-image-toggle {
  color: #14b8a6;           
  text-decoration: none;      /* no underline */
}

.explore-image-toggle:hover,
.explore-image-toggle:focus,
.explore-image-toggle:active,
.explore-image-toggle:focus-visible{
  color: #72ecde;                /* slightly darker on hover */
  text-decoration: none;
}

.explore-image-toggle span {
  line-height: 1;
}

/* =========================
   Explore panel images
   ========================= */

.explore-visual {
  max-height: 300px;          /* hard cap for the image area */
  overflow: hidden;           /* prevents spillover */
}

.explore-image {
  max-height: 300px;          /* limits image height */
  width: auto;                /* allow narrower images */
  max-width: 100%;
  object-fit: contain;        /* never crop */
  display: block;
}



/* teh images in the collapse sections of the prophets */

  /* COLLAPSE WRAPPER (more edge padding) */
  .course-collapse {
    background: #f3f6ff; /* pale pastel blue */
    border-radius: 1.25rem;
    padding: 2.75rem/* MORE padding at edges */
  }

  /* LESSON ROW (tight vertical spacing) */
  .lesson {
    padding: .75rem 0; /* MUCH tighter */
  }

  /* Optional subtle divider using spacing, not borders */
  /* .lesson + .lesson {
    margin-top: .5rem;
  } */

  /* HEADINGS (tighter stack) */
  .lesson h5 {
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8b3a3a;
    margin-bottom: .2rem;
  }

  .lesson h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: .1rem;
  }

  .lesson h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #3f4d6b;
    margin-bottom: .4rem;
  }

  .lesson p {
    color: #444;
    line-height: 1.55;
    margin: 0;
  }

  /* IMAGE CENTERING */
  .img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
  }

  .content-img {
    height: auto;
    object-fit: contain;
    max-height: 300px;
  }

  .img-wide { max-width: 70%; }
  .img-tall { max-width: 50%; }

  @media (max-width: 575px) {
    .course-collapse {
      padding: 2rem;
    }
    .img-wrap {
      min-height: 160px;
    }
    .content-img {
      max-height: 240px;
      max-width: 90%;
    }
  }

/* --------------------------------timeline end------------------ */

/* individual course main page styling */
.course-intro-page .course-hero{
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    #f4f1f1 0px,
    #f4f1f1 3px,
   #e4e1e1 3px,
    #e4e1e1 6px
  );
  padding: 45px 0 55px;
  /* padding: 70px 0 120px; */
  position: relative;
}

.course-intro-page .course-hero-inner{
  position: relative;
}

.course-intro-page .course-title{
 font-family: "Literata", serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #111;
  margin-bottom: 1.8rem;
}

.course-intro-page .course-breadcrumb{
 font-size: 1rem;
  margin-bottom: 1.1rem;
}

.course-intro-page .crumb-muted{
  color: #9a9a9a;
}

.course-intro-page .crumb-sep{
  color: #8d8d8d;
  margin: 0 .4rem;
}

.course-intro-page .crumb-current{
  color: #111;
}

.course-intro-page .course-banner{
  position: relative;
  margin-bottom: -120px;
  z-index: 2;
}


.course-intro-page .course-banner img{
  width: 100%;
   height: 185px;
  object-fit: cover;
  display: block;
    position: relative;
  z-index: 0;
}

.course-intro-page .course-banner::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.course-intro-page .course-badge-free{
  position: absolute;
  top: 25px;
  left: 25px;
  background: #57b44c;
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}
.course-intro-page .course-badge-subs{
  position: absolute;
  top: 25px;
  left: 25px;
  background: #184d8d;
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.course-intro-page .course-badge,
.course-intro-page .course-level{
  position: absolute;
  z-index: 2;
}

.course-intro-page .course-level{
  position: absolute;
  top: 28px;
  right: 28px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.course-intro-page .course-meta-section{
 padding: 90px 0 50px;
  background: #fff;
}

.course-intro-page .course-meta-row{
  align-items: center;
}

.course-intro-page .course-meta-item{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.course-intro-page .course-meta-icon{
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 45px;
}

.course-intro-page .course-meta-icon i{
  font-size: 1.2srem;
  color: #000;
}

.course-intro-page .course-meta-icon-soft{
  background: #eef4f5;
}

.course-intro-page .course-meta-text{
  font-size: 0.8rem;
  font-weight: 600;
  color: #111;
}

@media (max-width: 991.98px){
  .course-intro-page .course-hero{
    padding: 70px 0 120px;
  }

  .course-intro-page .course-title{
    margin-bottom: 2rem;
  }

  .course-intro-page .course-banner{
    margin-bottom: -90px;
  }

  .course-intro-page .course-banner img{
    height: 220px;
  }

  .course-intro-page .course-badge{
    top: 18px;
    left: 18px;
    font-size: .95rem;
    padding: 8px 14px;
  }

  .course-intro-page .course-level{
    top: 22px;
    right: 18px;
    font-size: .92rem;
  }

  .course-intro-page .course-meta-section{
    padding: 120px 0 40px;
  }
}

@media (max-width: 767.98px){
  .course-intro-page .course-hero{
    padding: 55px 0 95px;
  }

  .course-intro-page .course-breadcrumb{
    font-size: 1rem;
  }

  .course-intro-page .course-banner{
    margin-bottom: -70px;
  }

  .course-intro-page .course-banner img{
    height: 170px;
  }

  .course-intro-page .course-badge{
    top: 14px;
    left: 14px;
    font-size: .85rem;
    padding: 7px 12px;
  }

  .course-intro-page .course-level{
    top: 17px;
    right: 14px;
    font-size: .82rem;
    letter-spacing: 1px;
  }

  .course-intro-page .course-meta-section{
    padding: 95px 0 30px;
  }

  .course-intro-page .course-meta-item{
    gap: .85rem;
  }

  .course-intro-page .course-meta-icon{
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .course-intro-page .course-meta-icon i{
    font-size: 1.5rem;
  }

  .course-intro-page .course-meta-text{
    font-size: .98rem;
    letter-spacing: 1.2px;
  }
}

/* READY BOX */

.course-ready-box{
  margin-top: 30px;
  padding: 10px 12px;
  background: #d9d9d9;
  border-radius: 45px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-ready-title{
  font-family: "Literata", serif;
  font-size: 1.8rem;
  margin-left: 2rem;
  color: #000;
}


/* BUTTON */
.start-learning-btn{
  display: flex;
  align-items: center;
  gap: 20px;

  background: #000;
  color: #fff !important;
  text-decoration: none;

  padding: 10px 20px 10px 28px;
  border-radius: 999px;

  font-weight: 600;
  letter-spacing: 1px;
}

.start-learning-btn .btn-text{
  color: #fff;
}


/* CIRCLE */

.btn-circle{
  width: 36px;
  height: 36px;
  background: #1f1f1f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}

.start-learning-btn:hover .btn-circle{
  background: #3a3a3a;
}

/* LESSON LIST SECTION */

.course-lessons-section{
  /* padding: 42px 0 70px; */
}

.course-lessons-heading{
  font-family: "Literata", serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 2.25rem;
}

.course-lessons-list{
  border: 1px solid rgba(225, 142, 142, 0.45); /* remove later if just guide */
  padding:10px;
  background: transparent;
}

/* EACH ROW */

.lesson-row{
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 34px 18px 34px 54px;
}

.lesson-left-line{
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 32px;
}

.lesson-left-line::after{
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  border-left: 1px dashed #d6d6d6;
}

.lesson-main{
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}

.lesson-dot{
  width: 13px;
  height: 13px;
  border: 2px solid #b6b6b6;
  border-radius: 50%;
  flex: 0 0 13px;
  margin-top: 5px;
  background: transparent;
}

.lesson-content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lesson-title{
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
  text-decoration: none;
  text-underline-offset: 5px;
}

.lesson-title:hover{
  text-decoration: underline;
  color: #111;
}

.course-lessons-section .lesson-link,
.course-lessons-section .lesson-link:visited{
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1e6bd6;
  text-decoration: none;
  padding: 4px 6px;
  background: transparent;
  transition: all .2s ease;
}

.course-lessons-section .lesson-link:hover,
.course-lessons-section .lesson-link:focus{
  background: #1e6bd6;
  color: #fff;
}

.lesson-icon-btn{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #4a3b3b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 30px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lesson-icon-btn i{
  font-size: 1rem;
  line-height: 1;
    color: #fff;
}

/* MOBILE */

@media (max-width: 767.98px){
  .course-lessons-section{
    padding: 30px 0 50px;
  }

  .course-lessons-heading{
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
  }

  .course-lessons-list{
    padding: 14px 16px 2px;
  }

  .lesson-row{
    gap: 1rem;
    padding: 22px 0 22px 28px;
  }

  .lesson-left-line{
    width: 18px;
  }

  .lesson-left-line::after{
    left: 9px;
  }

  .lesson-main{
    gap: 12px;
  }

  .lesson-dot{
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    margin-top: 3px;
  }

  .lesson-title{
    font-size: 1rem;
    line-height: 1.4;
  }

  .course-lessons-section .lesson-link,
  .course-lessons-section .lesson-link:visited{
    margin-top: 1rem;
    font-size: 0.68rem;
    letter-spacing: 1.6px;
    padding: 7px 11px;
  }

  .lesson-icon-btn{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .lesson-icon-btn i{
    font-size: 0.9rem;
  }
}

.course-end-cta{
  background: #d9d9d9;
  padding: 44px 0;
  margin-top: 40px;
  letter-spacing: 1.6px;
}

.course-end-btn{
  font-size: 0.8rem;
  display: inline-flex;
  justify-content: space-between;
  padding:5px;
  padding-left:20px;
}

.course-end-btn .btn-text{
  flex: 1;
  text-align: center;
}

/* individual lesson styles */

.lesson-hero-section{
  padding: 70px 0 40px;
  position: relative;
  overflow: hidden;
}

.lesson-breadcrumb{
  margin-bottom: 2.25rem;
  font-size: 1rem;
  line-height: 1.4;
}

.lesson-breadcrumb a{
  color: #111;
  text-decoration: none;
}

.lesson-breadcrumb a:hover{
  text-decoration: underline;
}

.lesson-breadcrumb-sep{
  margin: 0 .35rem;
  color: #444;
}

.lesson-title-main{
  font-family: "Literata", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.08;
  color: #000;
  margin: 0 0 4rem;
}

.lesson-intro-row{
  margin-bottom: 1rem;
}

.lesson-quote-box{
  background: #f0f0f0;
  padding: 1rem;
  border-left: 3px solid #111;
}

.lesson-quote-box p{
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #1c1c1c;
}

.quote-box-ref{
  margin-top: 0.75rem;
  color: #8c8176;
  font-style: italic;
  text-align: right;
  opacity: 0.9;
  font-size: 0.9rem !important;
}

.quote-box-ref::before{
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: #d8cec2;
  margin-left: auto;
  margin-bottom: 6px;
}

.quote-box-ref-left{
  margin-left: 2rem !important;   
  color: #8c8176;
  font-style: italic;
  text-align: left;
  opacity: 0.9;
  font-size: 0.9rem !important;
}

.quote-box-ref-left::before{
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: #d8cec2;
  margin-right: auto;
  margin-bottom: 6px;
}

.lesson-audio-area{
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lesson-audio-player{
  width: 100%;
  max-width: 520px;
}

.lesson-content-body{
  font-size: 1.05rem;
  line-height: 1.9;
  color: #222;
}


/* section heading spacing */
.lesson-topic-block:first-child .lesson-topic-header{
  margin-top: 0;
}

.lesson-topic-title{
  margin: 0;
}

/* key lessons styling */


.key-lessons-box{
  margin:1.5rem 0;
  padding:1.4rem 1.5rem;
  background:#fafbfb;
  border:1px solid #e6eded;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
  list-style:none;
}

.key-lessons-box li{
  position:relative;
  padding-left:1.4rem;
  margin-bottom:0.6rem;
  line-height:1.75;
  color:#2f3a3a;
}

.key-lessons-box li:last-child{
  margin-bottom:0;
}

.key-lessons-box li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.7rem;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#7aa6a1;
}

/* mobile */
@media (max-width: 767.98px){
  .lesson-hero-section{
    padding: 48px 0 28px;
  }

  .lesson-breadcrumb{
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
  }

  .lesson-title-main{
    margin-bottom: 2rem;
  }

  .lesson-quote-box{
    padding: 1.2rem 1.1rem;
  }

  .lesson-quote-box p{
    font-size: 1rem;
    line-height: 1.65;
  }


  .lesson-content-body{
    font-size: 1rem;
    line-height: 1.8;
  }
}

.lesson-content-section{
  position: relative;
}

.lesson-body-content{
  position: relative;
  z-index: 2;
}

.lesson-topic-block{
  margin-bottom: 6rem;
}

.lesson-topic-title{
  font-family: "Literata", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 2rem;
}

.lesson-topic-title span{
  position: relative;
  display: inline;
  background-image: linear-gradient(#a3e1bb, #a3e1bb);
  background-repeat: no-repeat;
  background-position: left 120%;
  background-size: 0% 0.9em;
  transition: background-size 0.7s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lesson-topic-title.is-visible span{
  background-size: 100% 0.65em;
}

.lesson-topic-text p{
  font-size: 1.05rem;
  line-height: 1.95;
  color: #222;
  margin: 0 0 1.6rem;
}

.lesson-topic-text p:last-child{
  margin-bottom: 0;
}

/* mobile */
@media (max-width: 767.98px){
  .lesson-content-section{
    padding: 20px 0 50px;
  }

  .lesson-topic-block{
    margin-bottom: 4rem;
  }


  .lesson-topic-title{
    margin-bottom: 1.4rem;
  }

  .lesson-topic-title span{
    background-position: left 84%;
    background-size: 0% 0.38em;
  }

  .lesson-topic-title.is-visible span{
    background-size: 100% 0.38em;
  }

  .lesson-topic-text p{
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
  }
}


.lesson-accordion .accordion-item{
  border:0;
  margin-bottom:1rem;
}

.lesson-accordion .accordion-button{
  font-size:1.1rem;
  font-weight:500;
  background:#fff;
  border-radius:8px;
  box-shadow:none;
  padding:12px 0;  
}
.lesson-accordion .accordion-button::after{
  display:none;
}

.lesson-accordion .accordion-button{
  position:relative;
  padding-left:28px;
}

/* triangle */
.lesson-accordion .accordion-button::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);

  width:0;
  height:0;

  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:10px solid #111;

  transition: transform .2s ease, border-left-color .2s ease;
}

/* open state */
.lesson-accordion .accordion-button:not(.collapsed)::before{
  transform: translateY(-50%) rotate(90deg);
  border-left-color:#000;
}

/* hover animation */
.lesson-accordion .accordion-button:hover::before{
  transform: translateY(-50%) translateX(3px);
}

/* hover when open */
.lesson-accordion .accordion-button:not(.collapsed):hover::before{
  transform: translateY(-50%) rotate(90deg) translateX(3px);
}
.lesson-accordion .accordion-button:not(.collapsed){
  color:#000;
}

.lesson-accordion .accordion-body{
  padding:30px;
  border-radius:8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}


/* references */

.lesson-references{
  margin:0;
  padding-left:1.4rem;
  font-size:1rem;
}


/* resources */

.lesson-resource{
  padding:24px 0;
}

.lesson-resource:last-child{
  border-bottom:0;
}

.resource-icon{
  font-size:28px;
  color:#555;
}

.resource-title{
  font-weight:600;
  margin-bottom:4px;
}

.resource-desc{
  color:#444;
}

.resource-buttons .btn{
  margin-left:8px;
}

.lesson-resource{
  padding:24px 12px;
  transition: background-color .2s ease;
  border-radius:6px;
}

.lesson-resource:hover{
  background:#f2f2f2;
}

.resource-btn{
  border:2px solid #8fd9ad;
  background:#fff;
  border-radius:999px; 
  padding:6px 16px;
  font-size:0.8rem;
  font-weight:500;
  transition:all .2s ease;
}

.resource-btn:hover{
  background:#8fd9ad;
  border-color:#8fd9ad;
  color:#fff;
}

.lesson-topic-header{
  margin-bottom:1.5rem;
}

.lesson-audio-col{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.lesson-audio-label{
  font-size:0.9rem;
  color:#444;
}

.lesson-audio-player{
  max-width:320px;
}

.lesson-topic-header{
  margin-bottom:1.5rem;
}

.lesson-audio-col{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.lesson-audio-label{
  font-size:0.9rem;
  color:#444;
}

.lesson-audio-player{
  max-width:320px;
}

/* allahs names section */
.tl-allahs-name{
  font-family: "Literata", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #000;
  margin-bottom: 0.2rem;
}

.arabic-name-allah{
  font-family: "Noto Sans Arabic", sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #000;
  margin-bottom: 0.2rem;
}

.allahs-name-tag{
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #6aabd2;
  line-height: 1.2;
}

.allahs-name-tag{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.allahs-name-tag.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* wrapper */
.allah-name-wrap{
  position: relative;
  width: fit-content;
  max-width: 100%;
}

/* right side of timeline */
.allah-name-wrap-right{
  margin-left: auto;
  text-align: right;
}

/* left side of timeline */
.allah-name-wrap-left{
  margin-right: auto;
  text-align: left;
}

.allah-name-text{
  position: relative;
  z-index: 2;
}

/* branch sits underneath text */
.allah-branch-wrap{
  position: relative;
  height: 70px;
  margin-top: -0.2rem;
  z-index: 1;
}

.allah-branch{
  position: absolute;
  width: 16rem;
  opacity: 0.98;
}

.allah-branch-right{
  right: -2.2rem;
  top: -0.2rem;
  transform: scaleX(-1);
}

.allah-branch-left{
  left: -2.2rem;
  top: -0.2rem;
}

/* optional: make the three lines sit closer together */
.allah-name-text .arabic-name-allah + .tl-allahs-name{
  margin-top: 0.1rem;
}

.allah-name-text .tl-allahs-name + .allahs-name-tag{
  margin-top: 0.05rem;
}
/* end allahs names section */


/* ********************************styles for course on one page******************* */
/* PAGE 16 — COURSE PAGE */
/* DearFlip background */
._df_book,
._df_thumb,
.df-ui-wrapper,
.df-app,
.df-container,
.df-loading-info,
.df-bg {
    background: #f5f3ee !important;
}

/* .cp-page {
  background: #faf9f6;
  color: #222;
} */

.cp-page h1,
.cp-page h2,
.cp-page h3 {
  font-weight: 700;
}

.cp-hero {
  border-radius: 0 0 18px 18px;
}

.cp-arabic {
  font-size: 2.8rem;
  line-height: 1;
  color: #111;
}

.cp-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.cp-hero p {
  font-size: 1.05rem;
}

.cp-section-label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #777;
  font-weight: 700;
}

.cp-booklet-card,
.cp-accordion-item {
  background: #fff;
  border: 1px solid #dedbd4 !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.cp-booklet-top {
  background: #e4f1ff;
  color: #0b386b;
}

.cp-booklet-preview {
  background: #f6fbff;
  border-left: 1px solid #d8e7f5;
}

.cp-booklet-img {
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.12));
}

.cp-booklet-top h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

@media (max-width: 991px) {
  .cp-booklet-preview {
    border-left: 0;
    border-top: 1px solid #d8e7f5;
  }
}

.cp-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #246db4;
}

.cp-booklet-top h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cp-booklet-bottom {
  background: #fff;
}

.cp-btn {
  background: #fff;
  border: 1px solid #dedbd2;
  border-radius: 9px;
  color: #222;
  font-weight: 500;
}

.cp-btn:hover {
  background: #f5f3ee;
  border-color: #c9c3b8;
}

.cp-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: #222;
}

.cp-accordion-item {
  margin-bottom: 1rem;
}

.cp-accordion-button {
  padding: 1.25rem;
  background: #fff;
  box-shadow: none !important;
}

.cp-accordion-button:not(.collapsed) {
  border-bottom: 1px solid #ece8df;
}

.cp-accordion-button strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}

.cp-accordion-button small {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
}

.cp-lesson-number {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #f3f1eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #555;
}

.cp-accordion-button:not(.collapsed) .cp-lesson-number {
  background: #0fb9b1;
  color: #fff;
}

.cp-accordion-body {
  padding: 1.5rem;
}

.cp-resource-row {
  min-height: 74px;
  border-radius: 10px;
  padding: 0.9rem;
  background: #f4f2ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.cp-resource-row strong {
  display: block;
  line-height: 1;
}

.cp-resource-row small {
  display: block;
  color: #333;
}

.cp-level-one strong {
  color: #5b8a2d;
}

.cp-level-two strong {
  color: #1d6db2;
}

.cp-level-three strong {
  color: #b2452f;
}

.cp-level-four strong {
  color: #5f4dcc;
}

.cp-bonus-resource {
  background: #fff0d9;
  border-radius: 10px;
  color: #5d3511;
}

.cp-bonus-resource span {
  background: #f7c26b;
  color: #7b4a0d;
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.cp-bonus-btn {
  background: #fff7eb;
  border: 1px solid #d39a43;
  color: #8a530b;
  border-radius: 8px;
}

.cp-bonus-btn:hover {
  background: #ffe8c2;
  color: #6f3f05;
}




.cp-quiz-panel {
  background: #f5f3ee;
  border-radius: 10px;
}

@media (max-width: 576px) {
  .cp-hero {
    align-items: flex-start !important;
  }

  .cp-booklet-bottom,
  .cp-resource-row,
  .cp-bonus-resource {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .cp-quiz-panel .btn {
    display: block;
    width: 100%;
    margin: 0 0 0.5rem 0 !important;
  }
}

.cp-resource-card {
  border: 1px solid #dedbd4;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.cp-resource-img-wrap {
  height: 180px;
  background: #f5f3ee;
  overflow: hidden;
}

.cp-resource-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-quiz-box {
  max-width: 900px;
}

.cp-quiz-card {
  background: #fff;
  border: 1px solid #dedbd4;
  border-radius: 14px;
}

.cp-question-count {
  color: #777;
  font-size: 0.95rem;
}

.cp-answer-option,
.cp-review-answer {
  background: #f5f3ee;
  border: 1px solid #dedbd4;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.cp-answer-option input {
  margin-right: 0.5rem;
}

.cp-answer-option.cp-correct,
.cp-review-answer.cp-correct {
  background: #e7f6e7;
  border-color: #6fbf73;
}

.cp-answer-option.cp-wrong,
.cp-review-answer.cp-wrong {
  background: #fbe8e8;
  border-color: #d46a6a;
}

.cp-feedback-correct {
  color: #2f7d32;
  font-weight: 700;
}

.cp-feedback-wrong {
  color: #9b2d2d;
  font-weight: 700;
}

.cp-score-box {
  background: #e4f1ff;
  border-radius: 10px;
  padding: 1rem;
  color: #0b386b;
}




/* ********************************end styles for course on one page******************* */