/* Fekra Wad7a Custom Styles */

/* =============================================
   Primary Colors
   ============================================= */
:root {
    --brand-dark-blue: #364c86;
    --brand-blue: #8ea2d6;
    --brand-light-blue: #b8c3e9;
}

/* =============================================
   Color & Element Overrides
   ============================================= */
.text-color-primary,
.text-primary {
    color: var(--brand-dark-blue) !important;
}

.bg-color-primary,
.bg-primary {
    background-color: var(--brand-dark-blue) !important;
}

.btn-primary {
    background-color: var(--brand-dark-blue);
    border-color: var(--brand-dark-blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-outline-primary {
    color: var(--brand-dark-blue);
    border-color: var(--brand-dark-blue);
}

.btn-outline-primary:hover {
    background-color: var(--brand-dark-blue);
    border-color: var(--brand-dark-blue);
    color: #fff;
}

a {
    color: var(--brand-dark-blue);
}

a:hover {
    color: var(--brand-blue);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-dark-blue);
}

.ts-promo-number h2 {
    color: var(--brand-blue);
}

.ts-item-header .icon img {
    filter: invert(34%) sepia(18%) saturate(2371%) hue-rotate(188deg) brightness(92%) contrast(88%);
}

.feature-box i {
    color: var(--brand-blue);
}

.feature-box:hover i {
    color: var(--brand-dark-blue);
}

/* Remove background from menu items on click/hover */
.navigation .main-nav ul li a:hover,
.navigation .main-nav ul li a:focus,
.navigation .main-nav ul li a:active,
.navigation .main-nav ul li.active a {
    background-color: transparent !important;
}

blockquote {
    border-left-color: var(--brand-blue);
}

/* =============================================
   Fixed Header
   ============================================= */
header.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hide entire secondary-nav (only had language switcher) */
.secondary-nav {
    display: none !important;
}

/* =============================================
   Desktop: Nav layout
   (Logo inline styles are on the HTML element)
   ============================================= */

/* Nav element , table-cell to sit beside the logo */
.navigation .main-nav-nav {
    display: table-cell;
    vertical-align: middle;
    height: 80px;
    width: 100%;
}

/* =============================================
   Static Hero Section
   ============================================= */
.hero-static {
    position: relative;
    height: 650px;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 110px;
    background-color: #92a7d5;
    isolation: isolate;
    /* Offset for fixed header */
}

.hero-static .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-static .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: subtleZoom 20s infinite alternate;
}

@keyframes subtleZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* Dark overlay for better text readability */
.hero-static .hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(39, 55, 99, 0.34), rgba(39, 55, 99, 0.04) 68%);
}

.hero-static .hero-content {
    max-width: 850px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero-static .hero-content h1 {
    color: #fff !important;
    font-size: 52px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.5);
}

.hero-static .hero-content h4 {
    color: #fff !important;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-eyebrow {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* RTL Support for Hero */
[lang="ar"] .hero-static {
    text-align: right;
}

[lang="ar"] .hero-static .hero-content {
    margin-right: 0;
    margin-left: auto;
}

/* =============================================
   Mobile / Collapsed Nav  (≤ 992px)
   ============================================= */
@media (max-width: 992px) {
    header.navigation {
        height: auto;
        position: fixed;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .navigation .main-nav {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        min-height: 65px;
    }

    .brand {
        position: static !important;
        height: 40px !important;
        display: flex !important;
        align-items: center;
    }

    .brand img {
        max-height: 40px !important;
    }

    .navigation .nav-toggle {
        align-items: center;
        background: #fff;
        border: 1px solid rgba(54, 76, 134, 0.22);
        border-radius: 4px;
        display: flex !important;
        position: static !important;
        font-size: 22px;
        height: auto !important;
        line-height: 1;
        min-width: 42px;
        color: var(--brand-dark-blue);
        cursor: pointer;
        padding: 8px 9px;
    }

    .navigation .nav-toggle i {
        font-size: 22px;
    }

    /* Modern Dropdown Redesign */
    .navigation .main-nav nav {
        display: none;
    }

    .navigation .main-nav-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        padding: 14px 0 18px;
        transform-origin: top;
        animation: slideDownNav 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes slideDownNav {
        from {
            transform: scaleY(0);
            opacity: 0;
        }

        to {
            transform: scaleY(1);
            opacity: 1;
        }
    }

    .navigation .main-nav-nav.show-nav {
        display: block;
    }

    .navigation .main-nav ul {
        float: none !important;
        width: 100%;
        padding: 0 14px !important;
    }

    .navigation .main-nav ul li {
        float: none !important;
        width: 100%;
        margin-bottom: 5px;
    }

    .navigation .main-nav ul li a {
        display: block;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 700;
        color: var(--brand-dark-blue);
        text-align: left;
        text-transform: none;
        border-radius: 8px;
        transition: all 0.3s ease;
    }


    /* .navigation .main-nav ul li a:hover {
        background-color: rgba(54, 76, 134, 0.05) !important;
        color: var(--brand-blue) !important;
    } */

    /* Hero adjustments for mobile */
    .hero-static {
        height: 500px;
        min-height: 500px;
        margin-top: 65px !important;
        padding: 54px 20px !important;
        align-items: flex-end;
    }

    .hero-static .hero-background img {
        object-position: center bottom;
        animation: none;
    }

    .hero-static .hero-content {
        padding: 0;
        margin-bottom: 22px;
        max-width: 100%;
    }

    .hero-static h1 {
        font-size: 34px !important;
        line-height: 1.2 !important;
    }

    .hero-static .hero-content h4 {
        font-size: 16px;
    }
}
