/* home.css — home page only (shared styles in base.css) */

/* ── Section 1: Hero ── */
.sec1 {
  width: 90%;
  max-width: 1071px;
  min-height: 428px;
  border-radius: 60px;
  margin: 20px auto;
  background-image: url('../../images/user/Rectangle 59.png');
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 39px;
}

.des1 {
  text-align: center;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.img1 { width: 40%; }
.img1 img { object-fit: contain; }

.para1 {
  font-family: "Hayah";
  font-weight: 400;
  font-size: 30px;
  line-height: 37px;
  letter-spacing: 0%;
  text-align: center;
  color: #fff;
}

.para2 {
  font-family: "Hacen Maghreb";
  font-weight: 400;
  font-size: 24px;
  line-height: 51px;
  letter-spacing: 0%;
  text-align: center;
  color: #F8E2AF;
  margin-bottom: 25px;
}

.eid-offer-badge {
  display: inline-block;
  font-family: "Hacen Maghreb", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  /* color: #46348B; */
  background-color: #E63946;
  padding: 20px 36px;
  border-radius: 50px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.eid-price-block {
  margin: 12px 0 8px;
  width: 100%;
}

.eid-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  direction: rtl;
}

.eid-price-old {
  font-family: "Hacen Maghreb", sans-serif;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.eid-price-new {
  font-family: "Hayah", "Hacen Maghreb", sans-serif;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 400;
  color: #F8E2AF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.eid-price-label {
  font-family: "Hacen Maghreb", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  margin: 6px 0 0;
  text-align: center;
}

.para2.eid-tagline {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.eid-cta {
  width: auto !important;
  min-width: 200px;
  padding: 24px 28px !important;
  height: auto !important;
  white-space: nowrap;
}

.eid-fine-print {
  font-family: "Hacen Saudi Arabia", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #F8E2AF;
  margin: 12px 0 0;
  /* max-width: 280px; */
  text-align: center;
}

.sec1 button {
  font-family: "29lbukra";
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #482BB4;
  width: 165px;
  height: 41px;
  border-radius: 15px;
  padding: 24px;
  background-color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Section 2: Level filters ── */
.sec2 { margin: 95px 0 120px; }

.head1 {
  font-family: "Hacen Maghreb";
  font-weight: 400;
  font-size: 24px;
  line-height: 51px;
  letter-spacing: 0%;
  text-align: center;
  color: #46348B;
  margin-bottom: 20px;
}

.butts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 4px;
}

.but1, .but2, .but4 {
  width: 105px;
  height: 34px;
  border-radius: 13px;
  background-color: #46348B;
  font-family: "Hacen Saudi Arabia";
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0%;
  text-align: center;
  color: #F8E2AF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.but3 {
  width: 106px;
  height: 34px;
  border-radius: 13px;
  background-color: #46348B;
  font-family: "Hacen Saudi Arabia";
  font-weight: 400;
  font-size: 24px;
  line-height: 44px;
  letter-spacing: 0%;
  text-align: center;
  color: #F8E2AF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* ── Section 3: Categories ── */
.sec3 { margin-bottom: 96px; }

.head2 {
  font-family: "Hacen Maghreb";
  font-weight: 400;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 0%;
  text-align: center;
  color: #46348B;
  margin: 0 0 30px;
  padding: 0 16px;
}

.cards1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

.card {
  width: 324px;
  height: 450px;
  position: relative;
  padding-top: 40px;
  border-radius: 22px;
  background-color: #DAD6E8;
  margin-bottom: 44px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.card img { object-fit: contain; }

.card .footer {
  width: 100%;
  min-height: 106px;
  position: absolute;
  bottom: 0;
  border-bottom-right-radius: 22px;
  border-bottom-left-radius: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-direction: column;
  padding: 14px 10px;
  text-align: right;
  background-color: #46348B;
}

.card .footer h2 {
  color: #F8E2AF;
  font-family: "Hacen Maghreb";
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0%;
  text-align: right;
}

.card .footer p {
  color: #fff;
  font-family: "Hacen Saudi Arabia";
  font-weight: 400;
  font-size: 12px;
  line-height: 23px;
  letter-spacing: 0%;
  text-align: right;
  direction: ltr;
  unicode-bidi: embed;
}

/* Category description — shown above course count */
.card .footer .cat-desc {
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .footer .num-ar {
  direction: rtl;
  unicode-bidi: embed;
  text-align: right !important;
}
.card .footer .p {
  direction: ltr;
  unicode-bidi: embed;
  text-align: left !important;
}
/* ── Section 4: Why Mammar ── */
.sec4 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.sec4 h2 {
  font-family: "Hayah";
  font-weight: 400;
  font-size: 48px;
  line-height: 49px;
  letter-spacing: 0%;
  text-align: center;
  color: #46348B;
  margin-bottom: 39px;
}

.sec4 p {
  font-family: "Hacen Maghreb";
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0%;
  text-align: right;
  color: #46348B;
  margin-bottom: 12px;
}

.sec4 .para3 {  height: 80px; }

.sec4 .card-list {
  width: 617px;
  height: 104px;
  border-radius: 22px;
  background-color: #46348B;
  margin-bottom: 143px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 13px 13px 9px;
}

.para4 {
  display: flex;
  align-items: center;
  gap: 27px;
  direction: rtl;
  flex-direction: row-reverse;
  justify-content: center;
}

.para4 ul {
  list-style: disc;
  list-style-position: outside;
  padding-right: 22px;
  padding-left: 0;
  color: #fff;
  font-family: "Hacen Maghreb Bd";
  font-weight: 400;
  font-size: 21px;
  line-height: 40px;
  letter-spacing: 0%;
  text-align: right;
}

.list1 {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

/* ── Responsive ── */
@media (max-width: 1071px) {
  .sec1 { width: 95%; height: auto; padding: 30px 20px; border-radius: 40px; gap: 20px; }
  .des1 { width: 50%; }
  .img1 { width: 45%; }
  .para1 { font-size: 26px; line-height: 32px; }
  .para2 { font-size: 20px; line-height: 40px; }
  .eid-price-new { font-size: 36px; }
  .eid-offer-badge { font-size: 13px; }
  .cards1 { grid-template-columns: repeat(2, 1fr); }
  .sec4 .card-list { width: 90%; }
  .sec4 .para3 { width: 90%; height: auto; }
}

@media (max-width: 768px) {
  .sec1 { width: 95%; height: auto; flex-direction: column; padding: 24px 16px; border-radius: 30px; gap: 16px; background-position: 0% 0%; background-color: #46348B; }
  .des1 { width: 100%; }
  .img1 { width: 80%; margin: auto; display: flex; align-items: center; justify-content: center; }
  .para1 { font-size: 22px; line-height: 28px; }
  .para2 { font-size: 18px; line-height: 36px; margin-bottom: 16px; }
  .eid-price-new { font-size: 32px; }
  .eid-price-old { font-size: 17px; }
  .eid-cta { min-width: 180px; font-size: 17px !important; }
  .eid-fine-print { font-size: 10px; max-width: 100%; }
  .sec2 { margin: 50px 0 70px; }
  .butts { flex-wrap: wrap; gap: 8px; padding: 0 16px; }
  .head2 { font-size: 28px; }
  .cards1 { grid-template-columns: 1fr; }
  .card { width: 90vw; max-width: 324px; }
  .card .footer { width: 100%; }
  .sec3 { margin-bottom: 50px; }
  .sec4 h2 { font-size: 32px; line-height: 36px; }
  .sec4 p { font-size: 18px; padding: 0 16px; }
  .sec4 .para3 { width: 95%; height: auto; }
  .sec4 .card-list { width: 95%; height: auto; padding: 16px 12px; margin-bottom: 60px; }
  .para4 { flex-direction: column; gap: 0; align-items: flex-start; }
  .para4 ul { font-size: 17px; line-height: 36px; }
}
