﻿/* ==========================================================================
   Components (shared UI)
   - Safe with Bootstrap
   - Provides container/typography/buttons/cards/sections
   ========================================================================== */

/* Base */
/*html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--muted);
}*/

/* IMPORTANT: keep sizing consistent (Bootstrap can affect some elements) */
/**, *::before, *::after {
    box-sizing: border-box;
}*/

/* Prevent fixed header overlap */
/*.sig-main {
    padding-top: var(--header-h);
}*/

/* --------------------------------------------------------------------------
   Bootstrap interference guards (scoped to our design system)
   -------------------------------------------------------------------------- */
/*.sig-btn,
.sig-cta,
.sig-link,
.sig-m-link,
.sig-m-cta,
.sig-dd-toggle {
    font-family: inherit;
    line-height: 1.1;*/ /* Bootstrap sometimes changes line-height */
    /*text-shadow: none;
}*/

/* Make buttons look identical whether <a> or <button> */
/*.sig-btn,
.sig-cta {
    -webkit-appearance: none;
    appearance: none;
}*/

/* Prevent Bootstrap from adding underline/visited weirdness */
/*a.sig-btn,
a.sig-link-more {
    text-decoration: none !important;
}*/

/* --------------------------------------------------------------------------
   Container & helpers
   -------------------------------------------------------------------------- */
/*.sig-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sig-center {
    text-align: center;
}*/

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
/*.sig-h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.35rem);
    color: var(--text);
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: .2px;
}

.sig-h2--light {
    color: #fff;
}

.sig-h3 {
    font-size: 1.12rem;
    color: var(--text);
    margin: 0 0 10px;
    font-weight: 900;
}

.sig-h4 {
    font-size: 1rem;
    color: var(--text);
    margin: 0 0 8px;
    font-weight: 900;
}

.sig-p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.sig-p--light {
    color: rgba(255,255,255,.86);
}

.sig-note {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: rgba(2,8,23,.55);
}*/

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
/*.sig-section {
    padding: clamp(60px, 6vw, 94px) 0;
}

.sig-section--alt {
    background: var(--surface);
    border-top: var(--border-soft);
    border-bottom: var(--border-soft);
}

.sig-section-head {
    max-width: 860px;
    margin-bottom: 28px;
}

.sig-section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    max-width: 100%;
}*/

/* --------------------------------------------------------------------------
   Buttons (unified)
   -------------------------------------------------------------------------- */
/*.sig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;*/
    /* key: stable sizing against bootstrap */
    /*padding: 11px 20px;
    min-height: 42px;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12.5px;
    white-space: nowrap;
    background: transparent;
    transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

    .sig-btn:focus-visible {
        outline: 3px solid rgba(0,150,255,.35);
        outline-offset: 2px;
    }

.sig-btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

    .sig-btn-primary:hover {
        background: transparent;
        color: var(--brand-primary);
    }

.sig-btn-primary--light {
    background: #fff;
    border-color: #fff;
    color: var(--brand-primary);
}

    .sig-btn-primary--light:hover {
        background: transparent;
        color: #fff;
        border-color: #fff;
    }

.sig-btn-outline {
    border-color: rgba(2,8,23,.20);
    color: var(--text);
    background: rgba(255,255,255,.7);
}

    .sig-btn-outline:hover {
        border-color: rgba(0,150,255,.45);
        color: var(--brand-primary);
        background: #fff;
    }

.sig-btn-outline--light {
    border-color: rgba(255,255,255,.85);
    color: #fff;
    background: transparent;
}

    .sig-btn-outline--light:hover {
        background: rgba(255,255,255,.12);
        border-color: #fff;
    }*/

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
/*.sig-link-more {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--brand-primary);
    font-weight: 900;
    text-decoration: none;
    letter-spacing: .4px;
}

    .sig-link-more:hover {
        color: var(--brand-accent);
    }

    .sig-link-more::after {
        content: "›";
        font-size: 18px;
        line-height: 1;
    }*/

/* --------------------------------------------------------------------------
   Common card
   -------------------------------------------------------------------------- */
/*.sig-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: var(--border-soft);
    box-shadow: var(--shadow-card);
    padding: 20px;
}*/

/* Reduced motion */
/*@media (prefers-reduced-motion: reduce) {
    .sig-btn {
        transition: none !important;
    }
}*/

/* --------------------------------------------------------------------------
   Rich content
   -------------------------------------------------------------------------- */
.rich-content {
    color: var(--text);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: normal;
}

.rich-content.rtl,
[dir="rtl"] .rich-content {
    line-height: 2;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content > *:last-child {
    margin-bottom: 0;
}

.rich-content p {
    margin: 0 0 1rem;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    color: var(--brand-primary);
    font-weight: var(--font-extrabold);
    line-height: 1.35;
    margin: 1.5rem 0 .75rem;
}

.rich-content h2 {
    font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem);
}

.rich-content h3 {
    font-size: clamp(1.2rem, 1rem + .55vw, 1.5rem);
}

.rich-content h4 {
    font-size: 1.1rem;
}

.rich-content ul,
.rich-content ol {
    margin: 0 0 1rem;
    padding-inline-start: 1.5rem;
}

.rich-content li {
    margin-bottom: .4rem;
}

.rich-content a {
    color: var(--brand-accent);
    font-weight: var(--font-bold);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.rich-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid var(--brand-accent);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.rich-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

.rich-content th,
.rich-content td {
    border: 1px solid var(--border);
    padding: .75rem;
    vertical-align: top;
}

.rich-content th {
    color: var(--brand-primary);
    font-weight: var(--font-extrabold);
    background: var(--bg-secondary);
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 576px) {
    .rich-content {
        font-size: .97rem;
    }

    .rich-content blockquote {
        padding: .85rem 1rem;
    }
}
