  /* تعريف الخط السعودي */
  @font-face {
    font-family: "Saudi";
    src: url("SA_Font/Saudi-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: "Saudi";
    src: url("SA_Font/Saudi-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
  }

  :root {
    --bg: #ECE2CC;
    --bg-alt: #F6EFDE;
    --card: #FBF7EC;
    --ink: #2A2318;
    --ink-soft: #5B5140;
    --green: #1F3B2C;
    --green-deep: #142A1F;
    --gold: #B8873B;
    --gold-light: #D9AE63;
    --clay: #9C4A28;
    --line: rgba(31, 59, 44, 0.16);
    --shadow: 0 18px 40px -22px rgba(20, 42, 31, 0.35);
    --radius: 4px;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    * {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Saudi", sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
  }

  h1,
  h2,
  h3,
  .display {
    font-family: "Saudi", sans-serif;
    font-weight: 700;
    color: var(--green-deep);
    margin: 0;
    white-space: nowrap;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
  }

  section {
    scroll-margin-top: 84px;
  }

  /* ---------- Sadu pattern (signature element) ---------- */
  .sadu-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .sadu-strip {
    width: 100%;
    height: 26px;
    display: block;
  }

  .sadu-strip--tall {
    height: 40px;
  }

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(236, 226, 204, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }

  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;

    transform: translateX(80px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .brand-text {
    font-family: "Saudi", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1;
    white-space: nowrap;
  }

  .brand-text small {
    display: block;
    font-family: "Saudi", sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-top: 4px;
  }

  nav.links {
    display: flex;
    gap: 6px;
  }

  nav.links button {
    background: none;
    border: none;
    font-family: "Saudi", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 10px 30px;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    transition: color .2s ease;
    white-space: nowrap;
  }

  nav.links button::after {
    content: "";
    position: absolute;
    right: 16px;
    left: 16px;
    bottom: 5px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .25s ease;
    white-space: nowrap;
  }

  nav.links button:hover {
    color: var(--green-deep);
  }

  nav.links button.active {
    color: var(--green-deep);
    font-weight: 700;
  }

  nav.links button.active::after {
    transform: scaleX(1);
  }

  .menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: var(--green-deep);
    position: relative;
  }

  .menu-toggle span::before {
    position: absolute;
    top: -6px;
  }

  .menu-toggle span::after {
    position: absolute;
    top: 6px;
  }

  @media (max-width: 860px) {

    /* =========================
       الهيدر على الجوال
    ========================= */

    .container {
      padding-left: 16px;
      padding-right: 16px;
    }

    .nav-row {
      height: 70px;

      width: 100%;

      display: flex;
      align-items: center;
      justify-content: space-between;
    }


    /* =========================
       الشعار + اسم العائلة
    ========================= */

    .brand {
      transform: none;
      margin: 0;

      display: flex;
      align-items: center;
      gap: 8px;
    }

    .brand-logo {
      width: 48px;
      height: 48px;

      object-fit: contain;

      flex-shrink: 0;
    }

    .brand-text {
      font-size: 21px;

      white-space: nowrap;

      line-height: 1;
    }


    /* =========================
       قائمة الثلاث شرطات
    ========================= */

    nav.links {
      position: fixed;

      top: 70px;
      right: 0;
      left: 0;

      background: var(--bg-alt);

      display: flex;
      flex-direction: column;

      gap: 2px;

      padding: 14px 18px 20px;

      border-bottom: 1px solid var(--line);

      box-shadow: var(--shadow);

      opacity: 0;
      transform: translateY(-10px);

      pointer-events: none;

      transition:
        opacity .25s ease,
        transform .25s ease;
    }


    nav.links.open {
      opacity: 1;

      transform: translateY(0);

      pointer-events: auto;
    }


    /* روابط القائمة */

    nav.links button {
      width: 100%;

      text-align: right;

      padding: 12px 14px;

      font-size: 17px;
    }


    /* =========================
       زر تسجيل الدخول
    ========================= */

    nav.links .mobile-login-btn {
      margin-top: 12px;

      min-height: 48px;

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

      gap: 9px;

      background: var(--green-deep);

      color: var(--bg-alt);

      border: 1px solid var(--green-deep);

      border-radius: 999px;

      font-family: "Saudi", sans-serif;
      font-size: 17px;
      font-weight: 700;
    }


    nav.links .mobile-login-btn svg {
      width: 22px;
      height: 22px;

      flex-shrink: 0;
    }


    nav.links .mobile-login-btn::after {
      display: none;
    }


    nav.links .mobile-login-btn:hover {
      background: var(--gold);

      border-color: var(--gold);

      color: var(--green-deep);
    }


    /* =========================
       زر الثلاث شرطات
    ========================= */

    .menu-toggle {
      display: flex;

      width: 42px;
      height: 42px;

      flex-shrink: 0;
    }

  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 96px 0 0;
    overflow: hidden;
    background:
      radial-gradient(1100px 500px at 85% -10%, rgba(184, 135, 59, 0.16), transparent 60%),
      var(--bg);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 64px;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--clay);
    margin-bottom: 22px;
  }

  .eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--clay);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.28;
    margin-bottom: 22px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--gold);
  }

  .hero p.lead {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 34px;
  }

  .cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    font-family: "Saudi", sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  }

  .btn:active {
    transform: translateY(1px);
  }

  .btn-primary {
    background: var(--green-deep);
    color: var(--bg-alt);
  }

  .btn-primary:hover {
    background: var(--green);
  }

  .btn-outline {
    border-color: var(--green-deep);
    color: var(--green-deep);
  }

  .btn-outline:hover {
    background: var(--green-deep);
    color: var(--bg-alt);
  }

  .hero-emblem {
    position: relative;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-emblem svg {
    width: 88%;
    height: 88%;
  }

  /* ---------- Quick links ---------- */
  .quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 56px 0 70px;
  }

  .quick-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
  }

  .quick-card:hover {
    transform: translateY(-4px);
  }

  .quick-card .qicon {
    width: 34px;
    height: 34px;
    color: var(--gold);
    margin-bottom: 16px;
  }

  .quick-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--green-deep);
  }

  .quick-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
  }

  @media (max-width: 860px) {
    .hero-grid {
      grid-template-columns: 1fr;
      padding-bottom: 36px;
    }

    .hero-emblem {
      order: -1;
      max-width: 220px;
      margin: 0 auto;
    }

    .quick-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 540px) {
    .quick-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- Section shell ---------- */
  .band {
    padding: 86px 0;
  }

  .band-alt {
    background: var(--bg-alt);
  }

  .band-deep {
    background: var(--green-deep);
    color: #EDE3C8;
  }

  .band-deep h2,
  .band-deep .display {
    color: #F3E8CB;
  }

  .section-head {
    max-width: 640px;
    margin-bottom: 52px;
  }

  .section-head .eyebrow {
    color: var(--gold);
  }

  .band-deep .section-head .eyebrow {
    color: var(--gold-light);
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin-bottom: 14px;
  }

  .section-head p {
    color: var(--ink-soft);
    font-size: 1.02rem;
    margin: 0;
  }

  .band-deep .section-head p {
    color: #C9BE9E;
  }

  /* ---------- About ---------- */
  .photo-mosaic {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: repeat(2, 110px);
    gap: 12px;
    margin-bottom: 52px;
  }

  .photo-mosaic figure {
    margin: 0;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .photo-mosaic figure:first-child {
    grid-row: 1 / 3;
  }

  .photo-mosaic svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .photo-mosaic figcaption {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #F6EFDE;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  }

  @media (max-width:720px) {
    .photo-mosaic {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 130px 130px;
    }

    .photo-mosaic figure:first-child {
      grid-row: auto;
      grid-column: 1 / 3;
    }
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: start;
  }

  .about-copy p {
    color: var(--ink-soft);
    margin-bottom: 18px;
    font-size: 1.02rem;
  }

  .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
  }

  .stat {
    border-top: 2px solid var(--gold);
    padding-top: 14px;
  }

  .stat .num {
    font-family: "Saudi", sans-serif;
    font-size: 2.1rem;
    color: var(--green-deep);
    display: block;
  }

  .stat .lbl {
    font-size: 0.82rem;
    color: var(--ink-soft);
  }

  .values-list {
    max-width: 460px;

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .value-item {
    display: flex;
    gap: 16px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--line);
  }

  .value-item:last-child {
    border-bottom: none;
  }

  .value-num {
    font-family: "Saudi", sans-serif;
    color: var(--gold);
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 34px;
  }

  .value-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--green-deep);
  }

  .value-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
  }

  @media (max-width: 860px) {
    .about-grid {
      grid-template-columns: 1fr;
      gap: 36px;
    }

    .stat-row {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }


  /* تعديلات العنوان فوق المربع المرقم  */

  .values-heading .eyebrow::before,
  .values-heading .eyebrow::after {
    background: var(--gold-light);
  }

  .values-section {
    width: 100%;
    max-width: 460px;
  }

  .values-heading {
    background: var(--green-deep);
    padding: 24px 30px;
    margin-bottom: 1px;


    border-radius: var(--radius);

    position: relative;
    overflow: hidden;
  }

  .values-heading .eyebrow {
    color: var(--gold-light);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .values-heading h2 {
    color: #F3E8CB;
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .values-heading p {
    color: #C9BE9E;
    font-size: 0.92rem;
    margin: 0;
  }

  .values-line {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 12px;
  }

  /* ---------- Events ---------- */
  .filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }

  .filter-chip {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .18s ease;
  }

  .filter-chip.active,
  .filter-chip:hover {
    background: var(--green-deep);
    color: var(--bg-alt);
    border-color: var(--green-deep);
  }

  .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .event-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }

  .event-card .sadu-strip {
    opacity: 0.9;
  }

  .event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
  }

  .event-body {
    padding: 28px 30px 30px;

    display: flex;
    flex-direction: column;

    flex: 1;
    min-width: 0;

    /* Keep long event titles and unbroken text within the card. */
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .event-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
  }

  .event-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .tag-gathering {
    background: rgba(31, 59, 44, 0.12);
    color: var(--green-deep);
  }

  .tag-wedding {
    background: rgba(184, 135, 59, 0.16);
    color: var(--gold);
  }

  .tag-condolence {
    background: rgba(92, 84, 68, 0.14);
    color: var(--ink-soft);
  }

  .tag-holiday {
    background: rgba(156, 74, 40, 0.14);
    color: var(--clay);
  }

  .event-date {
    font-family: "Saudi", sans-serif;
    color: var(--green-deep);
    font-size: 1rem;
    text-align: left;
  }

  .event-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .event-card p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0 0 14px;
  }

  .event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-soft);
  }

  .event-meta svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex-shrink: 0;
  }

  @media (max-width:860px) {
    .events-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- Booking ---------- */
  .booking-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .booking-side {
    background: var(--green-deep);
    color: #EDE3C8;
    padding: 44px 38px;
    position: relative;
  }

  .booking-side h3 {
    color: #F3E8CB;
    font-size: 25px;
    margin-bottom: 16px;
  }

  .booking-side p {
    color: #C9BE9E;
    font-size: 18px;
    margin-bottom: 26px;
  }

  .booking-list li {
    display: flex;
    gap: 10px;
    font-size: 16px;
    color: #DCD3B4;
    padding: 10px 0;
    border-top: 1px solid rgba(237, 227, 200, 0.14);
  }

  .booking-list li:first-child {
    border-top: none;
  }

  .booking-list svg {
    width: 16px;
    height: 16px;
    color: var(--gold-light);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .booking-form {
    padding: 44px 38px;
  }

  .field {
    margin-bottom: 20px;
  }

  .field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 8px;
  }

  .field input,
  .field select,
  .field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-alt);
    font-family: "Saudi", sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
  }

  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
  }

  .field textarea {
    resize: vertical;
    min-height: 90px;
  }

  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-msg {
    display: none;
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(31, 59, 44, 0.1);
    color: var(--green-deep);
    font-size: 0.88rem;
    font-weight: 600;
  }

  .form-msg.show {
    display: block;
  }

  @media (max-width:860px) {
    .booking-wrap {
      grid-template-columns: 1fr;
    }

    .field-row {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- Announcements ---------- */
  .ann-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .ann-item {
    background: var(--card);
    padding: 24px 26px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .ann-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
  }

  .dot-birth {
    background: var(--gold);
  }

  .dot-condolence {
    background: var(--ink-soft);
  }

  .dot-meeting {
    background: var(--green);
  }

  .dot-reminder {
    background: var(--clay);
  }

  .ann-body {
    flex: 1;
  }

  .ann-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }

  .ann-head h3 {
    font-size: 1.05rem;
    color: var(--green-deep);
  }

  .ann-date {
    font-size: 0.8rem;
    color: var(--ink-soft);
    white-space: nowrap;
  }

  .ann-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
  }

  /* ---------- Commercial ads ---------- */
  .commercial-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 36px;
  }

  .commercial-note svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
  }

  .ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .ad-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }

  .ad-image {
    width: 100%;
    height: 150px;
    display: block;
  }

  .ad-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .ad-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ad-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(184, 135, 59, 0.16);
    color: var(--gold);
    white-space: nowrap;
  }

  .ad-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clay);
  }

  .ad-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .ad-card p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 0 0 18px;
    flex: 1;
  }

  .ad-cta {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    width: 100%;
    justify-content: space-between;
  }

  .ad-cta svg {
    width: 15px;
    height: 15px;
  }

  @media (max-width:720px) {
    .ads-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- Footer ---------- */
  footer {
    background: var(--green-deep);
    color: #C9BE9E;
    padding: 56px 0 34px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;

  }

  .footer-brand .brand-text {
    color: #F3E8CB;
  }

  .footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 34ch;
    color: #B8AD8C;
  }

  footer h4 {
    font-size: 0.85rem;
    color: #F3E8CB;
    margin-bottom: 16px;
    font-family: "Saudi", sans-serif;
    font-weight: 700;
  }

  footer ul li {
    font-size: 0.88rem;
    padding: 6px 0;
    color: #B8AD8C;
  }

  .footer-bottom {
    border-top: 1px solid rgba(237, 227, 200, 0.14);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8E8468;
    flex-wrap: wrap;
    gap: 10px;
  }

  @media (max-width:720px) {
    .footer-grid {
      grid-template-columns: 1fr;
    }
  }

  /* زر تسجيل الدخول  */

  .nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 6px 14px;

    border: 1.5px solid var(--ink-soft);
    border-radius: 999px;

    background: transparent;
    color: var(--green-deep);

    font-family: "Saudi", sans-serif;
    font-size: 15px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    transition: 0.25s ease;
  }

  .nav-login:hover {
    background: var(--green-deep);
    color: var(--bg-alt);
    border-color: var(--green-deep);
  }

  .login-icon {
    width: 24px;
    height: 24px;

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

  .login-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* نهاية زر تسجيل الدخول  */

  /* ========================================
   Events
======================================== */

  .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }


  /* الكارد */

  .event-card {
    background: var(--card);

    border: 1px solid var(--line);
    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;

    transition: transform .25s ease,
      box-shadow .25s ease;
  }


  .event-card:hover {
    transform: translateY(-5px);

    box-shadow:
      0 22px 45px -22px rgba(20, 42, 31, 0.40);
  }


  /* صورة المناسبة */

  .event-image {
    width: 100%;
    height: 250px;

    display: block;

    object-fit: cover;
  }


  /* شريط السدو */

  .event-card .sadu-strip {
    height: 26px;
    opacity: .95;
  }


  /* محتوى الكارد */

  .event-body {
    padding: 28px 30px 30px;

    display: flex;
    flex-direction: column;

    flex: 1;
  }


  /* النوع + التاريخ */

  .event-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 18px;
  }


  /* نوع المناسبة */

  .event-tag {
    font-size: 14px;
    font-weight: 700;

    padding: 7px 16px;

    border-radius: 999px;

    white-space: nowrap;
  }


  .tag-gathering {
    background: rgba(31, 59, 44, .12);
    color: var(--green-deep);
  }

  .tag-wedding {
    background: rgba(184, 135, 59, .16);
    color: var(--gold);
  }

  .tag-condolence {
    background: rgba(92, 84, 68, .14);
    color: var(--ink-soft);
  }

  .tag-holiday {
    background: rgba(156, 74, 40, .14);
    color: var(--clay);
  }


  /* التاريخ */

  .event-date {
    font-family: "Saudi", sans-serif;

    color: var(--ink-soft);

    font-size: 16px;

    white-space: nowrap;
  }


  /* العنوان */

  .event-card h3 {
    color: var(--green-deep);

    font-size: clamp(20px, 2vw, 25px);
    font-weight: 700;

    line-height: 1.5;

    margin: 0 0 10px;
    text-wrap: balance;
  }


  /* الوصف */

  .event-card p {
    color: var(--ink-soft);

    font-size: 17px;
    line-height: 1.8;

    margin: 0 0 24px;
  }


  /* المكان + الوقت */

  .event-details {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: auto;
    margin-bottom: 22px;
  }


  .event-meta {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--ink-soft);

    font-size: 15px;
  }


  .event-meta svg {
    width: 19px;
    height: 19px;

    color: var(--gold);

    flex-shrink: 0;
  }


  /* زر عرض المزيد */

  .event-more {
    align-self: flex-start;

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

    gap: 10px;

    padding: 9px 22px;

    border: 1.5px solid var(--green-deep);
    border-radius: 6px;

    background: transparent;

    color: var(--green-deep);

    font-family: "Saudi", sans-serif;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: .25s ease;
  }


  .event-more:hover {
    background: var(--green-deep);
    color: var(--bg-alt);

    transform: translateY(-2px);
  }


  /* المناسبات السابقة */


  /* الجوال */

  @media (max-width: 860px) {

    .events-grid {
      grid-template-columns: 1fr;
    }

    .event-image {
      height: 220px;
    }
  }

  /* رفع الصورة */

  .field label.file-field {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: var(--bg-alt);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    font-family: "Saudi", sans-serif;
    font-size: 0.92rem;
    font-weight: 400;

    color: var(--ink);

    margin-bottom: 0;

    cursor: pointer;

    transition: .2s ease;
  }

  .field label.file-field:hover {
    border-color: var(--gold);
  }

  .field label.file-field svg {
    width: 20px;
    height: 20px;

    color: var(--green-deep);

    flex-shrink: 0;
  }

  /* صور الاعلانات التجارية */
  /* السلايدر */

  .ads-slider {
    position: relative;

    display: flex;
    align-items: center;

    gap: 18px;

    width: 100%;
  }


  /* المنطقة اللي تتحرك */

  .ads-track {
    display: flex;

    gap: 22px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: none;

    padding: 10px 4px 20px;

    flex: 1;
  }

  .ads-track::-webkit-scrollbar {
    display: none;
  }


  /* الكرت */

  .ad-card {
    flex: 0 0 340px;

    background: var(--card);

    border: 1px solid var(--line);
    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;

    transition: .25s ease;
  }

  .ad-card:hover {
    transform: translateY(-5px);
  }


  /* صورة الإعلان */

  .ad-image {
    width: 100%;
    height: 180px;

    object-fit: cover;

    display: block;
  }


  /* الأسهم */

  .ads-arrow {
    width: 48px;
    height: 48px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--card);

    color: var(--green-deep);

    font-size: 28px;

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

    cursor: pointer;

    flex-shrink: 0;

    transition: .2s ease;
  }

  .ads-arrow:hover {
    background: var(--green-deep);
    color: var(--bg-alt);
  }

  .ad-location {
    margin-top: auto;

    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    background: var(--green-deep);
    color: var(--bg-alt);

    border-radius: 6px;

    font-family: "Saudi", sans-serif;
    font-size: 16px;
    font-weight: 700;

    transition: .2s ease;
  }

  .ad-location svg {
    width: 19px;
    height: 19px;
  }

  .ad-location:hover {
    background: var(--gold);
    transform: translateY(-2px);
  }

  @media (max-width: 720px) {

    .ads-arrow {
      position: absolute;
      top: 50%;

      transform: translateY(-50%);

      width: 38px;
      height: 38px;

      padding: 0;

      border: 1px solid rgba(184, 135, 59, 0.45);
      border-radius: 50%;

      background: var(--bg-alt);
      color: var(--green-deep);

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

      font-size: 18px;
      line-height: 1;

      cursor: pointer;

      box-shadow: 0 6px 18px rgba(20, 42, 31, 0.15);

      z-index: 10;

      transition: 0.25s ease;
    }


    /* السهم الموجود يمين */
    .ads-arrow-right {
      right: 8px;
    }


    /* السهم الموجود يسار */
    .ads-arrow-left {
      left: 8px;
    }


    .ads-arrow:hover {
      background: var(--green-deep);
      border-color: var(--green-deep);
      color: var(--gold-light);
    }
  }

  /* صوره الهوم , الي تتغير الكارد الي في البدايه */

  .hero-slider {
    position: relative;
    width: 520px;
    max-width: 100%;
    height: 520px;

    overflow: hidden;

    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(40px);
    display: flex;
    flex-direction: column;

    transition:
      opacity 0.6s ease,
      transform 0.6s ease,
      visibility 0s linear 0.6s;
  }

  .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .hero-slide img {
    width: 100%;
    height: 300px;
    flex: 0 0 300px;
    object-fit: cover;
  }

  .hero-slide-content {
    position: relative;
    padding: 20px;
    background: rgba(20, 42, 31, 0.88);
    flex: 1;
    color: var(--bg-alt);
    box-sizing: border-box;
    overflow: auto;

    /* Long headlines should wrap cleanly instead of escaping the card. */
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-slide-content span {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 700;
  }

  .hero-slide-content h3 {
    color: white;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.45;
    margin: 6px 0;
    text-wrap: balance;
  }

  .hero-slide-content p {
    margin: 0;
    color: #e5ddc8;
    line-height: 1.65;
  }

  .hero-dots {
    position: absolute;

    bottom: 10px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 7px;

    z-index: 5;
  }

  .dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, .45);

    cursor: pointer;
  }

  .dot.active {
    background: var(--gold);
  }

  .hero-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 16px;
    padding: 10px 18px;

    background: var(--gold);
    color: #fff;

    border-radius: 8px;

    font-family: "Saudi", sans-serif;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.25s ease;
  }

  .hero-more-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
  }

  .hero-more-arrow {
    transition: transform 0.25s ease;
  }

  .hero-more-btn:hover .hero-more-arrow {
    transform: translateX(-4px);
  }

  @media (max-width: 860px) {

    /* الكارد كامل */
    .hero-slider {
      width: calc(100vw - 32px);
      max-width: 420px;

      height: 430px;

      margin-left: auto;
      margin-right: auto;

      border-radius: 16px;

      box-sizing: border-box;
    }


    /* مربع النص الأخضر داخل الصورة */
    .hero-slide-content {
      right: 14px;
      left: 14px;
      bottom: 18px;

      padding: 16px;

      max-width: calc(100% - 28px);

      border-radius: 10px;
    }


    /* العنوان */
    .hero-slide-content h3 {
      font-size: 20px;

      line-height: 1.5;

      margin: 5px 0;
    }


    /* النص الصغير */
    .hero-slide-content span {
      font-size: 12px;
    }


    /* الوصف */
    .hero-slide-content p {
      font-size: 14px;

      line-height: 1.7;
    }


    /* زر قراءة المزيد */
    .hero-more-btn {
      margin-top: 12px;

      padding: 9px 15px;

      font-size: 13px;
    }

    .hero-dots {
      bottom: 4px;
    }

  }

  /* ==================================================
   فريق الموقع
================================================== */

  .team-section {
    background: var(--bg-alt);
  }


  /* =========================
   عنوان القسم
========================= */

  .team-section-head {
    max-width: 760px;

    margin: 0 0 42px auto;

    text-align: right;
  }


  .team-eyebrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 14px;

    color: var(--gold);

    font-size: 0.88rem;
    font-weight: 700;

    margin-bottom: 18px;
  }

  .team-eyebrow::before {
    content: "";

    width: 22px;
    height: 1px;

    background: var(--gold);

    flex-shrink: 0;
  }

  .team-eyebrow::after {
    display: none;
  }


  /* العنوان الرئيسي */

  .team-section-head h2 {
    color: var(--green-deep);

    font-size: clamp(1.9rem, 3.4vw, 2.5rem);

    margin: 0 0 12px;

    line-height: 1.4;
  }


  /* الوصف */

  .team-section-head p {
    color: var(--ink-soft);

    font-size: 1rem;

    margin: 0;

    line-height: 1.8;
  }


  /* ==================================================
   السلايدر
================================================== */

  .team-slider {
    position: relative;

    width: 100%;
    max-width: 350px;
    height: 330px;

    margin: 0 auto;

    overflow: hidden;
  }


  /* ==================================================
   الكارد
================================================== */

  .team-card {
    position: absolute;
    inset: 0;

    opacity: 0;
    transform: translateX(40px) scale(.97);
    pointer-events: none;

    background: var(--green-deep);

    border: 1px solid rgba(184, 135, 59, .45);
    border-top: 3px solid var(--gold);

    border-radius: 22px;

    padding: 24px 28px 42px;

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

    text-align: center;

    transition:
      opacity .55s ease,
      transform .55s ease;
  }


  /* الكارد الظاهر */

  .team-card.active {
    opacity: 1;

    transform: translateX(0) scale(1);

    pointer-events: auto;

    z-index: 2;
  }


  /* ==================================================
   صورة / أيقونة المستخدم
================================================== */

  .team-avatar {
    width: 76px;
    height: 76px;

    min-width: 76px;
    min-height: 76px;

    /* مهم جدًا: يمنعها تصير بيضاوية */
    flex: 0 0 76px;
    aspect-ratio: 1 / 1;

    border: 2px solid var(--gold);
    border-radius: 50%;

    overflow: hidden;

    padding: 0;
    box-sizing: border-box;

    display: block;

    margin: 0 auto 18px;
  }

  .team-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
  }


  /* ==================================================
   اسم العضو
================================================== */

  .team-card h3 {
    color: #F3E8CB;

    font-size: 26px;
    font-weight: 700;

    margin: 0 0 6px;
  }


  /* ==================================================
   الوظيفة
================================================== */

  .team-role {
    color: #C9BE9E;

    font-size: 16px;

    margin: 0 0 22px;
  }


  /* ==================================================
   المهارات
================================================== */

  .team-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;

    margin-bottom: 20px;
  }


  .team-tags span {
    padding: 7px 14px;

    border: 1px solid rgba(217, 174, 99, .35);

    border-radius: 7px;

    color: #EDE3C8;

    font-size: 13px;
  }


  /* أول مهارة */

  .team-tags span:first-child {
    border-color: var(--gold);

    color: var(--gold-light);

    background: rgba(184, 135, 59, .10);
  }


  /* ==================================================
   زر التواصل
================================================== */

  .team-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;

    margin-top: auto;

    border: 1px solid #C9BE9E;

    border-radius: 999px;

    background: transparent;

    color: #F3E8CB;
    text-decoration: none;

    font-family: "Saudi", sans-serif;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
      background .25s ease,
      border-color .25s ease,
      color .25s ease;
  }


  .team-more:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: var(--green-deep);
  }


  /* ==================================================
   النقاط
================================================== */

  .team-dots {
    position: absolute;

    bottom: 5px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

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

    gap: 8px;

    z-index: 10;
  }


  .team-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(243, 232, 203, .35);

    cursor: pointer;

    transition:
      width .25s ease,
      background .25s ease;
  }


  .team-dot.active {
    width: 26px;

    border-radius: 999px;

    background: var(--gold);
  }


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

  @media (max-width: 600px) {

    .team-section-head {
      margin-bottom: 32px;
    }


    .team-section-head h2 {
      font-size: 1.8rem;
    }


    .team-section-head p {
      font-size: .92rem;
    }


    .team-slider {
      max-width: 350px;
      height: 310px;
    }


    .team-card {
      padding:
        32px 22px 52px;
    }


    .team-avatar {
      width: 68px;
      height: 68px;

      min-width: 68px;
      min-height: 68px;
    }


    .team-avatar svg {
      width: 30px;
      height: 30px;
    }


    .team-card h3 {
      font-size: 25px;
    }

    .team-dots {
      bottom: 4px;
    }

  }

  /* نهاية قسم الاعضاء  */


  /* حساب الانستقرام  */

  .instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: inherit;
    text-decoration: none;

    transition: .25s ease;
  }

  .instagram-icon {
    width: 20px;
    height: 20px;

    color: var(--gold-light);
  }

  .instagram-link:hover {
    color: var(--gold-light);
  }

  .instagram-link:hover .instagram-icon {
    color: var(--gold-light);
  }

  /*  نهايه التصميم حق الانستقرام */

  .content-image-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    min-height: 190px;
    padding: 0;
    background: #eee7d8
  }

  .content-image-gallery img {
    flex: 0 0 78%;
    width: 78%;
    height: 220px;
    object-fit: cover;
    display: block;
    scroll-snap-align: start;
    border-radius: 0
  }

  .event-card>.content-image-gallery {
    height: 220px;
    min-height: 220px
  }

  .event-card>.content-image-gallery img {
    height: 220px
  }

  .ad-card>.content-image-gallery {
    height: 150px;
    min-height: 150px
  }

  .ad-card>.content-image-gallery img {
    height: 150px
  }

  .ann-gallery {
    margin-top: 10px;
    min-height: 90px;
    background: transparent;
    border-radius: 10px
  }

  .ann-gallery img {
    flex-basis: 42%;
    width: 42%;
    height: 100px;
    border-radius: 10px
  }

  #bookingImages {
    padding: 10px;
    background: #fff
  }

  @media(max-width:640px) {
    .content-image-gallery img {
      flex-basis: 88%;
      width: 88%
    }

    .ann-gallery img {
      flex-basis: 70%;
      width: 70%
    }
  }


  .commercial-booking-options {
    margin: 15px 0;
    padding: 14px;
    border: 1px solid #d9ae63;
    border-radius: 12px;
    background: #fffaf0
  }

  .commercial-title {
    font-weight: 700;
    margin-bottom: 10px
  }

  .commercial-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
  }

  .commercial-icons button {
    border: 1px solid #1f3b2c;
    background: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer
  }

  /* Consistent, spacious image frames for all homepage cards. */
  .event-card > .event-image,
  .event-card > .content-image-gallery {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .event-card > .event-image {
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .ad-card > .ad-image,
  .ad-card > .content-image-gallery {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ad-card > .ad-image {
    display: block;
    object-fit: cover;
    object-position: center;
  }

  /* Fill the fixed frame without stretching; the admin-selected focal point controls the crop. */
  .event-card > .content-image-gallery img,
  .ad-card > .content-image-gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Database-backed image slider inside the existing commercial card frame. */
  .content-image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eee7d8;
  }

  .ad-card > .content-image-slider {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .content-image-slides {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .content-image-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
  }

  .content-image-slide.is-active {
    opacity: 1;
    visibility: visible;
  }

  .content-slider-dots {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 9px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    direction: ltr;
  }

  .content-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: rgba(20,42,31,.45);
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
    cursor: pointer;
  }

  .content-slider-dot.is-active {
    background: #fff;
    transform: scale(1.18);
  }

  .ann-image {
    display: block;
    width: min(240px, 100%);
    height: 120px;
    margin-top: 10px;
    border-radius: 10px;
    object-fit: cover;
  }

  @media (prefers-reduced-motion: reduce) {
    .content-image-slide { transition: none; }
  }
