/* ==========================================================================
   TheOneOne — Base
   Reset, typography, variables, colors, accessibility
   ========================================================================== */

:root {
    /* Brand Colors */
    --tos-primary: #003665;
    --tos-secondary: #2175B5;
    --tos-accent: #4FC3F7;
    --tos-dark: #0a1929;
    --tos-light: #f5f9ff;

    /* Neutrals */
    --tos-white: #ffffff;
    --tos-black: #0a1929;
    --tos-gray-50: #f8fafc;
    --tos-gray-100: #f1f5f9;
    --tos-gray-200: #e2e8f0;
    --tos-gray-300: #cbd5e1;
    --tos-gray-400: #94a3b8;
    --tos-gray-500: #64748b;
    --tos-gray-600: #475569;
    --tos-gray-700: #334155;
    --tos-gray-800: #1e293b;
    --tos-gray-900: #0f172a;

    --tos-text: #1e293b;
    --tos-text-muted: #64748b;

    --tos-success: #10b981;
    --tos-warning: #f59e0b;
    --tos-danger: #ef4444;

    /* Gradients */
    --tos-gradient-brand: linear-gradient(135deg, #003665 0%, #2175B5 60%, #4FC3F7 100%);
    --tos-gradient-brand-soft: linear-gradient(135deg, rgba(0, 54, 101, 0.04) 0%, rgba(79, 195, 247, 0.08) 100%);

    /* Typography */
    --tos-font-display: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tos-font-body: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tos-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    --tos-h-scale: 1;

    /* Spacing */
    --tos-space-1: 0.25rem;
    --tos-space-2: 0.5rem;
    --tos-space-3: 0.75rem;
    --tos-space-4: 1rem;
    --tos-space-5: 1.25rem;
    --tos-space-6: 1.5rem;
    --tos-space-8: 2rem;
    --tos-space-10: 2.5rem;
    --tos-space-12: 3rem;
    --tos-space-16: 4rem;
    --tos-space-20: 5rem;
    --tos-space-24: 6rem;
    --tos-space-32: 8rem;

    /* Container */
    --tos-container: 1240px;
    --tos-container-narrow: 880px;
    --tos-gutter: 1.5rem;

    /* Radius */
    --tos-radius-sm: 8px;
    --tos-radius: 12px;
    --tos-radius-lg: 16px;
    --tos-radius-xl: 24px;
    --tos-radius-full: 9999px;

    /* Shadows */
    --tos-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --tos-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --tos-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --tos-shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 10px 20px -10px rgba(15, 23, 42, 0.08);
    --tos-shadow-xl: 0 30px 60px -12px rgba(15, 23, 42, 0.18);
    --tos-shadow-brand: 0 14px 30px -10px rgba(0, 54, 101, 0.35);
    --tos-shadow-brand-lg: 0 20px 50px -10px rgba(0, 54, 101, 0.45);

    /* Transitions */
    --tos-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --tos-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --tos-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --tos-z-dropdown: 100;
    --tos-z-header: 500;
    --tos-z-modal: 1000;
    --tos-z-toast: 1500;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--tos-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--tos-text);
    background: var(--tos-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.tos-rtl {
    text-align: right;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tos-font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--tos-dark);
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: calc(2.5rem * var(--tos-h-scale)); }
h2 { font-size: calc(2rem * var(--tos-h-scale)); }
h3 { font-size: calc(1.5rem * var(--tos-h-scale)); }
h4 { font-size: calc(1.25rem * var(--tos-h-scale)); }
h5 { font-size: calc(1.125rem * var(--tos-h-scale)); }
h6 { font-size: calc(1rem * var(--tos-h-scale)); }

@media (max-width: 768px) {
    h1 { font-size: calc(2rem * var(--tos-h-scale)); }
    h2 { font-size: calc(1.625rem * var(--tos-h-scale)); }
    h3 { font-size: calc(1.25rem * var(--tos-h-scale)); }
}

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: var(--tos-primary);
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Focus */
*:focus-visible {
    outline: 3px solid var(--tos-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    inset-inline-start: 8px;
    background: var(--tos-primary);
    color: var(--tos-white);
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: var(--tos-white);
}

::selection {
    background: var(--tos-accent);
    color: var(--tos-primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Site wrapper */
#page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* Container */
.tos-container {
    width: 100%;
    max-width: var(--tos-container);
    margin-inline: auto;
    padding-inline: var(--tos-gutter);
}

.tos-container--narrow {
    max-width: var(--tos-container-narrow);
}

.tos-container--wide {
    max-width: 1440px;
}

/* Section spacing */
section[class*="tos-"] {
    padding-block: var(--tos-space-20);
    position: relative;
}

@media (max-width: 768px) {
    section[class*="tos-"] {
        padding-block: var(--tos-space-12);
    }
}

/* Section headings */
.tos-section__head {
    margin-bottom: var(--tos-space-12);
}

.tos-section__head--center {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.tos-section__head--sm {
    margin-bottom: var(--tos-space-8);
}

.tos-section__eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tos-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--tos-space-3);
    position: relative;
    padding-inline: var(--tos-space-4);
}

.tos-section__eyebrow::before,
.tos-section__eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tos-secondary));
    transform: translateY(-50%);
}

.tos-section__eyebrow::before {
    inset-inline-end: 100%;
    background: linear-gradient(-90deg, var(--tos-secondary), transparent);
}

.tos-section__eyebrow::after {
    inset-inline-start: 100%;
}

.tos-section__head:not(.tos-section__head--center) .tos-section__eyebrow {
    padding-inline-start: 0;
}

.tos-section__head:not(.tos-section__head--center) .tos-section__eyebrow::before {
    display: none;
}

.tos-section__title {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
    margin-bottom: var(--tos-space-4);
    color: var(--tos-dark);
}

.tos-section__lead {
    font-size: 1.125rem;
    color: var(--tos-text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* No-results */
.tos-no-results {
    text-align: center;
    padding-block: var(--tos-space-20);
}

.tos-no-results h2 {
    font-size: 1.5rem;
    margin-bottom: var(--tos-space-3);
}

.tos-no-results p {
    color: var(--tos-text-muted);
    margin-bottom: var(--tos-space-6);
}

/* ==========================================================================
   VARIABLE ALIASES — used by pages.css, slider.css, programs.css
   ========================================================================== */
:root {
	--tos-space-xs: 0.5rem;
	--tos-space-sm: 0.75rem;
	--tos-space-md: 1rem;
	--tos-space-lg: 1.5rem;
	--tos-space-xl: 2rem;
	--tos-space-2xl: 3rem;
	--tos-space-3xl: 4rem;

	--tos-radius-md: 12px;

	--tos-gray-400: #94a3b8;
	--tos-gray-500: #64748b;
	--tos-gray-600: #475569;
	--tos-gray-700: #334155;
	--tos-gray-800: #1e293b;

	--tos-z-header: 90;
	--tos-z-dropdown: 100;
	--tos-z-modal: 200;
	--tos-transition: .25s ease;
}

/* Universal container */
.tos-container,
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}
.tos-container--narrow {
	max-width: 920px;
}

/* Universal section */
.tos-section {
	padding-block: var(--tos-space-3xl);
}
.tos-section__head {
	margin-bottom: var(--tos-space-xl);
}
.tos-section__head--center {
	text-align: center;
}
.tos-section__eyebrow {
	display: inline-block;
	color: var(--tos-secondary);
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: var(--tos-space-sm);
}
.tos-section__title {
	font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
	font-weight: 800;
	color: var(--tos-primary);
	line-height: 1.3;
	margin: 0 0 var(--tos-space-md);
}
.tos-section__lead {
	font-size: 1.05rem;
	color: var(--tos-gray-700);
	line-height: 1.8;
	max-width: 720px;
	margin: 0 auto;
}

/* Universal button */
.tos-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: all .25s ease;
}
.tos-btn--primary {
	background: linear-gradient(135deg, var(--tos-primary), var(--tos-secondary));
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 54, 101, .25);
}
.tos-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 54, 101, .35);
	color: #fff;
}
.tos-btn--accent {
	background: #4FC3F7;
	color: #003665;
}
.tos-btn--accent:hover {
	background: #29b6f6;
	transform: translateY(-2px);
	color: #003665;
}
.tos-btn--ghost {
	background: rgba(255, 255, 255, .15);
	color: #fff;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .25);
}
.tos-btn--ghost:hover {
	background: rgba(255, 255, 255, .25);
	color: #fff;
}
.tos-btn--lg {
	padding: 14px 28px;
	font-size: 15px;
}

/* Page hero */
.tos-page-hero {
	background: linear-gradient(135deg, var(--tos-primary) 0%, var(--tos-secondary) 100%);
	color: #fff;
	padding: 80px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.tos-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(79, 195, 247, .18), transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(33, 117, 181, .15), transparent 50%);
	pointer-events: none;
}
.tos-page-hero__inner {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}
.tos-page-hero__title {
	font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
	font-weight: 900;
	margin: 0 0 var(--tos-space-md);
	line-height: 1.2;
	color: #fff;
}
.tos-page-hero__subtitle {
	font-size: clamp(1rem, 0.95rem + .3vw, 1.15rem);
	color: rgba(255, 255, 255, .92);
	line-height: 1.7;
	margin: 0;
}

/* Force ALL inline SVG icons to inherit a visible color */
svg.tos-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ==========================================================================
   SINGLE PROGRAM — feature card overrides (icon colored squares, not blue circles)
   ========================================================================== */
.program-features-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
	gap: 16px !important;
	max-width: 1100px;
	margin: 32px auto 0;
}
.program-feature {
	background: #fff !important;
	padding: 24px 20px !important;
	border-radius: 14px !important;
	border: 1px solid #e5e7eb !important;
	text-align: center !important;
	transition: all .3s ease !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 12px !important;
}
.program-feature:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 12px 28px rgba(0, 54, 101, .1) !important;
	border-color: #4FC3F7 !important;
}
.program-feature__icon {
	width: 56px !important;
	height: 56px !important;
	border-radius: 14px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: linear-gradient(135deg, #003665, #2175B5) !important;
	color: #fff !important;
	margin: 0 !important;
}
.program-feature__icon svg {
	width: 26px !important;
	height: 26px !important;
}
.program-feature__title {
	font-size: 0.95rem !important;
	color: #003665 !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	margin: 0 !important;
}

/* Colored variants — cycle through 8 colors via nth-child */
.program-feature:nth-child(8n+1) .program-feature__icon { background: linear-gradient(135deg,#0284C7,#0EA5E9) !important; }
.program-feature:nth-child(8n+2) .program-feature__icon { background: linear-gradient(135deg,#DB2777,#EC4899) !important; }
.program-feature:nth-child(8n+3) .program-feature__icon { background: linear-gradient(135deg,#9333EA,#A855F7) !important; }
.program-feature:nth-child(8n+4) .program-feature__icon { background: linear-gradient(135deg,#DC2626,#EF4444) !important; }
.program-feature:nth-child(8n+5) .program-feature__icon { background: linear-gradient(135deg,#16A34A,#22C55E) !important; }
.program-feature:nth-child(8n+6) .program-feature__icon { background: linear-gradient(135deg,#EA580C,#F97316) !important; }
.program-feature:nth-child(8n+7) .program-feature__icon { background: linear-gradient(135deg,#4F46E5,#6366F1) !important; }
.program-feature:nth-child(8n+8) .program-feature__icon { background: linear-gradient(135deg,#D97706,#F59E0B) !important; }

/* Force section spacing */
.tos-section { padding-block: 64px !important; }

/* Universal icon visibility */
.tos-icon, svg.tos-icon {
	display: inline-block !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
}
