/* =========================================================
   Base typography
   ========================================================= */

@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic_latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  direction: rtl;
}
* {
    box-sizing: border-box;
}
body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Tajawal', sans-serif;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
  line-height: normal;
  font-weight: 500;
  direction: rtl;
}

a {
  color: #563492;
  text-decoration: none;
}

/* =========================================================
   Main container
   ========================================================= */

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .container {
    max-width: 700px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 900px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* =========================================================
   Utility classes
   ========================================================= */

.flex {
  display: flex;
}

.between {
  justify-content: space-between;
  align-items: center;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* =========================================================
   Header layout
   ========================================================= */

.header {
  padding: 5px;
  background: black;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 60px;
}

.logo {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 700;
}
.logo a {
  color: #ffffff;
}

a.logo {
  color: #ffffff;
}

/* =========================================================
   Desktop menu
   ========================================================= */

.menu {
  flex: 0 0 auto;
}

.menu a {
  text-decoration: none;
  color: #333;
}

.hd-menu,
.hd-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
}

.hd-menu {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.hd-menu > li {
  position: relative;
}

.hd-menu > li > a {
  display: block;
  padding: 0.75rem 1rem;
  padding-right: 16px;
  text-decoration: none;
  line-height: 1.2;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.hd-menu > li > a:hover {
  background: linear-gradient(130deg, #7c399a 0%, #351a67 100%);
  border-radius: 10px;
}

/* =========================================================
   Mobile toggle button
   ========================================================= */

.menu-check {
  display: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0px solid #adadad;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: #363636;
}

.burger span {
  width: 22px;
  height: 1px;
  background: #adadad;
}



/* =========================================================
   Mobile overlay and drawer
   ========================================================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 1001;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: #e6e4ec;
  box-shadow: -5px 0 10px rgba(15, 23, 42, 0.12);
  transition: right 0.3s ease;
}

#menuToggle:checked ~ .menu-overlay {
  display: block;
}

#menuToggle:checked ~ .mobile-menu {
  right: 0;
}

.mobile-inner {
  padding: 20px;
}

.mobile-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eeeeee;
  font-size: 18px;
  font-weight: 700;
}
.mobile-header span {
  color: #000000;
}
.close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a8a8a8;
    font-size: 20px;
    font-weight: 400;
    width: 42px;
    height: 42px;
    border: 0px solid #adadad;
    border-radius: 10px;
    cursor: pointer;
    background: #000000;  
}

.mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-list li {
    margin: 0;
    border: 1px solid #e2dbf2;
    margin-top: 4px;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 18px 50px rgb(86 48 164 / 8%);
}

.mobile-list a {
  display: block;
  padding: 10px 0;
  color: #27184a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-list a:hover,
.mobile-list a:focus {
  color: #703492;
}

.mobile-title {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid #eeeeee;
}

/* =========================================================
   Responsive rules
   ========================================================= */

@media (max-width: 999px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .menu,
  .lang {
    display: none;
  }

  .burger {
    margin-right: auto;
    margin-left: 15px;
  }
}

/*---------------------*/


.ht-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 5px 64px;
}

.ht-hero {
    position: relative;
    overflow: hidden;
    /*background: linear-gradient(130deg, #5c399a 0%, #351a67 100%);*/
    background: linear-gradient(130deg, #7c399a 0%, #351a67 100%);
    border: 1px solid #e2dbf2;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 18px 50px rgb(86 48 164 / 10%);
    color: white;
    min-height: 470px;
}

.ht-date-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

.ht-date-card {
    text-align: center;
    margin-top: 30px;
}

.ht-date-label {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 500;
    color: white;
    margin-top: 0px;
}
.g-f {
    color: #dbdbdb;
}
.ht-date-main {
    display: block;
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
}

.ht-date-secondary {
    display: block;
    margin-top: 9px;
    color: #616161;
    font-size: 0.92rem;
}

.ht-calendar-panel {
    margin-top: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2dbf2;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgb(86 48 164 / 10%);
}

.ht-calendar-header {
    display: grid;
    grid-template-columns: 135px 1fr 135px;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.ht-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 5px;
    min-width: 135px;
    border: 1px solid #e2dbf2;
    border-radius: 13px;
    background: #f9f7ff;
    color: #563492;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.ht-nav-button:hover {
    transform: translateY(-1px);
    border-color: rgb(135 53 224 / 55%);
    background: #f1edff;
}

.ht-calendar-title-wrap {
    text-align: center;
}

.ht-calendar-title {
    margin: 0;
    color: #27184a;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    line-height: 1.4;
}

.ht-calendar-range {
    margin: 4px 0 0;
    color: #616161;
    font-size: 0.88rem;
    direction: ltr;
}

.ht-weekdays,
.ht-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ht-weekdays {
    gap: 8px;
    margin-bottom: 8px;
}

.ht-weekday {
    padding: 9px 4px;
    text-align: center;
    color: #563492;
    font-size: 0.82rem;
    font-weight: 700;
}

.ht-calendar-grid {
    gap: 8px;
}

.ht-day,
.ht-day-empty {
    min-height: 104px;
    border-radius: 16px;
}

.ht-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 11px 7px;
    border: 1px solid #f7f3ff;
    background: #ffffff;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ht-day:hover {
    transform: translateY(-2px);
    border-color: #e8c9ff;
    box-shadow: 0 10px 24px rgba(48, 126, 164, 0.09);
}

.ht-day--today {
    border: 1px solid #e8c9ff;
    background: linear-gradient(180deg, #faf8ff 0%, #f2e8ff 100%);
    box-shadow: 0 5px 14px #b935e021;
}

.ht-day--today::before {
    content: 'اليوم';
    position: absolute;
    top: 7px;
    right: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--ht-primary);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
}

.ht-hijri-day {
    color: #27184a;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.ht-gregorian-day {
    margin-top: 8px;
    color: #616161;
    font-size: 14px;
    direction: ltr;
}

.ht-day-empty {
    background: #fbfdfe;
    border: 1px dashed #edf3f6;
}

.ht-today-link-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ht-today-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #442172;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgb(119 53 224 / 22%)
}

.ht-date-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
    margin: 28px 0;
}

@media (max-width: 760px) {
    .ht-page {
        width: min(100% - 20px, 1120px);
        padding-top: 20px;
    }

    .ht-hero,
    .ht-calendar-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .ht-date-grid {
        grid-template-columns: 1fr;
    }

    .ht-calendar-header {
        grid-template-columns: 1fr 1fr;
    }

    .ht-calendar-title-wrap {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 4px;
    }

    .ht-nav-button {
        grid-row: 2;
    }

    .ht-weekdays,
    .ht-calendar-grid {
        gap: 4px;
    }

    .ht-weekday {
        padding: 7px 1px;
        font-size: 12px;
    }

    .ht-day,
    .ht-day-empty {
        min-height: 73px;
        border-radius: 8px;
    }

    .ht-day {
        padding: 0px 2px;
        padding-top: 5px;
    }

    .ht-hijri-day {
        font-size: 1.15rem;
    }

    .ht-gregorian-day {
        margin-top: 6px;
        font-size: 14px;
    }

    .ht-day--today::before {
        content: '';
        top: 2px;
        right: 5px;
        width: 6px;
        height: 6px;
        padding: 0;
        border-radius: 50%;
        display:none;
    }
}

@media (max-width: 420px) {
    .ht-hero,
    .ht-calendar-panel {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ht-day,
    .ht-day-empty {
        min-height: 58px;
    }

    .ht-weekday {
        font-size: 12px;
    }
}

.ht-date-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ht-date-day {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 5px;
}
.ht-date-daytext {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    margin-top: 10px;
}
.ht-date-month-year {
    display: block;
    margin-top: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

/*---------------------*/

.ht-content-page {
    width: 900px;
    max-width: calc(100% - 20px);
    margin: 20px auto 64px;
    padding: 24px 18px;
    background: #ffffff;
    border: 1px solid #e2dbf2;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 18px 50px rgb(86 48 164 / 8%);
    color: #27184a;
    line-height: 2;
}

.ht-content-page h1 {
    margin: 0 0 30px;
    color: #351a67;
    font-size: 24px;
    line-height: 1.4;
}

.ht-content-page h2 {
    margin: 34px 0 10px;
    color: #442172;
    font-size: 1.25rem;
    line-height: 1.5;
}

.ht-content-page p {
    margin: 0 0 16px;
    color: #4d4d4d;
}

.ht-content-page ul {
    margin: 0 0 18px;
    padding-right: 24px;
    color: #4d4d4d;
}

.ht-content-page li {
    margin-bottom: 8px;
}

.ht-content-page strong {
    color: #351a67;
}

.ht-content-update {
    margin-top: 36px !important;
    padding-top: 20px;
    border-top: 1px solid #e2dbf2;
    color: #616161 !important;
    font-size: 0.9rem;
}
.ht-contact-box {
    margin-top: 28px;
    padding: 24px;
    background: #f9f7ff;
    border: 1px solid #e2dbf2;
    border-radius: 18px;
    text-align: center;
}

.ht-contact-box p {
    margin: 0 0 10px;
}

.ht-contact-email {
    display: inline-block;
    color: #563492;
    font-size: 1.15rem;
    font-weight: 700;
    direction: ltr;
    text-decoration: none;
}

.ht-contact-email:hover {
    text-decoration: underline;
}
@media (max-width: 760px) {
    .ht-content-page {
        width: min(100% - 20px, 900px);
        margin-top: 20px;
        padding: 24px 18px;
        border-radius: 20px;
    }

    .ht-content-page h2 {
        margin-top: 28px;
    }
    
    .ht-contact-box {
        padding: 20px 12px;
    }

    .ht-contact-email {
        font-size: 1rem;
    }
}


.site-footer {
    background-color: #000000;
    border-top: 1px solid #e5e7eb;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
    font-size: 16px;
}

.footer-brand h3,
.footer-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ba91ff;
    font-weight: 600;
}

.footer-brand p {
    color: #ffffff;
    line-height: 2;
    margin: 0;
}

.footer-brand h3 a {
    color: #ba91ff;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #c5c5c5;
}

.footer-bottom {
    border-top: 1px solid #3e3e3e;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
}

@media (max-width: 768px) {

    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand,
    .footer-links {
        text-align: center;
    }

}
.no-width {
    width: unset;
    max-width: unset;
    margin-bottom: 0px;
}
/* Day name above both dates */
.ht-date-card > .ht-date-daytext {
    display: block;
    text-align: center;
}

/* Mobile: keep dates vertically stacked */
.ht-date-columns {
    display: flex;
    flex-direction: column;
}

.ht-date-side {
    text-align: center;
}


/* Desktop */
@media (min-width: 768px) {

    .ht-date-columns {
        display: grid;
        grid-template-columns: 1fr 1px 1fr;
        align-items: stretch;
        width: 100%;
    }

    .ht-date-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .ht-date-divider {
        width: 1px;
        height: 100%;
        margin: 0;
        align-self: stretch;
        background: rgba(255, 255, 255, 0.25);
    }

    .ht-date-main {
        width: 100%;
    }
    .ht-hero {
        min-height: 355px;
    }
}