/* ============================================================
   theme-switcher-example.css  |  PageBoss Theme Switcher example
   ------------------------------------------------------------
   GENERIC EXAMPLE ONLY. It shows how a site recolors PageBoss
   (light grey base, white rounded cards, one accent color).
   Copy it, rename it after the site (e.g. my-site-theme.css),
   replace the colors with the site's brand colors, then upload
   it in: PageBoss > Theme Switcher.

   Rules for Theme Switcher CSS (the upload is rejected otherwise):
   - plain standard CSS only, see the scanner list in README.md
     (section 7). Even a blocked word inside a comment rejects the file.
   - use logical properties (inline-start / start) so the same
     file works for LTR and RTL / Arabic sites
   ============================================================ */

/* ------------------------------------------------------------
   1. BRAND COLORS - edit here, the whole site recolors
   ------------------------------------------------------------ */
:root {
    /* Backgrounds: page, alternate sections, cards, inputs */
    --bg-primary:   #f4f5f7;   /* page background */
    --bg-secondary: #ffffff;   /* .bg-secondary sections */
    --bg-card:      #ffffff;   /* .card */
    --bg-elevated:  #ffffff;   /* dropdowns, raised blocks */
    --bg-input:     #ffffff;   /* form fields */

    /* Text */
    --text-primary:   #2f3640;   /* body text */
    --text-secondary: #4f5864;   /* lead text, descriptions */
    --text-muted:     #707985;   /* small text, meta */
    --text-heading:   #1b2028;   /* h1 to h6 */

    /* Accent: replace with the brand color (buttons, links, badges) */
    --accent:       #007fbd;
    --accent-hover: #006a9f;               /* a bit darker than --accent */
    --accent-light: rgba(0, 127, 189, 0.08); /* --accent at 8% */
    --accent-glow:  rgba(0, 127, 189, 0.22); /* --accent at 22% */

    /* Status colors */
    --success: #16a34a;
    --warning: #d97706;
    --danger:  #dc2626;
    --info:    #0284c7;

    /* Borders */
    --border:       #e3e6ea;
    --border-light: #eef0f3;

    /* Shadows (soft, for a light base) */
    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md:   0 4px 14px rgba(0, 0, 0, 0.07);
    --shadow-lg:   0 10px 30px rgba(0, 0, 0, 0.10);
    --shadow-glow: 0 0 18px var(--accent-glow);

    /* Fonts: left to the theme on purpose.
       This file loads AFTER the RTL layer, so setting --font-body or
       --font-heading here would replace the Arabic font (Tajawal) on
       RTL sites. Only on LTR sites, to use another font, add:
         --font-body:    "Your Font", -apple-system, "Segoe UI", sans-serif;
         --font-heading: "Your Font", -apple-system, "Segoe UI", sans-serif;
       (the font must already be available on the site). */
}

/* ------------------------------------------------------------
   2. HEADER AND MENU
   ------------------------------------------------------------ */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.site-title-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
}
.site-logo:hover .site-title-text {
    color: var(--accent);
}
.site-nav-desktop a,
.site-nav-more-toggle {
    color: var(--text-primary);
    font-weight: 600;
}
.site-nav-desktop a:hover,
.site-nav-desktop .current-menu-item a,
.site-nav-desktop .current_page_item a,
.site-nav-more-toggle:hover,
.site-nav-more.active .site-nav-more-toggle,
.site-nav-more-menu a:hover,
.site-nav-mobile a:hover,
.site-nav-mobile .current-menu-item a,
.site-nav-mobile .current_page_item a {
    color: var(--accent-hover);
    background: var(--accent-light);
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
body {
    color: var(--text-primary);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
}
.text-gradient {
    /* solid accent instead of a gradient on light backgrounds */
    background: none;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

/* ------------------------------------------------------------
   4. HERO
   ------------------------------------------------------------ */
.hero-lg,
.hero {
    background: var(--bg-primary);
}
.hero-lg .lead,
.hero .lead {
    color: var(--text-secondary);
}

/* ------------------------------------------------------------
   5. CARDS
   ------------------------------------------------------------ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.card:hover {
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-md);
}
.bg-secondary .card {
    background: var(--bg-primary);
    border-color: var(--border);
    box-shadow: none;
}

/* ------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}
.btn-outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #ffffff;
}
.btn-secondary {
    background: var(--accent-light);
    border-color: transparent;
    color: var(--accent-hover);
    font-weight: 700;
}
.btn-secondary:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ------------------------------------------------------------
   7. BADGES, LINKS, LISTS
   ------------------------------------------------------------ */
.badge {
    background: var(--accent-light);
    color: var(--accent-hover);
    border: 1px solid var(--accent-glow);
}
.link-underline {
    color: var(--accent);
    font-weight: 600;
}
.link-underline:hover {
    color: var(--accent-hover);
}
.list-check li::before {
    color: var(--accent);
}

/* ------------------------------------------------------------
   8. TABLES
   ------------------------------------------------------------ */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}
table th {
    background: var(--accent-light);
    color: var(--text-heading);
    text-align: start;
}
table th,
table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
}

/* ------------------------------------------------------------
   9. EXAMPLE OF A SITE-SPECIFIC CLASS
   A Theme Switcher file can add new classes. Pages may only use
   them on sites where this CSS is active.
   Usage: <div class="note-box"><p>Short notice or disclaimer.</p></div>
   ------------------------------------------------------------ */
.note-box {
    background: var(--bg-card);
    border-inline-start: 4px solid var(--accent);
    border-radius: 10px;
    padding: 18px 22px;
    color: var(--text-secondary);
}
.note-box p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   10. MOBILE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    table th,
    table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* PSL Live navigation, compatible with PageBoss native menu. */
.site-header {background:#007fbd; border:0; box-shadow:none;}
.site-title-text,.site-logo:hover .site-title-text {color:#fff;}
.site-nav-desktop a,.site-nav-more-toggle {color:#fff; font-weight:700; border-radius:0; padding:26px 25px;}
.site-nav-desktop a:hover,.site-nav-desktop .current-menu-item > a,.site-nav-desktop .current_page_item > a,.site-nav-more-toggle:hover {color:#fff; background:#4297cd;}
.site-nav-desktop ul {list-style:none;}
.site-nav-desktop li {position:relative;}
.site-nav-desktop .sub-menu {display:none; position:absolute; inset-inline-start:0; top:100%; min-width:245px; padding:8px; margin:0; background:#006a9f; z-index:100; box-shadow:0 10px 25px #17344d22;}
.site-nav-desktop li:hover > .sub-menu,.site-nav-desktop li:focus-within > .sub-menu {display:block;}
.site-nav-desktop .sub-menu a {display:block; padding:12px 16px; white-space:normal;}
.site-nav-desktop .menu-item-has-children > a::after {content:'⌄'; margin-inline-start:10px;}
.site-nav-more-menu {background:#006a9f;}
.site-nav-more-menu a {color:white;}
.site-nav-mobile {background:#007fbd;}
.site-nav-mobile a,.site-nav-mobile .current-menu-item > a {color:#fff;}
.site-nav-mobile .sub-menu {padding-inline-start:20px; list-style:none;}
.site-nav-mobile a:hover,.site-nav-mobile a:focus {background:#006a9f; color:white;}
.site-header button {color:#fff;}
a:focus-visible,button:focus-visible {outline:3px solid #e8b83d; outline-offset:3px;}
.hero-lg {background:linear-gradient(135deg,#eaf6fc,#fff); padding-block:72px;}
.hero-lg h1 {max-width:900px; margin-inline:auto;}
.hero-lg .lead {max-width:780px; margin-inline:auto;}
.fade-in {opacity:1; transform:none;}
@media(max-width:1100px) {.site-nav-desktop a {padding:22px 13px;}}
@media(max-width:768px) {.hero-lg {padding-block:40px;} .btn-group {flex-wrap:wrap;} .btn-lg {max-width:100%; white-space:normal;} }
