/**
 * ==============================================================================
 * AL-ESRAA UNIVERSITY - HEADER & TOPBAR ELEMENTS STYLESHEET
 * ==============================================================================
 */

/* Typography & Body Defaults */
body {
    background-color: #f8fafc;
    color: #1e293b;
}

html[lang="ar"] body {
    font-family: 'Tajawal', sans-serif;
}

html[lang="en"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

:root {
    --primary-color: #0c3468; /* Royal Al-Esraa Blue */
    --accent-green: #0e8549;  /* Academic Emerald Green */
    --secondary-color: #dfa82c; /* Baghdadi Heritage Gold */
}

/* Color Utility Helpers */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}
.text-primary-custom {
    color: var(--primary-color) !important;
}
.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}
.text-secondary-custom {
    color: var(--secondary-color) !important;
}
.bg-emerald-custom {
    background-color: var(--accent-green) !important;
}
.text-emerald-custom {
    color: var(--accent-green) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(12, 52, 104, 0.9) 0%, rgba(14, 133, 73, 0.75) 100%), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

/* Generic Custom Card */
.card-custom {
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(12, 52, 104, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(12, 52, 104, 0.12);
}
.icon-box i {
    font-size: 2.8rem;
    color: var(--accent-green);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* LTR Layout Adaptations */
html[dir="ltr"] .floating-social-sidebar {
    left: auto !important;
    right: 20px !important;
}
html[dir="ltr"] body.scrolled .floating-social-sidebar {
    left: auto !important;
    right: 10px !important;
}
html[dir="ltr"] .social-icon:hover {
    transform: scale(1.15) translateX(-4px) !important;
}
html[dir="ltr"] .navbar-brand {
    margin-right: 2rem;
    margin-left: 0;
}

/* Language Switcher Component */
.lang-switcher-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    user-select: none;
}
.lang-switcher-box:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--gold-light);
}
.lang-switcher-box .lang-code {
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}
.lang-switcher-box .lang-code.active {
    color: var(--gold-light) !important;
}
.lang-switcher-box .lang-code.inactive {
    color: rgba(255, 255, 255, 0.6) !important;
}
.lang-switcher-box .lang-code.inactive:hover {
    color: #ffffff !important;
}
.lang-switcher-box .lang-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
    font-size: 0.75rem;
}

/* Topbar Single-Line & No-Wrap Rules */
.topbar-custom {
    white-space: nowrap !important;
}
.topbar-custom * {
    white-space: nowrap !important;
}
.topbar-custom a,
.topbar-custom span,
.topbar-custom small {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
}
.topbar-custom .topbar-separator {
    color: rgba(255, 255, 255, 0.25) !important;
    margin: 0 8px !important;
    display: inline-block;
}
@media (max-width: 1300px) {
    .topbar-custom a, .topbar-custom span, .topbar-custom small {
        font-size: 0.77rem !important;
    }
    .topbar-custom .topbar-separator {
        margin: 0 5px !important;
    }
}
