      :root {
        --cream: #f6f3ec;
        --paper: #fffefb;
        --ink: #10211f;
        --muted: #566560;
        --brand: #005460; /* لون اللوجو */
        --brand-d: #063a40;
        --brand-2: #0c8079;
        --brand-3: #13a89c;
        --brand-soft: #e7f0ef;
        --sand: #c9a86a; /* لمسة تراثية دافئة */
        --sand-soft: #f1e9d8;
        --line: #e7e0d3;
        --shadow:
          0 2px 4px rgba(16, 33, 31, 0.04), 0 18px 44px rgba(16, 33, 31, 0.07);
        --r: 16px;
      }
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        font-family: 'Tajawal', system-ui, sans-serif;
        background: var(--cream);
        color: var(--ink);
        line-height: 1.85;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
      }
      a {
        text-decoration: none;
        color: inherit;
      }
      img {
        max-width: 100%;
        display: block;
      }
      svg {
        display: block;
      }
      .wrap {
        max-width: 1160px;
        margin: 0 auto;
        padding: 0 24px;
      }
      .serif {
        font-family: 'Amiri', serif;
      }
      .brand {
        color: var(--brand);
      }
      .sandc {
        color: var(--sand);
      }

      .progress-bar {
        position: fixed;
        top: 0;
        right: 0;
        height: 3px;
        width: 0;
        background: linear-gradient(90deg, var(--sand), var(--brand));
        z-index: 100;
        transition: width 0.1s;
      }
      [data-r] {
        opacity: 0;
        transform: translateY(26px);
        transition: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
      }
      [data-r].in {
        opacity: 1;
        transform: none;
      }
      [data-d='1'] {
        transition-delay: 0.1s;
      }
      [data-d='2'] {
        transition-delay: 0.2s;
      }
      [data-d='3'] {
        transition-delay: 0.3s;
      }

      /* top bar */
      .topbar {
        background: var(--brand-d);
        color: #cfe2e0;
        font-size: 0.85rem;
      }
      .topbar .wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 42px;
        gap: 14px;
        flex-wrap: wrap;
      }
      .topbar a,
      .topbar .loc {
        color: #cfe2e0;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        transition: color 0.2s;
      }
      .topbar a:hover {
        color: #fff;
      }
      .topbar svg {
        width: 15px;
        height: 15px;
        opacity: 0.85;
      }
      .topbar .t-left {
        display: flex;
        gap: 20px;
      }
      .topbar .t-right {
        display: flex;
        gap: 16px;
        align-items: center;
      }

      /* header */
      header {
        position: sticky;
        top: 0;
        z-index: 60;
        background: rgba(246, 243, 236, 0.88);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid transparent;
        transition: 0.3s;
      }
      header.scrolled {
        border-color: var(--line);
        box-shadow: 0 4px 20px rgba(16, 33, 31, 0.05);
      }
      .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 76px;
        gap: 14px;
      }
      .logo img {
        height: 42px;
      }
      .menu {
        display: flex;
        align-items: center;
        gap: 20px;
      }
      .menu > li {
        list-style: none;
        position: relative;
      }
      .menu > li > a {
        color: var(--ink);
        font-weight: 600;
        font-size: 0.92rem;
        transition: 0.25s;
        display: inline-flex;
        gap: 5px;
        align-items: center;
        position: relative;
        white-space: nowrap;
      }
      .menu > li > a::after {
        content: "";
        position: absolute;
        bottom: -4px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--brand);
        transition: width 0.3s;
      }
      .menu > li > a:hover {
        color: var(--brand);
      }
      .menu > li > a:hover::after,
      .menu > li > a.active::after {
        width: 100%;
      }
      .menu > li > a.active {
        color: var(--brand);
      }
      .caret {
        width: 7px;
        height: 7px;
        border-right: 1.6px solid currentColor;
        border-bottom: 1.6px solid currentColor;
        transform: rotate(45deg);
        margin-top: -3px;
        opacity: 0.6;
      }
      .submenu {
        position: absolute;
        top: 130%;
        right: 0;
        min-width: 220px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: 0.25s;
      }
      .menu > li:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }
      .submenu a {
        display: block;
        padding: 9px 14px;
        border-radius: 9px;
        font-size: 0.92rem;
        color: var(--muted);
        font-weight: 500;
      }
      .submenu a:hover {
        background: var(--brand-soft);
        color: var(--brand);
      }
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        font-family: inherit;
        font-weight: 700;
        padding: 13px 26px;
        border-radius: 10px;
        cursor: pointer;
        border: none;
        transition: 0.3s;
        font-size: 0.95rem;
      }
      .btn svg {
        width: 17px;
        height: 17px;
      }
      .btn-brand {
        background: var(--brand);
        color: #fff;
        box-shadow: 0 8px 20px rgba(0, 84, 96, 0.22);
      }
      .btn-brand:hover {
        background: var(--brand-d);
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0, 84, 96, 0.3);
      }
      .btn-outline {
        background: transparent;
        border: 1.5px solid var(--brand);
        color: var(--brand);
      }
      .btn-outline:hover {
        background: var(--brand);
        color: #fff;
      }
      .btn-sand {
        background: var(--sand);
        color: #fff;
      }
      .btn-sand:hover {
        background: #b8965a;
        transform: translateY(-2px);
      }
      .hamb {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
      }
      .hamb span {
        width: 25px;
        height: 2.5px;
        background: var(--ink);
        border-radius: 9px;
        transition: 0.3s;
      }
      .hamb.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }
      .hamb.open span:nth-child(2) {
        opacity: 0;
      }
      .hamb.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }

      /* hero */
      .hero {
        position: relative;
        padding: 74px 0 72px;
        overflow: hidden;
      }
      .hero-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 52px;
        align-items: center;
        position: relative;
        z-index: 2;
      }
      .ornament {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        color: var(--sand);
        font-weight: 700;
        font-size: 0.9rem;
        margin-bottom: 22px;
      }
      .ornament::before,
      .ornament::after {
        content: '';
        width: 28px;
        height: 1.5px;
        background: linear-gradient(90deg, transparent, var(--sand));
      }
      .ornament::after {
        background: linear-gradient(90deg, var(--sand), transparent);
      }
      .hero h1 {
        font-size: clamp(2.3rem, 5.2vw, 3.7rem);
        line-height: 1.25;
        font-weight: 800;
        letter-spacing: -0.4px;
        margin-bottom: 20px;
      }
      .hero h1 .serif {
        color: var(--brand);
        font-weight: 700;
      }
      .hero p.lead {
        font-size: 1.16rem;
        color: var(--muted);
        max-width: 520px;
        margin-bottom: 30px;
      }
      .hero-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 34px;
      }
      .hero-meta {
        display: flex;
        gap: 14px;
        align-items: center;
        color: var(--muted);
        font-size: 0.95rem;
      }
      .avatars {
        display: flex;
      }
      .avatars i {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 2.5px solid var(--cream);
        margin-left: -12px;
        background: var(--sand-soft);
        display: grid;
        place-items: center;
        font-weight: 800;
        color: var(--brand);
        font-style: normal;
        font-size: 0.85rem;
      }

      .hero-art {
        position: relative;
      }
      .hero-frame {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 12px;
        box-shadow: var(--shadow);
        position: relative;
      }
      .hero-frame::before {
        content: '';
        position: absolute;
        inset: 7px;
        border: 1.5px solid var(--sand);
        border-radius: 18px;
        opacity: 0.4;
        pointer-events: none;
        z-index: 3;
      }
      .hero-frame .ph {
        border-radius: 18px;
        overflow: hidden;
        aspect-ratio: 4/3.4;
        position: relative;
      }
      .hero-frame .ph img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .hero-frame .ph::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
          180deg,
          transparent 45%,
          rgba(0, 84, 96, 0.55)
        );
      }
      .hero-frame .cap {
        position: absolute;
        bottom: 24px;
        right: 24px;
        left: 24px;
        color: #fff;
        z-index: 2;
      }
      .hero-frame .cap .serif {
        font-size: 1.4rem;
      }
      .seal {
        position: absolute;
        bottom: -22px;
        right: -18px;
        width: 92px;
        height: 92px;
        border-radius: 50%;
        background: var(--sand);
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-align: center;
        font-weight: 800;
        font-size: 0.72rem;
        line-height: 1.25;
        box-shadow: 0 12px 30px rgba(201, 168, 106, 0.45);
        animation: spin 26s linear infinite;
        z-index: 4;
      }
      .seal svg {
        width: 16px;
        height: 16px;
      }
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      /* partners */
      .partners {
        background: var(--paper);
        border-block: 1px solid var(--line);
      }
      .partners .wrap {
        padding: 34px 24px;
      }
      .partners .lbl {
        text-align: center;
        color: var(--muted);
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 20px;
      }
      .plogos {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 42px;
        flex-wrap: wrap;
      }
      .plogos img {
        height: 46px;
        width: auto;
        filter: grayscale(1);
        opacity: 0.6;
        transition: 0.3s;
      }
      .plogos img:hover {
        filter: grayscale(0);
        opacity: 1;
      }

      /* values strip */
      .values {
        background: var(--brand);
        color: #fff;
      }
      .values-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 42px 0;
      }
      .value {
        display: flex;
        gap: 14px;
        align-items: flex-start;
      }
      .value .ic {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.12);
        display: grid;
        place-items: center;
        color: #fff;
      }
      .value h4 {
        font-size: 1.02rem;
        margin-bottom: 2px;
      }
      .value p {
        font-size: 0.85rem;
        color: #bfdcd9;
        line-height: 1.6;
      }

      /* section */
      .sec {
        padding: 92px 0;
        position: relative;
      }
      .sec-head {
        text-align: center;
        max-width: 640px;
        margin: 0 auto 50px;
      }
      .sec-head .ornament {
        justify-content: center;
        display: flex;
      }
      .sec-head h2 {
        font-size: clamp(1.9rem, 4vw, 2.7rem);
        font-weight: 800;
        letter-spacing: -0.4px;
        margin-bottom: 12px;
      }
      .sec-head h2 .serif {
        color: var(--brand);
      }
      .sec-head p {
        color: var(--muted);
        font-size: 1.06rem;
      }

      /* tabs + courses */
      .tabs {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 40px;
      }
      .tab {
        padding: 11px 22px;
        border-radius: 99px;
        border: 1.5px solid var(--line);
        background: var(--paper);
        font-family: inherit;
        font-weight: 700;
        color: var(--muted);
        cursor: pointer;
        transition: 0.3s;
        font-size: 0.93rem;
      }
      .tab:hover {
        border-color: var(--brand);
        color: var(--brand);
      }
      .tab.active {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
        box-shadow: 0 8px 20px rgba(0, 84, 96, 0.22);
      }
      .courses {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
      }
      .course {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--r);
        overflow: hidden;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
      }
      .course:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow);
        border-color: #d8cfbe;
      }
      .course .thumb {
        position: relative;
        aspect-ratio: 16/10;
        overflow: hidden;
        background: var(--brand-soft);
      }
      .course .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .course:hover .thumb img {
        transform: scale(1.07);
      }
      .course .thumb::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
          180deg,
          rgba(0, 84, 96, 0.05) 40%,
          rgba(6, 58, 64, 0.5)
        );
      }
      .course .cat {
        position: absolute;
        top: 14px;
        right: 14px;
        background: rgba(255, 255, 255, 0.94);
        color: var(--brand);
        font-size: 0.72rem;
        font-weight: 800;
        padding: 5px 13px;
        border-radius: 99px;
        z-index: 2;
        box-shadow: 0 4px 12px rgba(0, 40, 40, 0.12);
      }
      .course .ic {
        position: absolute;
        bottom: 14px;
        left: 14px;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        background: var(--brand);
        display: grid;
        place-items: center;
        color: #fff;
        box-shadow: 0 10px 22px rgba(0, 84, 96, 0.32);
        transition: 0.4s;
        z-index: 3;
      }
      .course:hover .ic {
        background: var(--sand);
        transform: rotate(-6deg);
      }
      .course .ic svg {
        width: 26px;
        height: 26px;
      }
      .course .body {
        padding: 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
      }
      .course h3 {
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 8px;
      }
      .course p {
        color: var(--muted);
        font-size: 0.93rem;
        flex: 1;
        margin-bottom: 16px;
      }
      .course .info {
        display: flex;
        gap: 16px;
        color: var(--muted);
        font-size: 0.82rem;
        margin-bottom: 16px;
        flex-wrap: wrap;
      }
      .course .info span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }
      .course .info svg {
        width: 15px;
        height: 15px;
        color: var(--brand-3);
      }
      .course .meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px dashed var(--line);
        font-size: 0.88rem;
      }
      .course .price {
        font-weight: 800;
        color: var(--brand);
        font-size: 1.08rem;
      }
      .course .meta a {
        color: var(--brand);
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: gap 0.25s;
      }
      .course .meta a svg {
        width: 15px;
        height: 15px;
      }
      .course:hover .meta a {
        gap: 11px;
      }
      .course.hide {
        display: none;
      }

      /* about split */
      .split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid var(--line);
        background: var(--paper);
        box-shadow: var(--shadow);
      }
      .split .left {
        padding: 54px 46px;
      }
      .split .left h3 {
        font-size: 1.85rem;
        font-weight: 800;
        margin-bottom: 14px;
        line-height: 1.35;
      }
      .split .left > p {
        color: var(--muted);
        margin-bottom: 24px;
      }
      .split .right {
        position: relative;
        min-height: 100%;
      }
      .split .right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
      }
      .split .right .ov {
        position: absolute;
        inset: 0;
        background: linear-gradient(
          160deg,
          rgba(0, 84, 96, 0.55),
          rgba(6, 58, 64, 0.78)
        );
        display: grid;
        place-items: center;
        padding: 46px;
      }
      .split .right .quote {
        position: relative;
        color: #fff;
        text-align: center;
      }
      .split .right .quote .mark {
        font-family: 'Amiri', serif;
        font-size: 5rem;
        line-height: 0.4;
        opacity: 0.45;
      }
      .split .right .quote p {
        font-family: 'Amiri', serif;
        font-size: 1.5rem;
        line-height: 1.7;
        margin: 10px 0 16px;
      }
      .split .right .quote .by {
        font-size: 0.9rem;
        color: var(--sand-soft);
        font-weight: 600;
      }

      /* accordion */
      .acc {
        display: grid;
        gap: 12px;
      }
      .acc-item {
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--paper);
        overflow: hidden;
        transition: 0.3s;
      }
      .acc-item.open {
        border-color: var(--brand);
        box-shadow: var(--shadow);
      }
      .acc-q {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 18px 22px;
        background: none;
        border: none;
        font-family: inherit;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink);
        cursor: pointer;
        text-align: right;
      }
      .acc-q .plus {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--sand-soft);
        color: var(--brand);
        display: grid;
        place-items: center;
        transition: 0.3s;
      }
      .acc-q .plus svg {
        width: 15px;
        height: 15px;
      }
      .acc-item.open .plus {
        background: var(--brand);
        color: #fff;
        transform: rotate(180deg);
      }
      .acc-a {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .acc-a p {
        padding: 0 22px 20px;
        color: var(--muted);
      }

      /* platform features */
      .feat-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
      }
      .feat {
        padding: 30px 24px;
        border-radius: var(--r);
        background: var(--paper);
        border: 1px solid var(--line);
        transition: 0.35s;
        text-align: center;
      }
      .feat:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        border-color: var(--brand-soft);
      }
      .feat .ic {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        background: var(--brand-soft);
        color: var(--brand);
        display: grid;
        place-items: center;
        margin: 0 auto 16px;
      }
      .feat h4 {
        font-size: 1.08rem;
        margin-bottom: 6px;
      }
      .feat p {
        color: var(--muted);
        font-size: 0.9rem;
      }

      /* solutions */
      .sol-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
      }
      .sol {
        display: flex;
        gap: 18px;
        padding: 26px;
        border: 1px solid var(--line);
        border-radius: var(--r);
        background: var(--paper);
        transition: 0.35s;
      }
      .sol:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
        border-color: #d8cfbe;
      }
      .sol .ic {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 13px;
        background: var(--brand-soft);
        color: var(--brand);
        display: grid;
        place-items: center;
        transition: 0.35s;
      }
      .sol:hover .ic {
        background: var(--sand-soft);
        color: var(--sand);
      }
      .sol h4 {
        font-size: 1.12rem;
        margin-bottom: 6px;
      }
      .sol p {
        color: var(--muted);
        font-size: 0.92rem;
      }

      /* more training fields */
      .fields {
        margin-top: 44px;
        text-align: center;
      }
      .fields .lbl {
        color: var(--muted);
        font-size: 0.92rem;
        font-weight: 600;
        margin-bottom: 16px;
      }
      .fields .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
      }
      .fields .chip {
        background: var(--paper);
        border: 1px solid var(--line);
        color: var(--ink);
        font-weight: 600;
        font-size: 0.88rem;
        padding: 9px 18px;
        border-radius: 99px;
        transition: 0.3s;
        cursor: default;
      }
      .fields .chip:hover {
        border-color: var(--brand);
        color: var(--brand);
        background: var(--brand-soft);
      }

      /* news / media center */
      .news {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
      }
      .news-card {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--r);
        overflow: hidden;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
      }
      .news-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow);
        border-color: #d8cfbe;
      }
      .news-card .ph {
        aspect-ratio: 16/10;
        overflow: hidden;
        position: relative;
      }
      .news-card .ph img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .news-card:hover .ph img {
        transform: scale(1.07);
      }
      .news-card .ph::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
          180deg,
          rgba(0, 84, 96, 0) 55%,
          rgba(6, 58, 64, 0.35)
        );
      }
      .news-card .date {
        position: absolute;
        top: 14px;
        right: 14px;
        background: var(--brand);
        color: #fff;
        border-radius: 12px;
        padding: 8px 12px;
        text-align: center;
        line-height: 1.05;
        z-index: 2;
        box-shadow: 0 6px 16px rgba(0, 84, 96, 0.3);
      }
      .news-card .date b {
        display: block;
        font-size: 1.2rem;
        font-weight: 800;
      }
      .news-card .date span {
        font-size: 0.68rem;
        opacity: 0.9;
      }
      .news-card .b {
        padding: 22px;
        flex: 1;
        display: flex;
        flex-direction: column;
      }
      .news-card .k {
        font-size: 0.74rem;
        font-weight: 800;
        color: var(--sand);
        letter-spacing: 0.4px;
        margin-bottom: 8px;
      }
      .news-card h4 {
        font-size: 1.12rem;
        font-weight: 800;
        margin-bottom: 8px;
        line-height: 1.45;
      }
      .news-card p {
        color: var(--muted);
        font-size: 0.9rem;
        flex: 1;
        margin-bottom: 14px;
      }
      .news-card .more {
        color: var(--brand);
        font-weight: 700;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: gap 0.25s;
      }
      .news-card .more svg {
        width: 15px;
        height: 15px;
      }
      .news-card:hover .more {
        gap: 11px;
      }

      /* footer hours strip */
      .hours-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 24px 0;
        margin-top: 8px;
        border-top: 1px dashed var(--line);
      }
      .hi {
        display: flex;
        gap: 13px;
        align-items: center;
      }
      .hi .clk {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        background: var(--brand-soft);
        color: var(--brand);
        display: grid;
        place-items: center;
      }
      .hi .clk svg {
        width: 20px;
        height: 20px;
      }
      .hi b {
        display: block;
        font-size: 0.94rem;
        color: var(--ink);
        margin-bottom: 2px;
      }
      .hi span {
        font-size: 0.87rem;
        color: var(--muted);
      }
      .hi .closed {
        color: #b9755f;
        font-weight: 700;
      }
      .foot-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
        padding-top: 24px;
        border-top: 1px solid var(--line);
      }
      .foot-links a {
        color: var(--muted);
        font-size: 0.88rem;
        transition: 0.2s;
      }
      .foot-links a:hover {
        color: var(--sand);
      }

      /* registration form */
      .reg {
        display: grid;
        grid-template-columns: 0.92fr 1.08fr;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        background: var(--paper);
      }
      .reg-info {
        background: linear-gradient(160deg, var(--brand), var(--brand-d));
        color: #fff;
        padding: 50px 42px;
        position: relative;
        overflow: hidden;
      }
      .reg-info .pat {
        position: absolute;
        inset: 0;
        opacity: 0.08;
        background-image:
          radial-gradient(circle at 25% 20%, var(--sand) 2px, transparent 3px),
          radial-gradient(circle at 75% 70%, #fff 2px, transparent 3px);
        background-size: 54px 54px;
      }
      .reg-info > * {
        position: relative;
      }
      .reg-info .ornament {
        color: var(--sand);
      }
      .reg-info h3 {
        font-size: 1.7rem;
        font-weight: 800;
        margin-bottom: 12px;
        line-height: 1.35;
      }
      .reg-info > p {
        color: #bfdcd9;
        margin-bottom: 26px;
      }
      .reg-info ul {
        list-style: none;
        display: grid;
        gap: 15px;
      }
      .reg-info li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        font-weight: 500;
      }
      .reg-info li svg {
        width: 22px;
        height: 22px;
        color: var(--sand);
        flex-shrink: 0;
        margin-top: 2px;
      }
      .reg-form {
        padding: 46px 42px;
        display: grid;
        gap: 16px;
        align-content: start;
      }
      .reg-form .two {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
      }
      .field {
        display: grid;
        gap: 7px;
      }
      .field label {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--ink);
      }
      .field input,
      .field select {
        font-family: inherit;
        font-size: 0.95rem;
        padding: 13px 16px;
        border: 1.5px solid var(--line);
        border-radius: 10px;
        background: var(--cream);
        color: var(--ink);
        transition: 0.25s;
        width: 100%;
      }
      .field select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23566560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 16px center;
      }
      .field input:focus,
      .field select:focus {
        outline: none;
        border-color: var(--brand);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0, 84, 96, 0.1);
      }
      .agree {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        font-size: 0.9rem;
        color: var(--muted);
        cursor: pointer;
      }
      .agree input {
        width: 18px;
        height: 18px;
        margin-top: 4px;
        accent-color: var(--brand);
        flex-shrink: 0;
      }
      .agree a {
        color: var(--brand);
        font-weight: 700;
      }
      .reg-form .btn {
        justify-content: center;
        margin-top: 4px;
      }
      .reg-ok {
        display: none;
        background: var(--brand-soft);
        border: 1px solid var(--brand-3);
        color: var(--brand-d);
        padding: 14px 16px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.92rem;
        align-items: center;
        gap: 10px;
      }
      .reg-ok.show {
        display: flex;
      }
      .reg-ok svg {
        width: 20px;
        height: 20px;
        color: var(--brand);
        flex-shrink: 0;
      }

      /* CTA */
      .cta {
        padding: 92px 0;
      }
      .cta-box {
        background: var(--brand-d);
        border-radius: 28px;
        padding: 66px 50px;
        text-align: center;
        color: #fff;
        position: relative;
        overflow: hidden;
      }
      .cta-box .pattern2 {
        position: absolute;
        inset: 0;
        opacity: 0.1;
        background-image:
          radial-gradient(circle at 20% 30%, var(--sand) 2px, transparent 3px),
          radial-gradient(circle at 70% 60%, #fff 2px, transparent 3px);
        background-size: 58px 58px;
      }
      .cta-box .ornament {
        justify-content: center;
        display: flex;
        color: var(--sand);
      }
      .cta-box > * {
        position: relative;
      }
      .cta-box h2 {
        font-size: clamp(1.9rem, 4vw, 2.8rem);
        font-weight: 800;
        margin-bottom: 14px;
      }
      .cta-box h2 .serif {
        color: var(--sand);
      }
      .cta-box p {
        color: #bfdcd9;
        font-size: 1.1rem;
        max-width: 540px;
        margin: 0 auto 30px;
      }

      /* footer */
      footer {
        background: var(--paper);
        border-top: 1px solid var(--line);
        padding: 64px 0 32px;
      }
      .foot-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 40px;
        margin-bottom: 44px;
      }
      .foot-grid img.flogo {
        height: 50px;
        margin-bottom: 16px;
      }
      .foot-grid h5 {
        font-size: 0.92rem;
        margin-bottom: 16px;
        color: var(--brand);
        font-weight: 800;
      }
      .foot-grid ul {
        list-style: none;
        display: grid;
        gap: 10px;
      }
      .foot-grid ul a {
        color: var(--muted);
        font-weight: 500;
        transition: 0.2s;
      }
      .foot-grid ul a:hover {
        color: var(--sand);
      }
      .foot-about p {
        color: var(--muted);
        margin-bottom: 14px;
        max-width: 300px;
      }
      .foot-contact div {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        color: var(--muted);
        margin-bottom: 10px;
        font-size: 0.93rem;
      }
      .foot-contact div svg {
        width: 17px;
        height: 17px;
        color: var(--brand);
        flex-shrink: 0;
        margin-top: 3px;
      }
      .fsoc {
        display: flex;
        gap: 10px;
        margin-top: 8px;
      }
      .fsoc a {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: var(--brand-soft);
        color: var(--brand);
        display: grid;
        place-items: center;
        transition: 0.25s;
      }
      .fsoc a svg {
        width: 18px;
        height: 18px;
      }
      .fsoc a:hover {
        background: var(--brand);
        color: #fff;
        transform: translateY(-2px);
      }
      .foot-bottom {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
        padding-top: 26px;
        border-top: 1px solid var(--line);
        color: var(--muted);
        font-size: 0.9rem;
      }

      @media (max-width: 920px) {
        .hero-grid {
          grid-template-columns: 1fr;
          gap: 56px;
        }
        .hero-art {
          max-width: 440px;
        }
        .values-row,
        .feat-grid {
          grid-template-columns: 1fr 1fr;
        }
        .courses {
          grid-template-columns: 1fr 1fr;
        }
        .split {
          grid-template-columns: 1fr;
        }
        .split .right {
          min-height: 300px;
        }
        .foot-grid {
          grid-template-columns: 1fr 1fr;
        }
        .sol-grid {
          grid-template-columns: 1fr;
        }
        .news {
          grid-template-columns: 1fr 1fr;
        }
      }
      @media (max-width: 1080px) {
        .menu {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          flex-direction: column;
          align-items: stretch;
          background: var(--cream);
          padding: 20px;
          gap: 4px;
          border-bottom: 1px solid var(--line);
          box-shadow: var(--shadow);
          opacity: 0;
          visibility: hidden;
          transform: translateY(-8px);
          transition:
            opacity 0.28s,
            transform 0.28s,
            visibility 0.28s;
          max-height: 80vh;
          overflow: auto;
        }
        .menu.open {
          opacity: 1;
          visibility: visible;
          transform: none;
        }
        .menu > li > a {
          padding: 13px 10px;
          font-size: 1rem;
        }
        .menu > li > a::after {
          display: none;
        }
        .submenu {
          position: static;
          opacity: 1;
          visibility: visible;
          transform: none;
          box-shadow: none;
          border: none;
          background: transparent;
          padding: 0 0 8px;
        }
        .menu .btn {
          justify-content: center;
          margin-top: 8px;
        }
        .menu .caret {
          margin-right: auto;
        }
        .hamb {
          display: flex;
        }
      }
      @media (max-width: 640px) {
        .topbar .t-left {
          display: none;
        }
        .values-row,
        .courses,
        .feat-grid,
        .news,
        .hours-strip {
          grid-template-columns: 1fr;
        }
        .reg {
          grid-template-columns: 1fr;
        }
        .reg-form .two {
          grid-template-columns: 1fr;
        }
        .foot-grid {
          grid-template-columns: 1fr;
        }
        .split .left {
          padding: 40px 24px;
        }
        .cta-box {
          padding: 48px 22px;
        }
      }

/* ===== إضافات الدمج مع الموقع الحقيقي ===== */
/* زرار واتساب عائم — نفس الكلاس القديم بشكل متناسق مع الهوية الجديدة */
.whatsapp_float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: 0.3s;
}
.whatsapp_float:hover { transform: translateY(-3px) scale(1.05); }
.whatsapp_float svg { width: 30px; height: 30px; }
@media (max-width: 767px) {
  .whatsapp_float { width: 50px; height: 50px; bottom: 18px; left: 18px; }
}

/* recaptcha جوه الفورم */
.reg-form .g-recaptcha { margin-bottom: 18px; }

/* بادج نمط الدورة التاني (مدمج/أونلاين) على الكارت */
.course .thumb .cat.alt { right: auto; left: 14px; background: var(--brand-2); }

/* لينك الشروط جوه الفورم */
.reg-form .terms-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
}
.reg-form .terms-link:hover { color: var(--brand-d); }

/* رسالة نجاح/خطأ راجعة من المعالجة */
.form-msg { margin-bottom: 14px; font-weight: 700; color: var(--brand); }

/* شريط الأرقام (count_pro) */
.stats-band {
  background: var(--brand-d);
  border-radius: var(--r);
  padding: 38px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 26px;
  margin-top: 46px;
}
.stats-band .st { text-align: center; color: #cfe2e0; }
.stats-band .st b {
  display: block;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--sand);
  line-height: 1.3;
}

/* ===== سويتشر اللغة (AR/EN) ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 3px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  transition: 0.25s;
}
.topbar .lang-switch:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: #fff;
}
.lang-switch svg { width: 14px; height: 14px; }

/* ===== دعم الإنجليزي LTR — قلب القواعد الحساسة للاتجاه ===== */
[dir="ltr"] body, [dir="ltr"] { font-family: 'Tajawal', system-ui, sans-serif; }
[dir="ltr"] .progress-bar { right: auto; left: 0; }
[dir="ltr"] .menu > li > a::after { right: auto; left: 0; }
[dir="ltr"] .submenu { right: auto; left: 0; }
[dir="ltr"] .caret {
  border-right: none;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
}
[dir="ltr"] .avatars i { margin-left: 0; margin-right: -12px; }
[dir="ltr"] .seal { right: auto; left: -18px; }
[dir="ltr"] .course .cat { right: auto; left: 14px; }
[dir="ltr"] .course .cat.alt { left: auto; right: 14px; }
[dir="ltr"] .acc-q { text-align: left; }
[dir="ltr"] .news-card .date { right: auto; left: 14px; }
[dir="ltr"] .note, [dir="ltr"] .reg-info { text-align: left; }
[dir="ltr"] .ornament::before { background: linear-gradient(90deg, transparent, var(--sand)); }
[dir="ltr"] .ornament::after { background: linear-gradient(90deg, var(--sand), transparent); }
[dir="ltr"] .whatsapp_float { left: auto; right: 26px; }
@media (max-width: 767px) {
  [dir="ltr"] .whatsapp_float { right: 18px; }
}
@media (max-width: 991px) {
  [dir="ltr"] .menu .btn { margin-right: 0; margin-left: auto; }
}

/* ===== صفحة تفاصيل الدورة ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 700;
}
.cinfo { list-style: none; margin: 0; padding: 0; }
.cinfo li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.cinfo li:last-child { border-bottom: 0; }
.cinfo li span { color: var(--muted); }
.cinfo li b { color: var(--ink); text-align: left; }
[dir="ltr"] .cinfo li b { text-align: right; }

/* غلاف داخلي للأكورديون — المحتوى مش دايمًا <p> */
.acc-a .acc-in { padding: 0 22px 20px; color: var(--muted); }
.acc-a .acc-in > *:first-child { margin-top: 0; }

/* ===== هيدر الصفحة الداخلية ===== */
.page-hero {
  background:
    radial-gradient(1100px 380px at 85% -30%, rgba(19,168,156,.28), transparent 60%),
    linear-gradient(160deg, var(--brand-d) 0%, var(--brand) 60%, #0a6a70 100%);
  color: #fff;
  padding: 46px 0 54px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumb {
  font-size: .84rem;
  color: #a9c7c6;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-hero .crumb a { color: #a9c7c6; transition: .2s; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero .crumb .cur { color: #fff; font-weight: 700; }
.page-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  max-width: 900px;
}
.page-hero .ornament { color: var(--sand); margin-bottom: 10px; }
.page-hero .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.page-hero .chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #eaf3f2;
}

/* كارت التسجيل الجانبي */
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(16,33,31,.04), 0 20px 46px rgba(16,33,31,.09);
}
.side-card .sc-head {
  background: var(--brand-d);
  color: #fff;
  padding: 18px 22px;
}
.side-card .sc-head h4 { font-size: 1.06rem; font-weight: 800; margin-bottom: 2px; }
.side-card .sc-head p { font-size: .82rem; color: #a9c7c6; margin: 0; }
.side-card .sc-body { padding: 22px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.price-row .lbl { font-size: .9rem; font-weight: 700; color: var(--ink); }
.price-row .val { font-weight: 800; color: var(--brand); font-size: 1.05rem; }
.price-row.alt .val { color: var(--sand); }

/* .two مستقل — عشان يشتغل في أي فورم مش بس .reg-form */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }

/* ===== صفحة التواصل ===== */
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: 0.25s;
  width: 100%;
  resize: vertical;
}
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 84, 96, 0.1);
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item h5 { color: var(--ink); font-weight: 800; font-size: 0.98rem; margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 0.93rem; margin: 0; }
.contact-item a:hover { color: var(--brand); }
.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.map-frame iframe { width: 100% !important; min-height: 380px; border: 0; }
.form-msg .success, .form-msg { color: var(--brand); font-weight: 700; }

/* ===== صفحات المحتوى (HTML من لوحة التحكم) ===== */
.prose-page { max-width: 900px; margin: 0 auto; color: var(--muted); line-height: 2; }
.prose-page h1, .prose-page h2, .prose-page h3, .prose-page h4, .prose-page h5 { color: var(--ink); margin: 26px 0 12px; line-height: 1.5; font-weight: 800; }
.prose-page h2 { font-size: 1.5rem; } .prose-page h3 { font-size: 1.25rem; } .prose-page h4 { font-size: 1.08rem; }
.prose-page p { margin-bottom: 16px; }
.prose-page ul, .prose-page ol { margin: 0 0 18px; padding-inline-start: 24px; }
.prose-page li { margin-bottom: 9px; }
.prose-page a { color: var(--brand); text-decoration: underline; }
.prose-page img { max-width: 100%; height: auto; border-radius: 14px; margin: 18px 0; }
.prose-page table { width: 100%; border-collapse: collapse; margin: 18px 0; display: block; overflow-x: auto; }
.prose-page td, .prose-page th { border: 1px solid var(--line); padding: 10px 12px; }
.prose-page strong, .prose-page b { color: var(--ink); }
.prose-page hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* ===== كروت الهيئة التدريبية / الفريق ===== */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: center;
  transition: 0.35s;
}
.person:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.person .ph {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--brand-soft);
}
.person .ph img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.person:hover .ph img { transform: scale(1.05); }
.person .soc {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(transparent, rgba(6, 58, 64, 0.85));
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s;
}
.person:hover .soc { opacity: 1; transform: none; }
.person .soc a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.person .soc a:hover { background: var(--sand); }
.person .soc svg { width: 15px; height: 15px; }
.person .b { padding: 20px 18px 24px; }
.person h4 { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.person .role { color: var(--sand); font-weight: 700; font-size: 0.86rem; margin-bottom: 10px; }
.person p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ===== كارت المستند: للنصوص المنسوخة من Word اللي جواها خلفيات بيضاء inline ===== */
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 46px 48px;
  box-shadow: var(--shadow);
}
.doc-card > *:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .doc-card { padding: 26px 20px; border-radius: 16px; }
}

/* ===== شبكة روابط الأدلة الإرشادية (ملفات PDF) ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: 0.3s;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-3);
}
.link-card .lc-ic {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  transition: 0.3s;
}
.link-card:hover .lc-ic { background: var(--brand); color: #fff; }
.link-card .lc-ic svg { width: 22px; height: 22px; }
.link-card .lc-t { display: flex; flex-direction: column; gap: 2px; }
.link-card .lc-t b { font-weight: 700; color: var(--ink); font-size: 0.97rem; line-height: 1.6; }
.link-card .ext { color: var(--sand); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; }

/* ===== معارض الصور والفيديو (image.php / video.php) ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); aspect-ratio: 4/3; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery a:hover img { transform: scale(1.06); }
/* تعليق الصورة */
.gallery .gcap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 16px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(6, 58, 64, 0), rgba(6, 58, 64, 0.85));
}
/* كارت الفيديو */
.gallery a.vid .vid-ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 58, 64, 0.25), rgba(6, 58, 64, 0.78));
  transition: 0.35s;
}
.gallery a.vid:hover .vid-ov { background: linear-gradient(180deg, rgba(6, 58, 64, 0.4), rgba(6, 58, 64, 0.88)); }
.gallery a.vid .vid-ov svg { width: 54px; height: 54px; flex-shrink: 0; transition: 0.35s; }
.gallery a.vid:hover .vid-ov svg { transform: scale(1.12); color: var(--sand); }
.gallery a.vid .vid-ov b { font-weight: 700; font-size: 0.93rem; line-height: 1.7; }

/* ===== تطبيع HTML المنسوخ من Word داخل صفحات المحتوى =====
   المحتوى القادم من Word يحمل هوامش بالبوصة وindent سالب فيخرج خارج الكارت */
.prose-page [style] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-indent: 0 !important;
  width: auto !important;
}
.prose-page ul,
.prose-page ol {
  padding-inline-start: 24px !important;
  margin-inline: 0 !important;
  list-style-position: outside;
}
.prose-page p,
.prose-page li,
.prose-page h1, .prose-page h2, .prose-page h3,
.prose-page h4, .prose-page h5, .prose-page h6 {
  text-align: start !important;
}
.prose-page * { max-width: 100%; overflow-wrap: break-word; }
.prose-page { overflow-wrap: break-word; }

/* ===== صفحة تفاصيل الخبر / المقال ===== */
.article-media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 900px;
  margin: 0 auto 30px;
  max-height: 420px;
}
.article-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.article-actions {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* كارت فورم التواصل — يوازن الكارت الجانبي */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 2px 4px rgba(16, 33, 31, .04), 0 20px 46px rgba(16, 33, 31, .06);
}
@media (max-width: 767px) { .form-card { padding: 24px 20px; } }
