@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #087443;
    --primary-dark: #04552f;
    --primary-light: #e9f6ef;
    --gold: #c69a4b;
    --cream: #f8f6f0;
    --text: #17201b;
    --muted: #69736d;
    --border: #e3e9e5;
    --white: #ffffff;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;

    --shadow-sm: 0 6px 20px rgba(18, 55, 36, 0.06);
    --shadow-md: 0 14px 40px rgba(18, 55, 36, 0.10);
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    direction: rtl;
    font-family: "Tajawal", Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease,
        transform 0.25s ease, border-color 0.25s ease;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--text);
    font-family: "Tajawal", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.35;
}

h1 {
    font-size: clamp(34px, 4vw, 64px);
}

h2 {
    font-size: clamp(28px, 3vw, 46px);
}

h3 {
    font-size: clamp(21px, 2vw, 28px);
}

p {
    margin-top: 0;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.9;
}

section {
    position: relative;
    width: 100%;
    max-width: 100%;
    scroll-margin-top: 90px;
}

table {
    max-width: 100%;
}

ul,
ol {
    padding-inline-start: 24px;
}

::selection {
    color: #ffffff;
    background: var(--primary);
}

@media (max-width: 991px) {
    h1 {
        font-size: clamp(30px, 7vw, 46px);
    }

    h2 {
        font-size: clamp(26px, 6vw, 38px);
    }

    p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    body {
        line-height: 1.65;
    }

    section {
        scroll-margin-top: 75px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 21px;
    }

    p {
        font-size: 15px;
        line-height: 1.85;
    }
}