/* 
 * Sciences Gates - Public Web Design System Styles
 * Matches the Dashboard color variables (Navy & Gold) with premium web aesthetics
 */

:root {
    /* ═══════════════════════════════════
       Brand Colors — Navy + Gold
       ═══════════════════════════════════ */
    --primary: #0B2D4D;
    /* Navy — اللون الأساسي */
    --primary-hover: #0D3A63;
    /* Navy أغمق للـ hover */
    --primary-light: #EAF0F7;
    /* Navy فاتح جداً للـ active backgrounds */
    --primary-muted: rgba(11, 45, 77, 0.08);
    /* للـ tints الخفيفة */

    --secondary: #C8A041;
    /* Gold — اللون الفرعي */
    --secondary-hover: #B8902F;
    /* Gold أغمق للـ hover */
    --secondary-light: #FDF6E3;
    /* Gold فاتح جداً للـ backgrounds */
    --secondary-muted: rgba(200, 160, 65, 0.15);
    /* للـ tints الخفيفة */

    /* ═══════════════════════════════════
       Semantic Colors
       ═══════════════════════════════════ */
    --success: #0C7A43;
    --success-light: #E8F7EF;
    --danger: #D64545;
    --danger-hover: #C03030;
    --danger-light: #FDEAEA;
    --warning: #D89000;
    --warning-light: #FFF4D9;
    --info: #2368B5;
    --info-light: #EAF2FF;

    /* ═══════════════════════════════════
       Surfaces & Backgrounds
       ═══════════════════════════════════ */
    --surface: #FFFFFF;
    --surface-2: #F7FAFC;
    --bg-page: #e5ebf0;
    /* خلفية الصفحة الكاملة - أفتح قليلاً لإحساس نظيف */
    --bg-light: #F7FAFC;
    /* للـ hover states الخفيفة */

    /* ═══════════════════════════════════
       Borders
       ═══════════════════════════════════ */
    --border: #E4EAF0;
    --border-strong: #D0DAE4;

    /* ═══════════════════════════════════
       Text
       ═══════════════════════════════════ */
    --text-primary: #11243A;
    --text-secondary: #43576B;
    --text-muted: #6B7C8F;

    /* ═══════════════════════════════════
       Shadows & Glassmorphism
       ═══════════════════════════════════ */
    --shadow: 0 10px 30px -10px rgba(11, 45, 77, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(11, 45, 77, 0.12);
    --shadow-sm: 0 2px 12px rgba(11, 45, 77, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(11, 45, 77, 0.05);
    --focus-ring: rgba(200, 160, 65, 0.35);

    /* ═══════════════════════════════════
       Layout & Borders
       ═══════════════════════════════════ */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 8px;

    /* Font scale base */
    font-size: 14px;

    /* ═══════════════════════════════════
       Strict Palette Variables
       ═══════════════════════════════════ */
    --white: #ffffff;
    --black: #000000;
    --amber: #F59E0B;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #075e54;
    --green-success: #4CAF50;
    --chat-bg-beige: #efeae2;
    --gray-light: #f0f0f0;

    --white-08: rgba(255, 255, 255, 0.08);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-18: rgba(255, 255, 255, 0.18);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-65: rgba(255, 255, 255, 0.65);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-85: rgba(255, 255, 255, 0.85);
    --white-90: rgba(255, 255, 255, 0.9);

    --black-10: rgba(0, 0, 0, 0.1);
    --black-15: rgba(0, 0, 0, 0.15);
    --dark-10: rgba(25, 25, 25, 0.1);

    --border-60: rgba(228, 234, 240, 0.6);
    --border-70: rgba(228, 234, 240, 0.7);

    --primary-20: rgba(11, 45, 77, 0.2);
    --primary-30: rgba(11, 45, 77, 0.3);
    --primary-85: rgba(11, 45, 77, 0.85);
    --primary-hover-80: rgba(13, 58, 99, 0.8);

    --secondary-20: rgba(200, 160, 65, 0.2);
    --secondary-25: rgba(200, 160, 65, 0.25);
    --secondary-30: rgba(200, 160, 65, 0.3);
    --secondary-40: rgba(200, 160, 65, 0.4);

    --whatsapp-green-30: rgba(37, 211, 102, 0.3);
    --whatsapp-green-40: rgba(37, 211, 102, 0.4);

    --shadow-color-1: rgba(100, 100, 111, 0.2);
    --shadow-color-2: rgba(149, 157, 165, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Alexandria', sans-serif;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-hover) var(--primary-light);
}

body {
    font-family: 'Alexandria', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.6;
    font-size: 1rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

p:last-child {
    margin-bottom: 0;
}

/* Custom Thin Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
    border: 2px solid var(--primary-light);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-hover);
}

/* Premium UI Utilities */
.glass-card {
    background: var(--white-85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-60);
    box-shadow: var(--shadow-card);
}

.glass-card-dark {
    background: var(--primary-85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--secondary-20);
}

.glass-nav {
    background: var(--white-90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-70);
}

/* Micro animations & transitions */
.transition-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* RTL Helpers */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body * {
    direction: rtl;
}

/* Custom selection styling */
::selection {
    background-color: var(--secondary-muted);
    color: var(--primary);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   NEW UTILITIES — UI Upgrade Phase
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════
   Section Backgrounds
   ═══════════════════════════════════ */
.section-dark {
    background-color: var(--primary);
    color: var(--white);
}

.section-light {
    background-color: var(--surface);
}

.section-muted {
    background-color: var(--bg-page);
}

/* ═══════════════════════════════════
   Hero Badge Pattern
   ═══════════════════════════════════ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--secondary-muted);
    color: var(--secondary);
    border: 1px solid var(--secondary-25);
}

/* ═══════════════════════════════════
   Rounded Full Buttons
   ═══════════════════════════════════ */
.btn-primary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px var(--secondary-30);
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
}

.btn-primary-pill:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--secondary-40);
}

.btn-ghost-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: var(--white-10);
    color: var(--white);
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--white-20);
    text-decoration: none;
    cursor: pointer;
}

.btn-ghost-pill:hover {
    background-color: var(--white-18);
    border-color: var(--white-30);
}

/* ═══════════════════════════════════
   Feature Cards (for Dark Hero)
   ═══════════════════════════════════ */
.feature-card-dark {
    background: var(--primary-hover-80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--white-08);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.feature-card-dark .icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--secondary-muted);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════
   Section Heading Pattern
   ═══════════════════════════════════ */
.section-heading {
    text-align: center;
    margin-bottom: 64px;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-heading-dark h2 {
    color: var(--white);
}

.section-heading-dark p {
    color: var(--white-65);
}

/* ═══════════════════════════════════
   Page Hero (for list pages)
   ═══════════════════════════════════ */
.page-hero {
    background-color: var(--primary);
    padding: 80px 0 64px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--white-70);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════════════════════════════
   Filter Tabs
   ═══════════════════════════════════ */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--text-secondary);
}

.filter-tab:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
}

.filter-tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-20);
}

/* ═══════════════════════════════════
   Testimonial Cards
   ═══════════════════════════════════ */
.testimonial-card {
    background-color: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: right;
    position: relative;
}

.testimonial-card .stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: var(--amber);
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    color: var(--border-strong);
    width: 40px;
    height: 40px;
}

.testimonial-card .avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════
   WhatsApp Floating Button
   ═══════════════════════════════════ */
/* ═══════════════════════════════════
   WhatsApp Floating Widget
   ═══════════════════════════════════ */
.whatsapp-widget {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 999;
}

.whatsapp-float {
    width: 48px;
    height: 48px;
    background-color: var(--whatsapp-green);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px var(--whatsapp-green-30);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px var(--whatsapp-green-40);
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.whatsapp-float .tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
}

/* WhatsApp Chat Window */
.whatsapp-popup {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 320px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
}

.whatsapp-popup-header {
    background-color: var(--whatsapp-dark);
    color: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--black-10);
}

.whatsapp-popup-avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
}

.whatsapp-popup-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.whatsapp-popup-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: var(--green-success);
    border: 2px solid var(--whatsapp-dark);
    border-radius: 9999px;
}

.whatsapp-popup-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.whatsapp-popup-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.whatsapp-popup-status-text {
    font-size: 0.7rem;
    color: var(--white-80);
}

.whatsapp-popup-close-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 4px;
}

.whatsapp-popup-close-btn:hover {
    opacity: 1;
}

.whatsapp-popup-body {
    background-color: var(--chat-bg-beige);
    padding: 16px;
    max-height: 240px;
    overflow-y: auto;
}

.whatsapp-msg-bubble {
    background-color: var(--white);
    padding: 10px 12px;
    border-radius: 8px 0px 8px 8px;
    box-shadow: 0 1px 2px var(--black-15);
    max-width: 90%;
    margin-right: auto;
    position: relative;
}

.whatsapp-msg-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.whatsapp-msg-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    text-align: left;
    margin-top: 4px;
}

.whatsapp-popup-footer {
    background-color: var(--gray-light);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.whatsapp-popup-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    outline: none;
    background: var(--white);
    transition: border-color 0.2s;
}

.whatsapp-popup-input:focus {
    border-color: var(--whatsapp-green);
}

.whatsapp-popup-send-btn {
    background: none;
    border: none;
    color: var(--whatsapp-dark);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.whatsapp-popup-send-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.whatsapp-popup-send-btn:not(:disabled):hover {
    color: var(--whatsapp-green);
    transform: scale(1.1);
}

/* ═══════════════════════════════════
   Admin Edit Floating Button
   ═══════════════════════════════════ */
.admin-edit-float {
    position: fixed;
    bottom: 152px;
    /* Swapped with dashboard button */
    left: 32px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    text-decoration: none;
    cursor: pointer;
}

.admin-edit-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.24);
}

.admin-edit-float svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.admin-edit-float__tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.admin-edit-float:hover .admin-edit-float__tooltip {
    opacity: 1;
}

/* ═══════════════════════════════════
   Admin Dashboard Floating Button
   ═══════════════════════════════════ */
.admin-dashboard-float {
    position: fixed;
    bottom: 92px;
    /* Swapped with edit button */
    left: 32px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    /* Brand Primary (Navy) */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 997;
    text-decoration: none;
    cursor: pointer;
}

.admin-dashboard-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.24);
}

.admin-dashboard-float svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.admin-dashboard-float__tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.admin-dashboard-float:hover .admin-dashboard-float__tooltip {
    opacity: 1;
}

/* ═══════════════════════════════════
   Services Cards
   ═══════════════════════════════════ */
/* Floating buttons slide out after scroll inactivity */
.whatsapp-widget,
.admin-dashboard-float,
.admin-edit-float {
    transition: translate 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, transform 0.3s, box-shadow 0.3s !important;
}

.whatsapp-widget.floating-hide,
.admin-dashboard-float.floating-hide,
.admin-edit-float.floating-hide {
    translate: -80px 0;
    transform: translateX(-80px) !important;
    opacity: 0;
    pointer-events: none;
}

.reg-float-btn.floating-hide {
    translate: 80px 0;
    transform: translateX(80px) !important;
    opacity: 0;
    pointer-events: none;
}

.service-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--secondary-light);
}

.service-card .icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* ═══════════════════════════════════
   CTA Section
   ═══════════════════════════════════ */
.cta-section {
    background-color: var(--primary);
    padding: 96px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--white-70);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ═══════════════════════════════════
   Responsive Adjustments
   ═══════════════════════════════════ */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.875rem;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }

    .btn-primary-pill,
    .btn-ghost-pill {
        padding: 12px 24px;
        font-size: 0.875rem;
    }

    .whatsapp-widget {
        bottom: 24px;
        left: 24px;
    }

    .whatsapp-float {
        width: 44px;
        height: 44px;
    }

    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }

    .whatsapp-float .tooltip {
        display: none;
    }

    .whatsapp-popup {
        bottom: 52px;
        width: 280px;
    }

    .admin-edit-float {
        bottom: 136px;
        /* Swapped with dashboard button on mobile */
        left: 24px;
        width: 44px;
        height: 44px;
    }

    .admin-edit-float svg {
        width: 22px;
        height: 22px;
    }

    .admin-edit-float__tooltip {
        display: none;
    }

    .admin-dashboard-float {
        bottom: 80px;
        /* Swapped with edit button on mobile */
        left: 24px;
        width: 44px;
        height: 44px;
    }

    .admin-dashboard-float svg {
        width: 22px;
        height: 22px;
    }

    .admin-dashboard-float__tooltip {
        display: none;
    }

    /* Card sizing adjustments */
    .service-card {
        padding: 24px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .glass-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .section-heading h2 {
        font-size: 1.25rem;
    }

    .section-heading p {
        font-size: 0.95rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   EDUCATE TEMPLATE REPLICATION — HEADER, TOPBAR & HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    --it-theme-teal: var(--secondary);
    --it-theme-teal-hover: var(--secondary-hover);
    --it-theme-dark-blue: var(--primary);
    --it-theme-gray: var(--text-secondary);
    --it-theme-bg-light: var(--primary-light);
    --it-theme-light-gray: var(--border);

    --it-common-black: var(--primary);
    --it-common-white: var(--white);
    --it-theme-1: var(--it-theme-teal);
    --it-theme-8: var(--text-muted);
    --it-ff-heading: 'Alexandria', sans-serif;

    --it-play-pulse-color: rgba(11, 45, 77, 0.35);
    --it-social-separator-color: var(--border-strong);
    --it-lang-submenu-shadow: 0 30px 70px 6px rgba(11, 45, 77, 0.08);
    --it-funfact-shadow: rgba(11, 45, 77, 0.08) 0px 8px 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER GRID & DISPLAY LAYOUT FIXES (Scoped to header and offcanvas)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* 1. Scoped Display Helper Utilities */
.it-header-transparent .d-none,
.it-offcanvas-area .d-none {
    display: none !important;
}

/* lg breakpoint (992px) */
@media (min-width: 992px) {
    .it-header-transparent .d-none.d-lg-block {
        display: block !important;
    }

    .it-header-transparent .d-none.d-lg-inline-block {
        display: inline-block !important;
    }
}

@media (max-width: 991px) {

    .it-header-transparent .d-none.d-lg-block,
    .it-header-transparent .d-none.d-lg-inline-block {
        display: none !important;
    }
}

/* md breakpoint (768px) */
@media (min-width: 768px) {
    .it-header-transparent .d-none.d-md-block {
        display: block !important;
    }

    .it-header-transparent .d-none.d-sm-block {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .it-header-transparent .d-none.d-md-block {
        display: none !important;
    }

    .it-header-transparent .d-none.d-sm-block {
        display: none !important;
    }
}

/* xl breakpoint (1200px) */
@media (min-width: 1200px) {
    .it-header-transparent .d-none.d-xl-block {
        display: block !important;
    }

    .it-header-transparent .d-none.d-xl-inline-block {
        display: inline-block !important;
    }

    .it-header-transparent .d-xl-none {
        display: none !important;
    }
}

@media (max-width: 1199px) {

    .it-header-transparent .d-none.d-xl-block,
    .it-header-transparent .d-none.d-xl-inline-block {
        display: none !important;
    }

    .it-header-transparent .d-xl-none {
        display: block !important;
    }
}

/* 2. Row and Grid Layout Rules */
.it-header-transparent .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin: 0;
}

/* Default Mobile/Tablet column widths */
.it-header-transparent .col-6 {
    flex: 0 0 auto;
    width: 50% !important;
}

.it-header-transparent .col-xl-2,
.it-header-transparent .col-xl-7,
.it-header-transparent .col-xl-3,
.it-header-transparent .col-xl-8,
.it-header-transparent .col-xl-4,
.it-header-transparent .col-lg-8,
.it-header-transparent .col-lg-4 {
    width: 100%;
}

/* Mobile Topbar alignment */
@media (max-width: 991px) {
    .it-header-2-top-area {
        display: none !important;
    }
}

/* Desktop layout (>= 1200px) */
@media (min-width: 1200px) {
    .it-header-transparent .row {
        flex-wrap: nowrap !important;
    }

    /* Top Bar Columns */
    .it-header-transparent .col-xl-8 {
        flex: 0 0 auto;
        width: 66.666667% !important;
    }

    .it-header-transparent .col-xl-4 {
        flex: 0 0 auto;
        width: 33.333333% !important;
    }

    /* Main Header Columns */
    .it-header-transparent .col-xl-2 {
        flex: 0 0 auto;
        width: 18% !important;
        /* Logo area */
    }

    .it-header-transparent .col-xl-7 {
        flex: 0 0 auto;
        width: 58% !important;
        /* Menu area */
    }

    .it-header-transparent .col-xl-3 {
        flex: 0 0 auto;
        width: 24% !important;
        /* Actions area */
    }
}

/* --- Top Bar & Header Transparent --- */
.it-header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.it-header-2-top-area {
    border-bottom: 1px solid var(--white-10);
}

.it-header-2-top-height {
    padding: 8px 0;
}

.it-header-2-top-left ul,
.it-header-2-top-right ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    align-items: center;
}

.it-header-2-top-left ul li {
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.it-header-2-top-left ul li:not(:last-child) {
    padding-right: 45px;
}

@media (max-width: 767px) {
    .it-header-2-top-left ul li:not(:last-child) {
        margin-right: 0;
        padding-right: 0;
    }
}

.it-header-2-top-left ul li a {
    font-size: 12px;
    font-weight: 400;
    color: var(--it-common-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px),
only screen and (min-width: 992px) and (max-width: 1199px),
only screen and (min-width: 768px) and (max-width: 991px),
(max-width: 767px) {
    .it-header-2-top-left ul li a {
        font-size: 12px;
    }
}

.it-header-2-top-left ul li a span {
    position: relative;
    color: var(--it-theme-1);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.it-header-2-top-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.it-header-2-top-social::after {
    display: none;
}

.it-header-2-top-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background-color: var(--surface-2);
    color: var(--text-secondary);
    transition: all 0.2s ease-in-out;
    margin: 0;
    font-size: 13px;
    position: relative;
}

.it-header-2-top-social a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.it-header-2-top-right ul li {
    display: inline-flex;
    align-items: center;
}

.it-header-2-top-right ul li:not(:last-child) {
    margin-right: 30px;
}

/* Custom list items spacing overrides */
.it-header-2-top-right ul li.topbar-social-item {
    margin-right: 15px;
}

.it-header-2-top-right ul li.topbar-separator-item {
    color: var(--border-strong);
    opacity: 0.8;
    user-select: none;
    margin-right: 15px;
    font-weight: 300;
}

.it-header-2-top-right ul li.topbar-login-item {
    margin-right: 0;
}

/* Login Link style */
.topbar-login-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease-in-out;
}

.topbar-login-btn i {
    font-size: 14px;
    color: var(--primary);
}

.topbar-login-btn:hover {
    color: var(--primary);
}

/* --- Language Dropdown --- */
.it-header-2-lang {
    position: relative;
}

.it-header-2-lang.open ul li a span svg {
    transform: rotate(-180deg);
}

.it-header-2-lang.open .it-header-2-lang-submenu {
    opacity: 1;
    visibility: visible;
    top: 104%;
}

.it-header-2-lang>ul>li {
    font-weight: 400;
    font-size: 15px;
    display: inline-block;
    width: 115px;
    height: 36px;
    text-align: center;
    color: var(--it-common-black);
}

.it-header-2-lang>ul>li a span {
    margin-left: 5px;
}

.it-header-2-lang>ul>li a span svg {
    display: inline-block;
    transition: 0.3s;
}

.it-header-2-lang>ul>li>ul.it-header-2-lang-submenu {
    position: absolute;
    top: 130%;
    left: 0px;
    z-index: 9;
    transition: all 0.3s ease-out 0s;
    opacity: 0;
    visibility: hidden;
    background-color: var(--it-common-white);
    padding: 12px 22px;
    box-shadow: var(--it-lang-submenu-shadow);
    width: 100%;
}

.it-header-2-lang>ul>li>ul.it-header-2-lang-submenu>li {
    list-style-type: none;
    padding-bottom: 5px;
    text-align: right;
}

.it-header-2-lang>ul>li>ul.it-header-2-lang-submenu>li a {
    border-radius: 0;
    transition: 0.3s;
    color: var(--it-common-black);
}

.it-header-2-lang>ul>li>ul.it-header-2-lang-submenu>li a:hover {
    color: var(--it-theme-1);
}

/* --- Header Menu & Area --- */
.container-1380 {
    max-width: 1300px;
}

.it-header-2-plr {
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--it-common-white);
    box-shadow: var(--shadow-color-1) 0px 7px 29px 0px;
}

.it-header-wrap {
    position: relative;
}

.it-header-2-logo {
    display: flex;
    align-items: center;
}

.it-header-2-logo img {
    max-height: 46px;
    width: auto;
    max-width: 100%;
    transition: max-height 0.3s ease;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-logo img {
        max-height: 36px;
    }
}

.it-header-2-main-menu ul {
    padding-left: 20px;
    margin: 0;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-main-menu ul {
        padding-left: 0;
    }
}

.it-header-2-main-menu ul li {
    list-style-type: none;
    display: inline-block;
    margin: 0 10px;
    position: relative;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-main-menu ul li {
        margin: 0 5px;
    }
}

.it-header-2-main-menu ul li:last-child {
    margin-right: 0;
}

.it-header-2-main-menu ul li>a {
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
    padding: 16px 0;
    display: inline-block;
    text-transform: capitalize;
    color: var(--it-common-black);
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-main-menu ul li>a {
        font-size: 13px;
        padding: 12px 0;
    }
}

.it-header-2-main-menu ul li.has-dropdown::after {
    content: "\f107";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    display: inline-block;
    font-size: 16px;
    margin-left: 5px;
    font-weight: 400;
    transition: 0.3s;
    transform: translateY(1px);
    color: var(--it-common-black);
}

.it-header-2-main-menu ul li>.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    text-align: right;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    transition-duration: 0.1s;
    transform-origin: top;
    transform: perspective(300px) rotateX(-18deg);
    border-top: 4px solid var(--it-theme-1);
    background-color: var(--it-common-black);
    box-shadow: var(--shadow-color-2) 0px 8px 24px;
    z-index: 9999;
}

.it-header-2-main-menu ul li>.submenu>li {
    margin: 0;
    display: block;
    margin-bottom: 5px;
}

.it-header-2-main-menu ul li>.submenu>li:last-child {
    margin-bottom: 0;
}

.it-header-2-main-menu ul li>.submenu>li>a {
    display: inline-block;
    padding: 0;
    font-weight: 700;
    color: var(--it-common-white);
    transition: 0.3s;
    position: relative;
}

.it-header-2-main-menu ul li>.submenu>li>a::before {
    position: absolute;
    top: 13px;
    left: 0;
    content: "";
    height: 1px;
    width: 0px;
    background-color: var(--it-theme-1);
    display: inline-block;
    transition: all 0.3s ease-out 0s;
    opacity: 0;
    visibility: hidden;
}

.it-header-2-main-menu ul li>.submenu>li>a:hover {
    padding-left: 25px;
}

.it-header-2-main-menu ul li>.submenu>li>a:hover::before {
    width: 20px;
    visibility: visible;
    opacity: 1;
}

.it-header-2-main-menu ul li:hover.has-dropdown::after {
    transform: rotate(-180deg);
    color: var(--it-theme-1);
}

.it-header-2-main-menu ul li:hover>a {
    color: var(--it-theme-1);
}

.it-header-2-main-menu ul li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transition-duration: 0.2s;
    transform: perspective(300px) rotateX(0deg);
}

.it-header-2-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-right {
        gap: 10px;
    }
}

.it-header-2-icon a {
    font-size: 18px;
    font-weight: 700;
    color: var(--it-common-black);
}

.it-header-2-button {
    margin-left: 0;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .it-header-2-button {
        margin-left: 0;
    }
}

.it-header-2-button .it-btn {
    height: 42px;
    line-height: 42px;
    padding: 0 20px;
    font-size: 14px;
}

.it-header-2-button .it-btn span svg {
    width: 14px;
    height: 12px;
    margin-left: 6px;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-button .it-btn {
        height: 36px;
        line-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .it-header-2-button .it-btn span svg {
        width: 12px;
        height: 10px;
        margin-left: 4px;
    }
}

.it-header-2-bar button {
    height: 42px;
    width: 42px;
    color: var(--it-common-white);
    background-color: var(--it-theme-1);
    border-radius: 5px;
    margin: 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-header-2-bar button {
        height: 36px;
        width: 36px;
    }
}

/* --- Button Style --- */
.it-btn {
    display: inline-block;
    font-weight: 600;
    text-transform: capitalize;
    padding: 0 25px;
    height: 54px;
    line-height: 54px;
    position: relative;
    transition: 0.4s;
    border-radius: 5px;
    z-index: 1;
    color: var(--it-common-white);
    background-color: var(--it-theme-1);
    text-decoration: none;
    border: none;
}

.it-btn span svg {
    margin-left: 10px;
    display: inline-block;
    transform: translateY(-1px);
}

.it-btn:hover {
    color: var(--it-common-white);
    background-color: var(--it-theme-teal-hover);
}

.it-btn:hover span svg path {
    animation: tfLeftToRight 0.4s forwards;
}

/* --- Body Overlay & Offcanvas Mobile Sidebar --- */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: rgba(11, 45, 77, 0.6);
    visibility: hidden;
    opacity: 0;
    transition: 0.45s ease-in-out;
}

.body-overlay.apply {
    opacity: 1;
    visibility: visible;
}

.itoffcanvas {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    right: -100%;
    width: 420px;
    bottom: 0;
    box-shadow: -10px 0 30px rgba(11, 45, 77, 0.15);
    background-color: var(--it-common-black);
    z-index: 9999;
    padding: 50px;
    scrollbar-width: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.45s ease-in-out;
    overflow-y: auto;
}

.itoffcanvas.opened {
    opacity: 1;
    visibility: visible;
    right: 0;
}

@media (max-width: 767px) {
    .itoffcanvas {
        width: 300px;
        padding: 40px 25px;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .itoffcanvas {
        width: 360px;
        padding: 40px;
    }
}

.itoffcanvas__logo {
    margin-bottom: 40px;
}

.itoffcanvas__logo img {
    max-width: 140px;
    height: auto;
}

.itoffcanvas__close-btn button {
    font-size: 28px;
    color: var(--white);
    position: absolute;
    right: 30px;
    top: 30px;
    transition: 0.3s;
    font-weight: 300;
    opacity: 0.6;
    border: none;
    background: none;
    cursor: pointer;
}

.itoffcanvas__close-btn button:hover {
    opacity: 1;
    color: var(--it-theme-1);
}

.itoffcanvas__text {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
    .itoffcanvas__text {
        display: none;
    }
}

.itoffcanvas__text p {
    color: var(--white-80);
    font-size: 0.95rem;
    line-height: 1.6;
}

.itoffcanvas__info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.itoffcanvas__info .offcanva-title {
    color: var(--white);
    margin: 20px 0 25px 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.itoffcanvas__info-address span {
    display: block;
    color: var(--white-65);
    font-size: 0.85rem;
    font-weight: 400;
}

.itoffcanvas__info-address a {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

.itoffcanvas__info-address a:hover {
    color: var(--it-theme-1);
}

/* --- Mobile Navigation inside Sidebar --- */
.it-menu-mobile .it-submenu {
    display: none;
    padding-right: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.it-menu-mobile .it-menu-content {
    margin-bottom: 40px;
}

.it-menu-mobile ul {
    position: static;
    display: block;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.it-menu-mobile ul li {
    list-style: none;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.it-menu-mobile ul li:not(:last-child)>a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.it-menu-mobile ul li.has-dropdown>a .dropdown-toggle-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--white-65);
    transition: all 0.3s ease-in-out;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.it-menu-mobile ul li.has-dropdown>a .dropdown-toggle-btn i {
    transition: transform 0.3s ease-in-out;
}

.it-menu-mobile ul li.has-dropdown>a .dropdown-toggle-btn.dropdown-opened i {
    transform: rotate(90deg);
}

.it-menu-mobile ul li.has-dropdown>a .dropdown-toggle-btn:hover {
    background-color: var(--it-theme-1);
    border-color: var(--it-theme-1);
    color: var(--white);
}

.it-menu-mobile ul li.has-dropdown>a .dropdown-toggle-btn:hover i {
    color: var(--white);
}

.it-menu-mobile ul li.has-dropdown>a.expanded {
    color: var(--it-theme-1);
}

.it-menu-mobile ul li.has-dropdown>a.expanded .dropdown-toggle-btn.dropdown-opened {
    background-color: var(--it-theme-1);
    border-color: var(--it-theme-1);
    color: var(--white);
}

.it-menu-mobile ul li.has-dropdown>a.expanded .dropdown-toggle-btn.dropdown-opened i {
    color: var(--white);
}

.it-menu-mobile ul li.has-dropdown:hover>a::after {
    color: var(--secondary);
}

.it-menu-mobile ul li:last-child a span {
    border-bottom: 0;
}

.it-menu-mobile ul li>a {
    display: block;
    font-size: 1rem;
    color: var(--white-90);
    position: relative;
    padding: 12px 0;
    padding-left: 40px;
    text-transform: capitalize;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.it-menu-mobile ul li>a:hover {
    color: var(--it-theme-1);
}

.it-menu-mobile ul li ul li a {
    font-size: 0.92rem;
    padding: 10px;
    color: var(--white-80);
}

.it-menu-mobile ul li ul li li a {
    padding-left: 15px;
}

/* --- Sticky Header --- */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    opacity: 1;
    visibility: visible;
    width: 100%;
    animation: 0.95s ease 0s normal forwards 1 running headerSlideDown;
    background-color: var(--it-common-white);
    box-shadow: 0 10px 15px var(--dark-10);
    z-index: 99999;
}

.header-sticky .it-header-2-plr {
    box-shadow: none;
}

.header-sticky-out {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    animation: 0.95s ease 0s normal forwards 1 running headerSlideUp;
    background-color: var(--it-common-white);
    box-shadow: 0 10px 15px var(--dark-10);
    z-index: 99999;
}

.header-sticky-out .it-header-2-plr {
    box-shadow: none;
}

@keyframes headerSlideDown {
    0% {
        margin-top: -150px;
    }

    100% {
        margin-top: 0;
    }
}

@-webkit-keyframes headerSlideDown {
    0% {
        margin-top: -150px;
    }

    100% {
        margin-top: 0;
    }
}

@keyframes headerSlideUp {
    0% {
        margin-top: 0;
        opacity: 1;
        visibility: visible;
    }

    100% {
        margin-top: -150px;
        opacity: 0;
        visibility: hidden;
    }
}

@-webkit-keyframes headerSlideUp {
    0% {
        margin-top: 0;
        opacity: 1;
        visibility: visible;
    }

    100% {
        margin-top: -150px;
        opacity: 0;
        visibility: hidden;
    }
}

/* --- Hero Grid & Layout Fixes --- */
.it-hero-2-area .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: space-between;
}

.it-hero-2-area .row.align-items-end {
    align-items: flex-end;
}

/* Default Mobile/Tablet column widths for Hero */
.it-hero-2-area .col-xl-6,
.it-hero-2-area .col-lg-6 {
    width: 100%;
    align-self: center;
}

.it-hero-2-area .col-xl-4,
.it-hero-2-area .col-lg-4 {
    width: 100%;
}

/* Desktop layout (>= 992px) */
@media (min-width: 992px) {
    .it-hero-2-area .col-lg-6 {
        flex: 0 0 auto;
        width: 55% !important;
    }

    .it-hero-2-area .col-lg-4 {
        flex: 0 0 auto;
        width: 45% !important;
    }
}

/* Large Desktop layout (>= 1200px) */
@media (min-width: 1200px) {
    .it-hero-2-area .col-xl-6 {
        flex: 0 0 auto;
        width: 50% !important;
    }

    .it-hero-2-area .col-xl-4 {
        flex: 0 0 auto;
        width: 38% !important;
    }
}

/* --- Hero Section --- */
.it-hero-2-area {
    background-color: var(--it-theme-bg-light);
    overflow: hidden;
    position: relative;
}

.it-hero-2-content {
    padding-top: 130px;
    padding-bottom: 40px;
}

@media (max-width: 991px) {
    .it-hero-2-content {
        padding-top: 100px;
        padding-bottom: 30px;
    }
}

.it-hero-2-bg {
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
}

.it-hero-2-title {
    color: var(--it-common-black);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    padding-bottom: 5px;
    margin-bottom: 20px;
    animation: heroFadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media only screen and (min-width: 1400px) and (max-width: 1599px) {
    .it-hero-2-title {
        font-size: 50px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .it-hero-2-title {
        font-size: 47px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .it-hero-2-title {
        font-size: 45px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .it-hero-2-title {
        font-size: 47px;
    }

    .it-hero-2-title br {
        display: none;
    }
}

@media (max-width: 767px) {
    .it-hero-2-title {
        font-size: 30px;
    }

    .it-hero-2-title br {
        display: none;
    }
}

.it-hero-2-title>span {
    padding-right: 10px;
    position: relative;
    z-index: 4;
}

.it-hero-2-subtitle {
    font-size: 0.75em;
    color: var(--secondary);
    display: inline-block;
}

.it-hero-2-subtitle .title-shape {
    top: -10px;
    left: -14px;
}

.it-hero-2-subtitle .title-shape svg {
    width: 150px;
}

.it-hero-2-subtitle .title-shape svg path {
    stroke: var(--primary);
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: pathReveal 4s ease-in-out infinite;
    animation-delay: 0.5s;
    opacity: 0.15;
}

@keyframes pathReveal {
    0% {
        stroke-dashoffset: 600;
    }

    30% {
        stroke-dashoffset: 0;
    }

    70% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -600;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px),
only screen and (min-width: 768px) and (max-width: 991px),
(max-width: 767px) {
    .it-hero-2-subtitle .title-shape {
        left: -10px;
    }

    .it-hero-2-subtitle .title-shape svg {
        width: 110px;
    }
}

@media (max-width: 767px) {
    .it-hero-2-subtitle .title-shape {
        top: -6px;
        left: -8px;
    }

    .it-hero-2-subtitle .title-shape svg {
        width: 85px;
    }
}

.title-shape {
    position: absolute;
    top: -15px;
    left: -9px;
    z-index: -1;
}

.title-shape svg {
    stroke: var(--it-theme-teal);
}

@media only screen and (min-width: 992px) and (max-width: 1199px),
only screen and (min-width: 768px) and (max-width: 991px),
(max-width: 767px) {
    .title-shape svg {
        width: 125px;
    }
}

@media (max-width: 767px) {
    .title-shape svg {
        width: 85px;
    }
}

.it-hero-2-text p {
    margin-bottom: 30px;
    font-size: 17px;
    color: var(--it-theme-gray);
    animation: heroFadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px),
only screen and (min-width: 992px) and (max-width: 1199px),
only screen and (min-width: 768px) and (max-width: 991px) {
    .it-hero-2-text p {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .it-hero-2-text p {
        font-size: 14px;
    }
}

.it-hero-2-btn-box {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

@media only screen and (min-width: 992px) and (max-width: 1199px),
only screen and (min-width: 768px) and (max-width: 991px),
(max-width: 767px) {
    .it-hero-2-btn-box {
        flex-wrap: wrap;
    }
}

.it-hero-2-btn-box>.it-btn {
    margin-right: 0;
}

/* --- Play Video Button --- */
.it-hero-2-play {
    display: flex;
    align-items: center;
    gap: 15px;
}

.it-hero-2-play a {
    height: 60px;
    width: 60px;
    line-height: 60px;
    border-radius: 50%;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--it-common-white);
    background-color: var(--it-common-black);
    text-decoration: none;
}

.it-hero-2-play a i {
    margin-left: 3px;
    line-height: 60px;
}

.it-hero-2-play a::after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--it-play-pulse-color);
    animation: borderanimate2 2s linear infinite;
    z-index: -1;
    border-radius: 50%;
}

.it-hero-2-play a::before {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--it-play-pulse-color);
    animation: borderanimate2 2s linear infinite;
    z-index: -1;
    border-radius: 50%;
    animation-delay: 1s;
}

.it-hero-2-play span {
    text-decoration: underline;
    font-weight: 600;
    color: var(--it-common-black);
    cursor: pointer;
}

/* --- Hero Images & Shapes --- */
.it-hero-2-thumb-box {
    position: relative;
    animation: heroFadeInLeft 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
}

.it-hero-2-thumb {
    transform: translateX(50px);
}

@media (max-width: 991px) {
    .it-hero-2-thumb {
        transform: none !important;
        text-align: center;
        margin-top: 40px;
    }
}

.it-hero-2-thumb>img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    display: block;
}

@media only screen and (min-width: 768px) and (max-width: 991px),
(max-width: 767px) {
    .it-hero-2-thumb>img {
        max-width: 100%;
    }
}

.it-hero-2-shape-1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 115%;
}

.it-hero-2-shape-1 img {
    width: 100%;
    height: auto;
    display: block;
}


.it-hero-2-shape-2 {
    position: absolute;
    top: 10%;
    left: -28%;
}

.it-hero-2-shape-3 {
    position: absolute;
    top: 6%;
    right: -63%;
    animation: itrotate 3s ease-in-out 3s infinite alternate forwards;
}

.it-hero-2-shape-4 {
    position: absolute;
    bottom: 0;
    right: 0;
    animation: heroFadeIn 1.5s ease-out both;
}

.it-hero-2-shape-4 img {
    max-width: 375px;
    height: auto;
}

.it-hero-2-shape-5 {
    position: absolute;
    bottom: 120px;
    left: 790px;
    animation: itswing 0.9s forwards infinite alternate;
    transform-origin: bottom left;
}

.it-hero-2-shape-6 {
    position: absolute;
    bottom: 100px;
    left: 55px;
    animation: rotate2 6s linear infinite;
}

.it-hero-2-shape-7 {
    position: absolute;
    bottom: 165px;
    left: 50px;
    animation: heroFadeIn 1.5s ease-out both, rotate2 4s linear infinite 1.5s;
}

/* --- Funfact Badge --- */
.it-hero-2-funfact {
    position: absolute;
    bottom: 95px;
    right: 37%;
    border-radius: 5px;
    width: 180px;
    padding: 20px 12px;
    z-index: 3;
    background-color: var(--it-common-white);
    box-shadow: var(--it-funfact-shadow);
    animation: heroFadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both, itupdown 0.8s infinite alternate 1.4s;
    text-align: center;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px),
only screen and (min-width: 992px) and (max-width: 1199px) {
    .it-hero-2-funfact {
        bottom: 26px;
        right: 29%;
        width: 160px;
        padding: 15px 12px;
    }
}

.it-hero-2-funfact .theme {
    color: var(--it-theme-1);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.it-hero-2-funfact .theme i {
    font-style: normal;
}

.it-hero-2-funfact span {
    display: block;
    color: var(--it-common-black);
    font-size: 14px;
    line-height: 18px;
}

.it-hero-2-funfact img {
    margin: auto;
    margin-top: 10px;
    max-width: 100px;
    height: auto;
}

/* --- Keyframe Animations --- */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroFadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headerSlideDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes rotate2 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes itswing {
    0% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(-6deg);
    }
}

@keyframes itrotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes itupdown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes borderanimate2 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes tfLeftToRight {
    49% {
        transform: translateX(60%);
    }

    50% {
        opacity: 0;
        transform: translateX(-60%);
    }

    51% {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RTL SYSTEM OVERRIDES — HEADER, TOPBAR & HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
html[dir="rtl"] .it-header-2-top-left ul li {
    padding-right: 0;
    padding-left: 0;
}

html[dir="rtl"] .it-header-2-top-left ul li:not(:last-child) {
    padding-left: 15px;
    padding-right: 0;
}

html[dir="rtl"] .it-header-2-top-right {
    text-align: left !important;
}

html[dir="rtl"] .it-header-2-top-right ul li:not(:last-child) {
    margin-left: 30px;
    margin-right: 0;
}

html[dir="rtl"] .it-header-2-top-right ul li.topbar-social-item {
    margin-left: 15px;
    margin-right: 0;
}

html[dir="rtl"] .it-header-2-top-right ul li.topbar-separator-item {
    margin-left: 15px;
    margin-right: 0;
}

html[dir="rtl"] .it-header-2-top-right ul li.topbar-login-item {
    margin-left: 0;
    margin-right: 0;
}

html[dir="rtl"] .it-header-2-top-social::after {
    display: none;
}

html[dir="rtl"] .it-header-2-lang>ul>li>ul.it-header-2-lang-submenu>li {
    text-align: left;
}

html[dir="rtl"] .it-header-2-main-menu ul {
    padding-right: 20px;
    padding-left: 0;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    html[dir="rtl"] .it-header-2-main-menu ul {
        padding-right: 10px;
        padding-left: 0;
    }
}

html[dir="rtl"] .it-header-2-button {
    margin-right: 20px;
    margin-left: 0;
}

html[dir="rtl"] .it-header-2-main-menu ul li:last-child {
    margin-left: 0;
}

html[dir="rtl"] .it-header-2-main-menu ul li>.submenu {
    right: 0;
    left: auto;
    text-align: right;
}

html[dir="rtl"] .it-header-2-main-menu ul li>.submenu>li>a::before {
    right: 0;
    left: auto;
}

html[dir="rtl"] .it-header-2-main-menu ul li>.submenu>li>a:hover {
    padding-right: 25px;
    padding-left: 0;
}

/* Hero Section RTL overrides */


@media (max-width: 991px) {
    html[dir="rtl"] .it-hero-2-thumb {
        transform: none !important;
    }
}

html[dir="rtl"] .it-hero-2-shape-2 {
    right: -28%;
    left: auto;
}

html[dir="rtl"] .it-hero-2-shape-3 {
    left: -20%;
    right: auto;
}

html[dir="rtl"] .it-hero-2-shape-4 {
    right: 0;
    left: auto;
}

html[dir="rtl"] .it-hero-2-shape-5 {
    right: 790px;
    left: auto;
    transform-origin: bottom right;
}

html[dir="rtl"] .it-hero-2-shape-6 {
    right: 55px;
    left: auto;
}

html[dir="rtl"] .it-hero-2-shape-7 {
    right: 41%;
    left: auto;
}

html[dir="rtl"] .it-hero-2-funfact {
    left: 13%;
    right: auto;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px),
only screen and (min-width: 992px) and (max-width: 1199px) {
    html[dir="rtl"] .it-hero-2-funfact {
        left: 6%;
        right: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   سيكشن التعريف بالشركة (About Company Section)
   ═══════════════════════════════════════════════════════════════════════════════ */
.about-section {
    padding: 80px 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}

.about-images {
    position: relative;
    padding: 20px;
}

.about-images__wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.about-image-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-card.main-image {
    width: 70%;
    height: 320px;
    top: 0;
    right: 0;
    z-index: 1;
}

.about-image-card.secondary-image {
    width: 55%;
    height: 240px;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 4px solid var(--surface);
}

.about-images__wrapper:hover .about-image-card.main-image {
    transform: translateY(-5px);
}

.about-images__wrapper:hover .about-image-card.secondary-image {
    transform: translateY(5px);
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: 32%;
    z-index: 3;
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 4px solid var(--secondary);
}

.experience-badge__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.1;
}

.experience-badge__label {
    font-size: 0.85rem;
    color: var(--white);
    white-space: nowrap;
    margin-top: 4px;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background-color: var(--secondary-muted);
    color: var(--secondary);
    border: 1px solid var(--secondary-20);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-content .section-tag {
    align-self: flex-start;
}

.section-title,
.section-title-premium {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
}

.section-title.text-center,
.section-title-premium.text-center {
    margin-bottom: 32px;
}

.section-desc,
.section-desc-premium {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-content .section-desc-premium {
    margin-bottom: 30px;
    text-align: justify;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
    padding: 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-light);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.about-feature-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.about-ceo-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.ceo-meta {
    display: flex;
    flex-direction: column;
}

.ceo-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.ceo-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

.ceo-sig-img {
    height: 50px;
    display: flex;
    align-items: center;
}

.ceo-sig-img img {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

/* ملاءمة الشاشات المختلفة */
@media (max-width: 991px) {
    .about-images__wrapper {
        height: 350px;
    }

    .section-title,
    .section-title-premium {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .about-images {
        margin-bottom: 40px;
        padding: 0;
    }

    .about-images__wrapper {
        height: 320px;
        max-width: 480px;
        margin: 0 auto;
    }

    .about-ceo-card {
        flex-direction: row;
        justify-content: space-between;
    }

    .section-title,
    .section-title-premium {
        text-align: center;
    }

    .about-content .section-tag {
        align-self: center;
    }

    .section-desc,
    .section-desc-premium {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   تنسيق وتحسين قسم "لماذا تختار بوابات العلوم؟" (Why Choose Us Upgrade)
   ═══════════════════════════════════════════════════════════════════════════════ */
.why-choose-us {
    background-color: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: 80px 0;
}

.why-choose-us .section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* الكروت المحسّنة */
.why-choose-us .feature-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.why-choose-us .feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

/* أيقونة الكارت */
.why-choose-us .feature-card__icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.why-choose-us .feature-card:hover .feature-card__icon {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.why-choose-us .feature-card__icon svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.why-choose-us .feature-card:hover .feature-card__icon svg {
    transform: scale(1.1);
}

/* نصوص الكروت */
.why-choose-us .feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.why-choose-us .feature-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .why-choose-us {
        padding: 60px 0;
    }

    .why-choose-us .feature-card {
        padding: 30px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   تنسيق وضبط ترويسة الأقسام (Premium Section Headers)
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    width: 100%;
}

.section-header__titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-header__titles .section-tag {
    margin-bottom: 12px;
}

.section-header .section-title,
.section-header .section-title-premium {
    margin-bottom: 0;
}

.section-header .section-title.text-center,
.section-header .section-title-premium.text-center {
    margin-bottom: 32px;
}

/* التجاوب للهواتف والشاشات الصغيرة */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .section-header__titles {
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   تنسيق بطاقات الجامعات المستوحى من قالب Educate (Educate Card Styles)
   ═══════════════════════════════════════════════════════════════════════════════ */
.it-course-item {
    padding: 20px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.it-course-item:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.it-course-thumb {
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    height: 200px;
}

.it-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.it-course-item:hover .it-course-thumb img {
    transform: scale(1.1);
}

.it-course-thumb-text {
    position: absolute;
    top: 15px;
    right: 15px;
    /* RTL right side */
    z-index: 2;
}

.it-course-thumb-text span {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: var(--white);
    background-color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.it-course-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 15px;
}

.it-course-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s ease;
    margin-bottom: 12px;
    text-align: right;
}

.it-course-title a {
    color: var(--text-primary);
}

.it-course-title a:hover {
    color: var(--secondary);
}

.it-course-info {
    border-bottom: 1px dashed var(--border);
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.it-course-info>span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.it-course-info>span i {
    color: var(--secondary);
    margin-left: 6px;
    /* RTL margin left for icon */
}

.it-course-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.it-course-price-box a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.it-course-price-box a:hover {
    color: var(--secondary);
}


/* ==========================================================================
   Homepage Grid & Card Stack Styling
   ========================================================================== */

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Majors and Institutes Stack Grid on Homepage */
.majors-institutes-grid {
    gap: 40px;
}

.section-header--sm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.section-title--sm {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    position: relative;
}

.section-title--sm::after {
    content: '';
    position: absolute;
    bottom: -13px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Component (Override Tailwind Card & styling for custom content) */
.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    padding: 0 !important;
    /* Reset tailwind padding */
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.card__image {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card__title a:hover {
    color: var(--secondary);
}

.card__desc {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Horizontal Card Layout (Specifically for stacks on homepage) */
.card--horizontal {
    flex-direction: row;
    height: 200px;
}

.card--horizontal .card__image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.card--horizontal .card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0;
}

.card--horizontal .card__title {
    font-size: 1.1rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card--horizontal .card__desc {
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-grow: 1;
}

.card--horizontal .card__actions {
    margin-top: auto;
}

.card--horizontal .card__footer {
    border-top: 1px dashed var(--border);
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card--horizontal .card__footer span {
    font-size: 0.775rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card--horizontal .card__footer span i {
    color: var(--secondary);
    margin-left: 5px;
}

.card--horizontal .card__link {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.card--horizontal .card__link:hover {
    color: var(--secondary);
}

.card--horizontal .card__link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.card--horizontal .card__link:hover i {
    transform: translateX(-4px);
    /* RTL slide left */
}

/* Mobile responsive for horizontal cards */
@media (max-width: 575px) {
    .card--horizontal {
        flex-direction: column;
        height: auto;
    }

    .card--horizontal .card__image {
        width: 100%;
        height: 160px;
    }

    .card--horizontal .card__content {
        padding: 16px;
    }

    .card--horizontal .card__title {
        white-space: normal;
    }
}

/* Centered Section Title Underline Indicator */
.section-title.text-center::after,
.section-title-premium.text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    margin: 15px auto 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   قسم خطوات التسجيل (Steps Section)
   ═══════════════════════════════════════════════════════════════════════════════ */
.steps-section {
    background-color: var(--primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* خلفية ديكورية خفيفة */
.steps-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background-color: var(--white-08);
    pointer-events: none;
}

.steps-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: var(--white-08);
    pointer-events: none;
}

/* هيدر القسم */
.steps-section__header {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* تاج القسم الذهبي */
.steps-tag {
    background-color: var(--secondary-muted);
    color: var(--secondary);
    border-color: var(--secondary-20);
}

/* عنوان القسم أبيض على الخلفية الداكنة */
.steps-section__header .section-title {
    color: var(--white);
}

/* الخط الذهبي يظهر أبيض في الهيدر الداكن — نبقيه ذهبي */
.steps-section__header .section-title.text-center::after {
    background-color: var(--secondary);
}

/* وصف القسم */
.steps-section__desc {
    font-size: 1rem;
    color: var(--white-30);
    margin-top: 8px;
    max-width: 500px;
}

/* الشبكة الأساسية للخطوات — خط وصل واحد ممتد من مركز أول كارت لمركز آخر كارت */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

/* خط الوصل الممتد — يبدأ من مركز الكارت الأول وينتهي عند مركز الأخير */
.steps-grid::before {
    content: '';
    position: absolute;
    /* 40px = نصف ارتفاع الأيقونة (80px/2) لمحاذاة مركز الدائرة */
    top: 40px;
    /* 12.5% = مركز أول عمود من 4 أعمدة (25%/2) */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background-color: var(--white-18);
    z-index: 0;
    pointer-events: none;
}

/* يُخفى الخط على الشاشات الأصغر */
@media (max-width: 991px) {
    .steps-grid::before {
        display: none;
    }
}


/* كارت الخطوة */
.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

/* الغلاف الخارجي للأيقونة والرقم */
.step-card__icon-wrap {
    position: relative;
    margin-bottom: 24px;
    z-index: 1;
}

/* الرقم التسلسلي فوق الأيقونة */
.step-card__badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background-color: var(--secondary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid var(--primary);
}

/* دائرة الأيقونة */
.step-card__icon {
    width: 80px;
    height: 80px;
    background-color: var(--white-10);
    border: 2px solid var(--white-18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* الأيقونة الأخيرة بلون ذهبي مميز */
.step-card__icon--accent {
    background-color: var(--secondary-muted);
    border-color: var(--secondary);
    color: var(--secondary);
}

.step-card:hover .step-card__icon {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

.step-card:hover .step-card__icon--accent {
    background-color: var(--secondary);
    color: var(--primary);
}

/* نص الكارد */
.step-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-card__desc {
    text-align: center;
    font-size: 0.875rem;
    color: var(--white-30);
    line-height: 1.7;
    max-width: 200px;
}

/* زر الـ CTA */
.steps-section__cta {
    text-align: center;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}

.steps-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: var(--radius);
    border: none;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.steps-cta-btn:hover {
    background-color: var(--secondary-hover);
    color: var(--primary);
    transform: translateY(-2px);
}

.steps-cta-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.steps-cta-btn:hover i {
    transform: translateX(-4px);
}

/* التجاوب للشاشات المتوسطة */
@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}


/* التجاوب للهواتف */
@media (max-width: 575px) {
    .steps-section {
        padding: 60px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 320px;
        margin: 0 auto;
    }

    .steps-section__header {
        margin-bottom: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   الفوتر الاحترافي (Professional Site Footer)
   ═══════════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background-color: var(--primary);
    color: var(--white-70);
    margin-top: 0;
}

/* الجسم الرئيسي */
.site-footer__body {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--white-10);
}

/* شبكة الأعمدة: 2fr للعمود الأول + 3 أعمدة متساوية */
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

/* ═══════ عمود الهوية ═══════ */
.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.site-footer__logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.site-footer__logo-fallback {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    gap: 10px;
    align-items: center;
}

.site-footer__logo-fallback i {
    color: var(--secondary);
    font-size: 1.4rem;
}

.site-footer__desc {
    font-size: 0.875rem;
    color: var(--white-65);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 320px;
}

/* أزرار التواصل الاجتماعي */
.site-footer__social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer__social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--white-08);
    border: 1px solid var(--white-10);
    color: var(--white-70);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.site-footer__social-btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.site-footer__social-btn--whatsapp:hover {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
    color: var(--white);
}

/* ═══════ عناوين الأعمدة ═══════ */
.site-footer__col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* الخط الذهبي الصغير قبل العنوان */
.site-footer__col-title-accent {
    display: inline-block;
    width: 18px;
    height: 2px;
    background-color: var(--secondary);
    flex-shrink: 0;
}

/* ═══════ قوائم الروابط ═══════ */
.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--white-65);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.site-footer__link:hover {
    color: var(--secondary);
    gap: 12px;
}

.site-footer__link-icon {
    font-size: 0.65rem;
    color: var(--secondary);
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.site-footer__link:hover .site-footer__link-icon {
    opacity: 1;
    transform: translateX(-3px);
}

/* ═══════ قائمة التواصل ═══════ */
.site-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.site-footer__contact-icon {
    width: 36px;
    height: 36px;
    background-color: var(--white-08);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.site-footer__contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-footer__contact-label {
    font-size: 0.75rem;
    color: var(--white-30);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-footer__contact-value {
    font-size: 0.875rem;
    color: var(--white-80);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.site-footer__contact-value:hover {
    color: var(--secondary);
}

/* ═══════ البار السفلي ═══════ */
.site-footer__bottom {
    background-color: var(--primary-hover);
    padding: 18px 0;
}

.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__copyright {
    font-size: 0.8rem;
    color: var(--white-65);
    margin: 0;
}

.site-footer__copyright strong {
    color: var(--secondary);
    font-weight: 700;
}

.site-footer__legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__legal-link {
    font-size: 0.8rem;
    color: var(--white-65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__legal-link:hover {
    color: var(--secondary);
}

.site-footer__legal-sep {
    color: var(--white-30);
    font-size: 0.9rem;
}

/* ═══════ التجاوب ═══════ */
@media (max-width: 1199px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .site-footer__desc {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .site-footer__body {
        padding: 56px 0 40px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   قسم الـ CTA Band — مدمج وبارز
   ═══════════════════════════════════════════════════════════════════════════════ */
.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.78) 0, rgba(255, 255, 255, 0) 44%),
        radial-gradient(circle at 88% 78%, rgba(120, 120, 120, 0.09) 0, rgba(120, 120, 120, 0) 46%),
        linear-gradient(135deg, #fcfcfc 0%, #f5f5f5 52%, #0b2d4d1f 100%);
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
}

.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.cta-band::before {
    top: -37px;
    right: -37px;
    width: 170px;
    height: 170px;
    border-radius: 32px;
    background: linear-gradient(135deg, oklch(0.86 0.01 248.11), rgba(255, 255, 255, 0.25)), repeating-linear-gradient(-45deg, rgb(240 241 241) 0 6px, rgb(205 212 218) 6px 12px);
    box-shadow: 0 16px 30px rgba(80, 80, 80, 0.1);
    transform: rotate(8deg);
}

.cta-band::after {
    bottom: -44px;
    left: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95) 0 26%, rgba(255, 255, 255, 0) 58%),
        conic-gradient(from 180deg, rgba(90, 90, 90, 0.12), rgba(90, 90, 90, 0.015), rgba(90, 90, 90, 0.12));
    filter: blur(1px);
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* النص */
.cta-band__text {
    flex: 1;
    min-width: 0;
}

.cta-band__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.cta-band__desc {
    font-size: 0.9rem;
    color: var(--primary-85);
    margin: 0;
    line-height: 1.6;
}

/* الأزرار */
.cta-band__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cta-band__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cta-band__btn i {
    font-size: 0.8rem;
}

/* زر داكن — Navy على ذهبي */
.cta-band__btn--dark {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 20px rgba(10, 31, 68, 0.24);
}

.cta-band__btn--dark:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
}

/* زر شفاف — Outline على ذهبي */
.cta-band__btn--outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-30);
}

.cta-band__btn--outline:hover {
    background-color: var(--primary-20);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* التجاوب */
@media (max-width: 767px) {
    .cta-band::before {
        width: 120px;
        height: 120px;
        top: -32px;
        right: -36px;
    }

    .cta-band::after {
        width: 138px;
        height: 138px;
        left: -44px;
        bottom: -44px;
    }

    .cta-band__inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 0;
        gap: 24px;
    }

    .cta-band__actions {
        justify-content: center;
    }

    .cta-band__title {
        font-size: 1.15rem;
    }
}




.cta-band__btn--primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 20px rgba(10, 31, 68, 0.24);
}

.cta-band__btn--primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
}

