/* ==========================================================================
   Abu Thamerah Commercial Group (R16) — Design System
   1. Exact Self-Hosted Fonts & Typography Format from https://abdulosama.com/
   2. Exact Header, Topbar & Footer Styling/Layout from https://ulsschool.test/
   3. Rich Multi-Color Palettes, Cards, Hovers & Motion from https://abdulosama.com/
   ========================================================================== */

/* ---- 1. EXACT @FONT-FACE DECLARATIONS FROM ABDULOSAMA.COM ---- */
@font-face {
  font-family: 'Ghroob Geometric';
  src: url('/fonts/ghroob-Bold.woff2') format('woff2');
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ghroob Geometric Text';
  src: url('/fonts/ghroob-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ghroob Geometric Text';
  src: url('/fonts/ghroob-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ghroob Geometric Text';
  src: url('/fonts/ghroob-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ghroob Geometric Text';
  src: url('/fonts/ghroob-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ghroob Geometric Text';
  src: url('/fonts/ghroob-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ghroob Geometric Text';
  src: url('/fonts/ghroob-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ghroob Geometric Text';
  src: url('/fonts/ghroob-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans Arabic — Body & UI Font */
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/plexar-300-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/plexar-300-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/plexar-300-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/plexar-400-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/plexar-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/plexar-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/plexar-500-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/plexar-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/plexar-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/plexar-600-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/plexar-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/plexar-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/plexar-700-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/plexar-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/plexar-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Aref Ruqaa Ink & Mono — Hero Calligraphic Accent */
@font-face{font-family:'Aref Ruqaa Ink';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/arefruqaaink-400-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC}
@font-face{font-family:'Aref Ruqaa Ink';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/arefruqaaink-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Aref Ruqaa Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/arefruqaa-mono-400-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC}
@font-face{font-family:'Aref Ruqaa Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/arefruqaa-mono-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

@font-palette-values --ruqaa-light {
  font-family: 'Aref Ruqaa Ink';
  override-colors: 0 #f8e59688, 1 #ffffff, 2 #D4AF37, 3 #D4AF3788, 4 #f8e596;
}

/* ---- 2. DESIGN TOKENS (ABU THAMERAH LOGO PALETTE: GOLD, BRONZE & CHARCOAL) ---- */
:root {
  /* Typography Tokens (Exact abdulosama.com format) */
  --font-display: 'Ghroob Geometric', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic-display: var(--font-display);
  --font-body: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: var(--font-body);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Morsala Swashes (الحروف المرسلة) on Display Headings */
  --ff-display: normal;
  --ff-body: normal;
  --ff-swash: "ss01" 1;
  --ff-normal: "ss01" 0;

  /* ==========================================================================
     UNIFIED ABU THAMERAH WARM & LIGHT PALETTE (NO DEPRESSING DARK BROWNS)
     ========================================================================== */
  --uls-purple-deep: #5C4730;
  --uls-purple-topbar: #6B533B;
  --uls-purple-nav: #9A7232;
  --uls-gold: #D4AF37;
  --uls-gold-hover: #C59B38;

  --abdul-ink-950: #4A3822;
  --abdul-ink-900: #56422B;
  --abdul-ink-800: #685036;
  --abdul-ink-700: #7A6043;
  --abdul-ink-600: #9A7232;
  --abdul-ink-400: #A69279;
  --abdul-ink-200: #E6DBC8;
  --abdul-ink-100: #F6F1E7;

  /* Unified Warm Gold & Light Bronze Accents */
  --abdul-violet-700: #8C6528;
  --abdul-violet-600: #A37934;
  --abdul-violet-500: #D4AF37;
  --abdul-royal-500: #D4AF37;

  --abdul-salmon-600: #8C6528;
  --abdul-salmon-500: #D4AF37;
  --abdul-salmon-400: #E2C278;
  --abdul-ember-600: #8C6528;
  --abdul-ember-500: #D4AF37;
  --abdul-ember-400: #E2C278;

  --abdul-mint-700: #8C6528;
  --abdul-mint-600: #A37934;
  --abdul-mint-500: #D4AF37;
  --abdul-mint-300: #F2E8D2;

  --abdul-cyan-500: #C59B38;
  --abdul-cyan-400: #D4AF37;
  --abdul-cyan-300: #E6CA85;

  --abdul-paper-50: #FAF8F4;
  --abdul-paper-100: #F5F0E6;
  --abdul-sand-200: #EAE0CE;
  --abdul-sand-300: #D8C8AC;

  /* Semantic Surface & Text Tokens (Lightened Warm Bronze-Umber instead of Near-Black) */
  --bg-canvas: #FAF8F4;
  --bg-surface: #F5F0E6;
  --bg-raised: #FFFFFF;
  --bg-sunken: #EDE5D6;
  --fg-primary: #4A3822;
  --fg-secondary: #6E5B46;
  --fg-tertiary: #8C7A65;
  --fg-accent: #D4AF37;
  --fg-accent-text: #8C6528;
  --border-subtle: rgba(163, 121, 52, 0.15);
  --border-strong: rgba(200, 162, 83, 0.38);

  /* Legacy / Dynamic CMS Variable Mappings */
  --navy: #56422B;
  --navy2: #685036;
  --gold: #D4AF37;
  --gold-dark: #9A7232;
  --gold-light: #F2E8D2;
  --group-gold: #D4AF37;
  --group-gold-dark: #9A7232;
  --group-deep: #56422B;
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --text: #4A3822;
  --muted: #6E5B46;
  --line: rgba(163, 121, 52, 0.15);
  --ok: #1E7A54;
  --danger: #B34824;
  --warn: #9E6B14;

  /* Elevation & Glows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 9999px;

  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-entrance: cubic-bezier(0, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);

  --shadow-xs: 0 2px 6px rgba(36, 30, 24, 0.05);
  --shadow-sm: 0 6px 20px rgba(36, 30, 24, 0.07);
  --shadow-md: 0 14px 34px rgba(36, 30, 24, 0.10);
  --shadow-lg: 0 24px 54px rgba(36, 30, 24, 0.15);
  --glow-violet: 0 12px 32px rgba(200, 162, 83, 0.28);
  --glow-salmon: 0 12px 32px rgba(200, 162, 83, 0.30);
  --glow-mint: 0 10px 28px rgba(200, 162, 83, 0.25);
  --glow-cyan: 0 10px 28px rgba(200, 162, 83, 0.28);
  --glow-gold: 0 12px 32px rgba(200, 162, 83, 0.34);
}

/* Unified Corporate Cover Palettes (Warm Champagne & Gold — Lightened) */
[data-cover],
[data-cover="ember"],
[data-cover="violet"],
[data-cover="mint"],
[data-cover="cyan"],
[data-cover="petrol"],
[data-cover="synth"] {
  --cover-bg: linear-gradient(135deg, #FAF6EB 0%, #F1E5CC 100%);
  --cover-text: #4A3822;
  --cover-sub: #6E5B46;
  --cover-accent: #D8B454;
  --cover-on-accent: #4A3822;
  --cover-rail: #D4AF37;
}

/* ---- 3. BASE RESET & ABDULOSAMA.COM TYPOGRAPHY RULES ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg-canvas);
  color: var(--fg-primary);
  direction: rtl;
  line-height: 1.7;
  letter-spacing: 0 !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="rtl"], :lang(ar), h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, th, td, label {
  letter-spacing: 0 !important;
}

[dir="ltr"], .ltr-num, .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

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

i.bx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

/* Display Headings: Ghroob Geometric + Unclipped Room */
h1, h2, .hero-title, .section-title, .bio-rich-title, .course-title, .b2b-title, .ao-h2 {
  font-family: var(--font-arabic-display) !important;
  font-feature-settings: "ss01" 0, "kern" 1, "liga" 1;
  font-weight: 700;
  line-height: 1.32 !important;
  padding-top: 0.12em;
  padding-bottom: 0.14em;
  text-wrap: balance;
}

/* Enable Morsala Swash (ss01) specifically on Hero Title & Display Callouts where line-end swashes shine */
.group-hero .hero-title,
.swash-title {
  font-feature-settings: var(--ff-swash) !important;
  line-height: 1.42 !important;
  text-wrap: initial !important;
}

h3, h4, .module-title {
  font-family: var(--font-arabic-display);
  font-feature-settings: "ss01" 0, "kern" 1, "liga" 1;
  line-height: 1.38;
}

main p, main li {
  line-height: 1.72;
}

.wrap {
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

/* Unified Brand Icon Chips (Lightened Warm Gold & Soft Champagne — No Dark Browns) */
.ic-violet,
.ic-ink    { background: linear-gradient(135deg, #FBF6E8 0%, #EFE0BE 100%) !important; color: #8C6528 !important; border: 1px solid rgba(200, 162, 83, 0.45); box-shadow: 0 6px 18px rgba(163, 121, 52, 0.14); }
.ic-salmon,
.ic-mint,
.ic-cyan,
.ic-gold   { background: linear-gradient(135deg, #EAD084 0%, #D8B454 100%) !important; color: #5C4320 !important; box-shadow: 0 6px 18px rgba(200, 162, 83, 0.24); }

/* ==========================================================================
   4. ULSSCHOOL.TEST LAYOUT WITH UNIFIED ABU THAMERAH PALETTE
   ========================================================================== */
:root {
  --uls-header-h: 152px;
}

.uls-header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

#siteMain {
  padding-top: var(--uls-header-h);
}

/* 4.1 Top Utility Bar (Lightened Warm Golden-Bronze Taupe) */
.uls-topbar {
  background: linear-gradient(90deg, #6B543B 0%, #7D6346 50%, #6B543B 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.48);
  color: #FAF8F4;
  font-size: 13.5px;
  padding: 9px 28px;
  max-height: 56px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-width 0.3s ease;
  user-select: none;
}

.uls-header-shell.is-scrolled .uls-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-100%);
  border-bottom-width: 0;
  pointer-events: none;
}

.uls-topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.uls-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.uls-top-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FAF6EE;
  font-weight: 500;
  transition: all 0.22s ease;
}

.uls-top-location:hover {
  color: #ffffff;
  transform: translateX(-2px);
}

.uls-top-icon-pin {
  color: #EAD084;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.uls-top-location:hover .uls-top-icon-pin {
  transform: scale(1.15);
}

.uls-top-dot {
  color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
}

.uls-top-phone {
  cursor: pointer;
}

.uls-top-phone:hover {
  color: #FDE68A;
  transform: translateY(-1px) scale(1.03);
}

.uls-top-phone-badge {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #EAD084;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.uls-top-phone:hover .uls-top-phone-badge {
  background: #EAD084;
  color: #5C4320;
  transform: scale(1.08);
}

.uls-top-phone-num {
  font-weight: 700;
  font-family: var(--font-body);
}

.uls-top-mail:hover {
  color: #FDE68A;
  transform: translateY(-1px) scale(1.03);
}

.uls-top-icon-mail {
  color: #EAD084;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.uls-top-mail:hover .uls-top-icon-mail {
  transform: scale(1.18);
  color: #FDE68A;
}

/* Topbar Right Social/Action Icon Buttons */
.uls-topbar-socials {
  display: flex;
  align-items: center;
  gap: 9px;
}

.uls-top-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(234, 208, 132, 0.35);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.uls-top-social-btn:hover {
  background: #EAD084;
  color: #5C4320;
  border-color: #EAD084;
  transform: translateY(-2px) scale(1.15);
  box-shadow: 0 0 15px rgba(234, 208, 132, 0.65);
}

/* 4.2 Main Sticky Navigation Bar (White + Warm Light Gold Submenus) */
.uls-navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(197, 155, 56, 0.22);
  padding: 10px 28px;
  box-shadow: 0 2px 10px rgba(74, 56, 34, 0.05);
  transition: padding 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 50;
}

.uls-header-shell.is-scrolled .uls-navbar,
.uls-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 7px 28px;
  box-shadow: 0 10px 30px rgba(74, 56, 34, 0.08);
}

.uls-navbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.uls-brand {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: -6px 0;
}

.uls-brand-logo {
  height: 92px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  transition: height 0.3s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.uls-header-shell.is-scrolled .uls-brand-logo {
  height: 74px;
}

.uls-brand:hover .uls-brand-logo {
  transform: scale(1.05);
}

/* Navigation Pillars */
.uls-nav-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 5px;
}

.uls-pillar-item {
  position: relative;
  display: flex;
  align-items: center;
}

.uls-pillar-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 1.12vw, 16.5px);
  color: #4A3822;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.uls-header-shell.is-scrolled .uls-pillar-btn {
  padding: 8px 14px;
}

.uls-pillar-btn:hover {
  color: #8C6528;
  background: #FAF7F0;
  border-color: rgba(197, 155, 56, 0.32);
}

.uls-pillar-btn.active,
.uls-pillar-item.active > .uls-pillar-btn {
  color: #241E18;
  background: #F6EFE0;
  border: 1.5px solid #C89B3C;
  font-weight: 800;
}

.uls-pillar-chevron {
  font-size: 16px;
  color: #9A8873;
  transition: transform 0.22s ease, color 0.22s ease;
}

.uls-pillar-btn.active .uls-pillar-chevron,
.uls-pillar-item.active .uls-pillar-chevron,
.uls-pillar-item:hover .uls-pillar-chevron {
  color: #8C6528;
}

.uls-pillar-item.has-dropdown:hover .uls-pillar-chevron {
  transform: rotate(180deg);
}

/* Seamless Connected Parent Tab State on Hover */
.uls-pillar-item.has-dropdown:hover > .uls-pillar-btn {
  color: #8C6528;
  background: #ffffff;
  border-top-color: rgba(197, 155, 56, 0.38);
  border-right-color: rgba(197, 155, 56, 0.38);
  border-left-color: rgba(197, 155, 56, 0.38);
  border-bottom-color: transparent;
  border-radius: 16px 16px 0 0;
  z-index: 65;
}

.uls-pillar-mask {
  display: none;
  position: absolute;
  bottom: -2px;
  left: 1px;
  right: 1px;
  height: 5px;
  background: #ffffff;
  z-index: 70;
  pointer-events: none;
}

.uls-pillar-item.has-dropdown:hover > .uls-pillar-mask {
  display: block;
}

/* Seamless Dropdown Menu */
.uls-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.uls-pillar-item.has-dropdown:hover > .uls-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.uls-pillar-item.has-dropdown.is-closing-dropdown > .uls-dropdown-menu,
.uls-pillar-item.has-dropdown.is-closing-dropdown > .uls-pillar-mask {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.uls-dropdown-card {
  width: 440px;
  background: #ffffff;
  border: 1px solid rgba(197, 155, 56, 0.38);
  border-radius: 18px 0 18px 18px;
  box-shadow: 0 25px 50px rgba(74, 56, 34, 0.14);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uls-drop-item {
  width: 100%;
  text-align: right;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uls-drop-item:hover,
.uls-drop-item.active {
  background: #F6EFE0;
  border-color: #C89B3C;
  transform: translateX(-4px);
}

.uls-drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FDF9F0;
  border: 1.5px solid rgba(212, 175, 55, 0.36);
  color: #B08432;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(74, 56, 34, 0.04);
  transition: all 0.2s ease;
}

.uls-drop-item:hover .uls-drop-icon,
.uls-drop-item.active .uls-drop-icon {
  border-color: #C89B3C;
  background: #EAD084;
  color: #3B2D1D;
  transform: scale(1.05);
}

.uls-drop-body {
  flex: 1;
  min-width: 0;
}

.uls-drop-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #4A3822;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.uls-drop-item:hover .uls-drop-title,
.uls-drop-item.active .uls-drop-title {
  color: #241E18;
  font-weight: 800;
}

.uls-drop-arrow {
  font-size: 18px;
  color: #C59B38;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s ease;
}

.uls-drop-item:hover .uls-drop-arrow,
.uls-drop-item.active .uls-drop-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #9A7230;
}

.uls-drop-body p {
  margin: 0;
  font-size: 13.5px;
  color: #6E5B46;
  line-height: 1.55;
  font-weight: 400;
}

/* Navbar Left Action Buttons (Lightened Warm Gold & Bronze) */
.uls-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.uls-action-secondary {
  border-radius: 12px;
  background: #FAF7F0;
  border: 1.5px solid rgba(197, 155, 56, 0.42);
  color: #4A3822;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.uls-header-shell.is-scrolled .uls-action-secondary {
  padding: 8px 14px;
  font-size: 13.8px;
}

.uls-action-secondary:hover,
.uls-action-secondary.active {
  background: #F6EFE0;
  border-color: #C89B3C;
  color: #241E18;
  font-weight: 800;
  transform: translateY(-1px);
}

.uls-sec-icon {
  color: #A67C2E;
  font-size: 17px;
  transition: transform 0.22s ease;
}

.uls-action-secondary:hover .uls-sec-icon,
.uls-action-secondary.active .uls-sec-icon {
  color: #8C6528;
  transform: scale(1.08);
}

.uls-action-primary {
  border-radius: 12px;
  background: #EAD084 !important;
  border: 1.5px solid #C89B3C !important;
  color: #3B2D1D !important;
  font-weight: 800;
  font-size: 14.5px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.20);
  transition: all 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.uls-header-shell.is-scrolled .uls-action-primary {
  padding: 8px 15px;
  font-size: 13.8px;
}

.uls-action-primary:hover,
.uls-action-primary.active {
  background: #3B2D1D !important;
  border-color: #C89B3C !important;
  color: #FAF8F4 !important;
  transform: translateY(-1px);
}

.uls-pri-icon {
  color: #5C4320;
  font-size: 16px;
  transition: transform 0.22s ease, color 0.22s ease;
}

.uls-action-primary:hover .uls-pri-icon,
.uls-action-primary.active .uls-pri-icon,
.uls-action-primary:hover .uls-pri-arrow,
.uls-action-primary.active .uls-pri-arrow {
  color: #EAD084 !important;
}

.uls-action-primary:hover .uls-pri-icon {
  transform: scale(1.12);
}

.uls-pri-arrow {
  color: #7A5828;
  font-size: 16px;
  transition: transform 0.22s ease;
}

.uls-action-primary:hover .uls-pri-arrow {
  transform: translateX(-3px);
}

.uls-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FAF7F0;
  border: 1px solid rgba(200, 162, 83, 0.38);
  color: #5C4320;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.uls-mobile-drawer-actions {
  display: none;
}

/* ==========================================================================
   5. ULSSCHOOL.TEST FOOTER LAYOUT IN WARM BRONZE & GOLD
   ========================================================================== */
.uls-footer {
  width: 100%;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.uls-footer-main {
  background: linear-gradient(165deg, #634F38 0%, #52402C 100%);
  color: #FAF8F4;
  padding: 88px 0 28px;
  border-top: 2px solid #D4AF37;
  position: relative;
  overflow: hidden;
}

.uls-footer-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  z-index: 20;
  pointer-events: none;
}

.uls-footer-top-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(212, 175, 55, 0.12);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

.uls-footer-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.13) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Reversed Position: Cubes/Squares Matrix now on the Left Side */
.uls-footer-squares {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 580px;
  height: 100%;
  background-image: url('/images/footer-squares.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
  animation: ulsSquaresFloat 14s ease-in-out infinite;
}

@keyframes ulsSquaresFloat {
  0%, 100% { transform: scaleX(-1) translate(0, 0); }
  50% { transform: scaleX(-1) translate(16px, -6px); }
}

/* Reversed Position: Ambient Gold Glows now on the Right Side */
.uls-footer-bulb-outer {
  position: absolute;
  bottom: -96px;
  right: 24%;
  left: auto;
  transform: translateX(50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.24);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: ulsBulbPulse 10s ease-in-out infinite;
}

.uls-footer-bulb-inner {
  position: absolute;
  bottom: -40px;
  right: 22%;
  left: auto;
  transform: translateX(50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.20);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  animation: ulsBulbPulse 8s ease-in-out infinite 1s;
}

@keyframes ulsBulbPulse {
  0%, 100% { opacity: 0.55; transform: translateX(50%) scale(0.96); }
  50% { opacity: 0.95; transform: translateX(50%) scale(1.06); }
}

/* Reversed Position: Animated Floating Globe now on the Right Side */
.uls-footer-globe {
  position: absolute;
  right: 0;
  left: auto;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.uls-footer-globe img {
  width: 380px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.55));
  transform: scaleX(-1);
  animation: ulsGlobeFloat 8.5s ease-in-out infinite;
}

@keyframes ulsGlobeFloat {
  0%, 100% { transform: scaleX(-1) translateY(0) rotate(0deg); }
  50% { transform: scaleX(-1) translateY(-16px) rotate(2deg); }
}

.uls-footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 10;
}

.uls-footer-grid {
  display: grid;
  grid-template-columns: 3fr 3.2fr 2fr 3.8fr;
  gap: 36px;
  align-items: start;
}

.uls-fcol {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.uls-footer-logo-link {
  display: inline-block;
}

.uls-footer-logo {
  height: 92px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.uls-footer-logo-link:hover .uls-footer-logo {
  transform: scale(1.05);
}

.uls-footer-mission {
  font-size: 16px;
  line-height: 1.75;
  color: #f1f5f9;
  margin: 0;
}

.uls-gold-text {
  color: #D4AF37;
  font-weight: 700;
}

.uls-footer-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.uls-footer-social-label {
  font-size: 14px;
  font-weight: 700;
  color: #fde68a;
}

.uls-footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uls-social-tooltip-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uls-social-gold-btn {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #D4AF37;
  border: 1px solid #E5C058;
  color: #181614;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.32);
  transition: all 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.uls-social-gold-btn:hover {
  background: #261F18;
  color: #D4AF37;
  border-color: #D4AF37;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
}

.uls-social-tooltip {
  position: absolute;
  top: 100%;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 11px;
  background: #261F18;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 30;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.uls-social-tooltip-wrap:hover .uls-social-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Column Headings with Gold Underline */
.uls-fcol-heading {
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: 23px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  position: relative;
  display: inline-block;
}

.uls-fcol-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 2.5px;
  background: #D4AF37;
  margin-top: 10px;
  border-radius: 2px;
}

/* Contact List in Footer Col 2 */
.uls-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uls-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.uls-contact-item--center {
  align-items: center;
}

.uls-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.uls-contact-icon--amber {
  color: #fcd34d;
}

.uls-contact-icon--hotline {
  background: rgba(251, 191, 36, 0.10);
  border-color: rgba(251, 191, 36, 0.30);
  color: #fcd34d;
}

.uls-contact-item:hover .uls-contact-icon {
  background: #D4AF37;
  color: #181614;
  border-color: #D4AF37;
}

.uls-contact-body {
  min-width: 0;
  flex: 1;
}

.uls-contact-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #D4AF37;
  margin-bottom: 2px;
}

.uls-contact-kicker--amber {
  color: #fcd34d;
}

.uls-contact-link {
  color: #e2e8f0;
  font-size: 14.5px;
  line-height: 1.5;
  display: block;
  transition: color 0.2s ease;
}

.uls-contact-link:hover {
  color: #D4AF37;
}

.uls-contact-mono {
  font-family: var(--font-mono);
  font-size: 15.5px;
  color: #f1f5f9;
  font-weight: 600;
}

.uls-contact-mono:hover {
  color: #D4AF37;
  text-decoration: underline;
}

.uls-contact-hotline {
  font-family: var(--font-mono);
  font-size: 15.5px;
  color: #fcd34d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.uls-contact-hotline small {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(253, 230, 138, 0.85);
  font-weight: 500;
}

.uls-contact-phones-merged {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  text-align: right;
}

.uls-phone-sep {
  color: rgba(212, 175, 55, 0.65);
  font-weight: 800;
}

.uls-contact-email-right {
  text-align: right !important;
  display: flex;
  justify-content: flex-start;
}

.uls-email-link-right {
  text-align: right !important;
  display: inline-block !important;
}

.uls-contact-text {
  color: #e2e8f0;
  font-size: 14.5px;
}

/* Quick Links in Footer Col 3 */
.uls-quick-list,
.uls-programs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uls-quick-link {
  background: none;
  border: 0;
  padding: 2px 0;
  color: #f1f5f9;
  font-size: 15.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.uls-quick-link i.bx {
  color: #D4AF37;
  font-size: 19px;
  transition: transform 0.2s ease;
}

.uls-quick-link:hover {
  color: #D4AF37;
}

.uls-quick-link:hover i.bx {
  transform: translateX(-4px);
}

/* Programs & Sectors in Footer Col 4 */
.uls-program-link {
  background: none;
  border: 0;
  padding: 3px 0;
  color: #f1f5f9;
  font-size: 15.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: right;
}

.uls-program-link:hover {
  color: #D4AF37;
  transform: translateX(-3px);
}

.uls-prog-badge {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.uls-prog-badge--gold,
.uls-prog-badge--violet,
.uls-prog-badge--mint,
.uls-prog-badge--cyan {
  background: #C8A253;
  color: #241E18;
}

.uls-footer-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.uls-fcta-gold {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 22px;
  border-radius: 13px;
  background: #D4AF37;
  border: 0;
  color: #181614;
  font-weight: 800;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
  transition: all 0.22s ease;
}

.uls-fcta-gold:hover {
  background: #E5C158;
  transform: translateY(-2px);
}

.uls-fcta-glass {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 22px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
}

.uls-fcta-glass i.bx {
  color: #D4AF37;
  font-size: 19px;
}

.uls-fcta-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #D4AF37;
  transform: translateY(-2px);
}

/* Footer Bottom Divider with Centered Square Crest -[__]- */
.uls-footer-bottom {
  max-width: 1440px;
  margin: 64px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 10;
}

.uls-footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 18px;
}

.uls-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 55, 0.45);
}

.uls-divider-crest {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #3B3026;
  border: 1px solid rgba(200, 162, 83, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.uls-divider-crest img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.uls-footer-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.8px;
  color: #cbd5e1;
}

.uls-copyright {
  margin: 0;
}

.uls-footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.uls-footer-bottom-links button {
  background: none;
  border: 0;
  padding: 0;
  color: #cbd5e1;
  font-size: 13.8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.uls-footer-bottom-links button:hover {
  color: #D4AF37;
}

.uls-pipe {
  color: #475569;
  user-select: none;
}

/* ==========================================================================
   6. ABDULOSAMA.COM NIGHT-SKY FRAMED HERO, SPEC CHIPS & MULTI-COLOR CARDS
   ========================================================================== */
.page {
  display: none;
}

.page.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Framed Hero Canvas on Desktop (from abdulosama.com .hero-inset) */
@media (min-width: 960px) {
  .hero-inset {
    margin: 10px 16px 12px;
    border-radius: 22px;
    overflow: hidden;
  }
}

.group-hero.hero--sky {
  min-height: calc(100vh - var(--uls-header-h) - 22px);
  min-height: calc(100dvh - var(--uls-header-h) - 22px);
  padding: clamp(32px, 4.8vh, 64px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #3D3125;
  border-bottom: 3px solid var(--uls-gold);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

@media (max-width: 959px) {
  .group-hero.hero--sky {
    min-height: calc(100vh - var(--uls-header-h));
    min-height: calc(100dvh - var(--uls-header-h));
  }
}

/* 5-Image Continuous Ken Burns Smooth Slow Zoom & Randomized Directional Crossfade Slider */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #3D3125;
}

.hero-bg-slide {
  position: absolute;
  inset: -8%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02) translate3d(0, 0, 0);
  will-change: transform, opacity;
}

/* CSS Fallback: 90s ultra-slow cycle (18s per slide) with 5 distinct zoom & pan directions */
.hero-bg-slider:not(.js-kb-active) .hero-bg-slide.slide-1 {
  animation: heroKB1 90s ease-in-out infinite;
  animation-delay: -3.6s;
}
.hero-bg-slider:not(.js-kb-active) .hero-bg-slide.slide-2 {
  animation: heroKB2 90s ease-in-out infinite;
  animation-delay: -75.6s;
}
.hero-bg-slider:not(.js-kb-active) .hero-bg-slide.slide-3 {
  animation: heroKB3 90s ease-in-out infinite;
  animation-delay: -57.6s;
}
.hero-bg-slider:not(.js-kb-active) .hero-bg-slide.slide-4 {
  animation: heroKB4 90s ease-in-out infinite;
  animation-delay: -39.6s;
}
.hero-bg-slider:not(.js-kb-active) .hero-bg-slide.slide-5 {
  animation: heroKB5 90s ease-in-out infinite;
  animation-delay: -21.6s;
}

/* JS-driven randomized slow crossfade & directional zoom mode */
.hero-bg-slider.js-kb-active .hero-bg-slide {
  animation: none;
  transition:
    opacity 4.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 22s linear;
}

/* 1: Zoom-In + Pan Top-Left */
@keyframes heroKB1 {
  0%   { opacity: 0; transform: scale(1.01) translate3d(1.6%, 1.2%, 0); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.15) translate3d(-2.0%, -1.5%, 0); }
  100% { opacity: 0; transform: scale(1.15) translate3d(-2.0%, -1.5%, 0); }
}

/* 2: Zoom-Out + Pan Bottom-Right */
@keyframes heroKB2 {
  0%   { opacity: 0; transform: scale(1.16) translate3d(-1.8%, -1.4%, 0); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.02) translate3d(1.8%, 1.4%, 0); }
  100% { opacity: 0; transform: scale(1.02) translate3d(1.8%, 1.4%, 0); }
}

/* 3: Zoom-In + Pan Bottom-Left to Top-Right */
@keyframes heroKB3 {
  0%   { opacity: 0; transform: scale(1.02) translate3d(-2.0%, 1.5%, 0); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.15) translate3d(2.0%, -1.4%, 0); }
  100% { opacity: 0; transform: scale(1.15) translate3d(2.0%, -1.4%, 0); }
}

/* 4: Zoom-Out + Pan Top-Right to Center-Left */
@keyframes heroKB4 {
  0%   { opacity: 0; transform: scale(1.15) translate3d(2.2%, -1.6%, 0); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.01) translate3d(-1.6%, 1.2%, 0); }
  100% { opacity: 0; transform: scale(1.01) translate3d(-1.6%, 1.2%, 0); }
}

/* 5: Zoom-In + Horizontal Drift Right to Left */
@keyframes heroKB5 {
  0%   { opacity: 0; transform: scale(1.02) translate3d(2.2%, 0%, 0); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.14) translate3d(-2.2%, -1.0%, 0); }
  100% { opacity: 0; transform: scale(1.14) translate3d(-2.2%, -1.0%, 0); }
}

.group-hero.hero--sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(58, 46, 34, 0.66) 0%, rgba(74, 59, 44, 0.50) 50%, rgba(58, 46, 34, 0.64) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Warm Golden Dust Atmosphere Overlay */
.group-hero.hero--sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 22%, rgba(255, 255, 255, 0.35) 1px, transparent 0),
    radial-gradient(1px 1px at 36% 68%, rgba(200, 162, 83, 0.48) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 64% 18%, rgba(200, 162, 83, 0.55) 1px, transparent 0),
    radial-gradient(1px 1px at 82% 54%, rgba(255, 255, 255, 0.30) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 48% 36%, rgba(200, 162, 83, 0.45) 1px, transparent 0);
  background-size: 240px 240px, 310px 310px, 280px 280px, 200px 200px, 340px 340px;
  pointer-events: none;
  z-index: 1;
}

.hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  z-index: 1;
}

.orb-violet,
.orb-cyan,
.orb-salmon {
  background: rgba(200, 162, 83, 0.25);
}
.orb-violet { width: 460px; height: 460px; top: -120px; right: -80px; }
.orb-cyan   { width: 380px; height: 380px; bottom: -100px; left: 18%; }
.orb-salmon { width: 320px; height: 320px; top: 25%; left: -60px; }

.sky-skyline {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0 !important;
  height: 68px;
  background: linear-gradient(to top, rgba(74, 59, 44, 0.35), transparent);
  border-top: 1px solid rgba(200, 162, 83, 0.28);
  pointer-events: none;
  z-index: 1;
}

.group-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content-col {
  max-width: 740px;
}

/* Pulsing Hero Badge (from abdulosama.com .hero-badge) */
.hero-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--r-pill);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8A253;
  box-shadow: 0 0 0 3px rgba(200, 162, 83, 0.28);
  display: inline-block;
}

.hero-badge .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(200, 162, 83, 0.38);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(2.1); opacity: 0; }
}

.hero-badge i.bx {
  color: #D4AF37;
  font-size: 17px;
}

.group-hero .hero-title {
  font-family: var(--font-arabic-display) !important;
  font-feature-settings: var(--ff-swash);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

/* Aref Ruqaa Ink Calligraphic Banner (Exact abdulosama.com hero accent) */
.hero-ruqaa-banner {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin: 2px 0 16px;
}

.hero-ruqaa-banner .accent,
.hero-title .accent {
  font-family: 'Aref Ruqaa Mono', var(--font-arabic-display) !important;
  color: #D4AF37 !important;
  font-weight: 400 !important;
  font-feature-settings: normal !important;
  font-size: 1.52em;
  line-height: 1.25;
  display: inline-block;
  padding: 0 0.08em;
}

@supports font-tech(color-COLRv1) {
  .hero-ruqaa-banner .accent,
  .hero-title .accent {
    font-family: 'Aref Ruqaa Ink', var(--font-arabic-display) !important;
    font-palette: --ruqaa-light;
  }
}

.group-hero .hero-sub {
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin: 0 0 18px;
}

/* Buttons (abdulosama.com + ulsschool.test) */
.actions,
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  border: 0;
  border-radius: var(--r-pill);
  padding: 13px 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base), background var(--dur-base), border-color var(--dur-base), filter var(--dur-base);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary,
.btn-primary,
.primary {
  background: linear-gradient(135deg, #EAD084 0%, #D8B454 100%);
  color: #4A3822;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.30);
}

.btn.primary:hover,
.btn-primary:hover,
.primary:hover {
  background: linear-gradient(135deg, #F2DC96 0%, #E0BE62 100%);
  color: #4A3822;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.40);
}

.btn.gold {
  background: linear-gradient(135deg, #EAD084 0%, #D8B454 100%);
  color: #4A3822;
  box-shadow: var(--glow-gold);
}

.btn.gold:hover {
  background: linear-gradient(135deg, #F2DC96 0%, #E0BE62 100%);
  color: #4A3822;
  transform: translateY(-2px);
}

.btn.secondary,
.secondary,
.btn-ghost {
  background: #ffffff;
  color: var(--fg-primary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
}

.btn.secondary:hover,
.secondary:hover,
.btn-ghost:hover {
  background: var(--bg-sunken);
  border-color: var(--abdul-violet-600);
  color: var(--abdul-violet-700);
  transform: translateY(-2px);
}

.group-hero .btn-ghost,
.group-hero .btn.secondary {
  color: #4A3822;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  background: rgba(250, 246, 238, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(24, 19, 14, 0.16);
}

.group-hero .btn-ghost:hover,
.group-hero .btn.secondary:hover {
  background: rgba(252, 249, 242, 0.94);
  border-color: #D4AF37;
  color: #4A3822;
  transform: translateY(-2px);
}

/* Sequential Staggered Hero Elements & Typewriter Cursor */
.hero-seq {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--seq-d, 0ms);
  will-change: opacity, transform;
}

.hero-seq.seq-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.88em;
  background: #EAD084;
  margin-right: 6px;
  vertical-align: -0.08em;
  border-radius: 2px;
  animation: twBlink 0.75s step-end infinite;
}

.hero-tw-cursor.tw-done {
  opacity: 0;
  animation: none;
  transition: opacity 0.6s ease;
}

@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.btn.ghost {
  background: var(--bg-surface);
  color: var(--fg-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn.ghost:hover {
  border-color: var(--abdul-violet-600);
  color: var(--abdul-violet-700);
}

.small {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--fg-primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.small:hover {
  border-color: var(--abdul-violet-600);
  color: var(--abdul-violet-700);
  transform: translateY(-1px);
}

/* Hero Trust Row — Single-Line Solid Champagne Dock (Equal Side Paddings, No Bullets) */
.hero-trust-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 8px;
  width: max-content;
  box-sizing: border-box;
  background: linear-gradient(135deg, #FAF6EE 0%, #F1E6D0 100%);
  border: 1.5px solid #D4B475;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(24, 19, 14, 0.24);
  position: relative;
  z-index: 3;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  border: 1px solid rgba(200, 162, 83, 0.48);
  box-shadow: 0 2px 8px rgba(36, 30, 24, 0.06);
  font-size: clamp(11.5px, 0.92vw, 12.8px);
  color: #4A3822;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-dot {
  display: none !important;
}

.hero-trust-badge .trust-icon {
  color: #B38728;
  font-size: 15px;
  flex-shrink: 0;
}

/* Hero Showcase Column + Floating Spec Chips on Card Rim (No Text Overlap) */
.hero-showcase-col {
  position: relative;
  padding: 26px 0 30px;
}

.halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.22);
  filter: blur(48px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  animation: haloFloat 8s ease-in-out infinite;
}

@keyframes haloFloat {
  0%, 100% { transform: scale(0.92) translateY(0); }
  50%      { transform: scale(0.98) translateY(-8px); }
}

.spec-chip {
  position: absolute;
  z-index: 5;
  background: #FFFFFF;
  color: #4A3822;
  border: 1.5px solid #D4B475;
  border-radius: 20px;
  padding: 11px 20px 11px 15px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 16px 36px rgba(36, 28, 18, 0.22);
  font-size: 14px;
}

.spec-chip .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.spec-chip .ic svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.spec-chip b {
  display: block;
  font-weight: 800;
  color: #4A3822;
  font-size: 15.5px;
  line-height: 1.45;
  margin-bottom: 2px;
}

.spec-chip .sub {
  display: block;
  font-size: 13px;
  color: #7A654B;
  font-weight: 600;
  line-height: 1.45;
}

.spec-chip--exp {
  top: 0;
  left: 0;
  animation: chipFloat 6s ease-in-out infinite;
}

.spec-chip--ai {
  bottom: 0;
  right: 0;
  animation: chipFloat 6s ease-in-out infinite 2s;
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.hero-glass-card {
  position: relative;
  z-index: 2;
  background: #FAF6EC;
  border: 1.5px solid #D4B475;
  border-radius: 24px;
  padding: 36px 26px 46px;
  color: #4A3822;
  box-shadow: 0 24px 56px rgba(36, 28, 18, 0.22);
  transition: transform 0.3s var(--ease-standard), border-color 0.3s;
}

.hero-glass-card:hover {
  transform: translateY(-4px);
  border-color: #D4AF37;
}

.hero-glass-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(163, 121, 52, 0.18);
}

.hero-glass-crest {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFFDF7 0%, #F5E8C7 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 8px 20px rgba(163, 121, 52, 0.14);
  color: #9A7232;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.hero-glass-crest svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.65;
  color: #9A7232;
}

.hero-glass-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-glass-header small {
  display: block;
  color: #9A7232;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-glass-header strong {
  display: block;
  color: #4A3822;
  font-size: 19px;
  font-weight: 800;
}

.hero-glass-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.hero-metric-box {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(74, 56, 34, 0.06);
  transition: all 0.22s ease;
}

.hero-metric-box:hover {
  transform: translateY(-3px);
  background: #FAF5E8;
  border-color: #D4AF37;
}

.hero-metric-box strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(34px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: #8C6528 !important;
  margin-bottom: 6px;
  direction: ltr;
}

.hero-metric-box span {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(14.5px, 1.15vw, 16px);
  line-height: 1.4;
  color: #4A3822;
  font-weight: 800;
}

/* Simplified 3-Column Sector Row inside Hero Card */
.hero-sector-tags,
.hero-sector-tags--simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.sector-pill {
  padding: 11px 10px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(212, 175, 55, 0.40);
  background: #FFFFFF;
  color: #4A3822;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(74, 56, 34, 0.04);
  transition: all 0.22s var(--ease-standard);
}

.sector-pill i.bx,
.sector-pill svg {
  font-size: 17px;
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  color: #B08432 !important;
  flex-shrink: 0;
}

.sector-pill:hover {
  background: linear-gradient(135deg, #EAD084 0%, #D8B454 100%) !important;
  border-color: #D4AF37 !important;
  color: #4A3822 !important;
  transform: translateY(-2px);
}
.sector-pill:hover i.bx,
.sector-pill:hover svg {
  color: #5C4320 !important;
}

/* ==========================================================================
   7. ULSSCHOOL.TEST ELEVATED ACHIEVEMENTS & KEY STATISTICS (4 OVERLAPPING CARDS)
   ========================================================================== */
.group-quick.uls-stats-overlap {
  margin-top: -76px;
  position: relative;
  z-index: 20;
  padding-bottom: 18px;
}

.uls-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.uls-stat-card {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 50%, #FFF8E7 100%);
  border-radius: 24px;
  padding: 22px 24px;
  border: 1.5px solid rgba(212, 175, 55, 0.50);
  box-shadow: 0 18px 45px -12px rgba(74, 56, 34, 0.14);
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* Hidden by default on page load & when scrolled up (matches ulsschool.test initial={{ opacity: 0, y: 45, scale: 0.92 }}) */
  opacity: 0;
  transform: translateY(45px) scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  transition-delay: calc((3 - var(--uls-idx, 0)) * 55ms);
  will-change: opacity, transform;
}

.uls-stat-card.uls-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: calc(var(--uls-idx, 0) * 120ms);
}

.uls-stat-card.uls-in-view:hover {
  transform: translateY(-6px) scale(1.02);
  transition-delay: 0ms;
  border-color: #D4AF37;
  box-shadow: 0 28px 60px -10px rgba(74, 56, 34, 0.22);
  transition-delay: 0ms;
  transition-duration: 0.28s;
}

/* Inner Ambient Glow on Hover */
.uls-stat-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.uls-stat-card:hover .uls-stat-glow {
  opacity: 1;
}

/* Big Clean Unbolded Lucide Icon (56x56, stroke-width 1.4, #D4AF37) */
.uls-stat-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  transition: transform 0.3s ease;
}

.uls-stat-icon svg {
  width: 54px;
  height: 54px;
  stroke: currentColor;
  stroke-width: 1.4;
}

.uls-stat-card:hover .uls-stat-icon {
  transform: scale(1.08);
}

/* Content: Big Clean Number, Title & Concise Subtitle */
.uls-stat-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.uls-stat-number-row {
  font-family: var(--font-display);
  font-size: clamp(36px, 3vw, 46px);
  font-weight: 700;
  color: #4A3822;
  line-height: 1;
  letter-spacing: -0.02em !important;
  display: inline-flex;
  align-items: baseline;
  transition: color 0.3s ease;
}

.uls-stat-card:hover .uls-stat-number-row {
  color: #5C4320;
}

.uls-stat-suffix {
  color: #D4AF37;
  font-weight: 500;
  margin-left: 2px;
}

.uls-stat-title {
  font-family: var(--font-body);
  font-size: clamp(14.5px, 1.25vw, 15.5px);
  font-weight: 700;
  color: #3A2C1B;
  line-height: 1.35;
  margin: 6px 0 3px;
}

.uls-stat-sub {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.05vw, 13px);
  font-weight: 500;
  color: #6E5B46;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 1120px) {
  .uls-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .group-quick.uls-stats-overlap {
    margin-top: -44px;
  }
  .uls-stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

/* ==========================================================================
   8. SECTIONS, .BIO-RICH WELCOME, .COURSE-POINTS & .BIO-AGENCY
   ========================================================================== */
.public-section,
.section {
  padding: 84px 0;
}

.public-section.alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.section-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #7A5422;
  background: rgba(197, 155, 56, 0.14);
  border: 1px solid rgba(197, 155, 56, 0.35);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

.section-title,
.section-head h2 {
  font-family: var(--font-arabic-display) !important;
  font-feature-settings: "ss01" 0, "kern" 1, "liga" 1;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: var(--abdul-ink-900);
  margin: 0 0 8px;
}

.section-sub,
.lead {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.8;
  margin: 0;
  max-width: 60ch;
}

.muted {
  color: var(--fg-secondary);
}

/* Editorial Welcome (.bio-rich) + ARN.TEST Background Objects & Merged Showcase */
.bio-rich {
  position: relative;
}

.home-welcome-section.bio-rich {
  position: relative;
  overflow: hidden;
  padding: 112px 0 64px;
  background: #FAF8F4;
  border-top: none;
  border-bottom: none;
}

/* 1. Subtle Wave Mesh Pattern (low opacity, non-noisy) */
.arn-welcome-mesh-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('/images/patterns/atg_wave_pattern.svg');
  background-repeat: repeat;
  background-position: center top;
  background-size: 860px auto;
  opacity: 0.10;
}

/* 2. Single Soft Top-Right Corner Flow Accent */
.arn-welcome-pattern-topright {
  position: absolute;
  top: -40px;
  right: -50px;
  width: clamp(240px, 26vw, 380px);
  height: clamp(240px, 26vw, 380px);
  background-image: url('/images/patterns/curve-flow.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0.065;
  filter: sepia(1) saturate(2.1) hue-rotate(6deg) brightness(1.05);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
  animation: arnHeroFloatTR 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* 3. Randomized Sparkle Stars */
.arn-welcome-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.arn-welcome-sparkle,
.arn-welcome-sparkle-1,
.arn-welcome-sparkle-2 {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

.arn-welcome-sparkle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.arn-welcome-sparkle-1 {
  top: 10%;
  right: 5%;
  width: 18px;
  height: 18px;
  color: #C89B3C;
  opacity: 0.45;
  animation: arnSparkleFloat1 9s ease-in-out infinite;
}

.arn-welcome-sparkle-2 {
  bottom: 10%;
  left: 4%;
  width: 14px;
  height: 14px;
  color: #9A7232;
  opacity: 0.38;
  animation: arnSparkleFloat2 11s ease-in-out 1.5s infinite;
}

@keyframes arnHeroFloatTR {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-10px, 14px, 0) rotate(1.5deg); }
}

@keyframes arnSparkleFloat1 {
  0%, 100% { transform: translateY(0) scale(0.9); opacity: 0.25; }
  50%      { transform: translateY(-8px) scale(1.08); opacity: 0.55; }
}

@keyframes arnSparkleFloat2 {
  0%, 100% { transform: translateY(0) scale(0.9); opacity: 0.22; }
  50%      { transform: translateY(7px) scale(1.06); opacity: 0.48; }
}

/* 5. Uncompressed & Organized Welcome Grid */
.home-welcome {
  position: relative;
  z-index: 2;
  max-width: 1340px !important;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.home-welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-welcome-copy .section-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.32;
  margin-bottom: 18px;
  color: #241E18;
}

.bio-lead {
  font-size: 17.5px;
  line-height: 1.9;
  color: #4A3F35;
  margin-bottom: 14px;
}

.welcome-sublead {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--fg-secondary);
  margin-bottom: 0;
}

/* Merged 2x2 Pillars & Sectors Grid (Replaces fragmented pills + stacked bars) */
.welcome-merged-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 32px;
}

.welcome-merged-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 162, 83, 0.34);
  border-radius: 18px;
  padding: 18px 18px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(74, 56, 34, 0.05);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease,
              background 0.28s ease;
}

.welcome-merged-card:hover {
  background: #FFFFFF;
  border-color: #C89B3C;
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(154, 114, 50, 0.13);
}

.wmc-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #F5ECD7;
  border: 1px solid rgba(200, 155, 60, 0.45);
  color: #8C6528;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(154, 114, 50, 0.10);
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.welcome-merged-card:hover .wmc-icon {
  background: #C89B3C;
  color: #FFFFFF;
  transform: scale(1.06);
}

.wmc-icon svg,
.wmc-icon i {
  width: 22px;
  height: 22px;
  font-size: 22px;
  stroke-width: 2.1;
}

.wmc-body {
  flex: 1;
  min-width: 0;
}

.wmc-body strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #241E18;
  margin-bottom: 4px;
  line-height: 1.35;
}

.wmc-body small {
  display: block;
  color: #6B5E4E;
  font-size: 13.5px;
  line-height: 1.55;
}

.welcome-actions-row {
  margin-top: 4px !important;
  gap: 14px;
}

.welcome-actions-row .btn.primary,
.welcome-actions-row .btn-primary {
  background: #C89B3C !important;
  border-color: #C89B3C !important;
  color: #FFFFFF !important;
}

.welcome-actions-row .btn.primary:hover,
.welcome-actions-row .btn-primary:hover {
  background: #B0842A !important;
  border-color: #B0842A !important;
}

/* Unified Media & Identity Showcase Card (Merges Image + Bio-Agency Footer) */
.welcome-unified-showcase {
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 162, 83, 0.45);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 24px 58px rgba(74, 56, 34, 0.11);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.welcome-unified-showcase:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 68px rgba(74, 56, 34, 0.15);
}

.welcome-image-frame {
  position: relative;
  padding: 0;
  background: #241E18;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
}

.welcome-image-frame img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-unified-showcase:hover .welcome-image-frame img {
  transform: scale(1.03);
}

.welcome-floating-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #FCF9F2;
  border: 1.5px solid #D4B475;
  color: #4A3822;
  padding: 14px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(36, 30, 24, 0.22);
  max-width: 315px;
  direction: rtl;
  text-align: right;
}

.wfb-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #D8B454;
  color: #3D2B14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex-shrink: 0;
}

.wfb-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: right;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.welcome-floating-badge strong {
  display: block;
  width: 100%;
  text-align: right;
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  color: #8C6528;
}

.welcome-floating-badge span {
  display: block;
  width: 100%;
  text-align: right;
  font-size: 13px;
  color: #5C4B37;
  line-height: 1.45;
  font-weight: 600;
}

/* Integrated Bio-Agency Strip inside Unified Showcase */
.bio-agency,
.bio-agency--merged {
  margin-top: 0;
  padding: 16px 20px;
  background: #F7F1E3;
  border: 1px solid rgba(200, 162, 83, 0.42);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.25s var(--ease-standard);
}

.bio-agency *,
.bio-agency--merged * {
  cursor: pointer;
}

.bio-agency--merged:hover {
  border-color: #C89B3C;
  background: #F1E7CF;
}

.bio-agency-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.45);
  padding: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8C6528;
  box-shadow: 0 6px 14px rgba(110, 80, 40, 0.08);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.bio-agency--merged:hover .bio-agency-mark {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #C89B3C;
  transform: scale(1.05);
}

.bio-agency-mark svg,
.bio-agency-mark i {
  width: 24px;
  height: 24px;
  font-size: 24px;
  stroke-width: 2;
}

.bio-agency-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bio-agency-body {
  flex: 1;
  min-width: 0;
}

.bio-agency-name {
  font-weight: 800;
  font-size: 16px;
  color: #241E18;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bio-agency-name .ltr {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: rgba(197, 155, 56, 0.22);
  color: #6E4B1E;
  font-weight: 700;
}

.bio-agency-desc {
  font-size: 13.5px;
  color: #5C4E3E;
  margin-top: 3px;
}

.bio-agency-link {
  font-size: 14px;
  font-weight: 800;
  color: #825B24;
  background: #FFFFFF;
  border: 1px solid rgba(200, 155, 60, 0.45);
  padding: 9px 15px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.bio-agency-link:hover {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #C89B3C;
}

@media (max-width: 768px) {
  .home-welcome-section.bio-rich {
    padding: 76px 0 82px;
  }
  .welcome-merged-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .welcome-image-frame img {
    height: 310px;
  }
  .bio-agency--merged {
    flex-wrap: wrap;
  }
  .bio-agency-link {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   9. CUMULATIVE IMPACT & NUMBERS SECTION (SEAMLESSLY MERGED WITH WELCOME SECTION)
   ========================================================================== */
.legacy-stats-band,
.arn-numbers-section {
  background: #FAF8F4;
  border-top: none;
  border-bottom: none;
  padding: 54px 0 112px;
  position: relative;
  overflow: hidden;
}

.arn-numbers-mesh-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('/images/patterns/atg_wave_pattern.svg');
  background-repeat: repeat;
  background-position: center top;
  background-size: 860px auto;
  opacity: 0.10;
}

.arn-numbers-container {
  max-width: 1280px !important;
  position: relative;
  z-index: 2;
}

.arn-numbers-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 56px;
}

.arn-numbers-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F5ECD7;
  border: 1px solid rgba(200, 155, 60, 0.45);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #8C6528;
  margin-bottom: 16px;
}

.arn-numbers-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 900;
  line-height: 1.28;
  color: #241E18;
  margin: 0 0 16px !important;
}

.arn-numbers-subtitle {
  font-size: 1.18rem;
  color: #5C4E3E;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 720px;
}

/* 3 Subtle Ambient Sparkle Stars for Numbers Section */
.arn-numbers-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  color: #C89B3C;
  will-change: transform, opacity;
}

.arn-numbers-sparkle-1 {
  top: 14%;
  right: 7%;
  animation: arnNumbersStarFloat1 8.5s ease-in-out infinite -1.5s;
}

.arn-numbers-sparkle-2 {
  bottom: 16%;
  left: 6%;
  color: #9A7232;
  animation: arnNumbersStarFloat2 9.5s ease-in-out infinite -3.2s;
}

.arn-numbers-sparkle-3 {
  top: 22%;
  left: 14%;
  animation: arnNumbersStarFloat3 7.8s ease-in-out infinite -0.8s;
}

@keyframes arnNumbersStarFloat1 {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(0.85);
    opacity: 0.18;
  }
  50% {
    transform: translateY(-9px) rotate(8deg) scale(1.08);
    opacity: 0.48;
  }
}

@keyframes arnNumbersStarFloat2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1.04);
    opacity: 0.42;
  }
  50% {
    transform: translateY(8px) rotate(-6deg) scale(0.82);
    opacity: 0.18;
  }
}

@keyframes arnNumbersStarFloat3 {
  0%, 100% {
    transform: translate(0, 0) scale(0.88);
    opacity: 0.20;
  }
  50% {
    transform: translate(-4px, -7px) scale(1.06);
    opacity: 0.45;
  }
}

.arn-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.arn-impact-card {
  background: #FFFFFF;
  border: 1px solid rgba(200, 162, 83, 0.38);
  border-radius: 18px;
  padding: 38px 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(74, 56, 34, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.arn-impact-card:hover {
  border-color: #C89B3C;
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(154, 114, 50, 0.14);
}

.arn-impact-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: #F5ECD7;
  border: 1px solid rgba(200, 155, 60, 0.38);
  color: #9A7232;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.arn-impact-card:hover .arn-impact-icon-wrap {
  background: #C89B3C;
  color: #FFFFFF;
  transform: scale(1.06);
}

.arn-impact-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.7vw, 2.85rem);
  font-weight: 900;
  line-height: 1.15;
  color: #9A7232;
  margin-bottom: 12px;
  white-space: nowrap !important;
  direction: ltr;
  display: inline-block;
}

.arn-impact-title {
  font-size: clamp(1.02rem, 1.18vw, 1.25rem);
  font-weight: 800;
  color: #241E18;
  margin: 0 0 10px;
  line-height: 1.35;
}

.arn-impact-desc {
  font-size: 0.95rem;
  color: #6B5E4E;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1024px) {
  .arn-impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 580px) {
  .legacy-stats-band,
  .arn-numbers-section {
    padding: 72px 0 78px;
  }
  .arn-impact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Brand Cards with Cover Palettes (abdulosama.com .course-card + [data-cover]) */
.home-brands-section .section-head h2 {
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  color: #241E18;
  margin-bottom: 10px;
}

.home-brands-section .section-head .muted {
  font-size: 18px;
  line-height: 1.85;
  color: #4A3B2C;
  font-weight: 500;
  max-width: 780px;
}

.brand-public-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.brand-public-card.course-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.32);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(45, 35, 22, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-standard), box-shadow 0.3s var(--ease-standard), border-color 0.3s;
}

.brand-public-card.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(45, 35, 22, 0.12);
  border-color: #C89B3C;
}

.brand-cover-band {
  background: #F6EFE0;
  color: #241E18;
  padding: 24px 24px 22px;
  border-bottom: 1px solid rgba(200, 155, 60, 0.32);
  position: relative;
  overflow: hidden;
}

.ao-cover-streaks {
  display: none;
}

.brand-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.brand-icon-emblem {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  background: #EAD084 !important;
  color: #4A3822 !important;
  border: 1.5px solid rgba(154, 114, 50, 0.35);
  box-shadow: 0 6px 16px rgba(154, 114, 50, 0.14);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.brand-icon-emblem i {
  font-size: 30px;
  line-height: 1;
}

.brand-public-card:hover .brand-icon-emblem {
  transform: scale(1.05);
  background: #C89B3C !important;
  color: #FFFFFF !important;
}

.brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.cover-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  background: #C89B3C;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 9px;
}

.brand-menu-badge {
  background: #FFFFFF;
  color: #5A401E;
  border: 1.5px solid rgba(200, 155, 60, 0.55);
  border-radius: 9px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand-cover-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.cover-rail-v {
  width: 4px;
  height: 36px;
  background: #C89B3C;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-cover-band h3 {
  margin: 0;
  font-family: var(--font-arabic-display);
  font-feature-settings: "ss01" 0, "kern" 1, "liga" 1;
  font-size: 25px;
  line-height: 1.3;
  color: #241E18;
  font-weight: 800;
}

.brand-card-body {
  padding: 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFFFFF;
}

.brand-card-body .course-sub {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.82;
  color: #3D3125;
  font-weight: 500;
}

.course-points,
.brand-points {
  list-style: none !important;
  margin: 0 0 22px;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-points li,
.brand-points li {
  list-style: none !important;
  font-size: 14.5px;
  font-weight: 700;
  color: #2E2215;
  background: #F7F1E3;
  border: 1px solid rgba(200, 155, 60, 0.42);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}

.course-points li::marker,
.brand-points li::marker {
  display: none !important;
  content: none !important;
}

.course-points li i.bx,
.brand-points li i.bx {
  font-size: 20px;
  font-weight: 900;
  color: #9A7232;
  line-height: 1;
  flex-shrink: 0;
}

.brand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(200, 155, 60, 0.45);
  margin-top: auto;
}

.brand-branch-count {
  font-size: 14.5px;
  font-weight: 800;
  color: #3D3125;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-branch-count i.bx {
  color: #B6842D;
  font-size: 18px;
}

.brand-Action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F7F1E3;
  border: 1.5px solid rgba(200, 155, 60, 0.48);
  color: #4A3822;
  font-size: 14.5px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.brand-public-card:hover .brand-Action-btn {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #C89B3C;
}

/* ==========================================================================
   10. BRANCH FILTER PILLS, BRANCH CARDS, LEADERSHIP & .B2B-SECTION
   ========================================================================== */
.home-branches-section .section-head h2 {
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  color: #241E18;
  margin-bottom: 10px;
}

.home-branches-section .section-head .muted {
  font-size: 18px;
  line-height: 1.85;
  color: #4A3B2C;
  font-weight: 500;
  max-width: 780px;
}

.home-branch-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 30px;
  padding: 7px;
  background: #F6EFE0;
  border: 1.5px solid rgba(200, 155, 60, 0.35);
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
}

.home-filter-pill {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  border: 1.5px solid rgba(200, 155, 60, 0.28);
  background: #FFFFFF;
  color: #3D3125;
  padding: 9px 7px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(45, 35, 22, 0.04);
}

.home-filter-pill i.bx {
  font-size: 15px;
  color: #9A7232;
  flex-shrink: 0;
  transition: color 0.22s ease;
}

.filter-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #F6EFE0;
  color: #5C4320;
  border: 1px solid rgba(200, 155, 60, 0.35);
  flex-shrink: 0;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

@media (max-width: 1100px) {
  .home-branch-filters {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .home-branch-filters::-webkit-scrollbar {
    display: none;
  }
  .home-filter-pill {
    flex: 0 0 auto;
    padding: 9px 12px;
  }
}

.home-filter-pill:hover {
  border-color: #C89B3C;
  background: #FDFBF7;
  color: #241E18;
  transform: translateY(-2px);
}

.home-filter-pill.active {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #B5882B;
  box-shadow: 0 8px 20px rgba(200, 155, 60, 0.28);
}

.home-filter-pill.active i.bx {
  color: #FFFFFF;
}

.home-filter-pill.active .filter-pill-count {
  background: #4A3822;
  color: #EAD084;
  border-color: #4A3822;
}

.branch-public-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.26s var(--ease-standard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #C89B3C;
  box-shadow: var(--shadow-lg);
}

.public-branch-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.32);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(45, 35, 22, 0.06);
  transition: transform 0.3s var(--ease-standard), box-shadow 0.3s var(--ease-standard), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.public-branch-card:hover {
  transform: translateY(-6px);
  border-color: #C89B3C;
  box-shadow: 0 18px 40px rgba(45, 35, 22, 0.12);
}

.branch-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 16px;
  background: #FFFFFF;
  border-bottom: 1.5px solid rgba(200, 155, 60, 0.25);
  cursor: pointer;
  text-decoration: none;
}

.branch-img-stage {
  width: 100%;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
}

.public-branch-card img {
  width: 100%;
  height: 100%;
  max-height: 158px;
  object-fit: contain;
  object-position: center;
  background: #FFFFFF;
  padding: 6px 12px;
  transition: transform 0.35s ease;
}

.public-branch-card:hover img {
  transform: scale(1.03);
}

.branch-img-fallback {
  width: 100%;
  height: 158px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3B2D1D;
  color: #EAD084;
  font-family: var(--font-arabic-display);
  font-weight: 800;
  font-size: 22px;
}

.branch-img-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  pointer-events: none;
  z-index: 2;
}

.branch-floating-brand {
  background: #FAF8F4;
  color: #241E18;
  border: 1.5px solid #C89B3C;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.branch-floating-brand i.bx {
  color: #9A7232;
  font-size: 15px;
}

.branch-floating-menu {
  background: #C89B3C;
  color: #FFFFFF;
  border: 1.5px solid #B5882B;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.branch-status-pill {
  background: #3B2D1D;
  color: #FAF8F4;
  border: 1px solid rgba(234, 208, 132, 0.45);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.branch-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

.branch-card-body {
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFFFFF;
}

.branch-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  min-width: 0;
}

.branch-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EAD084;
  color: #4A3822;
  border: 1.5px solid rgba(154, 114, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.public-branch-card:hover .branch-icon-box {
  background: #C89B3C;
  color: #FFFFFF;
  transform: scale(1.04);
}

.branch-title-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.branch-sector-tag {
  font-size: 12px;
  font-weight: 800;
  color: #9A7232;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-branch-card h3 {
  color: #241E18;
  margin: 0;
  font-size: clamp(15.5px, 1.22vw, 18px);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-branch-card h3 a {
  display: block;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.public-branch-card h3 a:hover {
  color: #9A7232;
}

.branch-info-chips {
  display: grid;
  grid-template-rows: 42px 42px;
  gap: 8px;
  margin-bottom: 16px;
}

.branch-info-chip {
  height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: 11px;
  background: #FAF8F4;
  border: 1px solid rgba(200, 155, 60, 0.32);
  font-size: 13.8px;
  font-weight: 700;
  color: #3D3125;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.branch-info-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.branch-info-chip i.bx {
  font-size: 17px;
  color: #9A7232;
  flex-shrink: 0;
}

.branch-info-chip--link {
  cursor: pointer;
}

.branch-info-chip--link .branch-chip-arrow {
  margin-right: auto;
  font-size: 18px;
  color: #9A7232;
  transition: transform 0.2s ease;
}

.branch-info-chip--link:hover {
  background: #F6EFE0;
  border-color: #C89B3C;
  color: #241E18;
}

.branch-info-chip--link:hover .branch-chip-arrow {
  transform: translateX(-3px);
}

.public-branch-card .public-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed rgba(200, 155, 60, 0.42);
}

.public-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed rgba(200, 155, 60, 0.42);
}

.branch-action-btn {
  height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 12px;
  background: #F6EFE0;
  color: #4A3822;
  border: 1.5px solid rgba(200, 155, 60, 0.45);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.branch-action-btn i.bx {
  font-size: 17px;
  color: #9A7232;
  flex-shrink: 0;
  transition: color 0.22s ease;
}

.branch-action-btn:hover {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #C89B3C;
  transform: translateY(-1px);
}

.branch-action-btn:hover i.bx {
  color: #FFFFFF;
}

/* Executive Management Cards */
.home-leadership-section .section-head h2 {
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  color: #241E18;
  margin-bottom: 10px;
}

.home-leadership-section .section-head .muted {
  font-size: 18px;
  line-height: 1.85;
  color: #4A3B2C;
  font-weight: 500;
  max-width: 780px;
}

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

.management-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.32);
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  text-align: right;
  box-shadow: 0 10px 28px rgba(45, 35, 22, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-standard), box-shadow 0.3s var(--ease-standard), border-color 0.3s ease;
}

.management-card:hover {
  transform: translateY(-6px);
  border-color: #C89B3C;
  box-shadow: 0 18px 40px rgba(45, 35, 22, 0.12);
}

.management-photo-wrap {
  position: relative;
  padding: 14px 16px 16px;
  background: #F6EFE0;
  border-bottom: 1.5px solid rgba(200, 155, 60, 0.28);
}

.management-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.management-role-badge {
  background: #FAF8F4;
  color: #241E18;
  border: 1.5px solid #C89B3C;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.management-role-badge i.bx {
  color: #9A7232;
  font-size: 16px;
}

.management-scope-pill {
  background: #3B2D1D;
  color: #FAF8F4;
  border: 1px solid rgba(234, 208, 132, 0.45);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.management-photo-stage {
  width: 100%;
  height: 310px;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.35);
}

.management-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.management-card:hover .management-photo {
  transform: scale(1.03);
}

.management-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFFFFF;
}

.management-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.management-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #EAD084;
  color: #4A3822;
  border: 1.5px solid rgba(154, 114, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.management-card:hover .management-icon-box {
  background: #C89B3C;
  color: #FFFFFF;
  transform: scale(1.04);
}

.management-title-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.management-dept-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: #9A7232;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.management-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 21.5px);
  font-weight: 800;
  color: #241E18;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.management-bio {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.82;
  color: #3D3125;
  font-weight: 500;
}

.management-points {
  margin-bottom: 20px;
}

.management-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px dashed rgba(200, 155, 60, 0.42);
  margin-top: auto;
}

.management-org-label {
  font-size: 13.8px;
  font-weight: 800;
  color: #4A3B2C;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.management-org-label i.bx {
  color: #B6842D;
  font-size: 17px;
}

.management-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 11px;
  background: #F6EFE0;
  border: 1.5px solid rgba(200, 155, 60, 0.45);
  color: #4A3822;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.management-card:hover .management-link-btn {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #C89B3C;
}

/* Corporate B2B / Direct Support Ribbon (Flat Warm Champagne & Gold Card) */
.b2b-section {
  padding: 84px 0;
}

.b2b-inner.home-contact-banner {
  position: relative;
  background: #F6EFE0;
  border: 1.5px solid rgba(200, 155, 60, 0.42);
  border-radius: 28px;
  padding: 42px 38px;
  color: #241E18;
  box-shadow: 0 18px 46px rgba(45, 35, 22, 0.08);
  overflow: hidden;
}

.b2b-mark {
  display: none !important;
}

.b2b-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.b2b-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.home-contact-intro {
  margin-bottom: 20px;
}

.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.55);
  color: #4A3822;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 14px;
}

.b2b-badge i.bx {
  color: #9A7232;
  font-size: 17px;
}

.b2b-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

.b2b-title {
  font-size: clamp(27px, 3.1vw, 36px);
  color: #241E18;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.28;
}

.b2b-sub {
  font-size: 16.5px;
  line-height: 1.82;
  color: #4A3B2C;
  font-weight: 500;
  margin: 0;
}

.b2b-feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.b2b-feature-card {
  background: #FAF8F4;
  border: 1.5px solid rgba(200, 155, 60, 0.35);
  border-radius: 16px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.b2b-feat-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EAD084;
  color: #4A3822;
  border: 1px solid rgba(154, 114, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.b2b-feat-txt h4 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 800;
  color: #241E18;
}

.b2b-feat-txt p {
  margin: 0;
  font-size: 12.8px;
  color: #5C4B38;
  font-weight: 600;
  line-height: 1.45;
}

.public-contact-strip {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 0;
}

.contact-card-pill {
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.38);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(45, 35, 22, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card-pill:hover {
  background: #FFFFFF;
  border-color: #C89B3C;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(45, 35, 22, 0.10);
}

.contact-strip-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #EAD084;
  color: #4A3822;
  border: 1.5px solid rgba(154, 114, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.contact-card-pill:hover .contact-strip-icon {
  background: #C89B3C;
  color: #FFFFFF;
}

.contact-strip-texts {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-card-pill small {
  display: block;
  color: #6E5028;
  font-size: 14.5px;
  font-weight: 800;
  margin: 0;
}

.contact-card-pill b {
  display: block;
  font-size: 18px;
  color: #241E18;
  font-weight: 800;
  white-space: nowrap;
}

.contact-strip-arrow {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #F6EFE0;
  color: #6E5028;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.contact-card-pill:hover .contact-strip-arrow {
  background: #C89B3C;
  color: #FFFFFF;
  transform: translateX(-3px);
}

/* Left Column: Media Showcase Card */
.b2b-media-col {
  display: flex;
  flex-direction: column;
}

.b2b-media-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.42);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 12px 30px rgba(45, 35, 22, 0.06);
}

.b2b-media-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.b2b-media-tag {
  background: #FAF8F4;
  color: #241E18;
  border: 1.5px solid #C89B3C;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b2b-media-tag i.bx {
  color: #9A7232;
  font-size: 15px;
}

.b2b-live-pill {
  background: #3B2D1D;
  color: #FAF8F4;
  border: 1px solid rgba(234, 208, 132, 0.45);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b2b-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
}

.b2b-media-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 315px;
  border: 1.5px solid rgba(200, 155, 60, 0.32);
  margin-bottom: 14px;
  background: #3B2D1D;
}

.b2b-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.b2b-photo-overlay-card {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  background: #FAF8F4;
  border: 1.5px solid #C89B3C;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(24, 18, 12, 0.22);
}

.b2b-sub-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  border: 1.5px solid #C89B3C;
  flex-shrink: 0;
}

.b2b-overlay-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.b2b-overlay-texts strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #241E18;
}

.b2b-overlay-texts span {
  font-size: 12.5px;
  font-weight: 600;
  color: #5C4B38;
}

.b2b-media-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.b2b-mini-stat {
  background: #FAF8F4;
  border: 1px solid rgba(200, 155, 60, 0.35);
  border-radius: 13px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.b2b-mini-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EAD084;
  color: #4A3822;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.b2b-mini-stat b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #241E18;
  line-height: 1.2;
}

.b2b-mini-stat span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #6B5E4E;
}

.b2b-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px dashed rgba(200, 155, 60, 0.45);
}

.btn-whatsapp {
  height: 50px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  background: #3B2D1D;
  border: 1.5px solid #C89B3C;
  color: #FAF8F4;
  font-weight: 800;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn-whatsapp i.bx {
  color: #EAD084;
  font-size: 21px;
}

.btn-whatsapp:hover {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #C89B3C;
  transform: translateY(-2px);
}

.btn-whatsapp:hover i.bx {
  color: #FFFFFF;
}

.b2b-btn-secondary {
  height: 50px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.48);
  color: #3D3125;
  font-weight: 800;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.b2b-btn-secondary i.bx {
  color: #9A7232;
  font-size: 19px;
  transition: color 0.22s ease;
}

.b2b-btn-secondary:hover {
  background: #C89B3C;
  color: #FFFFFF;
  border-color: #C89B3C;
  transform: translateY(-2px);
}

.b2b-btn-secondary:hover i.bx {
  color: #FFFFFF;
}

@media (max-width: 1024px) {
  .b2b-showcase-grid {
    grid-template-columns: 1fr;
  }
  .b2b-feature-cards,
  .b2b-actions-row,
  .b2b-media-highlights {
    grid-template-columns: 1fr;
  }
  .contact-strip-texts {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* ==========================================================================
   11. MOTION & SCROLL REVEAL SYSTEM (SMOOTH PAGE BODY FADING)
   ========================================================================== */
.fade-anim,
.reveal-up,
.reveal-left,
.reveal-right,
.js-motion [data-rv],
.scroll-fade {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--rv-i, 0) * 90ms);
  will-change: opacity, transform;
}

.fade-left, .reveal-left { transform: translateX(-34px) scale(0.985); }
.fade-right, .reveal-right { transform: translateX(34px) scale(0.985); }

.fade-visible,
.reveal-visible,
.js-motion [data-rv].in,
.scroll-fade.in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .fade-anim, .reveal-up, .reveal-left, .reveal-right, .js-motion [data-rv], .scroll-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   12. INNER PAGES (ESTABLISHMENTS, BRANCH DETAIL, MENU, ABOUT, HR, ADMIN)
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: rgba(200, 162, 83, 0.16);
  color: var(--abdul-violet-700);
  border: 1px solid rgba(200, 162, 83, 0.35);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.hide { display: none !important; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--fg-tertiary);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.breadcrumb button,
.breadcrumb a {
  border: 0;
  background: none;
  color: #826032;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb button:hover,
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CONTACT PAGE MODERN RESTRUCTURED ARCHITECTURE (/contact)
   ========================================================================== */

.contact-page-modern {
  padding-top: 36px;
  padding-bottom: 64px;
}

.contact-page-modern > .wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* --- Section 1: Direct Contact Channels (3 Unified Architectural Cards) --- */
.contact-channels-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-channels-section .breadcrumb {
  margin-bottom: 0;
}

.contact-channels-section .section-head {
  margin-bottom: 6px;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.contact-channel-card {
  background-color: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 38px -18px rgba(36, 30, 24, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.contact-channel-card:hover {
  transform: translateY(-5px);
  border-color: #C89B3C;
  box-shadow: 0 24px 48px -16px rgba(36, 30, 24, 0.14);
}

.contact-channel-top {
  background-color: #F6EFE0;
  border-bottom: 1px solid #E5D4B0;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-tag-outline {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #FFFFFF;
  border: 1px solid #D9C08B;
  color: #6E5028;
  font-size: 12px;
  font-weight: 800;
}

.contact-channel-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-channel-title-row h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: #241E18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-channel-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.contact-channel-value-box {
  background-color: #FAF8F4;
  border: 1.5px solid #E5D4B0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-channel-value-box small,
.contact-value-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #7A5828;
}

.contact-channel-value-box b,
.contact-value-num,
.contact-value-mail {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: #241E18;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
  word-break: break-all;
}

.contact-channel-desc {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  color: #4A3E31;
}

.contact-channel-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-channel-actions .branch-action-btn,
.contact-channel-actions .btn {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* --- Section 2: Interactive Contact Form + Departments Workspace --- */
.contact-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.contact-form-card,
.contact-departments-card {
  background-color: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 44px -18px rgba(36, 30, 24, 0.08);
}

.contact-card-header-band {
  background-color: #F6EFE0;
  border-bottom: 1px solid #E5D4B0;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-header-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-header-title-row h2,
.contact-header-title-row h3 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 900;
  color: #241E18;
}

.contact-header-sub {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  color: #4A3E31;
}

.contact-form-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.contact-topic-bar {
  background-color: #FAF8F4;
  border: 1px solid #E5D4B0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-topic-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #6E5028;
}

.contact-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-topic-pill {
  appearance: none;
  border: 1px solid #D9C08B;
  background-color: #FFFFFF;
  color: #3B2D1D;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-topic-pill:hover {
  background-color: #F6EFE0;
  border-color: #C89B3C;
}

.contact-topic-pill.active {
  background-color: #3B2D1D;
  border-color: #3B2D1D;
  color: #F4E0A4;
}

.contact-modern-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

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

.contact-field {
  margin: 0;
}

.contact-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #241E18;
  margin-bottom: 8px;
}

.contact-field label i.bx {
  color: #9A7230;
  font-size: 16px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background-color: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  border-radius: 14px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #241E18;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: #C89B3C;
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.16);
}

.contact-form-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6B5B4B;
}

.contact-privacy-note i.bx,
.contact-privacy-note svg {
  color: #9A7230;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-submit-btn {
  min-width: 210px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background-color: #3B2D1D;
  border: 1.5px solid #C89B3C;
  color: #FAF8F4;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.contact-submit-btn i.bx {
  color: #EAD084;
  font-size: 19px;
}

.contact-submit-btn:hover {
  background-color: #C89B3C;
  border-color: #C89B3C;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.contact-submit-btn:hover i.bx {
  color: #FFFFFF;
}

/* --- Left Column: Specialized Departments & Working Hours --- */
.contact-departments-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.contact-dept-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-dept-item {
  background-color: #FAF8F4;
  border: 1px solid #E5D4B0;
  border-radius: 18px;
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-dept-item:hover {
  background-color: #F6EFE0;
  border-color: #C89B3C;
}

.contact-dept-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background-color: #EAD084;
  border: 1.5px solid #C89B3C;
  color: #3B2D1D;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-dept-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.contact-dept-txt h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 900;
  color: #241E18;
}

.contact-dept-txt p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: #4A3E31;
}

.contact-hours-panel {
  background-color: #F6EFE0;
  border: 1.5px solid #D9C08B;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-hours-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #241E18;
  font-size: 15px;
  font-weight: 900;
}

.contact-hours-head i.bx {
  color: #9A7230;
  font-size: 19px;
}

.contact-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-hour-box {
  background-color: #FFFFFF;
  border: 1px solid #E5D4B0;
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-hour-box small {
  font-size: 12px;
  font-weight: 700;
  color: #7A5828;
}

.contact-hour-box b {
  font-size: 14px;
  font-weight: 900;
  color: #241E18;
}

.contact-dept-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-dept-actions .branch-action-btn,
.contact-dept-actions .btn {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .contact-workspace-grid {
    grid-template-columns: 1fr;
  }

  .contact-channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .contact-page-modern > .wrap {
    gap: 40px;
  }

  .contact-channels-grid,
  .contact-form-row,
  .contact-hours-grid,
  .contact-channel-actions,
  .contact-dept-actions {
    grid-template-columns: 1fr;
  }

  .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit-btn {
    width: 100%;
  }
}

/* ==========================================================================
   RESTRUCTURED ARCHITECTURAL INNER PAGES (ESTABLISHMENTS, ABOUT, BRANCHES,
   BRANCH DETAIL, MENU, JOBS, HR PORTAL, LOGIN) — FLAT COLOR DESIGN SYSTEM
   ========================================================================== */

.inner-page-modern {
  padding-top: 36px;
  padding-bottom: 68px;
}

.inner-page-modern > .wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.inner-section-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inner-section-block .breadcrumb {
  margin-bottom: 0;
}

.inner-section-block .section-head {
  margin-bottom: 4px;
}

.inner-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.inner-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.inner-card-h1 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  color: #241E18;
  line-height: 1.3;
}

.inner-toolbar-body {
  padding: 20px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inner-search-box {
  position: relative;
  min-width: min(380px, 100%);
  display: flex;
  align-items: center;
}

.inner-search-box i.bx {
  position: absolute;
  right: 16px;
  font-size: 20px;
  color: #8C6528;
  pointer-events: none;
}

.inner-search-box input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 18px;
  border-radius: 14px;
  background-color: #FFFFFF;
  border: 1.5px solid #D9C08B;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #241E18;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inner-search-box input:focus {
  outline: none;
  border-color: #C89B3C;
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.16);
}

.contact-field select {
  width: 100%;
  background-color: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #241E18;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field select:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: #C89B3C;
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.16);
}

/* --- Branches Group Header & Branch Detail Stage --- */
.branch-group {
  margin: 0 0 44px;
}

.branch-group:last-child {
  margin-bottom: 0;
}

.branch-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background-color: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  border-radius: 18px;
  padding: 14px 20px;
  margin: 0 0 22px;
}

.branch-group-head h3 {
  font-size: 21px;
  font-weight: 900;
  margin: 0;
  color: #241E18;
}

.branch-group-head > span {
  background-color: #3B2D1D;
  color: #F4E0A4;
  border: 1px solid #C89B3C;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.branch-detail-stage {
  width: 100%;
  height: 240px;
  border-radius: 18px;
  background-color: #FAF8F4;
  border: 1.5px solid #E5D4B0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.branch-detail-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- Menu Page Architectural Styles (Combined & Merged Menu Boards) --- */
.menu-branch-switcher-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px solid #E5D4B0;
}

.menu-switcher-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: #5C431E;
}

.menu-switcher-label i {
  font-size: 17px;
  color: #8A6520;
}

.menu-switcher-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px solid #DEC89B;
  background-color: #FFFFFF;
  color: #3A2E21;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-branch-pill i {
  font-size: 15px;
  color: #8A6520;
}

.menu-branch-pill:hover {
  background-color: #FAF6EC;
  border-color: #C89B3C;
}

.menu-branch-pill.active {
  background-color: #3B2D1D;
  border-color: #3B2D1D;
  color: #F4E0A4;
}

.menu-branch-pill.active i {
  color: #EAD084;
}

.menu-toolbar-merged {
  padding: 18px clamp(20px, 2.8vw, 32px);
  background-color: #FFFFFF;
}

.menu-search-and-cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.menu-compact-search {
  width: 100%;
  min-width: 0;
  height: 46px;
}

.menu-boards-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.menu-board-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1.5px solid #DFCA9F;
  border-radius: 28px;
  overflow: hidden;
  background-color: #FFFFFF;
}

.menu-board-header {
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3.5vw, 38px) 20px;
}

.menu-board-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 900;
  color: #241E18;
  line-height: 1.3;
}

.menu-board-body {
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 38px);
  background-color: #FFFFFF;
}

.menu-spacious-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.menu-dish-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  background-color: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-dish-card:hover {
  border-color: #C89B3C;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(36, 30, 24, 0.1);
}

.menu-dish-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.menu-dish-heading-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.menu-dish-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: #241E18;
  line-height: 1.35;
}

.menu-dish-desc {
  margin: 0;
  font-size: 14.5px;
  color: #4A3E31;
  line-height: 1.75;
  font-weight: 500;
}

.menu-dish-prices-bar {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background-color: #F6EFE0;
  border: 1.5px solid #E5D4B0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-option-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 10px;
  background-color: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  flex: 1 1 auto;
  min-width: 145px;
}

.menu-option-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #3A2E21;
  line-height: 1.3;
}

.menu-option-price {
  background-color: #3B2D1D;
  color: #F4E0A4;
  border: 1px solid #C89B3C;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.menu-price-badge {
  background-color: #3B2D1D;
  color: #F4E0A4;
  border: 1px solid #C89B3C;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .menu-spacious-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- About Us Page Architectural Styles --- */
.about-page-modern {
  background: var(--bg-canvas);
  color: var(--fg-primary);
}

.about-showcase-card {
  background-color: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 28px;
  padding: clamp(26px, 3.8vw, 44px);
  box-shadow: 0 18px 44px -18px rgba(36, 30, 24, 0.08);
}

.about-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 3.8vw, 46px);
  align-items: stretch;
}

.about-showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-showcase-title {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  color: #241E18;
  line-height: 1.28;
}

.about-showcase-desc {
  margin: 0 0 20px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #4A3E31;
  font-weight: 500;
}

.about-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.about-mini-stats div {
  padding: 14px 16px;
  border: 1.5px solid #E5D4B0;
  background-color: #FAF8F4;
  border-radius: 16px;
  text-align: center;
}

.about-mini-stats strong {
  display: block;
  font-family: var(--font-display);
  color: #241E18;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.about-mini-stats span {
  color: #7A5828;
  font-size: 13px;
  font-weight: 800;
}

.about-showcase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-showcase-visual {
  display: flex;
  flex-direction: column;
}

.about-chairman-card {
  border: 1.5px solid #DFCA9F;
  border-radius: 24px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.about-chairman-stage {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #C89B3C;
  background-color: #FFFFFF;
}

.about-chairman-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-chairman-meta {
  background-color: #FFFFFF;
  border: 1.5px solid #E5D4B0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-chairman-meta h3 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 900;
  color: #241E18;
}

.about-chairman-banner {
  background-color: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  border-radius: 28px;
  padding: clamp(26px, 3.6vw, 42px);
  box-shadow: 0 18px 44px -18px rgba(36, 30, 24, 0.08);
}

.about-chairman-banner-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 3.6vw, 44px);
  align-items: center;
}

.about-chairman-portrait-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-chairman-portrait-frame {
  width: 100%;
  height: 350px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #C89B3C;
  background-color: #FFFFFF;
}

.about-chairman-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-chairman-sign-card {
  background-color: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-chairman-sign-card b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #241E18;
}

.about-chairman-sign-card span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #7A5828;
}

.about-chairman-text-col {
  background-color: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 24px;
  padding: clamp(22px, 3vw, 34px);
}

.about-msg-p {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.9;
  color: #3D3125;
  font-weight: 500;
}

/* --- HR Portal Lookup Bar & Layout --- */
.hr-portal-main-col {
  display: flex;
  flex-direction: column;
}

.hr-lookup-bar {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .about-showcase-grid,
  .about-chairman-banner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .inner-page-modern > .wrap {
    gap: 40px;
  }

  .about-mini-stats {
    grid-template-columns: 1fr;
  }

  .hr-lookup-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hr-lookup-bar .contact-submit-btn {
    width: 100%;
  }
}

/* ==========================================================================
   13. FORMS, PANELS, TABLES, HR PORTAL & ADMIN ERP SYSTEM
   ========================================================================== */
.panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

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

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full, .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--fg-primary);
}

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 14px;
  background: #ffffff;
  color: var(--fg-primary);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--abdul-violet-600);
  box-shadow: 0 0 0 3.5px rgba(90, 22, 230, 0.14);
}

input[readonly] { background: var(--bg-surface); color: var(--fg-secondary); }
textarea { min-height: 100px; resize: vertical; }

.btn.navy { background: var(--uls-purple-nav); color: #fff; }
.btn.navy:hover { background: var(--uls-purple-deep); transform: translateY(-2px); }
.btn.soft { background: var(--bg-surface); color: var(--fg-primary); border: 1px solid var(--border-subtle); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger, .dangerBtn { background: #fff0f2; color: var(--danger); border: 1px solid #fecdd3; }
.btn.danger:hover, .dangerBtn:hover { background: var(--danger); color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.table, table { width: 100%; border-collapse: collapse; }
.table th, .table td, th, td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
  vertical-align: middle;
  font-size: 14px;
}
.table th, th {
  background: var(--bg-surface);
  color: var(--fg-primary);
  font-weight: 700;
  white-space: nowrap;
}
tr:hover td { background: #faf9f5; }

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(90, 22, 230, 0.08);
  color: var(--abdul-violet-700);
  font-size: 12px;
  font-weight: 700;
}
.badge.ok, .status-ok, .badge-status.ok, .status-badge.st-approved {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(31, 216, 150, 0.15);
  color: var(--abdul-mint-700);
  font-size: 12px;
  font-weight: 700;
}
.badge.warn, .badge-status.warn, .status-badge.st-pending, .status-badge.st-draft {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}
.status-bad, .badge-status.bad, .status-badge.st-rejected {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: #ffe4e6;
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
}

.signature-box, .sig-wrap {
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}
.signature-box canvas, canvas.sig-canvas {
  display: block;
  width: 100%;
  height: 170px;
  border-radius: 8px;
  background: #ffffff;
  touch-action: none;
  cursor: crosshair;
}
.sig-image { max-width: 280px; max-height: 120px; border: 1px solid var(--border-subtle); border-radius: 10px; background: #fff; }

/* Admin ERP Workspace — Exact AbuThamerah_Web_R16.html Styling */
body.is-admin-page,
body:has(#page-admin.active) {
  background: #ffffff !important;
  color: #242424 !important;
  font-family: "Tajawal", "Cairo", Tahoma, Arial, sans-serif !important;
}
body.is-admin-page #ulsHeaderShell,
body.is-admin-page #siteHeader,
body.is-admin-page #siteTopBar,
body.is-admin-page #siteFooter,
body.is-admin-page #arn-floating-speeddial,
body:has(#page-admin.active) #ulsHeaderShell,
body:has(#page-admin.active) #siteHeader,
body:has(#page-admin.active) #siteTopBar,
body:has(#page-admin.active) #siteFooter,
body:has(#page-admin.active) #arn-floating-speeddial {
  display: none !important;
}
body.is-admin-page #siteMain,
#siteMain:has(#page-admin.active) {
  padding-top: 0 !important;
  background: #ffffff !important;
}
#page-admin {
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  color: #242424 !important;
  min-height: 100vh;
  font-family: "Tajawal", "Cairo", Tahoma, Arial, sans-serif !important;
}
#page-admin h1,
#page-admin h2,
#page-admin h3,
#page-admin h4,
#page-admin h5,
#page-admin b,
#page-admin strong,
#page-admin button,
#page-admin input,
#page-admin select,
#page-admin textarea {
  font-family: "Tajawal", "Cairo", Tahoma, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}
#page-admin .r16-admin-topbar {
  background: #191919 !important;
  color: #e9dfc0 !important;
  border-bottom: 2px solid #ae9954 !important;
  font-size: 13px !important;
}
#page-admin .r16-admin-topbar-wrap {
  max-width: 1200px !important;
  margin: auto !important;
  padding: 9px 20px !important;
  display: flex !important;
  gap: 24px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 38px !important;
}
#page-admin .admin-shell,
#page-admin .admin-wrap {
  display: grid !important;
  grid-template-columns: 245px 1fr !important;
  gap: 0 !important;
  min-height: calc(100vh - 40px) !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
}
#page-admin .sidebar,
#page-admin .side {
  background: #0f1c30 !important;
  color: #ffffff !important;
  padding: 20px !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  position: static !important;
}
#page-admin .sidebar h3,
#page-admin .side h3 {
  margin-top: 4px !important;
  margin-bottom: 18px !important;
  font-size: 18.72px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}
#page-admin .sidebar button,
#page-admin .side button {
  display: block;
  width: 100% !important;
  text-align: right !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: none !important;
  color: #d9e2ed !important;
  cursor: pointer !important;
  margin: 3px 0 !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  box-shadow: none !important;
  transform: none !important;
}
#page-admin .sidebar button.hide,
#page-admin .side button.hide,
#page-admin .hide,
#page-admin [style*="display: none"],
#page-admin [style*="display:none"] {
  display: none !important;
}
#page-admin .sidebar button:hover,
#page-admin .sidebar button.active,
#page-admin .side button:hover,
#page-admin .side button.active {
  background: #ffffff12 !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}
#page-admin .admin-main {
  padding: 28px !important;
  background: #ffffff !important;
  min-width: 0 !important;
}
#page-admin .admin-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 15px !important;
}
#page-admin .admin-top h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #242424 !important;
  margin: 0 0 6px !important;
}
#page-admin .user-chip {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f6f8fb !important;
  border: 1px solid #e5e9ef !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  color: #242424 !important;
  font-size: 16px !important;
}
#page-admin .kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px !important;
  margin: 20px 0 0 !important;
}
#page-admin .kpi {
  background: #ffffff !important;
  border: 1px solid #e5e9ef !important;
  border-radius: 16px !important;
  padding: 18px !important;
  box-shadow: none !important;
}
#page-admin .kpi span {
  color: #242424 !important;
  font-size: 16px !important;
}
#page-admin .kpi b,
#page-admin .kpi .n {
  font-size: 27px !important;
  font-weight: 700 !important;
  display: block !important;
  margin-top: 8px !important;
  color: #242424 !important;
}
#page-admin .ops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  margin: 18px 0 !important;
}
#page-admin .ops-card {
  background: #ffffff !important;
  border: 1px solid #e5e9ef !important;
  border-right: 1px solid #e5e9ef !important;
  border-radius: 16px !important;
  padding: 17px !important;
  box-shadow: none !important;
}
#page-admin .ops-card span {
  color: #242424 !important;
  font-size: 16px !important;
}
#page-admin .ops-card strong,
#page-admin .ops-card .big {
  display: block !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  margin-top: 8px !important;
  color: #242424 !important;
}
#page-admin .quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin: 16px 0 0 !important;
}
#page-admin .quick-action,
#page-admin .qa-btn {
  border: 1px solid #e5e9ef !important;
  border-radius: 14px !important;
  padding: 16px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  text-align: right !important;
  box-shadow: none !important;
  transform: none !important;
}
#page-admin .quick-action b,
#page-admin .qa-btn b {
  display: block !important;
  margin-bottom: 5px !important;
  color: #242424 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
#page-admin .quick-action .muted,
#page-admin .qa-btn span {
  font-size: 16px !important;
  color: #6e7783 !important;
}
#page-admin .panel {
  background: #ffffff !important;
  border: 1px solid #e5e9ef !important;
  border-radius: 18px !important;
  padding: 22px !important;
  margin-top: 18px !important;
  box-shadow: none !important;
}
#page-admin .panel h3 {
  font-size: 18.72px !important;
  font-weight: 700 !important;
  color: #242424 !important;
  margin: 0 0 14px !important;
}
#page-admin .two-report-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
}
#page-admin .small {
  padding: 7px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #d6c79b !important;
  background: #ffffff !important;
  color: #242424 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}
#page-admin .small:hover {
  border-color: #a68e49 !important;
  background: #faf7ef !important;
}
#page-admin .muted {
  color: #6e7783 !important;
}
#page-admin .btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}
#page-admin .btn.gold,
#page-admin .btn.primary {
  background: linear-gradient(135deg, #bda75e, #927c39) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}
#page-admin .btn.soft,
#page-admin .btn.secondary {
  background: #ffffff !important;
  color: #12223b !important;
  border: 1px solid #e5e9ef !important;
  box-shadow: none !important;
}
#page-admin .btn.navy {
  background: #12223b !important;
  color: #ffffff !important;
  border: 0 !important;
}
#page-admin .btn.danger,
#page-admin .dangerBtn {
  background: #fff0f0 !important;
  color: #9f2f2f !important;
  border: 1px solid #f2c9c9 !important;
}
#page-admin .btn.sm {
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}
#page-admin table,
#page-admin .table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
#page-admin th,
#page-admin td {
  padding: 12px 10px !important;
  border-bottom: 1px solid #e5e9ef !important;
  text-align: right;
  vertical-align: top;
  color: #242424;
}
#page-admin th {
  background: #f8fafc !important;
  color: #556274 !important;
  font-weight: 700;
}
#page-admin input,
#page-admin select,
#page-admin textarea {
  border: 1px solid #dbe1e8 !important;
  border-radius: 10px !important;
  padding: 11px 12px !important;
  background: #ffffff !important;
  color: #242424 !important;
  box-shadow: none !important;
}
#page-admin input[readonly] {
  background: #f5f7fa !important;
  color: #5b6776 !important;
}
#page-admin .pill {
  display: inline-flex;
  border-radius: 100px;
  background: #f3ecd7 !important;
  color: #78652f !important;
  border: 1px solid #dfd1a7 !important;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
#page-admin .badge,
#page-admin .status-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf3fa;
  color: #31506f;
  font-size: 12px;
  font-weight: 700;
}
#page-admin .badge.ok,
#page-admin .st-approved {
  background: #eaf7f1 !important;
  color: #14724f !important;
}
#page-admin .badge.warn,
#page-admin .st-pending {
  background: #fff5df !important;
  color: #8a5b00 !important;
}
#page-admin .st-rejected {
  background: #fff0f0 !important;
  color: #a52d2d !important;
}
.q-cat { background: #12223b; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; margin: 18px 0 10px; }
.q-card { background: #fff; border: 1px solid #e5e9ef; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-title { font-weight: 700; color: #242424; font-size: 15px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid #e5e9ef; background: #fff; cursor: pointer; font-weight: 700; font-size: 13px; }
.choice input { width: auto; margin: 0; }
.choice.good { border-color: #6ee7b7; background: #ecfdf5; color: #12845d; }
.choice.bad { border-color: #fda4af; background: #fff1f2; color: #c63a3a; }
.violation-photo-box { display: none; margin-top: 10px; padding: 12px; border: 1px dashed #fda4af; background: #fff1f2; border-radius: 12px; }
.violation-photo-box.show { display: block; }
.violation-thumb { max-width: 150px; max-height: 110px; border-radius: 10px; margin-top: 8px; object-fit: cover; }
.closing-section { background: #fcfdff; border: 1px solid #e5e9ef; border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.closing-section h4 { margin: 0 0 14px; color: #12223b; font-size: 17px; border-bottom: 1px solid #e5e9ef; padding-bottom: 8px; }
.denom-grid, .summary-strip, .report-kpis-6, .perm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.denom-box, .sum-item, .rkpi, .perm-item { background: #fff; border: 1px solid #e5e9ef; border-radius: 12px; padding: 12px; }
.sum-item .v, .rkpi .v { font-size: 22px; font-weight: 800; color: #12223b; margin-top: 4px; }
.diff-indicator { padding: 12px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 12px; text-align: center; }
.diff-indicator.zero { background: #ecfdf5; color: #12845d; }
.diff-indicator.plus { background: #FAF8F4; color: #6E5028; }
.diff-indicator.minus { background: #fff1f2; color: #c63a3a; }
.report-layer { background: #fff; border: 1px solid #e5e9ef; border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.report-layer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.period-chips, .detail-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pchip, .dtab { border: 1px solid #d7dfe8; background: #f7f9fb; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; }
.pchip.active, .dtab.active { background: #17263d; color: #fff; border-color: #17263d; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 130px; gap: 12px; align-items: center; margin-bottom: 10px; }
.bar-track { height: 12px; background: #edf1f5; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #17263d, #54779e); border-radius: 999px; }
.bar-fill.danger { background: #c63a3a; }
.smart-alerts { display: grid; gap: 8px; margin-top: 12px; }
.smart-alert { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 11px; font-weight: 700; font-size: 13px; }
.smart-alert.danger { background: #fff1f2; color: #c63a3a; border: 1px solid #fecdd3; }
.smart-alert.warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.perm-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.perm-item input { width: auto; margin: 0; }

#toastContainer {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(390px, calc(100vw - 32px));
}
.r16-toast {
  background: #2E261F;
  color: #FAF8F4;
  padding: 14px 18px;
  border-radius: 14px;
  border-right: 5px solid #C8A253;
  box-shadow: 0 16px 36px rgba(46, 38, 31, 0.3);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.r16-toast.ok { border-right-color: var(--abdul-mint-500); }
.r16-toast.danger { border-right-color: var(--abdul-salmon-500); }

/* ==========================================================================
   14. COMPLETE MULTI-DEVICE RESPONSIVE SYSTEM (DESKTOP, TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1320px) {
  .uls-navbar {
    padding: 10px 18px;
  }
  .uls-navbar-inner {
    gap: 12px;
  }
  .uls-brand-logo {
    height: 76px;
    max-width: 260px;
  }
  .uls-header-shell.is-scrolled .uls-brand-logo {
    height: 64px;
  }
  .uls-nav-pillars {
    gap: 2px;
  }
  .uls-pillar-btn {
    padding: 8px 10px;
    font-size: 14.8px;
  }
  .uls-action-secondary,
  .uls-action-primary {
    padding: 9px 13px;
    font-size: 13.5px;
  }
}

@media (max-width: 1120px) {
  .uls-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 1000px) {
  #page-admin .kpis { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
  #page-admin .admin-shell,
  #page-admin .admin-wrap { grid-template-columns: 1fr !important; }
  #page-admin .sidebar,
  #page-admin .side { display: flex !important; overflow: auto !important; gap: 5px !important; }
  #page-admin .sidebar h3,
  #page-admin .side h3 { display: none !important; }
  #page-admin .sidebar button,
  #page-admin .side button { white-space: nowrap !important; width: auto !important; }
  #page-admin .admin-main { padding: 16px !important; }
  #page-admin .ops-grid,
  #page-admin .quick-actions { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 800px) {
  #page-admin .two-report-cards { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  #page-admin .kpis,
  #page-admin .ops-grid,
  #page-admin .quick-actions { grid-template-columns: 1fr !important; }
  #page-admin .admin-top { align-items: flex-start !important; flex-direction: column !important; }
}

/* Prevent any Grid / Flex horizontal overflow across RTL viewports */
#siteMain,
.page,
.public-section,
.section,
.uls-header-shell,
.uls-navbar,
.group-hero,
.about-hero-modern {
  max-width: 100vw;
  overflow-x: clip;
}

.group-hero-grid > *,
.home-welcome > *,
.group-quick-grid > *,
.brand-public-grid > *,
.branch-public-grid > *,
.management-grid > *,
.public-contact-strip > *,
.about-hero-grid > *,
.chairman-message-grid > *,
.branch-detail-layout > *,
.uls-footer-grid > *,
.form-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1080px) {
  :root { --uls-header-h: 82px; }
  #siteMain { padding-top: var(--uls-header-h); }
  .uls-topbar { display: none; }
  .uls-navbar { padding: 10px 18px; }
  .uls-navbar-inner { flex-wrap: wrap; width: 100%; }
  .brand-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .uls-brand-logo { height: 72px; max-width: 250px; }
  .uls-mobile-toggle { display: inline-flex; flex-shrink: 0; }
  .uls-nav-actions { display: none; }
  .uls-nav-pillars {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid rgba(200, 162, 83, 0.28);
    gap: 6px;
  }
  .uls-nav-pillars.open {
    display: flex;
  }
  .uls-pillar-item {
    flex-direction: column;
    align-items: stretch;
  }
  .uls-pillar-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 16px;
  }
  .uls-pillar-mask,
  .uls-dropdown-menu {
    display: none !important;
  }
  .uls-mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid rgba(200, 162, 83, 0.28);
  }
  .uls-mobile-drawer-actions button {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
  }

  .group-hero-grid,
  .home-welcome,
  .about-hero-grid,
  .chairman-message-grid,
  .branch-detail-layout,
  .group-quick-grid,
  .legacy-stats,
  .management-grid,
  .about-story-grid,
  .about-pillars-grid,
  .leadership-modern-grid,
  .public-contact-strip,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-showcase-col {
    padding: 12px 0 0;
  }

  .spec-chip--exp,
  .spec-chip--ai {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 10px 0;
    animation: none;
  }

  .brand-public-grid,
  .branch-public-grid,
  .grid,
  .customer-menu-page .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-trust-row {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 10px;
  }
  .hero-trust-badge {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .uls-brand-logo { height: 62px; max-width: 220px; }
  .group-hero.hero--sky {
    padding: 40px 0 72px;
  }
  .group-hero .hero-title {
    font-size: 30px;
  }
  .hero-glass-card {
    padding: 22px 16px;
  }
  .hero-glass-header {
    flex-wrap: wrap;
  }
  .uls-footer-grid,
  .brand-public-grid,
  .branch-public-grid,
  .grid,
  .customer-menu-page .menu-list,
  .hero-sector-tags,
  .hero-sector-tags--simple,
  .about-mini-stats,
  .about-number-grid,
  .kpis,
  .ops-grid,
  .quick-actions,
  .denom-grid,
  .summary-strip,
  .report-kpis-6,
  .perm-grid,
  .bar-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .uls-footer-copy-row {
    flex-direction: column-reverse;
    text-align: center;
  }
  .b2b-inner.home-contact-banner {
    padding: 28px 18px;
  }
  .b2b-mark {
    display: none;
  }
  .b2b-actions-row .btn,
  .b2b-actions-row .btn-whatsapp,
  .group-hero .actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   13. FLOATING SPEED-DIAL CONTACT & SCROLL-TO-TOP (ARN.TEST REPLICA IN ABU THAMERAH PALETTE)
   ========================================================================== */
.arn-floating-speeddial {
  position: fixed;
  bottom: clamp(16px, 2.5vw, 24px);
  right: clamp(16px, 2.5vw, 26px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  user-select: none;
  -webkit-user-select: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.arn-floating-speeddial.is-near-bottom {
  transform: translateY(-118px);
}

/* Universal Squircle Buttons */
.arn-fab-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  box-sizing: border-box;
  padding: 0;
  position: relative;
  border: 2px solid #C89B3C;
  box-shadow: 0 8px 24px rgba(58, 44, 28, 0.22);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.28s ease;
}

@media (min-width: 640px) {
  .arn-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
}

.arn-fab-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 155, 60, 0.45);
}

.arn-fab-btn:active {
  transform: scale(0.94);
}

.arn-fab-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .arn-fab-icon {
    width: 24px;
    height: 24px;
  }
}

/* 1. Back to Top Button */
.arn-fab-top-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.6);
  pointer-events: none;
  transition: opacity 0.22s ease,
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
}

.arn-fab-top-wrap.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.arn-fab-btn-top {
  background: #FFFFFF;
  color: #4A3822;
  border-color: #C89B3C;
}

.arn-fab-btn-top:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #B88928 100%);
  color: #FFFFFF;
  border-color: #C89B3C;
}

/* 2. Contact Expandable Menu */
.arn-fab-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.arn-fab-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  overflow: visible;
  transition: max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.24s ease,
              transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.36s;
}

.arn-fab-menu.is-open .arn-fab-actions-stack {
  max-height: 260px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Action Items (Email, Phone, WhatsApp) */
.arn-fab-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.arn-fab-btn-action {
  background: linear-gradient(135deg, #D4AF37 0%, #B88928 100%);
  color: #FFFFFF !important;
  border-color: #C89B3C;
}

.arn-fab-btn-action:hover {
  background: linear-gradient(135deg, #E2BE4C 0%, #C89B3C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 12px 30px rgba(200, 155, 60, 0.52);
}

.arn-fab-whatsapp svg {
  fill: #FFFFFF;
}

/* 3. Main Contact Trigger Button */
.arn-fab-trigger-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.arn-fab-btn-trigger {
  background: linear-gradient(135deg, #D4AF37 0%, #B88928 100%);
  color: #FFFFFF;
  border-color: #C89B3C;
  z-index: 2;
}

.arn-fab-icon-headphones,
.arn-fab-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.arn-fab-icon-close {
  display: none;
}

/* When toggled open: crisp white squircle with gold border and gold X icon */
.arn-fab-menu.is-open .arn-fab-btn-trigger {
  background: #FFFFFF;
  color: #B88928;
  border: 2px solid #C89B3C;
  transform: rotate(90deg);
  box-shadow: 0 8px 25px rgba(74, 56, 34, 0.18);
}

.arn-fab-menu.is-open .arn-fab-btn-trigger:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #B88928 100%);
  color: #FFFFFF;
}

.arn-fab-menu.is-open .arn-fab-icon-headphones {
  display: none;
}

.arn-fab-menu.is-open .arn-fab-icon-close {
  display: flex;
}

/* Radar Pulse Ripple Wave behind Headphones Trigger (Closed state) */
@keyframes fabRadarPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.42);
    opacity: 0;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.arn-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid #D4AF37;
  animation: fabRadarPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 640px) {
  .arn-fab-pulse {
    border-radius: 20px;
  }
}

.arn-fab-menu.is-open .arn-fab-pulse {
  display: none;
}

/* Tooltip Pills (Appearing to the left of the right-docked buttons) */
.arn-fab-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  left: auto;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #5C4630;
  color: #FAF8F4;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 28px rgba(36, 28, 18, 0.32);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease,
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  z-index: 30;
  font-family: var(--font-body);
}

.arn-fab-item:hover .arn-fab-tooltip,
.arn-fab-trigger-wrap:hover .arn-fab-tooltip,
.arn-fab-top-wrap:hover .arn-fab-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   14. BESPOKE LUXURY PRELOADER (ARN.TEST REPLICA IN ABU THAMERAH GOLD PALETTE)
   ========================================================================== */
#arn-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #2C2218;
  box-shadow: inset 0 0 120px rgba(212, 175, 55, 0.34), inset 0 0 50px rgba(234, 208, 132, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FAF8F4;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: all;
  animation: preloaderAuraPulse 4s ease-in-out infinite alternate;
}

@keyframes preloaderAuraPulse {
  0% {
    box-shadow: inset 0 0 90px rgba(212, 175, 55, 0.28), inset 0 0 35px rgba(234, 208, 132, 0.18);
  }
  100% {
    box-shadow: inset 0 0 135px rgba(212, 175, 55, 0.46), inset 0 0 60px rgba(234, 208, 132, 0.32);
  }
}

#arn-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.arn-preloader-ambient-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(212, 175, 55, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(184, 137, 40, 0.24) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(234, 208, 132, 0.10) 0%, transparent 60%);
  opacity: 0.88;
  animation: preloaderAuraFloat 7s ease-in-out infinite alternate;
}

@keyframes preloaderAuraFloat {
  0% { transform: scale(1) rotate(0deg); opacity: 0.75; }
  100% { transform: scale(1.08) rotate(2deg); opacity: 0.95; }
}

.arn-preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.arn-preloader-logo-wrap {
  width: 240px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 28px auto;
  position: relative;
  animation: preloaderZoomIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards, preloaderLogoPulse 3s ease-in-out infinite 1.1s;
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.55));
}

.arn-preloader-logo-img {
  width: 155px;
  max-width: 155px;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

@keyframes preloaderZoomIn {
  0% { opacity: 0; transform: scale(0.72) translateY(18px); filter: blur(10px); }
  55% { opacity: 1; transform: scale(1.06) translateY(-4px); filter: blur(0px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}

@keyframes preloaderLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.45)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 38px rgba(234, 208, 132, 0.80)); }
}

.arn-preloader-halo {
  position: absolute;
  width: 270px;
  height: 270px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 45px rgba(212, 175, 55, 0.28), inset 0 0 35px rgba(212, 175, 55, 0.14);
  animation: preloaderHaloSpin 16s linear infinite;
  pointer-events: none;
}

@keyframes preloaderHaloSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.arn-preloader-title {
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  opacity: 0;
  animation: preloaderTextFade 0.75s ease forwards 0.3s;
}

.arn-preloader-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14.5px, 1.5vw, 17px);
  font-weight: 600;
  color: #EAD084;
  max-width: 480px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  opacity: 0;
  animation: preloaderTextFade 0.75s ease forwards 0.5s;
}

.arn-preloader-bar-wrap {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.arn-preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #C89B3C 0%, #EAD084 50%, #D4AF37 100%);
  border-radius: 999px;
  animation: preloaderFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderFill {
  0% { width: 0%; }
  60% { width: 78%; }
  100% { width: 100%; }
}

@keyframes preloaderTextFade {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.arn-preloader-bar-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: preloaderBarSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes preloaderBarSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   15. UNIFIED RESPONSIVE TYPOGRAPHY, FILTER DOCKS & CENTERING SYSTEM
   ========================================================================== */

/* --- Unified Filter Docks & Sub-Navigation Bars Across All Pages --- */
.inner-filter-dock {
  background-color: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.inner-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #3B2D1D;
  white-space: nowrap;
}

.inner-filter-label i.bx {
  font-size: 18px;
  color: #9A7230;
}

.home-branch-filter-bar,
.home-branches-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background-color: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
}

.inner-filter-dock .home-branches-filter-bar {
  background: transparent;
  border: 0;
  padding: 0;
  width: auto;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.home-branch-filter-bar .home-filter-pill,
.home-branches-filter-bar .home-filter-pill {
  flex: 1 1 auto;
  padding: 9px 14px;
  font-size: 13.5px;
}

/* --- Department Item Header Rows (About, Leadership, Vision, Login) --- */
.contact-dept-top,
.contact-dept-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-dept-top > span,
.contact-dept-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #F6EFE0;
  border: 1px solid #D9C08B;
  color: #6E5028;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* --- Fluid & Proportional Typography Across All Pages --- */
.section-title,
.section-head h1,
.section-head h2,
.home-brands-section .section-head h2,
.home-branches-section .section-head h2,
.home-leadership-section .section-head h2,
.arn-numbers-title {
  font-size: clamp(22px, 3.1vw, 36px) !important;
  line-height: 1.32 !important;
}

.section-sub,
.lead,
.bio-lead,
.home-brands-section .section-head .muted,
.home-branches-section .section-head .muted,
.home-leadership-section .section-head .muted,
.arn-numbers-subtitle,
.b2b-sub,
.about-showcase-desc,
.about-msg-p {
  font-size: clamp(14.5px, 1.35vw, 17px) !important;
  line-height: 1.8 !important;
}

.brand-cover-band h3 {
  font-size: clamp(18.5px, 1.9vw, 22.5px);
  line-height: 1.35;
}

.contact-channel-title-row h3 {
  font-size: clamp(17.5px, 1.75vw, 20.5px);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

.public-branch-card h3,
.public-branch-card h3 a,
.management-card h3 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.38;
}

/* ==========================================================================
   TABLET & MOBILE DRAWER + HERO + SPLIT SECTIONS CENTERING (<= 1080px)
   ========================================================================== */
@media (max-width: 1080px) {
  /* Allow Mobile Menu Drawer to show Sub-Page Links clearly */
  .uls-nav-pillars.open {
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    padding-bottom: 14px;
  }

  .uls-pillar-item.has-dropdown .uls-dropdown-menu {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    width: 100% !important;
    padding: 6px 12px 4px 0 !important;
    box-shadow: none !important;
  }

  .uls-pillar-item.has-dropdown .uls-dropdown-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(200, 162, 83, 0.25) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .uls-pillar-item.has-dropdown .uls-drop-item {
    padding: 9px 12px !important;
    border-radius: 10px !important;
  }

  .uls-pillar-item.has-dropdown .uls-drop-body p {
    display: none !important;
  }

  /* Center Home Hero Content & Spec Chips when Stacked */
  .group-hero .hero-content-col {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
  }

  .group-hero .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .group-hero .hero-title {
    text-align: center;
    font-size: clamp(26px, 4.6vw, 38px);
  }

  .group-hero .hero-ruqaa-banner {
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: clamp(16.5px, 2.8vw, 21px);
  }

  .group-hero .hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .group-hero .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .group-hero .hero-trust-row {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .spec-chip--exp,
  .spec-chip--ai {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 10px auto;
    justify-content: center;
  }

  /* Center Home Welcome Copy Header when Stacked */
  .home-welcome-copy {
    align-items: center;
    text-align: center;
  }

  .home-welcome-copy .section-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .home-welcome-copy .section-title,
  .home-welcome-copy .bio-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .welcome-actions-row {
    justify-content: center;
    width: 100%;
  }

  /* Center About Showcase Copy when Stacked */
  .about-showcase-copy {
    align-items: center;
    text-align: center;
  }

  .about-showcase-copy .b2b-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .about-showcase-copy .course-points {
    justify-content: center;
  }

  .about-showcase-actions {
    justify-content: center;
    width: 100%;
  }

  /* Center B2B 24/7 Support Intro when Stacked */
  .home-contact-intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-contact-intro .b2b-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   TABLET & MOBILE SECTION HEADERS, BREADCRUMBS & FILTER BARS (<= 860px)
   ========================================================================== */
@media (max-width: 860px) {
  .public-section,
  .section {
    padding: 56px 0;
  }

  .inner-page-modern {
    padding-top: 26px;
    padding-bottom: 52px;
  }

  .inner-page-modern > .wrap,
  .contact-page-modern > .wrap {
    gap: 40px;
  }

  /* Center Breadcrumbs */
  .breadcrumb {
    justify-content: center;
    text-align: center;
  }

  /* Center All Section Headers & Split Page Headers */
  .section-head,
  .inner-head-split {
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    text-align: center;
    gap: 16px;
  }

  .section-head > div,
  .inner-head-split > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .section-eyebrow,
  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .section-sub,
  .section-head .muted {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  .inner-head-actions {
    justify-content: center;
    width: 100%;
  }

  .inner-search-box {
    width: 100%;
    min-width: 0;
  }

  /* Center Filter Docks, Switchers & Pill Bars */
  .inner-filter-dock {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .inner-filter-dock .home-branches-filter-bar,
  .home-branch-filters,
  .home-branch-filter-bar,
  .home-branches-filter-bar {
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu-branch-switcher-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .menu-switcher-pills,
  .contact-topic-pills {
    justify-content: center;
  }

  .contact-topic-bar {
    align-items: center;
    text-align: center;
  }

  /* Center Overlapping 4 Stat Cards on Tablet/Mobile */
  .uls-stat-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px 16px;
  }

  .uls-stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .uls-stat-number-row {
    justify-content: center;
    font-size: clamp(28px, 6vw, 36px);
  }

  /* Center Footer Columns on Tablet 2-Column or Mobile 1-Column */
  .uls-fcol {
    align-items: center;
    text-align: center;
  }

  .uls-fcol-heading::after {
    margin-left: auto;
    margin-right: auto;
  }

  .uls-footer-socials,
  .uls-contact-phones-merged,
  .uls-contact-email-right,
  .uls-footer-bottom-links {
    justify-content: center !important;
    text-align: center !important;
  }

  .uls-contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .uls-quick-list,
  .uls-programs-list {
    align-items: center;
  }

  .uls-program-link {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   MOBILE PHONE CENTERING & COMPACT TYPOGRAPHY (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .group-hero .hero-title {
    font-size: clamp(23px, 6.4vw, 29px);
    line-height: 1.32;
  }

  .hero-glass-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .hero-glass-header strong {
    font-size: clamp(16.5px, 4.5vw, 18.5px);
  }

  .hero-glass-metrics {
    gap: 8px;
  }

  .hero-metric-box {
    padding: 12px 6px;
    border-radius: 14px;
  }

  .hero-metric-box strong {
    font-size: clamp(20px, 5.6vw, 26px);
  }

  .hero-metric-box span {
    font-size: clamp(11.5px, 3.1vw, 13px);
  }

  /* Center Welcome Pillar Cards & Floating Badge on Mobile */
  .welcome-merged-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }

  .welcome-floating-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 12px 14px;
  }

  .bio-agency--merged {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-agency-name {
    justify-content: center;
  }

  /* Center Card Header Bands & Title Rows on Mobile */
  .contact-card-header-band,
  .contact-channel-top,
  .brand-cover-band,
  .menu-board-header {
    padding: 20px 18px 18px;
    text-align: center;
    align-items: center;
  }

  .contact-channel-badges,
  .brand-card-top,
  .brand-badges,
  .management-top-bar,
  .b2b-media-top-bar {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .contact-header-title-row,
  .contact-channel-title-row,
  .brand-cover-title-row,
  .management-title-row,
  .branch-title-row,
  .menu-dish-heading-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    width: 100%;
  }

  .cover-rail-v {
    display: none;
  }

  .contact-header-sub,
  .contact-channel-desc,
  .brand-card-body .course-sub,
  .management-bio,
  .menu-dish-desc {
    text-align: center;
    font-size: 14.5px;
  }

  .contact-channel-value-box {
    align-items: center;
    text-align: center;
  }

  .contact-channel-value-box b {
    font-size: clamp(17.5px, 4.8vw, 20px);
  }

  .course-points,
  .brand-points {
    justify-content: center;
  }

  .brand-card-footer,
  .management-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand-Action-btn,
  .management-link-btn {
    width: 100%;
    justify-content: center;
  }

  /* Center Branch Group Header on Mobile */
  .branch-group-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 16px;
  }

  .branch-group-head > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px !important;
  }

  /* Center Department Items & Chairman Cards on Mobile */
  .contact-dept-item,
  .b2b-feature-card,
  .about-chairman-meta,
  .about-chairman-sign-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-dept-top,
  .contact-dept-head {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }

  .contact-hours-head {
    justify-content: center;
    text-align: center;
  }

  .contact-hour-box {
    align-items: center;
    text-align: center;
  }

  .contact-privacy-note {
    justify-content: center;
    text-align: center;
  }

  /* Menu Page Dish Cards on Mobile */
  .menu-board-body {
    padding: 18px 16px;
  }

  .menu-dish-card {
    padding: 18px 16px;
    gap: 12px;
    text-align: center;
  }

  .menu-dish-top {
    justify-content: center;
  }

  .menu-dish-title {
    font-size: clamp(16.5px, 4.4vw, 18.5px);
    text-align: center;
  }

  .menu-dish-prices-bar {
    padding: 10px;
    gap: 8px;
  }

  .menu-option-chip {
    min-width: 100%;
  }

  /* Action Buttons Full Width on Mobile */
  .inner-head-actions > *,
  .about-showcase-actions > *,
  .welcome-actions-row > * {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   21. R16 CENTER & RESTAURANT INSPECTIONS (FRONTEND + ADMIN PANEL)
   ========================================================================== */
.restaurant-head {
  background: #241E18;
  color: #FBF5E6;
  border: 1.5px solid #C89B3C;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.restaurant-head h3 {
  margin: 0 0 6px;
  color: #FBF5E6;
  font-size: 19px;
}

.category-title {
  margin: 22px 0 12px;
  background: #241E18;
  color: #FBF5E6;
  border: 1.5px solid #C89B3C;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
}

.inspection-form-card {
  background: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 18px;
  padding: 20px;
  margin: 14px 0;
  box-shadow: 0 8px 22px rgba(42, 31, 18, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.inspection-form-card:hover {
  border-color: #C89B3C;
}

.inspection-form-card.violation {
  border-color: #C63A3A;
  background: #FFFDFD;
}

.inspection-form-card .item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.inspection-form-card .item-no {
  min-width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  color: #241E18;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14.5px;
  flex-shrink: 0;
}

.inspection-form-card h4 {
  margin: 0 0 5px;
  font-size: 16.5px;
  font-weight: 800;
  color: #241E18;
  line-height: 1.45;
}

.inspection-form-card .item-text {
  color: #685947;
  line-height: 1.75;
  font-size: 13.5px;
}

.choice-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.choice-label {
  position: relative;
  cursor: pointer;
}

.choice-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 9px 14px;
  border: 1.5px solid #DFCA9F;
  border-radius: 11px;
  background: #FAF8F4;
  font-weight: 700;
  font-size: 13.5px;
  color: #4A3822;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.choice-label:hover span {
  border-color: #C89B3C;
  background: #F6EFE0;
}

.choice-label input:checked + span {
  background: #241E18;
  border-color: #241E18;
  color: #FFFFFF;
}

.choice-label.yes input:checked + span,
.choice-label.good input:checked + span {
  background: #157A57;
  border-color: #157A57;
  color: #FFFFFF;
}

.choice-label.no input:checked + span,
.choice-label.bad input:checked + span {
  background: #B83232;
  border-color: #B83232;
  color: #FFFFFF;
}

.choice-label.na input:checked + span {
  background: #685947;
  border-color: #685947;
  color: #FFFFFF;
}

.inspection-entry-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 1fr;
  gap: 12px;
  align-items: start;
}

.inspection-entry-grid input,
.inspection-entry-grid select,
.inspection-entry-grid textarea {
  width: 100%;
}

.photo-input {
  display: none;
}

.photo-box {
  margin-top: 12px;
  border: 1.5px dashed #C63A3A;
  border-radius: 12px;
  padding: 12px 14px;
  background: #FFF9F9;
}

.camera-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1.5px solid #DFCA9F;
  padding: 9px 14px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #241E18;
  font-weight: 700;
  font-size: 13.5px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.camera-label:hover {
  background: #F6EFE0;
  border-color: #C89B3C;
}

.camera-label i.bx {
  color: #B83232;
  font-size: 18px;
}

.photo-preview,
.report-photo {
  max-width: 240px;
  max-height: 170px;
  border-radius: 10px;
  border: 1.5px solid #DFCA9F;
  object-fit: cover;
  margin-top: 8px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  background: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.report-header h2 {
  margin: 0;
  color: #241E18;
  font-size: 21px;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.report-meta .meta-box {
  border: 1.5px solid #DFCA9F;
  border-radius: 12px;
  padding: 14px;
  background: #FAF8F4;
}

.report-meta .meta-box small {
  display: block;
  color: #685947;
  margin-bottom: 5px;
  font-size: 12.5px;
}

.report-meta .meta-box b {
  font-size: 15.5px;
  color: #241E18;
}

.report-section-title {
  background: #241E18;
  color: #FBF5E6;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 18px 0 8px;
  font-weight: 800;
}

.report-row {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 1fr;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid #E8DFCA;
  align-items: start;
}

.report-row:nth-child(even) {
  background: #FAF8F4;
}

.report-row .status {
  font-weight: 800;
}

.report-summary {
  border: 1.5px solid #DFCA9F;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  background: #FAF8F4;
}

.report-signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: end;
}

.report-signature > div {
  border-top: 1.5px solid #DFCA9F;
  padding-top: 10px;
  min-height: 90px;
}

.report-signature .sig-image {
  max-width: 260px;
  max-height: 100px;
  border: 1px solid #DFCA9F;
  border-radius: 8px;
  background: #FFFFFF;
}

@media (max-width: 900px) {
  .inspection-entry-grid,
  .report-meta,
  .report-row,
  .report-signature {
    grid-template-columns: 1fr;
  }

  .inspection-form-card {
    padding: 16px 14px;
  }

  .choice-label span {
    min-width: 76px;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   22. ORGANIZED / MERGED PUBLIC INSPECTION WORKSPACE (CENTER & RESTAURANT)
   ========================================================================== */
.r16-insp-hero-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 28px;
}

.r16-insp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #DFCA9F;
}

.r16-insp-mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  border-radius: 15px;
  flex-wrap: wrap;
}

.r16-insp-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  color: #4A3822;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.r16-insp-mode-btn i.bx {
  font-size: 19px;
  color: #9A7232;
}

.r16-insp-mode-btn:hover {
  background: #F6EFE0;
  color: #241E18;
}

.r16-insp-mode-btn.active {
  background: #241E18;
  color: #FAF8F4;
}

.r16-insp-mode-btn.active i.bx {
  color: #EAD084;
}

.r16-insp-identity-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.r16-insp-big-icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: #241E18;
  border: 2px solid #C89B3C;
  color: #EAD084;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(36, 30, 24, 0.14);
}

.r16-insp-identity-texts {
  flex: 1;
  min-width: 0;
}

.r16-insp-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.r16-insp-big-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 900;
  color: #241E18;
  line-height: 1.25;
}

.r16-insp-big-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #3D3125;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .r16-insp-big-sub {
    white-space: normal;
  }
}

.r16-insp-diff-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.r16-insp-diff-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 15px;
}

.r16-insp-diff-chip i.bx {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #EAD084;
  border: 1.5px solid #C89B3C;
  color: #241E18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.r16-insp-diff-chip small {
  display: block;
  font-size: 11.8px;
  font-weight: 700;
  color: #6B5E4E;
  margin-bottom: 2px;
}

.r16-insp-diff-chip b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #241E18;
}

.r16-insp-compact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.r16-insp-meta-panel,
.r16-insp-questions-panel,
.r16-insp-summary-box,
.r16-insp-signature-box {
  background: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  border-radius: 20px;
  padding: 20px 22px;
}

.r16-insp-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.r16-insp-step-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #EAD084;
  border: 1.5px solid #C89B3C;
  color: #241E18;
  font-weight: 900;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.r16-insp-panel-head h4 {
  margin: 0 0 2px;
  font-size: 16.5px;
  font-weight: 800;
  color: #241E18;
}

.r16-insp-panel-head p {
  margin: 0;
  font-size: 13px;
  color: #6B5E4E;
}

.r16-insp-meta-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.r16-insp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.r16-insp-search-box {
  position: relative;
  min-width: 260px;
  flex: 0 1 320px;
}

.r16-insp-search-box i.bx {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9A7232;
  font-size: 18px;
  pointer-events: none;
}

.r16-insp-search-box input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 14px;
  border-radius: 12px;
  border: 1.5px solid #DFCA9F;
  background: #FFFFFF;
  font-size: 14px;
  color: #241E18;
}

.r16-insp-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 10px 12px;
  background: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  border-radius: 16px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.r16-insp-tab-pill {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  padding-inline: 20px;
  border-radius: 12px;
  border: 1.5px solid #DFCA9F;
  background: #FFFFFF;
  color: #3B2D1D;
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.r16-insp-tab-pill i.bx {
  font-size: 16px;
  color: #9A7232;
  flex-shrink: 0;
}

.r16-insp-tab-pill:hover {
  border-color: #C89B3C;
  background: #FAF8F4;
}

.r16-insp-tab-pill.active {
  background: #241E18;
  border-color: #241E18;
  color: #FFFFFF;
}

.r16-insp-tab-pill.active i.bx {
  color: #EAD084;
}

.r16-inspection-questions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.r16-compact-qcard {
  margin: 0 !important;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: #FFFFFF;
  border: 1.5px solid #DFCA9F;
  border-radius: 18px;
}

.r16-compact-qcard.insp-card-hidden {
  display: none !important;
}

/* Question Card Header Row:
   - Right side (.r16-qcard-right): Big Number Box (.item-no) aligned in height with Title + Subtitle (.r16-qcard-head-main)
   - Left side (.r16-qcat-tag): Category Tag on the left, taking zero vertical space above the title */
.r16-compact-qcard .item-head,
.r16-qcard-header-row {
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.r16-qcard-right {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.r16-qcard-header-row .item-no,
.r16-compact-qcard .item-no {
  min-width: 52px;
  min-height: 52px;
  height: auto;
  padding: 0 12px;
  border-radius: 14px;
  background: #EAD084;
  border: 1.5px solid #C89B3C;
  color: #241E18;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
}

.r16-qcard-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.r16-qcard-head-main h4 {
  margin: 0 !important;
  font-size: 16.5px;
  font-weight: 900;
  color: #241E18;
  line-height: 1.35;
}

.r16-qcard-head-main .item-text {
  margin: 0 !important;
  font-size: 13px;
  font-weight: 600;
  color: #5C4933;
  line-height: 1.45;
}

.r16-qcat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #5A4326;
  background: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  padding: 4px 11px;
  border-radius: 999px;
  margin: 0;
  margin-right: auto;
  align-self: flex-start;
  flex-shrink: 0;
  white-space: nowrap;
}

.r16-qcard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed #E5D5B5;
}

/* Neutral Default Choice Buttons -> Green on Yes/Good, Red on No/Bad, Amber on Mid/NA */
.choice-group .choice-label span {
  background: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  color: #241E18;
  font-weight: 800;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.choice-group .choice-label:hover span {
  background: #F6EFE0;
  border-color: #C89B3C;
}

.choice-group .choice-label.yes input:checked + span,
.choice-group .choice-label.good input:checked + span {
  background: #146C43 !important;
  border-color: #146C43 !important;
  color: #FFFFFF !important;
}

.choice-group .choice-label.no input:checked + span,
.choice-group .choice-label.bad input:checked + span {
  background: #C0392B !important;
  border-color: #C0392B !important;
  color: #FFFFFF !important;
}

.choice-group .choice-label.mid input:checked + span {
  background: #C89B3C !important;
  border-color: #9A7232 !important;
  color: #241E18 !important;
}

.choice-group .choice-label.na input:checked + span {
  background: #5C4933 !important;
  border-color: #3B2D1D !important;
  color: #FFFFFF !important;
}

.r16-qnote-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #DFCA9F;
  background: #FAF8F4;
  color: #4A3822;
  font-size: 12.8px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.r16-qnote-toggle i.bx {
  font-size: 16px;
  color: #9A7232;
}

.r16-qnote-toggle:hover,
.r16-qnote-toggle.active {
  background: #F6EFE0;
  border-color: #C89B3C;
  color: #241E18;
}

.r16-qnote-drawer {
  background: #FAF8F4;
  border: 1.5px solid #DFCA9F;
  border-radius: 13px;
  padding: 12px 14px;
}

.r16-qnote-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.r16-mini-lbl {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #4A3822;
  margin-bottom: 4px;
}

.r16-qty-compact-box {
  background: #F6EFE0;
  border: 1.5px solid #DFCA9F;
  border-radius: 13px;
  padding: 12px 14px;
}

.r16-qty-compact-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #241E18;
  margin-bottom: 10px;
}

.r16-qty-compact-head i.bx {
  color: #9A7232;
  font-size: 17px;
}

.r16-qty-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.r16-qty-compact-grid label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #4A3822;
  margin-bottom: 3px;
}

.r16-insp-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px solid #DFCA9F;
}

.r16-insp-pager-info {
  font-size: 13.5px;
  font-weight: 800;
  color: #4A3822;
}

.r16-insp-bottom-split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 20px;
  align-items: stretch;
}

/* ============================================================================
   Unified Electronic Signature Studio (.r16-sig-studio)
   - High-contrast dark & gold Fountain Pen SVG cursor (never white on white!)
   - Unified Heritage Palette (#FAF8F4, #F6EFE0, #EAD084, #C89B3C, #3B2D1D, #241E18)
   - Combined Control Dock: Ink Color + Pen Width + Preset Arabic Fonts + Name Prompt
   ============================================================================ */

.sig-canvas,
.r16-sig-stage,
.r16-sig-stage .sig-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='3.5' cy='24.5' r='3' fill='%23C89B3C' stroke='%23241E18' stroke-width='1.5'/%3E%3Cpath d='M19.8 3.2a2.6 2.6 0 0 1 3.7 3.7L10.3 20.1 4.2 22.5l2.4-6.1L19.8 3.2z' fill='%23241E18' stroke='%23FFFFFF' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M17.2 5.8l3.7 3.7' stroke='%23EAD084' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 3 25, pointer !important;
}

.r16-sig-studio {
  display: flex;
  flex-direction: column;
  background: #FAF8F4;
  border: 1.5px solid #D9C398;
  border-radius: 18px;
  padding: 18px 20px;
}

.r16-sig-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.r16-sig-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #F6EFE0;
  border: 1.5px solid #C89B3C;
  color: #3B2D1D;
  font-size: 12.5px;
  font-weight: 800;
}

.r16-sig-status-pill i.bx {
  font-size: 16px;
  color: #9A7232;
}

.r16-sig-status-pill.is-signed {
  background: #EAD084;
  border-color: #9A7232;
  color: #241E18;
}

.r16-sig-status-pill.is-signed i.bx {
  color: #241E18;
}

/* Unified Combined Shell (Toolbar + Preset Fonts + Name Drawer + Canvas Stage) */
.r16-sig-unified-shell {
  border: 1.5px solid #C89B3C;
  border-radius: 16px;
  background: #F6EFE0;
  overflow: hidden;
}

.r16-sig-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: #FAF8F4;
  border-bottom: 1.5px solid #DFCA9F;
}

.r16-sig-mode-tab {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid #D9C398;
  color: #3B2D1D;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.r16-sig-mode-tab:hover {
  background: #F6EFE0;
  border-color: #C89B3C;
}

.r16-sig-mode-tab.active {
  background: #3B2D1D;
  border-color: #3B2D1D;
  color: #FAF8F4;
}

.r16-sig-mode-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F6EFE0;
  border: 1px solid #D9C398;
  color: #9A7232;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.r16-sig-mode-tab.active .r16-sig-mode-ic {
  background: #EAD084;
  border-color: #C89B3C;
  color: #241E18;
}

.r16-sig-mode-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.r16-sig-mode-txt b {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  color: inherit;
}

.r16-sig-mode-txt small {
  font-size: 11.3px;
  font-weight: 700;
  color: #6B5842;
  line-height: 1.3;
}

.r16-sig-mode-tab.active .r16-sig-mode-txt small {
  color: #EAD084;
}

.r16-sig-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #F6EFE0;
  border-bottom: 1px solid #DFCA9F;
  padding: 9px 12px;
  margin: 0;
}

.r16-sig-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.r16-sig-tool-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #3B2D1D;
  margin-left: 2px;
}

.r16-sig-tool-lbl i.bx {
  color: #9A7232;
  font-size: 15px;
}

.r16-sig-color-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FAF8F4;
  border: 1.5px solid #D9C398;
  color: #3B2D1D;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.r16-sig-color-pill:hover {
  background: #EAD084;
  border-color: #C89B3C;
}

.r16-sig-color-pill.active {
  background: #EAD084;
  border-color: #3B2D1D;
  color: #241E18;
}

.r16-sig-color-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(36, 30, 24, 0.25);
  flex-shrink: 0;
}

.r16-sig-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: var(--dot-color, #241E18);
  border: 2.5px solid #FAF8F4;
  box-shadow: 0 0 0 1.5px #BFA372;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.r16-sig-color-dot:hover {
  transform: scale(1.1);
}

.r16-sig-color-dot.active {
  box-shadow: 0 0 0 2.5px #3B2D1D;
  transform: scale(1.14);
}

.r16-sig-size-btn {
  appearance: none;
  background: #FAF8F4;
  border: 1.5px solid #D9C398;
  color: #3B2D1D;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.r16-sig-size-btn:hover {
  background: #EAD084;
  border-color: #C89B3C;
}

.r16-sig-size-btn.active {
  background: #3B2D1D;
  border-color: #3B2D1D;
  color: #EAD084;
}

.r16-sig-tool-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.r16-sig-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FAF8F4;
  border: 1.5px solid #D9C398;
  color: #3B2D1D;
  border-radius: 9px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.r16-sig-action-btn i.bx {
  font-size: 15px;
  color: #9A7232;
}

.r16-sig-action-btn:hover {
  background: #EAD084;
  border-color: #C89B3C;
  color: #241E18;
}

.r16-sig-action-btn--clear:hover {
  background: #FDF2F0;
  border-color: #D98A82;
  color: #8E2418;
}

.r16-sig-action-btn--clear:hover i.bx {
  color: #B93829;
}

.r16-sig-action-btn--stamp {
  background: #3B2D1D;
  border-color: #3B2D1D;
  color: #EAD084;
}

.r16-sig-action-btn--stamp i.bx {
  color: #EAD084;
}

.r16-sig-action-btn--stamp:hover {
  background: #241E18;
  border-color: #241E18;
  color: #EAD084;
}

.r16-sig-action-btn--refine {
  background: #EAD084;
  border-color: #9A7232;
  color: #241E18;
}

.r16-sig-action-btn--refine i.bx {
  color: #3B2D1D;
  font-size: 16px;
}

.r16-sig-action-btn--refine:hover,
.r16-sig-action-btn--refine.is-active {
  background: #C89B3C;
  border-color: #3B2D1D;
  color: #241E18;
}

.r16-sig-stage.is-ai-refining .sig-canvas {
  filter: drop-shadow(0 0 8px rgba(200, 155, 60, 0.45));
  transition: filter 0.35s ease;
}

/* Make Date Inputs (تاريخ الزيارة) clickable across the entire input box */
input[type="date"] {
  position: relative;
  cursor: pointer !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
}

/* Preset Arabic Calligraphic Fonts Bar */
.r16-sig-font-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #FAF8F4;
  border-bottom: 1px solid #DFCA9F;
}

.r16-sig-font-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.r16-sig-font-btn {
  appearance: none;
  background: #FFFFFF;
  border: 1.5px solid #D9C398;
  color: #3B2D1D;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.r16-sig-font-btn:hover {
  background: #F6EFE0;
  border-color: #C89B3C;
}

.r16-sig-font-btn.active {
  background: #EAD084;
  border-color: #3B2D1D;
  color: #241E18;
}

/* Interactive Name Entry & Font Selection Drawer (opens on clicking "توقيع بالاسم") */
.r16-sig-name-drawer {
  padding: 12px;
  background: #FAF8F4;
  border-bottom: 1.5px solid #C89B3C;
}

.r16-sig-name-step-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.r16-sig-name-drawer label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #241E18;
  margin-bottom: 6px;
}

.r16-sig-name-drawer label i.bx {
  color: #9A7232;
  font-size: 16px;
}

.r16-sig-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.r16-sig-name-row input {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #C89B3C;
  background: #FFFFFF;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #241E18;
}

.r16-sig-apply-name-btn {
  appearance: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #3B2D1D;
  border: 1.5px solid #3B2D1D;
  color: #EAD084;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.r16-sig-apply-name-btn:hover {
  background: #241E18;
}

/* Signature Stage & Watermark / Baseline / Floating Nib */
.r16-sig-stage {
  position: relative;
  border-radius: 0;
  border: 0;
  background: #FDFBF7;
  overflow: hidden;
}

.r16-compact-sig-wrap .sig-canvas {
  display: block;
  width: 100%;
  height: 175px;
  background: #FDFBF7;
  border: 0;
  border-radius: 0;
}

.r16-sig-baseline {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 30px;
  border-bottom: 1.5px dashed #DFCA9F;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}

.r16-sig-baseline span {
  font-size: 11px;
  font-weight: 800;
  color: #9E8768;
  background: #FDFBF7;
  padding: 0 6px;
  transform: translateY(50%);
}

.r16-sig-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  color: #6B5842;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  padding: 14px;
  transition: opacity 0.2s ease;
}

.r16-sig-watermark b {
  font-size: 14px;
  font-weight: 900;
  color: #3B2D1D;
}

.r16-sig-watermark i.bx {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #F6EFE0;
  border: 1.5px solid #D9C398;
  color: #9A7232;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.r16-sig-watermark.is-hidden {
  opacity: 0;
}

/* Floating High-Contrast Pen Nib Follower */
.r16-sig-cursor-nib {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  margin-top: -24px;
  border-radius: 999px;
  background: var(--nib-ink, #241E18);
  border: 2px solid #EAD084;
  color: #EAD084;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(36, 30, 24, 0.28);
  transition: opacity 0.12s ease;
}

.r16-sig-cursor-nib.is-visible {
  opacity: 1;
}

.r16-sig-cursor-nib.is-drawing {
  background: #3B2D1D;
  border-color: #C89B3C;
}

/* ============================================================================
   Multi-Layer Security Shield, Randomized Challenge & Humanoid Validations
   ============================================================================ */

.r16-hp-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.r16-security-shield-box {
  background: #F6EFE0;
  border: 1.5px solid #C89B3C;
  border-radius: 15px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.r16-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.r16-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.r16-sec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EAD084;
  border: 1.5px solid #C89B3C;
  color: #3B2D1D;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.r16-sec-title h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: #241E18;
}

.r16-sec-title p {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #5C4933;
}

.r16-sec-refresh-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FAF8F4;
  border: 1.5px solid #C89B3C;
  color: #3B2D1D;
  border-radius: 9px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.r16-sec-refresh-btn:hover {
  background: #EAD084;
}

.r16-sec-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10px;
  align-items: center;
}

.r16-sec-question-pill {
  background: #FAF8F4;
  border: 1.5px solid #D9C398;
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 900;
  color: #241E18;
  display: flex;
  align-items: center;
  min-height: 42px;
}

.r16-sec-input {
  width: 100%;
  height: 42px;
  border-radius: 11px;
  border: 1.5px solid #C89B3C !important;
  background: #FFFFFF !important;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: #241E18;
  text-align: center;
}

/* Humanoid Validation Error States & Messages */
.r16-input-invalid,
.r16-input-invalid-wrap {
  border-color: #B93829 !important;
  box-shadow: 0 0 0 3px rgba(185, 56, 41, 0.14) !important;
}

.r16-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #FDF2F0;
  border: 1px solid #E5B4AE;
  color: #8E2418;
  font-size: 12.2px;
  font-weight: 800;
  line-height: 1.4;
}

.r16-field-error i.bx {
  font-size: 15px;
  color: #B93829;
  flex-shrink: 0;
}

/* Form Submitting Lock State */
form.is-form-locked {
  opacity: 0.78;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease;
}

/* End-of-Form AJAX Result Message Box (Success / Error) */
.r16-submit-result-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #C89B3C;
  background: #FAF8F4;
}

.r16-submit-result-box.is-ok {
  background: #EBF7F0;
  border-color: #67B894;
  color: #145A38;
}

.r16-submit-result-box.is-err {
  background: #FDF2F0;
  border-color: #D98A82;
  color: #8E2418;
}

.r16-submit-result-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.75);
}

.r16-submit-result-txt {
  flex: 1;
  min-width: 0;
}

.r16-submit-result-txt h5 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 900;
}

.r16-submit-result-txt p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.r16-result-err-list {
  margin: 6px 0 0;
  padding-right: 18px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .r16-insp-diff-strip {
    grid-template-columns: 1fr;
  }
  .r16-insp-meta-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .r16-inspection-questions-grid,
  .r16-insp-bottom-split {
    grid-template-columns: 1fr;
  }
  .r16-insp-tabs-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .r16-insp-hero-header {
    padding: 20px 16px;
  }

  .r16-insp-top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .r16-insp-mode-switcher {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .r16-insp-mode-btn {
    justify-content: center;
    text-align: center;
  }

  .r16-insp-top-bar > .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .r16-insp-identity-main {
    flex-direction: column;
    text-align: center;
  }

  .r16-insp-eyebrow-row {
    justify-content: center;
  }

  .r16-insp-meta-panel,
  .r16-insp-questions-panel,
  .r16-insp-summary-box,
  .r16-insp-signature-box {
    padding: 16px 14px;
  }

  .r16-insp-meta-grid--4,
  .r16-qnote-grid,
  .r16-sec-body,
  .r16-sig-mode-tabs {
    grid-template-columns: 1fr;
  }

  .r16-sig-font-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r16-sig-name-row {
    flex-direction: column;
    align-items: stretch;
  }

  .r16-sig-apply-name-btn {
    justify-content: center;
  }

  .r16-insp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .r16-insp-search-box {
    flex: 1 1 100%;
    min-width: 0;
  }

  .r16-insp-tabs-bar {
    justify-content: center;
  }

  .r16-insp-tab-pill {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 9px 14px;
  }

  .r16-qcard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .r16-qcard-actions .choice-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  }

  .r16-qcard-actions .choice-label span {
    width: 100%;
  }

  .r16-qnote-toggle {
    width: 100%;
    justify-content: center;
  }

  .r16-insp-pager {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .r16-insp-pager-btns,
  .r16-insp-pager-btns > * {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .r16-insp-tab-pill {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   LOGIN, FORGOT PASSWORD & RESET PASSWORD UI ENHANCEMENTS
   ========================================================================== */
#page-login.inner-page-modern {
  padding-top: 38px !important;
  padding-bottom: 56px !important;
}

#page-login .r16-login-workspace-grid {
  align-items: start !important;
}

#page-login .r16-login-form-card,
#page-login .r16-login-form-body,
#page-login .r16-auth-form {
  flex: 0 0 auto !important;
  height: auto !important;
}

#page-login .r16-login-form-body {
  padding: 22px 26px 24px !important;
  gap: 14px !important;
}

#page-login .r16-auth-form {
  gap: 14px !important;
}

#page-login .r16-login-submit-footer {
  margin-top: 4px !important;
  padding-top: 14px !important;
  border-top: 1px solid #EFE6D5 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Auth Mode Switcher Tabs inside Header Band */
.r16-auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  padding: 5px;
  background: #EFE5CE;
  border: 1px solid #D9C08B;
  border-radius: 14px;
}

.r16-auth-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #4A3822;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.r16-auth-tab-btn i.bx {
  font-size: 16px;
  color: #8C6528;
}

.r16-auth-tab-btn:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #241E18;
}

.r16-auth-tab-btn.active {
  background: #3B2D1D;
  border-color: #C89B3C;
  color: #FAF8F4;
  box-shadow: 0 4px 12px rgba(36, 30, 24, 0.14);
}

.r16-auth-tab-btn.active i.bx {
  color: #EAD084;
}

/* Password Input Wrapper + Eye Visibility Toggle Button */
.r16-pass-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.r16-pass-input-wrap input {
  width: 100% !important;
  padding-right: 46px !important;
  padding-left: 16px !important;
  box-sizing: border-box;
}

.r16-pass-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #DFCA9F;
  background: #FFFFFF;
  color: #7A5828;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 19px;
  z-index: 3;
  transition: all 0.18s ease;
}

.r16-pass-eye-btn:hover,
.r16-pass-eye-btn.is-visible {
  background: #F6EFE0;
  border-color: #C89B3C;
  color: #241E18;
}

/* Remember Password Checkbox + Forgot Password Link Row */
.r16-login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 2px 0;
}

.r16-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-size: 13.8px;
  font-weight: 800;
  color: #3D3125;
  margin: 0 !important;
}

.r16-remember-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.r16-remember-box {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1.5px solid #C89B3C;
  background: #FAF8F4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 16px;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.r16-remember-label input[type="checkbox"]:checked + .r16-remember-box {
  background: #3B2D1D;
  border-color: #C89B3C;
  color: #EAD084;
}

.r16-forgot-link-btn {
  border: 0;
  background: none;
  padding: 4px 8px;
  border-radius: 8px;
  color: #8C6528;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.r16-forgot-link-btn:hover {
  color: #241E18;
  background: #F6EFE0;
  text-decoration: underline;
}

/* Info Banner & Back Button inside Forgot / Reset Views */
.r16-auth-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #FAF6EC;
  border: 1.5px solid #DFCA9F;
  color: #3D3125;
}

.r16-auth-info-banner > i.bx {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EAD084;
  color: #3B2D1D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.r16-auth-info-banner b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #241E18;
  margin-bottom: 3px;
}

.r16-auth-info-banner p {
  margin: 0;
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.6;
  color: #5C4B38;
}

.r16-auth-back-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #D9C08B;
  background: #FAF8F4;
  color: #3D3125;
  font-family: inherit;
  font-size: 13.8px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.r16-auth-back-btn:hover {
  background: #F6EFE0;
  border-color: #C89B3C;
  color: #241E18;
}

@media (max-width: 640px) {
  .r16-auth-mode-tabs {
    grid-template-columns: 1fr;
  }
}





