* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Anton', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Mobile Header Styles */
.mobile-header {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-org-name {
    font-size: 12px;
    color: #333333;
    letter-spacing: 0.5px;
}

.mobile-donate-btn {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-family: 'Anton', sans-serif;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333333;
    transition: all 0.3s ease;
}

.mobile-contact-link {
    text-decoration: none;
    color: #2c5aa0;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Sticky Scroll Header Styles */
.sticky-scroll-header {
    position: fixed;
    top: -80px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    z-index: 900;
    transition: top 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.sticky-scroll-header.visible {
    top: 0;
}

.sticky-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 80px;
    max-width: 1400px;
    margin: 0 auto;
    height: 60px;
}

.sticky-logo {
    height: 40px;
    width: 40px;
    flex-shrink: 0;
}

.sticky-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sticky-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}

.sticky-nav-item {
    position: relative;
}

.sticky-nav-link {
    text-decoration: none;
    color: #161616;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.sticky-nav-link:hover {
    color: #2c5aa0;
    background-color: #f0f4f8;
}

.sticky-nav-link::after {
    content: '▼';
    font-size: 8px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.sticky-nav-item:hover .sticky-nav-link::after {
    transform: rotate(180deg);
}

.sticky-mega-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -200px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2100;
    min-width: 600px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-top: 5px;
}

.sticky-nav-item:hover .sticky-mega-menu-content {
    display: block;
}

/* Sticky Direct Navigation Link Styles */
.sticky-nav-item-link {
    position: relative;
}

.sticky-nav-link-direct {
    text-decoration: none;
    color: #161616;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sticky-nav-link-direct:hover {
    color: #2c5aa0;
    background-color: #f0f4f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
}

.sticky-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sticky-mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sticky-menu-section {
    border-left: 3px solid transparent;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.sticky-menu-section:hover {
    border-left-color: #2c5aa0;
}

.sticky-menu-section .sticky-menu-icon {
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
}

.sticky-menu-section h3 {
    font-size: 11px;
    color: #333333;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.sticky-menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sticky-menu-section li {
    margin-bottom: 4px;
}

.sticky-menu-section a {
    text-decoration: none;
    color: #666666;
    font-size: 11px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: block;
    padding: 3px 0;
}

.sticky-menu-section a:hover {
    color: #2c5aa0;
    padding-left: 8px;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.sticky-contact,
.sticky-calculator {
    text-decoration: none;
    color: #666666;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 3px;
}

.sticky-contact:hover,
.sticky-calculator:hover {
    color: #2c5aa0;
    background-color: #f8f9fa;
}

.sticky-donate-btn {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    font-family: 'Anton', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.sticky-donate-btn:hover {
    background: linear-gradient(135deg, #1a4480, #2c5aa0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Desktop Header Styles */
.desktop-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.main-header-div {
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Projects Logo Grid Styles */
.projects-mega-menu {
    padding: 20px;
    min-width: 500px;
}

.projects-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
}

.project-logo-item {
    text-align: center;
}

.project-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.project-logo-link:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 4px;
}

.project-logo-title {
    font-size: 16px;
    font-weight: unset;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

/* Sticky Header Projects Logo Styles */
.sticky-projects-mega-menu {
    padding: 15px;
    min-width: 450px;
}

.sticky-projects-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 8px;
}

.sticky-project-logo-item {
    text-align: center;
}

.sticky-project-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.sticky-project-logo-link:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
}

.sticky-project-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

.sticky-project-logo-title {
    font-size: 11px;
     
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.header-logo {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: end;
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-center {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0 40px;
    gap: 15px;
}

.header-container1 {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.header-container1-1,
.header-container1-2 {
    position: relative;
}

.header-container1 a {
    text-decoration: none;
    color: #666666;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
}

.header-container1 a:hover {
    color: #2c5aa0;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.header-container2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    gap: 20px;
}

/* Mega Menu Styles */
.mega-menu-item {
    position: relative;
}

.mega-menu-trigger {
    text-decoration: none;
    color: #161616;
    font-size: 26px;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 6px;
    position: relative;
    display: block;
    text-transform: uppercase;
}

.mega-menu-trigger:hover {
    color: #2c5aa0;
    background-color: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
}

.mega-menu-trigger::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover .mega-menu-trigger::after {
    transform: rotate(180deg);
}

/* Direct Navigation Link Styles */
.nav-item-link {
    position: relative;
}

.nav-link-direct {
    text-decoration: none;
    color: #161616;
    font-size: 26px;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link-direct:hover {
    color: #2c5aa0;
    background-color: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
}

.mega-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 800px;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

/* Dynamic positioning for mega menu */
.mega-menu-item:nth-child(1) .mega-menu-content {
    left: -100px;
}

.mega-menu-item:nth-child(2) .mega-menu-content {
    left: -200px;
}

.mega-menu-item:nth-child(3) .mega-menu-content {
    left: -300px;
}

.mega-menu-item:nth-child(4) .mega-menu-content {
    left: -400px;
}

.mega-menu-item:hover .mega-menu-content {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-section {
    border-left: 3px solid transparent;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.menu-section:hover {
    border-left-color: #2c5aa0;
}

.menu-section .menu-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.sight-icon { color: #17a2b8; }
.water-icon { color: #007bff; }
.food-icon { color: #28a745; }
.orphan-icon { color: #e83e8c; }
.education-icon { color: #ffc107; }
.disaster-icon { color: #dc3545; }
.neighbours-icon { color: #6f42c1; }
.sadaqah-icon { color: #fd7e14; }
.more-icon { color: #20c997; }

.menu-section h3 {
    font-size: 16px;
    color: #333333;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: unset;
}

.menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-section li {
    margin-bottom: 8px;
}

.menu-section a {
    text-decoration: none;
    color: #666666;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.menu-section a:hover {
    color: #2c5aa0;
    padding-left: 10px;
}

.last-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-align: right;
}

.contact-info span:first-child {
    color: #e8f4f8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info span:last-child {
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 1px;
}

.donate-btn {
    background: #ffffff;
    color: #2c5aa0;
    border: 2px solid #ffffff;
    padding: 12px 25px;
    font-family: 'Anton', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.donate-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a4480;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.donate-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 90, 160, 0.3);
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: #ffffff;
}

.sidebar-header h3 {
    font-size: 18px;
    margin: 0;
    font-weight: unset;
}

.sidebar-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.sidebar-content {
    padding: 20px 0;
}

.sidebar-section {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

.sidebar-toggle.active {
    background-color: #f0f4f8;
    color: #2c5aa0;
}

.sidebar-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sidebar-toggle.active .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-direct-link {
    width: 100%;
    text-decoration: none;
    padding: 15px 0;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.sidebar-direct-link:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.sidebar-submenu.active {
    max-height: 400px;
    overflow-y: auto;
}

/* Special handling for appeals section with many items */
#sidebarAppeals.active {
    max-height: 350px;
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar-submenu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-submenu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-submenu::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 2px;
}

.sidebar-submenu::-webkit-scrollbar-thumb:hover {
    background: #1a4480;
}

.submenu-group {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.submenu-group:last-child {
    border-bottom: none;
}

.submenu-group h4 {
    font-size: 14px;
    color: #2c5aa0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: unset;
}

.submenu-group a {
    display: block;
    text-decoration: none;
    color: #666666;
    font-size: 13px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 10px;
    line-height: 1.4;
}

.submenu-group a:hover {
    color: #2c5aa0;
    border-left-color: #2c5aa0;
    padding-left: 15px;
    background-color: rgba(44, 90, 160, 0.05);
}

/* Style non-appeals sidebar sections */
.sidebar-submenu:not(#sidebarAppeals) a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #e8e8e8;
    border-left: 3px solid transparent;
    margin: 0;
}

.sidebar-submenu:not(#sidebarAppeals) a:hover {
    background-color: #f0f4f8;
    color: #2c5aa0;
    border-left-color: #2c5aa0;
    padding-left: 25px;
}

.sidebar-submenu:not(#sidebarAppeals) a:last-child {
    border-bottom: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-header-div {
        padding: 15px 40px;
    }
    
    .header-center {
        margin: 0 20px;
    }
    
    .mega-menu-content {
        min-width: 700px;
    }
    
    .mega-menu-item:nth-child(1) .mega-menu-content {
        left: -50px;
    }
    
    .mega-menu-item:nth-child(2) .mega-menu-content {
        left: -150px;
    }
    
    .mega-menu-item:nth-child(3) .mega-menu-content {
        left: -250px;
    }
    
    .mega-menu-item:nth-child(4) .mega-menu-content {
        left: -350px;
    }
}

@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .sticky-scroll-header {
        display: none;
    }
    
    .mega-menu-content {
        display: none !important;
    }
    
    .nav-link-direct {
        font-size: 18px;
        padding: 10px 15px;
    }
    
    .sticky-nav-link-direct {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .mobile-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .mobile-org-name {
        font-size: 10px;
    }
    
    .mobile-donate-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}
