﻿/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 945px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.HeroNull {
    position: relative;
    min-height: 30vh;
    background-color: #f8f9fa !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Navbar inside Hero */
.hero .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

/* Hero Content - Center aligned by default (for homepage) */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;    
    margin-top:210px;
    max-width: 1320px;
    padding: 0;
}

    .hero-content h1 {
        font-size: 4rem;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 3rem;
        font-weight: 600;
        margin-bottom: 18px;
        line-height: 1.3;
    }

    .hero-content h3 {
        font-size: 2.25rem;
        font-weight: 400;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .hero-content h4 {
        font-size: 1.75rem;
        font-weight: 200;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .hero-content p {
        font-size:34px;
        margin-bottom: 30px;
        opacity: 0.9;
        text-align:center !important;
    }

/* Left aligned for other pages (not homepage) */
.hero:not(#home) .hero-content {
    text-align: left;
    max-width: 1320px;
    width: 100%;
}
[dir="rtl"] .hero:not(#home) .hero-content {
    text-align: right;
    max-width: 1320px;
    width: 100%;
}
/* Dropdown Menu Styles */
.hero .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    border: none;
    overflow: hidden;
    pointer-events: none;
}

    .hero .dropdown-active > .dropdown-menu,
    .hero .dropdown-menu.dropdown-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

.hero .dropdown-item {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.hero .dropdown-link {
    display: flex;
    align-items: center;
    padding: 16px 20px 16px 44px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

    .hero .dropdown-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #c11516;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .hero .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }

        .hero .dropdown-link:hover::before {
            opacity: 1;
        }

    .hero .dropdown-link::after {
        content: '›';
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: white;
        opacity: 0;
        transition: all 0.3s ease;
        width: 20px;
    }

    .hero .dropdown-link:hover::after {
        opacity: 1;
    }

/* RTL Support */
[dir="rtl"] .hero .dropdown-link,
.hero [dir="rtl"] .dropdown-link {
    padding: 16px 44px 16px 20px;
}

    [dir="rtl"] .hero .dropdown-link::before,
    .hero [dir="rtl"] .dropdown-link::before {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .hero .dropdown-link::after,
    .hero [dir="rtl"] .dropdown-link::after {
        content: '‹';
        left: auto;
        right: 12px;
    }

.hero .dropdown-item:first-child .dropdown-link {
    border-top: none;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.15);
}

.hero .dropdown-item:last-child .dropdown-link {
    border-radius: 0 0 8px 8px;
}

.hero .nav-item.has-dropdown {
    position: relative;
}

    .hero .nav-item.has-dropdown:hover .nav-link {
        background: rgba(255, 255, 255, 0.15);
    }

/* CTA Button */
.cta-button {
    background: #c11516;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .cta-button:hover {
        background: #c82333;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
        color: white !important;
    }

/* Loading & Error States */
.hero-loading,
.hero-error {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.75rem;
    }

    .hero:not(#home) .hero-content {
        text-align: center;
    }
}
 /* Arabic / RTL */
[dir="rtl"] .navbar-top {
    display: flex;
    align-items: center;
    text-align: right;
    justify-content: space-between;
    
    width: 100%;
    max-width: 1320px;
}


.hero {
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2000;
}

    .hero-content a.cta-button {
        position: relative;
        z-index: 2000;
        pointer-events: auto;
        display: inline-block;
        text-decoration: none;
        color: #fff;
        cursor: pointer;
    }