/* ===== PAGE ===== */
.section-page {
  position: relative;
  min-height: 100vh;
  padding: 120px 20px 80px;
  direction: rtl;
  overflow-x: hidden;
  background: url("../img/Fond-maqariq.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-page > * { position: relative; z-index: 2; }

.section-live-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px auto 0;
    color: #ffffff;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

.section-live-note i {
    color: #d6a93a;
    font-size: 1rem;
}

/* ===== HEADER ===== */

.programs-section { 
  max-width: 1200px; 
  margin: 0 auto; 
}


.section-page {
  min-height: calc(100vh - 72px);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-mutun .program-card > .join-links-title,
.section-mutun .program-top-content h2::after {
    display: none !important;
}

.section-mutun .program-top-content h2 {
    color: #d6a93a !important;
    font-size: 1.7rem !important;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.3px;
    text-shadow: 0 0 14px rgba(214, 169, 58, 0.28);
}

.section-mutun .program-title2 {
    margin-top: 6px;
    color: #f3e4b3;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.programs-header { text-align: center; margin-bottom: 45px; }

.programs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-bottom: 16px;
  color: #f5d47a;
  font-weight: 700;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgb(138,185,50);
  border-radius: 999px;
}

.programs-header h1 { color: #fff; font-size: 2.8rem; margin: 0 0 14px; }

.programs-header p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.82);
  line-height: 2;
  font-size: 1.12rem;
}

.programs-empty { text-align: center; color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* ===== CAROUSEL WRAPPER ===== */
.maqraa-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 45px auto 0;
  direction: ltr;
}


/* Buttons — top/transform set entirely by JS */
/*
.carousel-btn {
  position: absolute;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245,212,122,0.6);
  background: rgba(2,10,25,0.70);
  color: #f5d47a;
  font-size: 2.2rem;
  cursor: pointer;
  transition: background 0.25s;
}
.carousel-btn:hover { background: rgba(245,212,122,0.18); }
.carousel-btn.prev { right: 0; }
.carousel-btn.next { left: 0; }
*/

.carousel-btn {
  position: absolute;
  z-index: 50;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.04)
    );

  backdrop-filter: blur(14px);

  color: #f5d47a;
  font-size: 1.4rem;

  cursor: pointer;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.carousel-btn:hover {

  transform:
    translateY(-50%)
    scale(1.08);

  border-color:
    rgba(245,212,122,0.45);

  background:
    linear-gradient(
      180deg,
      rgba(245,212,122,0.18),
      rgba(255,255,255,0.08)
    );

  box-shadow:
    0 16px 38px rgba(0,0,0,0.34),
    0 0 20px rgba(245,212,122,0.12);
}

.carousel-btn:active {
  transform:
    translateY(-50%)
    scale(0.96);
}

.carousel-btn.prev {
  right: -6px;
}

.carousel-btn.next {
  left: -6px;
}

/* Viewport — clips overflow, height set by JS */
.maqraa-carousel {
  overflow: hidden;
  margin: 0 64px;
  direction: ltr;
  position: relative;
  /*perspective: 1200px;*/
  opacity: 0;
}


.maqraa-carousel:not(.is-ready) .carousel-card {
  visibility: hidden;
  transition: none !important;
}

.maqraa-carousel.is-ready {
  opacity: 1;
}

/* Track — height set by JS */
.carousel-track {
  position: relative;
  width: 100%;
  direction: ltr;
}

/* ===== CARDS =====
   NO top, NO transform in CSS.
   JS sets: style.top, style.left, style.right, style.transform
   on each card individually every render.
*/
.carousel-card {
  position: absolute !important;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(50%, 560px); /* avant tu avais peut-être 460px */
  /*
  width: 540px;
  max-width: 82vw;
  */
  /*aspect-ratio: 3/4;*/
  /*overflow: hidden;*/
  opacity: 0;
  pointer-events: none;
  transition:
    top 0.5s cubic-bezier(0.4,0,0.2,1),
    transform 0.5s cubic-bezier(0.4,0,0.2,1),
    opacity 0.7s ease,
    filter 0.5s ease;
  /*border: 3px solid white;  */
    border: 10px solid green;
}

/* Carte active */
.carousel-card.active {
  opacity: 1;
  z-index: 10;
  filter: none;
  pointer-events: auto;
}

/* Cartes latérales */
.carousel-card.prev-card,
.carousel-card.next-card {
  opacity: 0.95;
  /*filter: brightness(0.55);*/
  z-index: 4;
  pointer-events: none;
}

/* Effet sombre sur les cartes latérales */
.carousel-card.prev-card::after,
.carousel-card.next-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: rgba(0, 10, 30, 0.18);
  z-index: 20;
  pointer-events: none;
}

/* Carte gauche */
.carousel-card.prev-card {
  transform-origin: center center;
}

/* Carte droite */
.carousel-card.next-card {
  transform-origin: center center;
}

/* ===== DOTS ===== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  direction: ltr;
}

.carousel-dot {
  width: 10px; height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(245,212,122,0.3);
  border: 1px solid rgba(245,212,122,0.5);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.carousel-dot.active { background: #f5d47a; transform: scale(1.25); }

/* ===== CARD CONTENT ===== */
.program-card {
  position: relative;
  height: 680px;
  width: 40%; /*300px;*/
  overflow: hidden;

  display:flex;
  flex-direction:column;


  padding: 20px 16px 5px;
  direction: rtl;
  text-align: right;
  color: #fff;
  background:
  radial-gradient(
    circle at top right,
    rgba(255,215,120,0.08),
    transparent 28%
  ),

  radial-gradient(
    circle at bottom left,
    rgba(80,140,255,0.10),
    transparent 32%
  ),

  linear-gradient(
    145deg,
    rgba(2,12,36,0.96),
    rgba(3,20,55,0.96)
  );
  /*border: 3px solid rgba(146, 19, 19, 0.4);*/
  border-radius: 26px;
  border: 2px solid var(--gold); /*rgba(212,175,55,0.32);**/

box-shadow:
  0 20px 60px rgba(0,0,0,0.45),
  inset 0 1px 0 rgba(255,255,255,0.05),
  0 0 0 1px rgba(255,215,120,0.04);

backdrop-filter: blur(14px);
}
/*
.program-card::before{
  content:"";

  position:absolute;

  top:28px;
  right:28px;

  width:100px;
  height:100px;

  background-image:url('../img/logo5.png');
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;

  opacity:.90;

  pointer-events:none;

  z-index:0;
}
*/
/*
.program-card::before {
  content: "۞";

  position: absolute;

  top: -28px;
  left: 12px;

  font-size: 7rem;

  color: rgba(212,175,55,0.08);

  pointer-events: none;
}
*/
.program-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.04),
      transparent 30%
    );

  pointer-events: none;
}
.program-card h2 { 
    margin: 0 0 0px; 
    color: #fff; 

    /*color: #f6e6a8;*/

    -webkit-text-stroke: 0.1px #000000;

    /*text-shadow:
        0 0 4px rgba(255,215,120,.35);
*/
    /*font-family:'Aref Ruqaa', serif;*/
    /*font-family:'Noto Kufi Arabic', sans-serif;*/
    /*font-family:'Amiri', serif;*/
    /*font-family: 'Scheherazade New', serif;*/
    /*font-family: 'El Messiri', sans-serif;*/
    /*font-family: 'THARWATEMARARUQAALIGHT', serif;*/
    
    font-size:1.2rem !important;
    font-weight:500;
    /*
    font-size: 1.65rem; 
    font-weight:800;
    */
    line-height: 1.5; 
    text-align:center;
    letter-spacing:.4px;

    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

@font-face {
    font-family: 'THARWATEMARARUQAALIGHT';
    src: url('../fonts/THARWATEMARARUQAALIGHT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/*
.program-card h2{
  margin:0;
  text-align:right;
  line-height:1.4;
}
*/
.program-top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;}

.program-top-logo{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  /*padding:18px;*/
}

.program-top-logo img{
  width:100%;
  max-width:150px;
  opacity:.95;
  object-fit:contain;
  transform:scale(1.0);
}

.program-top-content{
  flex:3;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.program-header-icon{
  display:flex;
  justify-content:flex-start;
  margin-bottom:8px;
  justify-content:center !important;
}

.program-header-icon img{
  width:80%;
  
  max-width:320px;
  height:auto;
  object-fit:contain;
}

.program-subtitle{
  /*
  margin-top:10px !important;
  margin-bottom:10px !important;
  */
  margin:10px auto 24px !important;
  color:#d9d9d9;
  font-size:.95rem;
  font-weight: 700 !important;
  text-align:center;
  opacity:.9;
  line-height:2.0 !important;
}

/*
.program-header-icon{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;

  margin-bottom:12px;

  color:#d6a63a;

  font-size:1.5rem;

  line-height:1;

  text-shadow:
    0 0 12px rgba(214,166,58,.25);

  font-family:'Amiri', serif;
}


.program-card .program-header-icon img{
  width:75% !important;
  
  max-width:none !important;

  height:auto !important;

  display:block;

  object-fit:contain;

  opacity:.95;

  filter:
    drop-shadow(0 0 10px rgba(214,166,58,.18));
}
*/
.program-schedule { display: grid; gap: 10px; }
.program-card p { margin: 0; color: rgba(255, 255, 255, 0.84); line-height: 1.00; font-size: 0.8rem; }

.join-links-box{
  width: 100%;
  margin-top:0px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:0px;

  padding:10px 0px 0px;

  /*border-top:1px solid rgba(214,166,58,.22);*/
}

.join-links-title{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;

  margin-bottom:0px;

  color:#d6a63a;
  font-size:1.0rem;
  font-weight:700;
}
/*
.join-links-title span,
.times-title span{
  flex: 1;
  height:1px;
  background:rgba(214,166,58,.35);
  position:relative;
}
*/
.join-links-title span,
.times-title span{
  flex:1;
  height:1px;
   background:linear-gradient(
    to right,
    transparent,
    rgba(214,166,58,.45),
    transparent
  ) !important;
  position:relative;
}

.join-links-title span::after,
.times-title span::after{
  content:"";
  position:absolute;

  width:8px;
  height:8px;

  border:1px solid #d6a63a;
  background:#071b33;

  top:50%;
  left:50%;

  transform:translate(-50%, -50%) rotate(45deg);
}
/*
.join-links-title span::before,
.join-links-title span::after,
.times-title span::before,
.times-title span::after{
  content:"";
  position:relative;

  width:8px;
  height:8px;

  border:1px solid #d6a63a;
  transform:rotate(45deg);

  top:50%;
  left:50%;
  translate:-50% -50%;

  background:#071b33;
}

.join-links-title span::before,
.times-title span::before{
  left:0;
  transform:translateY(-50%) rotate(45deg);
}

.join-links-title span::after,
.times-title span::after{
  right:0;
  transform:translateY(-50%) rotate(45deg);
}
*/
.join-links-grid{
  display:flex;
  margin-top: 0px;
  gap:50px;
}

.join-link{
  position:relative;

  width:55px;
  height:55px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;

  text-decoration:none;
    border:none !important;
  box-shadow:none !important;
/*
  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      rgba(5,27,52,.96),
      rgba(2,18,38,.98)
    );

  border:1px solid rgba(255,255,255,.08);
*/
  transition:.28s ease;
  overflow:hidden;
  cursor:pointer;

  flex-shrink:0;
}

.join-link::before{
  content:"";
  position:absolute;
  inset:0;
  display:none;
/*
  background:
    radial-gradient(circle at top,
      rgba(214,166,58,.10),
      transparent 70%);

  opacity:.7;
*/
}

.join-link i{
  font-size:2rem;
  position:relative;
  z-index:2;
}

.join-link span{
  display:none;
}

.join-link.whatsapp{
  color:#25D366;
}

.join-link.zoom{
  color:#2D8CFF;
}

.join-link.telegram{
  color:#27A7E7;
}

.join-link:hover{
  /*
  transform:translateY(-4px);
  border-color:rgba(214,166,58,.45);

  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 18px rgba(214,166,58,.12);
  */
  transform:none;
  box-shadow:none;
  border:none;    
}

/*
.join-link{
  cursor:pointer;
}
*/
.join-link span{
  text-align:center;
  line-height:1.5;
  display:none;
}  

.join-area{
  margin-top:auto;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:22px;

  padding:26px 0 10px;

  border-top:1px solid rgba(214,166,58,.22);
}


.program-times{
  display:flex;
  flex-direction:column;
  gap:10px;
  /*margin-top:9px;*/
  /*margin-bottom:9px;*/
}

.time-row{
  display:flex;
  align-items:center;
  justify-content:flex-start; /*space-between;*/
  gap:6px;

  padding:5px 14px;

  border-radius:14px;

  background:
    linear-gradient(
      180deg,
      rgba(8,31,58,.92),
      rgba(3,20,40,.96)
    );

  border:1px solid rgba(214,166,58,.15);

  transition:.25s ease;
}

.time-row:hover{
  border-color:rgba(214,166,58,.38);

  transform:translateY(-1px);
}

.time-country{
  flex:2;
  display:flex;
  align-items:center;
  gap:10px;

  display:flex;
  align-items:center;
  gap:10px;

  flex-shrink:0;
}

.flag{
  font-size:1.15rem;
  line-height:1;
}

.country-name{
  color:#ffffff;
  font-size:.90rem;
  font-weight:600;
}

.time-value{
  flex:3;
  display:flex;
  align-items:center;
  gap:8px;

  color:#dfe7ff;
  font-size:.9rem;
  font-weight:600;

  text-align:right;
}

.time-value i{
  color:#d6a63a;
  font-size:.7rem;
}

.flag-img{
  width:26px;
  height:18px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}

/*
@media (max-width:700px){

  .time-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .time-country{
    width:100%;
    justify-content:space-between;
  }

}
  */

  .program-info-boxes{
  display:grid;
  grid-template-columns:repeat(2,1fr);

  gap:18px;

  /*margin:12px 0 12px;*/
  line-height: 0.5;
}

.program-info-box{
  position:relative;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  /*padding:26px 18px 20px;*/
  padding:30px 18px 16px;
  border-radius:22px;

  background:
    linear-gradient(
      180deg,
      rgba(10,36,68,.72),
      rgba(3,18,38,.88)
    );

  border:1px solid rgba(214,166,58,.22);

  backdrop-filter:blur(6px);

  overflow:visible;
}
/*
.program-info-box{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:14px;

  padding:5px 5px;

  border-radius:20px;

  border:2px solid rgba(214,166,58,.35);

  background:
    linear-gradient(
      180deg,
      rgba(5,27,52,.72),
      rgba(2,18,38,.88)
    );

  text-align:center;
  margin-top: 0px;
}
*/
.program-info-box div{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.5;
}

/*
.program-info-box:first-child{
  border-radius:0 14px 14px 0;
}

.program-info-box:last-child{
  border-radius:14px 0 0 14px;
}
*/
.program-info-box i{
  position:absolute;

  top:-18px;

  width:46px;
  height:46px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:50%;

  background:#071b33;

  border:2px solid rgba(214,166,58,.45);

  color:#d6a63a;

  font-size:1.35rem;

  box-shadow:
    0 0 18px rgba(214,166,58,.12);
}
/*
.program-info-box i{
  color:#d6a63a;
  font-size:1.0rem;
}
*/
.program-info-box span{
  margin-top:6px;

  color:#d6a63a;

  font-size:.95rem;
}

.program-info-box strong{
  margin-top:6px;
  font-size:1.0rem;
  color:#fff;

  /*font-size:1.45rem;*/

  line-height:2.0;
}
/*
.program-info-box span{
  display:block;
  color:#d6a63a;
  font-size:1.1rem;
  text-align:center;
  
}

.program-info-box strong{
  display:block;
  color:#fff;
  font-size:1.0rem;
  text-align:center;
}
*/
.times-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  margin:10px 0 9px !important;

  color:#d6a63a;
  font-size:1.1rem;
  font-weight:700;
}

.times-title span{
  flex:1;
  height:1px;
  background:rgba(214,166,58,.35);
  position:relative;
}

/* ===== MOBILE ========================================= */
@media (max-width: 1050px) {

  .program-card::before{
    top:14px;
    right:28px;
    width:75px;
    height:75px;
}
  .section-page {
    padding: 105px 14px 65px;
    background-attachment: scroll;
  }

  .programs-header h1 {
    font-size: 2.1rem;
  }

  .maqraa-carousel {
    margin: 0;
  }

  .carousel-card {
    width: min(88vw, 560px);
  }

  .carousel-card.prev-card,
  .carousel-card.next-card {
    opacity: 0 !important;
    pointer-events: none;
  }

  /* BTN MOBILE SUR LA CARTE */
  .carousel-btn {

    width: 42px;
    height: 42px;

    font-size: 1.15rem;

    border-radius: 14px;

    top: 50% !important;

    transform: translateY(-50%) !important;

    /*
    background: rgba(2,10,25,0.78);

    backdrop-filter: blur(10px);
*/
  background: transparent !important;
  backdrop-filter: none;

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:none;
      /*0 8px 24px rgba(0,0,0,0.28);*/

    z-index: 40;
  }

  .carousel-btn.prev {
    right: 12px;
    left: auto;
  }

  .carousel-btn.next {
    left: 12px;
    right: auto;
  }

  .program-card {
    padding: 26px 22px;
  }

  .program-card h2 {
    font-size: 1.35rem;
  }
/*
    .join-links-grid{
    grid-template-columns:1fr;
  }

  .join-link{
    min-height:100px;
  }

  .join-link i{
    font-size:2rem;
  }

  .join-link span{
    font-size:1rem;
  }

  .join-links-title{
    font-size:1.15rem;
  }
*/
}