/* ==================== HAFIZ HEADER STYLES ==================== */

/* Fix Brand Name Visibility */
.navbar-brand .brand-name,
.site-header .brand-name,
.brand-text .brand-name {
    color: #0a5f59 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Header Container - Clean Professional Design */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(10, 95, 89, 0.08);
    border-bottom: 1px solid rgba(10, 95, 89, 0.1);
    transition: all 0.3s ease;
}

/* Top Bar - Clean Professional */
.top-bar {
    background: #0a5f59;
    color: white;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #e4a520;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e4a520;
    transform: translateY(-2px);
}

/* Main Navigation - Clean Professional */
.main-navbar {
    padding: 18px 0;
    background: white;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.navbar-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2c3e50;
}

.brand-link .brand-name {
    color: #0a5f59 !important;
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: #0a5f59;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.2);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 95, 89, 0.3);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mobile-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    color: #0a5f59 !important;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    text-shadow: none;
}

.brand-name:hover {
    color: #0d6b63 !important;
}

.brand-tagline {
    font-size: 13px;
    color: #e4a520;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop Menu */
.desktop-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.menu-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #0a5f59;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
}

.nav-link:not(:last-child)::after {
    content: '|';
    position: absolute;
    left: -8px;
    color: #e4a520;
    font-weight: bold;
}

.nav-link:hover {
    background: rgba(10, 95, 89, 0.1);
    color: #e4a520;
}

/* Dropdown Styles - Improved */
.dropdown {
    position: relative;
}

/* Remove Bootstrap's default dropdown arrow */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid rgba(10, 95, 89, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(10, 95, 89, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
    text-align: right;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #0a5f59;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(10, 95, 89, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(10, 95, 89, 0.1);
    color: #e4a520;
    padding-left: 25px;
}

/* Mobile Dropdown - Bootstrap Compatible */
.mobile-dropdown {
    position: static !important;
    background: rgba(10, 95, 89, 0.05);
    border: none;
    border-radius: 12px;
    box-shadow: none;
    margin: 6px 0 0 20px;
    padding: 4px 0;
    list-style: none;
    transition: all 0.3s ease;
    transform: none;
}

.mobile-dropdown .dropdown-item {
    padding: 8px 20px;
    color: #0a5f59;
    font-size: 14px;
    border-bottom: 1px solid rgba(10, 95, 89, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.mobile-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown .dropdown-item:hover {
    background: rgba(10, 95, 89, 0.1);
    color: #e4a520;
    padding-left: 25px;
}

.mobile-dropdown .dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mobile Dropdown Arrow Animation - Bootstrap Compatible */
.mobile-nav-link .bi-chevron-down {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.mobile-nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Custom Button Styles - Clean Professional */
.btn-outline-primary {
    background: transparent;
    color: #0a5f59;
    border: 2px solid #0a5f59;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.btn-outline-primary:hover {
    background: #0a5f59;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.3);
}

.btn-primary {
    background: #0a5f59;
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.btn-primary:hover {
    background: #e4a520;
    color: #0a5f59;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(228, 165, 32, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Side Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    transition: right 0.3s ease;
}

.mobile-side-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #0a5f59;
    color: white;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.mobile-menu-item {
    margin-bottom: 5px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #0a5f59;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

.mobile-nav-link:hover {
    background: rgba(10, 95, 89, 0.1);
    color: #e4a520;
    transform: translateX(5px);
}

.mobile-nav-link i {
    font-size: 18px;
    width: 20px;
}

/* Mobile Menu Actions - Improved Layout */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Side by Side Action Buttons - Bootstrap Enhanced */
.mobile-action-buttons .btn {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    min-height: 48px;
    transition: all 0.3s ease;
}

.mobile-action-buttons .btn-outline-primary {
    background: transparent;
    color: #0a5f59;
    border: 2px solid #0a5f59;
}

.mobile-action-buttons .btn-outline-primary:hover {
    background: #0a5f59;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.3);
}

.mobile-action-buttons .btn-primary {
    background: #0a5f59;
    color: white;
    border: 2px solid transparent;
}

.mobile-action-buttons .btn-primary:hover {
    background: #e4a520;
    color: #0a5f59;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(228, 165, 32, 0.3);
}

/* Mobile Download Section - Improved */
.mobile-download-section {
    background: rgba(10, 95, 89, 0.05);
    border-radius: 15px;
    padding: 20px 15px;
    border: 1px solid rgba(10, 95, 89, 0.1);
}

.download-title {
    color: #0a5f59;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-title::before {
    content: '\F3CD';
    font-family: 'bootstrap-icons';
    font-size: 18px;
}

.mobile-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid rgba(10, 95, 89, 0.15);
    border-radius: 12px;
    padding: 8px 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 45px;
    max-width: 140px;
}

.mobile-download-btn:hover {
    background: rgba(10, 95, 89, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.2);
    border-color: #e4a520;
}

.download-img {
    height: 35px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
    object-fit: contain;
}

.mobile-download-btn:hover .download-img {
    transform: scale(1.05);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(10, 95, 89, 0.1);
    border-radius: 50%;
    color: #0a5f59;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 95, 89, 0.2);
}

.mobile-social-link:hover {
    background: #e4a520;
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .top-bar {
        display: none;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-content {
        justify-content: space-between;
    }
    
    .brand-name {
        font-size: 28px;
    }
    
    .brand-logo {
        width: 55px;
        height: 55px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 24px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .mobile-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .mobile-menu-content {
        width: 100%;
    }
    
    /* Mobile Action Buttons - Smaller Screens */
    .mobile-action-buttons .btn {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    /* Mobile Download Section - Smaller Screens */
    .mobile-download-section {
        padding: 15px 12px;
    }
    
    .download-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .mobile-download-buttons {
        gap: 8px;
    }
    
    .mobile-download-btn {
        min-height: 40px;
        padding: 6px 8px;
        max-width: 120px;
    }
    
    .download-img {
        height: 30px;
    }
    
    /* Mobile Menu Items */
    .mobile-nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .mobile-nav-link i {
        font-size: 16px;
        width: 18px;
    }
    
    /* Mobile Dropdown */
    .mobile-dropdown {
        margin: 4px 0 0 15px;
        padding: 2px 0;
    }
    
    .mobile-dropdown .dropdown-item {
        padding: 6px 15px;
        font-size: 13px;
        margin-bottom: 1px;
    }
}

/* RTL Support */
[dir="rtl"] .mobile-side-menu {
    right: auto;
    left: -100%;
}

[dir="rtl"] .mobile-side-menu.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .mobile-menu-content {
    right: auto;
    left: 0;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .mobile-nav-link:hover {
    transform: translateX(-5px);
}

/* Navbar Toggler Active State */
.navbar-toggler.active {
    transform: rotate(90deg);
}

/* Body padding moved to critical CSS above */
