:root{
    /* === EXECUTIVE COLOR PALETTE === */
    /* New global theme (green/gold + neutrals) */
    --primary-green: #4a6b5c;
    --secondary-green: #5c7a6b;
    --accent-gold: #d4a574;
    --light-beige: #f5f1eb;
    --text-dark: #2c3e36;
    --text-muted: #6b7b72;
    --border-light: rgba(75, 107, 92, 0.15);
    --shadow-soft: 0 4px 20px rgba(44, 62, 54, 0.08);
    --shadow-medium: 0 8px 30px rgba(44, 62, 54, 0.12);
    --white: #ffffff;
    --black: #000000;
    --bg-body: #fafafa;
    --overlay-white-15: rgba(255, 255, 255, 0.15);
    --overlay-white-20: rgba(255, 255, 255, 0.2);
    --text-white-85: rgba(255, 255, 255, 0.85);
    --gradient-main: linear-gradient(135deg, #4a6b5c 0%, #5c7a6b 100%);
    --gradient-gold: linear-gradient(135deg, #d4a574 0%, #c89a67 100%);

    /* === LEGACY THEME BACKFILL → map old vars to new scheme === */
    --primary-navy: #1B2951;
    --primary-gold: #C49B5A;
    --primary-emerald: var(--primary-green);
    --primary-sage: var(--secondary-green);
    
    --secondary-charcoal: var(--text-dark);
    --secondary-slate: #566573;
    --secondary-silver: #ADB5BD;
    --secondary-pearl: #F8F9FA;
    
    --accent-copper: #B87333;
    --accent-teal: #4A90A4;
    --accent-cream: var(--light-beige);
    --accent-ivory: #FFFFF0;
    
    /* Legacy aliases used across existing CSS → now point to new palette */
    --maincolor: var(--primary-green);
    --secondcolor: var(--secondary-green);
    --theardcolor: var(--light-beige);
    --forthcolor: var(--accent-gold);
    --fontcolor: var(--text-dark);
    --bordercolor: var(--border-light);
    --shadwocolor: rgba(44, 62, 54, 0.12);
    
    /* === PREMIUM TYPOGRAPHY === */
    --font-primary: 'KFGQPC Uthman Taha Naskh', 'Amiri', 'Noto Naskh Arabic', 'Times New Roman', serif;
    --font-secondary: 'Cairo', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', 'Cairo', serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    --mainfont: var(--font-primary);
    --titlefont: var(--font-secondary);
    
    /* === EXECUTIVE TYPOGRAPHY SCALE === */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* === SOPHISTICATED SPACING === */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
    
    /* === PROFESSIONAL LINE HEIGHTS === */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* === EXECUTIVE SHADOWS === */
    --shadow-subtle: 0 1px 3px 0 rgba(44, 62, 54, 0.04), 0 1px 2px 0 rgba(44, 62, 54, 0.02);
    --shadow-large: 0 20px 25px -5px rgba(44, 62, 54, 0.12), 0 10px 10px -5px rgba(44, 62, 54, 0.02);
    --shadow-premium: 0 25px 50px -12px rgba(44, 62, 54, 0.25);
    
    /* === PREMIUM BORDERS === */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-full: 9999px;
    
    /* === CORPORATE GRADIENTS === */
    --gradient-primary: var(--gradient-main);
    --gradient-secondary: #d4a574;
    --gradient-subtle: linear-gradient(135deg, var(--secondary-pearl) 0%, var(--accent-ivory) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(44, 62, 54, 0.9) 0%, rgba(92, 122, 107, 0.8) 100%);
}

*{
    margin: 0px;
    padding: 0px;
    list-style: none;
    text-decoration: none;
    font-family: 'KFGQPC Uthman Taha Naskh';
}
html{
    scroll-behavior: smooth;
}
body{
    overflow-x: hidden;
    overflow-y:smoth;
}

input{
    outline: none;
}


/* --- Enhanced Header Styles --- */
header{
    display: flex;
    flex-direction: column;
    width: 100vw;
}

/* === EXECUTIVE LOGO DESIGN === */
.logo-container{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container:hover{
    transform: translateY(-2px);
}

.logo-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, 
        var(--primary-gold) 0%, 
        var(--accent-copper) 100%);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 3px 10px rgba(196,155,90,0.4),
        0 1px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.logo-icon::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.logo-container:hover .logo-icon::before{
    transform: translateX(100%);
}

/* تأثير هادئ للشعار عند التمرير */
.logo-icon:hover{
    transform: scale(1.02);
    box-shadow: var(--shadow-medium), inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.logo-icon svg{
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    transition: all 0.3s ease;
}

.logo-text{
    color: white;
    font-size: var(--text-lg);
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #c49b5a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite;
    position: relative;
}

/* تأثير هادئ ورسمي للشعار */
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; opacity: 0.95; }
    50% { background-position: 100% 50%; opacity: 1; }
}

.logo-text::after{
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    height: 2px;
    width: 0;
    background: var(--gradient-secondary);
    transition: width 0.4s ease;
}

.logo-container.mobile .logo-icon{
    width: 35px;
    height: 35px;
}

.logo-container.mobile .logo-text{
    font-size: 1.2rem;
}
/* === ULTRA-PROFESSIONAL HEADER === */
.header-hed{
    padding: var(--space-xl) var(--space-3xl);
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
        var(--primary-navy) 0%, 
        var(--secondary-charcoal) 50%,
        var(--primary-emerald) 100%);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 20px rgba(27,41,81,0.2),
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(196,155,90,0.25);
}

.header-hed::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../attatch/headerBg.png");
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 1;
}

.header-hed::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(27, 41, 81, 0.05) 0%, 
        rgba(46, 139, 87, 0.08) 50%,
        rgba(196, 155, 90, 0.05) 100%);
    z-index: 2;
}

.header-hed > *{
    position: relative;
    z-index: 3;
}
.header-hed .header-serch{
    display: flex;
    align-items:center;
    flex-direction:column;

}
.header-hed form{
    display: flex;
    align-content: center;

}
/* === PREMIUM ADVANCED SEARCH BAR === */
.header-hed .header-serch{
    position: relative;
}

.advanced-search-container{
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.search-form{
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-wrapper{
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.search-input-wrapper:focus-within{
    background: rgba(255,255,255,0.18);
    border-color: rgba(196,155,90,0.4);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.15),
        0 0 0 2px rgba(196,155,90,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.search-type-selector{
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.search-type-btn{
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: var(--border-radius-md);
}

.search-type-btn:hover{
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.1);
}

.search-type-btn i{
    font-size: 10px;
    transition: transform 0.3s ease;
}

.search-type-btn[aria-expanded="true"] i{
    transform: rotate(180deg);
}

.search-type-dropdown{
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%,
        rgba(248,249,250,0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 10px 30px rgba(27,41,81,0.15),
        0 4px 12px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.7);
    border: 1px solid rgba(196,155,90,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1200;
    margin-top: var(--space-sm);
}

.search-type-dropdown.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.search-option{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(196,155,90,0.08);
    font-size: var(--text-sm);
}

.search-option:last-child{
    border-bottom: none;
}

.search-option:hover,
.search-option.active{
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.1) 0%,
        rgba(255,255,255,0.3) 100%);
    color: var(--primary-gold);
    transform: translateX(-2px);
    box-shadow: 
        0 2px 6px rgba(196,155,90,0.1),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.search-option i{
    font-size: var(--text-base);
    width: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.search-option:hover i{
    transform: scale(1.05);
}

.search-option span{
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
    position: relative;
}

.search-option:hover span{
    transform: translateX(1px);
}

.search-option.active span{
    transform: translateX(2px);
}

.search-option.active{
    border-right: 2px solid var(--primary-gold);
}

/* Enhanced search container visibility */
.advanced-search-container{
    position: relative;
}

.advanced-search-container::before{
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.1) 0%, 
        rgba(255,255,255,0.05) 100%);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    opacity: 0.3;
}

/* Enhanced search container visibility */
.advanced-search-container:hover::before{
    opacity: 0.5;
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.15) 0%, 
        rgba(255,255,255,0.08) 100%);
}

/* Enhanced search container visibility */
.advanced-search-container:focus-within::before{
    opacity: 0.7;
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.2) 0%, 
        rgba(255,255,255,0.1) 100%);
}

/* Enhanced search container visibility */
.advanced-search-container:focus-within .search-input-wrapper{
    border-color: rgba(196,155,90,0.4);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.15),
        0 0 0 2px rgba(196,155,90,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Enhanced search container visibility */
.advanced-search-container:focus-within .search-type-btn{
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.15);
}

/* Enhanced search container visibility */
.advanced-search-container:focus-within .filter-btn{
    background: rgba(196,155,90,0.12);
    border-color: rgba(196,155,90,0.25);
    color: rgba(255,255,255,0.9);
}

/* Enhanced search container visibility */
.advanced-search-container:focus-within .search-btn{
    background: linear-gradient(135deg, 
        var(--accent-copper) 0%, 
        var(--primary-gold) 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(196,155,90,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}



/* Search divider and sections header */
.search-divider{
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(196,155,90,0.3) 50%, 
        transparent 100%);
    margin: var(--space-sm) 0;
}

.search-sections-header{
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, 
        rgba(27,41,81,0.03) 0%,
        rgba(196,155,90,0.05) 100%);
    border-bottom: 1px solid rgba(196,155,90,0.1);
}

.search-sections-header span{
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--primary-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-section-option{
    background: rgba(27,41,81,0.02);
}

.search-section-option:hover{
    background: linear-gradient(135deg, 
        rgba(27,41,81,0.08) 0%,
        rgba(196,155,90,0.12) 100%);
    color: var(--primary-navy);
    transform: translateX(-2px);
    box-shadow: 
        0 2px 6px rgba(27,41,81,0.1),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.search-section-option i{
    color: var(--primary-emerald);
    transition: transform 0.3s ease;
}

.search-section-option:hover i{
    transform: scale(1.05);
}

.search-option.disabled{
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0,0,0,0.05);
    color: var(--secondary-slate);
}

.search-option.disabled:hover{
    transform: none;
    background: rgba(0,0,0,0.05);
    box-shadow: none;
}

.header-hed form{
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.header-hed form:focus-within{
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: var(--shadow-large), 0 0 0 4px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.header-hed input{
    flex: 1;
    min-width: 280px;
    padding: var(--space-md) var(--space-lg);
    border: none;
    background: transparent;
    color: white;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    outline: none;
    transition: all 0.3s ease;
}

.search-btn{
    background: linear-gradient(135deg, 
        var(--primary-gold) 0%, 
        var(--accent-copper) 100%);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 3px 8px rgba(196,155,90,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    margin-right: var(--space-sm);
}

.search-btn:hover{
    background: linear-gradient(135deg, 
        var(--accent-copper) 0%, 
        var(--primary-gold) 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(196,155,90,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}



.search-filters{
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
}

.filter-btn{
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-md);
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active{
    background: rgba(196,155,90,0.15);
    border-color: rgba(196,155,90,0.3);
    color: rgba(255,255,255,0.95);
    transform: translateY(-1px);
    box-shadow: 
        0 2px 6px rgba(196,155,90,0.15);
}

.filter-btn i{
    font-size: 10px;
}

/* Enhanced Suggestions */
.enhanced-suggestions{
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.98) 0%,
        rgba(248,249,250,0.95) 100%);
    backdrop-filter: blur(25px);
    border-radius: var(--border-radius-xl);
    box-shadow: 
        0 15px 40px rgba(27,41,81,0.2),
        0 6px 16px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid rgba(196,155,90,0.15);
    overflow: hidden;
}

.suggestions-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.1) 0%,
        rgba(255,255,255,0.3) 100%);
    border-bottom: 1px solid rgba(196,155,90,0.1);
}

.suggestions-title{
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--primary-navy);
}

.suggestions-count{
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--secondary-slate);
    background: rgba(196,155,90,0.1);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
}

.suggestions-footer{
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid rgba(196,155,90,0.1);
    text-align: center;
}

.view-all-results-btn{
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, 
        var(--primary-gold) 0%, 
        var(--accent-copper) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-full);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 3px 8px rgba(196,155,90,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.view-all-results-btn:hover{
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 5px 12px rgba(196,155,90,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.view-all-results-btn i{
    font-size: 12px;
    transition: transform 0.3s ease;
}

.view-all-results-btn:hover i{
    transform: translateX(-2px);
}

/* Enhanced Search Results */
.enhanced-item{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(196,155,90,0.08);
    transition: all 0.3s ease;
}

.enhanced-item:hover{
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.05) 0%,
        rgba(255,255,255,0.3) 100%);
    transform: translateX(-3px);
}

.enhanced-item .serch-icon{
    font-size: var(--text-base);
    width: 20px;
    flex-shrink: 0;
    color: var(--primary-emerald);
}

.enhanced-item .result-title{
    flex: 1;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--primary-navy);
}

.enhanced-item .result-category{
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-xs);
    color: var(--secondary-slate);
    background: rgba(196,155,90,0.1);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    margin-right: var(--space-sm);
}

/* Mobile responsive search */
@media (max-width: 768px) {
    .advanced-search-container{
        width: 100%;
    }
    
    .search-input-wrapper{
        flex-direction: column;
        border-radius: var(--border-radius-xl);
    }
    
    .search-type-selector{
        width: 100%;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .search-type-btn{
        width: 100%;
        justify-content: space-between;
        padding: var(--space-lg);
    }
    
    .header-hed input{
        min-width: unset;
        width: 100%;
    }
    
    .search-filters{
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn{
        margin-bottom: var(--space-xs);
    }
    
    .search-type-dropdown{
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90vw;
        max-width: 300px;
        z-index: 2000;
    }
    
    .search-type-dropdown.show{
        transform: translate(-50%, -50%) scale(1);
    }
}

.header-hed input::placeholder{
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

.header-hed button[type="submit"]{
    background: linear-gradient(135deg, 
        var(--primary-gold) 0%, 
        var(--accent-copper) 100%);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    box-shadow: 
        0 3px 8px rgba(196,155,90,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-hed button[type="submit"]:hover{
    background: linear-gradient(135deg, var(--accent-copper) 0%, var(--primary-gold) 100%);
    transform: scale(1.02);
}

.header-hed button[type="submit"]::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.header-hed button[type="submit"]:hover::before{
    transform: translateX(100%);
}

/* === EXECUTIVE LOGIN BUTTON === */
.header-hed .login{
    background: linear-gradient(135deg, 
        var(--primary-gold) 0%, 
        var(--accent-copper) 100%);
    color: white;
    border-radius: var(--border-radius-full);
    font-family: var(--font-secondary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(196,155,90,0.3),
        0 2px 6px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.header-hed .login::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.header-hed .login:hover::before{
    transform: translateY(0);
}

.header-hed .login:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255,255,255,0.4);
}
.header-hed .login i{
    margin-right: 5px;
}
/* === ULTRA-PREMIUM NAVIGATION SYSTEM === */
.executive-navigation{
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(25px);
    border-bottom: 2px solid rgba(196,155,90,0.3);
    box-shadow: 
        0 12px 40px rgba(27,41,81,0.4),
        0 4px 16px rgba(0,0,0,0.15),
        0 2px 8px rgba(196,155,90,0.1),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    overflow: visible;
}

.nav-container{
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* === PREMIUM BACKGROUND EFFECTS === */
.nav-backdrop{
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(196,155,90,0.12) 0%, transparent 60%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(27,41,81,0.1) 0%, transparent 70%),
        linear-gradient(45deg, transparent 0%, rgba(196,155,90,0.08) 25%, transparent 50%, rgba(255,255,255,0.03) 75%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(15,25,45,0.05) 50%, transparent 100%);
    pointer-events: none;
    animation: navBackdropPulse 8s ease-in-out infinite;
}

@keyframes navBackdropPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-ambient-glow{
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(196,155,90,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: ambientGlow 6s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% { 
        opacity: 0.8;
        transform: scale(1);
    }
    100% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

/* === FLOATING PARTICLES === */
.nav-particles{
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle{
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(196,155,90,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
}

.particle-1{
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle-2{
    top: 60%;
    left: 30%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.particle-3{
    top: 30%;
    right: 20%;
    animation-delay: -6s;
    animation-duration: 12s;
}

.particle-4{
    bottom: 40%;
    left: 60%;
    animation-delay: -9s;
    animation-duration: 20s;
}

.particle-5{
    top: 70%;
    right: 15%;
    animation-delay: -12s;
    animation-duration: 16s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.8;
    }
}

.nav-content{
    position: relative;
    z-index: 2;
}

/* === PRIMARY NAVIGATION === */
.primary-nav{
    padding: var(--space-lg) 0;
}

.nav-list{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item{
    position: relative;
    display: flex;
    flex: 0 0 auto; /* prevent shrinking so each item keeps its needed width */
}

/* === ULTRA-PREMIUM NAV LINKS === */
.nav-link{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-2xl);
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-base);
    letter-spacing: 0.4px;
    border-radius: var(--border-radius-2xl);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.08) 0%,
        rgba(196,155,90,0.05) 50%,
        rgba(255,255,255,0.03) 100%);
    border: 2px solid rgba(196,155,90,0.15);
    backdrop-filter: blur(15px);
}

.nav-link::before{
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-link:hover,
.nav-link[aria-current="page"]{
    color: white;
    box-shadow: 
        0 8px 25px rgba(196,155,90,0.3),
        0 4px 12px rgba(0,0,0,0.2);
    border-color: rgba(196,155,90,0.4);
    background: rgba(255,255,255,0.15);
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before{
    opacity: 0.8;
}

/* === PREMIUM ICON CONTAINERS === */
.nav-icon-container{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.3) 0%, 
        rgba(255,255,255,0.15) 50%,
        rgba(196,155,90,0.2) 100%);
    border: 1px solid rgba(196,155,90,0.3);
    box-shadow: 
        0 4px 12px rgba(196,155,90,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.nav-icon-glow{
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle, rgba(196,155,90,0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.nav-icon-particles{
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.icon-particle{
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(196,155,90,0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
}

.icon-particle:nth-child(1){
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.icon-particle:nth-child(2){
    top: 50%;
    right: -2px;
    transform: translateY(-50%);
}

.icon-particle:nth-child(3){
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link:hover .nav-icon,
.nav-link[aria-current="page"] .nav-icon{
    background: linear-gradient(135deg, 
        rgba(196,155,90,0.4) 0%, 
        rgba(255,255,255,0.2) 100%);
    transform: none;
}

.nav-icon i{
    font-size: var(--text-lg);
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

/* === PREMIUM TEXT STYLING === */
.nav-text{
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 var(--space-sm);
}

.nav-text-main{
    font-size: var(--text-base);
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}


/* === RIPPLE EFFECT === */
.nav-ripple{
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    pointer-events: none;
}

.nav-ripple::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(196,155,90,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === ENHANCED HOVER STATES === */
.nav-link:hover,
.nav-link[aria-current="page"]{
    color: white;
    transform: none;
    box-shadow: 
        0 12px 30px rgba(196,155,90,0.4),
        0 6px 18px rgba(0,0,0,0.2),
        0 2px 8px rgba(196,155,90,0.2);
    border-color: rgba(196,155,90,0.5);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.15) 0%,
        rgba(196,155,90,0.1) 50%,
        rgba(255,255,255,0.08) 100%);
}

.nav-link:hover .nav-icon-glow,
.nav-link[aria-current="page"] .nav-icon-glow{
    opacity: 1;
}

.nav-link:hover .icon-particle,
.nav-link[aria-current="page"] .icon-particle{
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.nav-link:hover .icon-particle:nth-child(2),
.nav-link[aria-current="page"] .icon-particle:nth-child(2){
    transform: translateY(-50%) translateX(8px);
}

.nav-link:hover .icon-particle:nth-child(3),
.nav-link[aria-current="page"] .icon-particle:nth-child(3){
    transform: translateX(-50%) translateY(8px);
}

.nav-link:hover .nav-ripple::before{
    width: 200px;
    height: 200px;
}

.nav-indicator{
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-full);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-indicator,
.nav-link[aria-current="page"] .nav-indicator{
    transform: translateX(-50%) scaleX(1);
}

/* === DROPDOWN NAVIGATION === */
.nav-dropdown-item{
    position: relative;
}

.nav-dropdown-toggle{
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: var(--space-sm);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: var(--space-xs);
}

.nav-dropdown-toggle:hover{
    color: var(--primary-gold);
    background: rgba(196,155,90,0.1);
    transform: scale(1.1);
}

.nav-dropdown-toggle i{
    transition: transform 0.3s ease;
}

.nav-dropdown-item:hover .nav-dropdown-toggle i{
    transform: rotate(180deg);
}

/* === LUXURY MEGA DROPDOWN === */
.nav-mega-dropdown{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    z-index: 1100;
    margin-top: var(--space-md);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.98) 0%,
        rgba(248,249,250,0.96) 30%,
        rgba(245,245,220,0.98) 70%,
        rgba(255,255,255,0.98) 100%);
    backdrop-filter: blur(25px);
    border-radius: var(--border-radius-2xl);
    box-shadow: 
        0 20px 60px rgba(27,41,81,0.2),
        0 8px 25px rgba(0,0,0,0.12),
        0 3px 10px rgba(196,155,90,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(196,155,90,0.08);
    border: 1px solid rgba(196,155,90,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.nav-mega-dropdown::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-3xl) var(--border-radius-3xl) 0 0;
}

.nav-mega-dropdown::after{
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(196,155,90,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: var(--border-radius-3xl);
}

.nav-dropdown-item:hover .nav-mega-dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    animation: dropdownEntrance 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mega-dropdown-container{
    padding: var(--space-2xl);
    position: relative;
}

@keyframes dropdownEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.92);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-3px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.mega-dropdown-header{
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    border-bottom: 1px solid rgba(196,155,90,0.12);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.4) 0%, 
        rgba(196,155,90,0.08) 100%);
    border-radius: var(--border-radius-lg);
    margin: calc(-1 * var(--space-2xl)) calc(-1 * var(--space-2xl)) var(--space-xl) calc(-1 * var(--space-2xl));
}

.mega-title{
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-2xl);
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mega-description{
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-base);
    color: var(--secondary-charcoal);
    margin: 0;
    opacity: 0.8;
}

/* === SUBSECTIONS GRID === */
.subsections-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.subsection-link{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.8) 0%, 
        rgba(248,249,250,0.7) 100%);
    border: 1px solid rgba(196,155,90,0.15);
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    color: var(--primary-navy);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.subsection-link::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.subsection-link:hover{
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(248,249,250,0.9) 100%);
    border-color: rgba(196,155,90,0.25);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(27,41,81,0.12),
        0 5px 12px rgba(0,0,0,0.08),
        0 2px 6px rgba(196,155,90,0.15),
        inset 0 1px 0 rgba(255,255,255,1);
}

.subsection-link:hover::before{
    transform: scaleX(1);
}

.subsection-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, 
        var(--primary-gold) 0%, 
        var(--accent-copper) 100%);
    border-radius: var(--border-radius-lg);
    color: white;
    font-size: var(--text-lg);
    transition: all 0.3s ease;
}

.subsection-link:hover .subsection-icon{
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(196,155,90,0.3);
}

.subsection-content{
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subsection-title{
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--primary-navy);
    margin: 0;
    transition: color 0.3s ease;
}

.subsection-link:hover .subsection-title{
    color: var(--primary-gold);
}

.subsection-arrow{
    color: var(--secondary-slate);
    transition: all 0.3s ease;
}

.subsection-link:hover .subsection-arrow{
    color: var(--primary-navy);
    transform: translateX(-3px);
}

/* === MEGA DROPDOWN FOOTER === */
.mega-dropdown-footer{
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(196,155,90,0.2);
}

.view-all-link{
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, 
        var(--primary-gold) 0%, 
        var(--accent-copper) 100%);
    color: white;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-base);
    border-radius: var(--border-radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 16px rgba(196,155,90,0.3),
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.view-all-link::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.view-all-link:hover{
    background: linear-gradient(135deg, 
        var(--accent-copper) 0%, 
        var(--primary-gold) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(196,155,90,0.4),
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.4);
    color: white;
}

.view-all-link:hover::before{
    transform: translateX(100%);
}

.view-all-link i{
    transition: transform 0.3s ease;
}

.view-all-link:hover i{
    transform: translateX(-3px);
}

/* === NAVIGATION ACCESSORIES === */
.nav-accessories{
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-breadcrumb{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-sm);
}

.nav-progress-bar{
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.progress-fill{
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

/* === RESPONSIVE ULTRA-PREMIUM NAVIGATION === */
@media (max-width: 1200px) {
    .nav-container{
        padding: 0 var(--space-lg);
    }
    
    .nav-list{
        gap: var(--space-xs);
    }
    
    .nav-link{
        padding: var(--space-lg) var(--space-xl);
        font-size: var(--text-sm);
    }
    
    .nav-text{
        display: none;
    }
    
    .nav-icon-container{
        margin: 0;
    }
    
    .nav-mega-dropdown{
        width: 550px;
    }
    
    .subsections-grid{
        grid-template-columns: 1fr;
    }
    
    /* Reduce particle effects on smaller screens */
    .nav-particles,
    .nav-ambient-glow{
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .executive-navigation{
        display: none; /* Hide on mobile, use mobile nav instead */
    }
}

@media (max-width: 480px) {
    .nav-container{
        padding: 0 var(--space-md);
    }
}

/* === NAVIGATION LOADING STATES === */
.nav-loading{
    position: relative;
    pointer-events: none;
}

.nav-loading::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%);
    animation: navShimmer 1s ease-in-out infinite;
    border-radius: var(--border-radius-xl);
}

@keyframes navShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === BREADCRUMB STYLING === */
.breadcrumb-link{
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover{
    color: var(--primary-gold);
}

.breadcrumb-current{
    color: white;
    font-weight: 600;
}

.nav-breadcrumb i{
    color: rgba(255,255,255,0.5);
    font-size: var(--text-xs);
}

/* === ENHANCED DROPDOWN STATES === */
.dropdown-active .nav-mega-dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-active .nav-dropdown-toggle i{
    transform: rotate(180deg);
    color: var(--primary-gold);
}

/* === ACCESSIBILITY IMPROVEMENTS === */
.nav-link:focus-visible,
.nav-dropdown-toggle:focus-visible{
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
    border-radius: var(--border-radius-md);
}

.subsection-link:focus-visible{
    outline: 2px solid var(--primary-navy);
    outline-offset: 2px;
}

/* === ACTIVE STATE ENHANCEMENTS === */
.nav-link.active{
    background: rgba(196,155,90,0.2);
    color: white;
    box-shadow: 
        0 4px 12px rgba(196,155,90,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.nav-link.active .nav-indicator{
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, 
        var(--primary-gold) 0%,
        var(--accent-copper) 100%);
}

/* === PERFORMANCE OPTIMIZATIONS === */
.executive-navigation,
.nav-link,
.nav-icon,
.nav-mega-dropdown{
    will-change: transform, opacity;
}

.nav-link,
.nav-icon-container,
.subsection-link{
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* === LUXURY SCROLL BEHAVIORS === */
.executive-navigation{
    transition: backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.executive-navigation.scrolled{
    backdrop-filter: blur(35px);
    box-shadow: 
        0 15px 50px rgba(27,41,81,0.5),
        0 6px 20px rgba(0,0,0,0.2),
        0 3px 10px rgba(196,155,90,0.15),
        inset 0 2px 0 rgba(255,255,255,0.2);
}

/* === SMOOTH ENTRANCE ANIMATIONS === */
.nav-item{
    opacity: 0;
    transform: translateY(20px);
    animation: navItemEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes navItemEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === ULTRA-SMOOTH TRANSITIONS === */
* {
    scroll-behavior: smooth;
}

.nav-link:active{
    transform: translateY(-1px) scale(1.01);
    transition-duration: 0.1s;
}

/* === EXECUTIVE SOCIAL MEDIA SECTION === */
.social-media{
    width: 100vw;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 4px solid var(--primary-gold);
}

.social-media::before{
    content: '';
    position: absolute;
    inset: 0;
    background: url("../attatch/headerBg.png");
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.social-media::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(27, 41, 81, 0.97) 0%, 
        rgba(46, 139, 87, 0.94) 30%,
        rgba(54, 69, 79, 0.96) 70%,
        rgba(196, 155, 90, 0.92) 100%);
    z-index: 2;
}

.social-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2xl) var(--space-4xl);
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
}

.social-text h1{
    color: white;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    margin: 0 0 var(--space-md) 0;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #c49b5a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
    line-height: var(--leading-tight);
}

.social-text p{
    color: rgba(255,255,255,0.85);
    font-size: var(--text-lg);
    margin: 0;
    font-family: var(--font-secondary);
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: var(--leading-relaxed);
    max-width: 600px;
}

.social-links ul{
    display: flex;
    margin: 0;
    gap: var(--space-lg);
}

.social-links ul li{
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.20) 0%, 
        rgba(255,255,255,0.10) 50%,
        rgba(196,155,90,0.15) 100%);
    border-radius: var(--border-radius-2xl);
    height: 64px;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    box-shadow: var(--shadow-medium), inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links ul li::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-links ul li:hover::before{
    transform: translateX(100%);
}

/* تأثير هادئ للأيقونات الاجتماعية */
.social-links ul li:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), inset 0 1px 0 rgba(255,255,255,0.3);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.25) 0%, 
        rgba(255,255,255,0.15) 50%,
        rgba(196,155,90,0.20) 100%);
    border-color: rgba(255,255,255,0.4);
}

.social-links ul li a{
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.social-links ul li a i{
    display: flex;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.social-links ul li:hover a i{
    transform: scale(1.1);
}

/* Premium social media brand colors */
.social-links ul li:has(a.twitter):hover{
    background: linear-gradient(135deg, rgba(29,161,242,0.9) 0%, rgba(29,161,242,0.7) 100%);
}
.social-links ul li:has(a.instagram):hover{
    background: linear-gradient(135deg, rgba(228,64,95,0.9) 0%, rgba(247,119,55,0.9) 50%, rgba(252,175,69,0.9) 100%);
}
.social-links ul li:has(a.youtube):hover{
    background: linear-gradient(135deg, rgba(255,0,0,0.9) 0%, rgba(204,0,0,0.9) 100%);
}
.social-links ul li:has(a.facebook):hover{
    background: linear-gradient(135deg, rgba(24,119,242,0.9) 0%, rgba(66,103,178,0.9) 100%);
}
/* === EXECUTIVE NAVIGATION === */
nav{
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 41, 81, 0.08);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav:hover{
    box-shadow: var(--shadow-medium);
}
/* === PREMIUM NAVIGATION BAR === */
.header-footer{
    padding: var(--space-xl) var(--space-4xl);
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: none;
}

.header-footer ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    margin: 0;
    font-size: var(--text-base);
}

.header-footer ul li{
    position: relative;
}

.header-footer ul li a{
    color: var(--secondary-charcoal);
    padding: var(--space-md) var(--space-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-secondary);
    font-weight: 600;
    text-decoration: none;
    font-size: var(--text-base);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    background: transparent;
    overflow: hidden;
}

.header-footer ul li a::before{
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.header-footer ul li a:hover::before,
.header-footer ul li .header-footer-active::before{
    transform: scaleX(1);
    transform-origin: left;
}

.header-footer ul li a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-full);
}

/* تأثيرات هادئة للتنقل */
.header-footer ul li a:hover,
.header-footer ul li .header-footer-active{
    color: var(--primary-navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

.header-footer ul li a:hover::after,
.header-footer ul li .header-footer-active::after{
    width: 80%;
}

.header-footer ul li a svg{
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.header-footer ul li a:hover svg{
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Executive dropdown divider */
.header-cont ul .header-hr{
    background: linear-gradient(90deg, transparent 0%, var(--secondary-silver) 50%, transparent 100%);
    height: 1px;
    padding: 0;
    margin: var(--space-sm) 0;
}
/* === EXECUTIVE DROPDOWN MENU === */
.header-cont{
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-footer ul li:hover .header-cont{
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: elegantDropdown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes elegantDropdown {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.header-cont ul{
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(27, 41, 81, 0.08);
    box-shadow: var(--shadow-large);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-lg);
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
}

.header-cont ul::before{
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(27, 41, 81, 0.08);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    backdrop-filter: blur(25px);
}

.header-cont ul li{
    margin: 0;
    padding: 0;
    position: relative;
}

.header-cont ul li a{
    display: block;
    padding: var(--space-lg) var(--space-xl);
    color: var(--secondary-charcoal);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-cont ul li a::before{
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-secondary);
    transition: height 0.3s ease;
    border-radius: var(--border-radius-full);
}

.header-cont ul li a:hover{
    background: var(--gradient-subtle);
    color: var(--primary-navy);
    transform: translateX(-5px);
    box-shadow: var(--shadow-soft);
}

.header-cont ul li a:hover::before{
    height: 70%;
}
.dropdown-active{
    display: inline;
}
.hr{
    width: 100vw;
    height: 2px;
    background-color: var(--secondcolor);
}
/* header mobile screen Style */
.header-hed-mobile{
    display: none;
    position: fixed;
    z-index: 999;
    width: 100vw;
    height:60px;
    top:0px;
    background-image: url('../attatch/headerBg.png');
    background-size: cover;
    box-shadow: 0px 10px 16px var(--shadwocolor);
}
.header-hed-mobile .header-logo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 10px;
}
.header-hed-mobile .header-logo button{
    width: 50px;
    height: 100%;
    font-size: larger;
    border: 1px solid white;
    background-color: var(--secondcolor);
    border-radius: 5px;
    color: white;
    text-align: center;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-hed-mobile .header-logo button i{
    display: flex;
}
.header-footer-mobile hr{
    margin: 0px;
}
.header-footer-mobile{
    box-shadow: 0px 10px 10px var(--shadwocolor);
    background-color: #fffffff2;
    padding: 10px;
    max-height: 50vh;
    overflow-y: auto;
    display: none;
}
.header-footer-mobile-active{
    display: block;
    z-index: 999;
}
.header-footer-mobile ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding:0px;
}
.header-footer-mobile ul li{
    display:flex;
    justify-content:space-between;
}
.header-footer-mobile ul li a{
    color: var(--fontcolor);
    text-decoration: none;
    margin-right:10px;
}
.header-serch-mobile{
    display: none;
    box-shadow: 0px 10px 16px var(--shadwocolor);
    background-color: var(--secondcolor);
    padding: 10px;
}
.header-serch-mobile-active{
    display: block;
}
.header-serch-mobile form{
    height: 4vh;
    display: flex;
    justify-content: center;
}
.header-serch-mobile input{
    width: 80%;
    height: 100%;
    padding: 5px 20px;
    border-width: 0px;
    border-radius: 20px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    margin: 0px;
    font-family: var(--titlefont);
    font-weight: bold;
}
.header-serch-mobile button{
    background-color: var(--maincolor);
    height: 100%;
    padding: 5px 20px;
    border: none;
    color: white;
    border-bottom-left-radius:20px ;
    border-top-left-radius:20px ;
}
/* --- Modern Footer Design --- */
footer{
    width: 100vw;
    margin-top: 80px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.footer-content{
    background: white;
    border-top: 4px solid var(--maincolor);
}

.footer-main{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 60px 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3{
    color: var(--secondcolor);
    font-family: var(--titlefont);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after{
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--maincolor), var(--secondcolor));
    border-radius: 2px;
}

/* About Section */
.footer-section.about .footer-logo{
    margin-bottom: 20px;
}

.footer-section.about .footer-logo .logo-icon{
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    color: white;
}

.footer-section.about .footer-logo .logo-text{
    color: var(--secondcolor);
    text-shadow: none;
}

.footer-section.about p{
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
}

.footer-contact{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.95rem;
}

.contact-item i{
    color: var(--maincolor);
    font-size: 1rem;
}

/* Links Section */
.footer-section ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li{
    margin-bottom: 12px;
}

.footer-section ul li a{
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
    position: relative;
}

.footer-section ul li a:hover{
    color: var(--secondcolor);
    padding-right: 8px;
}

.footer-section ul li a::before{
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--maincolor);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before{
    width: 15px;
}

/* Newsletter Section */
.footer-section.newsletter p{
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-btn{
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: var(--titlefont);
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(87,204,153,0.3);
}

.newsletter-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(87,204,153,0.4);
}

/* Footer Bottom */
.footer-bottom{
    background: var(--secondcolor);
    background-image: url('../attatch/headerBg.png');
    background-size: cover;
    position: relative;
}

.footer-bottom::before{
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(56,163,165,0.9);
    backdrop-filter: blur(5px);
}

.footer-bottom-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-bottom p{
    color: white;
    margin: 0;
    font-family: var(--titlefont);
    font-weight: 500;
}

.footer-social{
    display: flex;
    gap: 12px;
}

.footer-social a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-social a:hover{
    background: rgba(255,255,255,0.25);
    color: rgba(44, 62, 54, 0.95);
    transform: translateY(-2px);
}
/* === ULTRA-PREMIUM HERO SECTION === */
.hero-section{
    background: var(--gradient-primary);
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section::before{
    content: '';
    position: absolute;
    inset: 0;
    background: url("../attatch/headerBg.png");
    background-size: cover;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}



.hero-content{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4xl);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-5xl);
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-text h1{
    color: white;
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
    font-weight: 900;
    margin-bottom: var(--space-xl);
    text-shadow: 0 6px 12px rgba(0,0,0,0.4), 0 3px 6px rgba(0,0,0,0.2);
    line-height: var(--leading-tight);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 30%, #c49b5a 70%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: shimmer 6s ease-in-out infinite;
}

.hero-text p{
    color: rgba(255,255,255,0.9);
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3xl);
    font-family: var(--font-secondary);
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 600px;
}

/* === PREMIUM STATISTICS === */
.hero-stats{
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.stat-item{
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.25) 0%, 
        rgba(255,255,255,0.15) 50%,
        rgba(196,155,90,0.20) 100%);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-2xl);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-large), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.stat-item::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.stat-item:hover::before{
    transform: translateX(100%);
}

/* تأثير هادئ لإحصائيات البطل */
.stat-item:hover{
    transform: translateY(-3px);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.30) 0%, 
        rgba(255,255,255,0.20) 50%,
        rgba(196,155,90,0.25) 100%);
    border-color: rgba(255,255,255,0.4);
    box-shadow: var(--shadow-large);
}

.stat-number{
    color: white;
    font-size: var(--text-4xl);
    font-weight: 900;
    font-family: var(--font-display);
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #ffffff 0%, #c49b5a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
    display: block;
}

.stat-label{
    color: rgba(255,255,255,0.95);
    font-size: var(--text-sm);
    font-family: var(--font-secondary);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* === SOPHISTICATED HERO DECORATIONS === */
.hero-image{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-decoration{
    position: relative;
    width: 400px;
    height: 400px;
}

.decoration-circle{
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-large), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* دوائر ديكورية بحركة هادئة */
.circle-1{
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.20) 0%, 
        rgba(255,255,255,0.08) 50%,
        rgba(196,155,90,0.12) 100%);
    top: 60px;
    right: 60px;
    animation: sophisticatedFloat 12s ease-in-out infinite;
}

.circle-2{
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.15) 0%, 
        rgba(255,255,255,0.06) 50%,
        rgba(46,139,87,0.10) 100%);
    top: 30px;
    right: 30px;
    animation: sophisticatedFloat 15s ease-in-out infinite reverse;
}

.circle-3{
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.12) 0%, 
        rgba(255,255,255,0.04) 50%,
        rgba(27,41,81,0.08) 100%);
    bottom: 40px;
    left: 40px;
    animation: sophisticatedFloat 18s ease-in-out infinite;
}

.circle-1::before,
.circle-2::before,
.circle-3::before{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

/* حركة هادئة ورسمية للدوائر الديكورية */
@keyframes sophisticatedFloat {
    0%, 100% { 
        transform: translateY(0px);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px);
        opacity: 0.8;
    }
}

/* --- Enhanced Home Page Styles --- */
.continer{
    width: 90vw;
    margin: auto;
    margin-top: 50px;
}

/* === EXECUTIVE SECTION HEADERS === */
.section-header{
    text-align: center;
    position: relative;
    padding: var(--space-3xl) 0;
}

.section-header::before{
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-full);
    opacity: 0.3;
}

.section-title{
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary-navy);
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    margin-bottom: var(--space-lg);
    position: relative;
    letter-spacing: -0.5px;
    line-height: var(--leading-tight);
}

.section-title::before{
    content: '';
    position: absolute;
    bottom: -var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 6px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-full);
    animation: expandLine 1s ease-out 0.5s forwards;
    box-shadow: 0 2px 8px rgba(196,155,90,0.4);
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 100px; }
}

/* تباين محسن للنصوص الفرعية */
.section-subtitle{
    color: var(--secondary-charcoal);
    font-size: var(--text-lg);
    font-family: var(--font-secondary);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-content{
    margin-top: 80px;
    margin-bottom: 60px;
}
/* refined section title */
.section-title{
    display: inline-block;
    padding: 6px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(87,204,153,0.12), rgba(56,163,165,0.12));
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.continer .all-continer{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.continer .all-continer .obj-continer{
    width:80%;
}
.continer .all-continer .obj-continer ul{
    padding-left: 20px;
}
.continer .all-continer .obj-continer ul li{
    border: 1px solid var(--bordercolor);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}
/* === ULTRA-PREMIUM POST CARDS === */
.post-card{
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(27,41,81,0.05);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.post-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.post-card:hover::before{
    transform: scaleX(1);
}

/* تأثير هادئ لبطاقات المقالات */
.post-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(196,155,90,0.15);
}

.post-card h4{
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-navy);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    line-height: var(--leading-snug);
    letter-spacing: -0.3px;
}

/* تسميات محسنة التباين */
.post-card .date{
    font-size: var(--text-sm);
    color: var(--secondary-charcoal);
    font-family: var(--font-secondary);
    font-weight: 600;
    background: var(--gradient-subtle);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    display: inline-block;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(27,41,81,0.12);
}
/* === EXECUTIVE READ MORE BUTTON === */
.read-more-btn{
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-full);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.read-more-btn::before{
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.read-more-btn::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
}

/* تأثير رسمي للأزرار */
.read-more-btn:hover{
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(255,255,255,0.2);
}

.read-more-btn:hover::before{
    opacity: 1;
}

.read-more-btn:hover::after{
    width: 100px;
    height: 100px;
}

.read-more-btn > *{
    position: relative;
    z-index: 2;
}
.obj-continer h4{
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--fontcolor);
}
.obj-continer h5{
    font-family: var(--titlefont);
    border: 1px solid var(--secondcolor);
    border-radius: 40px;
    color: var(--secondcolor);
    padding: 3px 20px;
    width: fit-content;
    font-weight: bolder;
    font-size: smaller;
}
.obj-continer span{
    float: left;
    color: var(--forthcolor);
    margin-left: 30px;
}
.obj-continer p{
    font-family: var(--mainfont);
    margin-top: 20px;
    font-size: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 90%;
}
.obj-continer a{
    background-color: var(--secondcolor);
    color: white;
    border-radius: 20px;
    padding: 1px 10px;
    text-decoration: none;
}
.continer .all-continer .sid-continer{
    width:30%;
}
.sid-continer ul li{
    border: 1px solid var(--bordercolor);
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}
.sid-continer h2{
    font-family: var(--font-display);
    color: var(--primary-navy);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: x-large;
}
.sid-continer button:hover{
    background-color: var(--primary-gold);
}
.sid-continer p{
    color: var(--secondcolor);
    font-size: larger;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sid-continer a{
    text-decoration: underline;
    color: var(--fontcolor);
}
.sid-continer h3{
    margin: 40px 0px;
    font-size:x-large;
    color: var(--secondcolor);
    font-family: var(--mainfont);
}
.sid-continer button{
    width: 80%;
    padding: 5px 30px;
    font-size:1.5rem;
    font-weight: bolder;
    color: white;
    background: linear-gradient(0deg,var(--maincolor),var(--secondcolor));
    border: 0px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0px 7px 12px var(--secondcolor);
    transition: 0.4s ease;
}
.sid-continer button:hover{
    scale: 1.1;
}
.sid-continer button i{
    margin-right: 5px;
    font-size: 2rem;
}
/* --- Enhanced Books and Researches Section --- */
.books-and-researches{
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.content-tabs{
    display: flex;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tab-btn{
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    font-family: var(--titlefont);
    font-weight: bold;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.tab-btn i{
    font-size: 1.2rem;
}

.tab-btn:hover{
    background: rgba(87,204,153,0.1);
    color: var(--secondcolor);
}

.tab-btn.active{
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    color: white;
}

.tab-btn.active::after{
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maincolor), var(--secondcolor));
}
.content .cont{
    display:flex;
    justify-content:center;
    overflow-x: auto;
}
.cont::-webkit-scrollbar {
    height: 10px;

}
.cont::-webkit-scrollbar-thumb  {
    border-radius: 10px;
    background-color: var(--maincolor);
}
.books-and-researches .books{
    width: 100%;
    display: flex;
    justify-content:center;
    gap: 70px;
    padding: 30px;
}
.books-and-researches .book a{
    width:200px;
    height:350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}
.books-and-researches .book a img{
    height:60%;
}
.books-and-researches .book h5{
    color: var(--secondcolor);
    font-weight: bold;
    text-align:center;
}
.books-and-researches .book h6{
    color: var(--maincolor);
    font-weight: bold;
}
.books-and-researches .book a .book-button{
    border: 0px;
    background-color: var(--secondcolor);
    padding: 5px 20px;
    color: white;
    border-radius: 20px;
}
.researches{
    padding: 20px;
}
.cards{
    display:flex;
    padding: 20px;
    height: 400px;
    justify-content: center;
    align-items: center;
    width: fit-content;
}
.researches .card{
    height: 100%;
    width: 18rem;
    position: relative;
    left: 0px;
    box-shadow: 10px 5px 10px rgba(42, 42, 42, 0.268);
    transition: ease 0.7s;
    border: 2px solid rgba(46,139,87,0.2);
    border-radius: 12px;
}
.researches .card .card-body .card-title{
    font-family: var(--titlefont);
    font-size: 1rem;
    font-weight: bold;
    color: var(--maincolor);
}
.researches .card .card-body .card-text{
    color: var(--fontcolor);
    height: 30%;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.researches .card .card-body .card-button{
    background-color: var(--secondcolor);
    color: white;
    transition: ease 0.5s ;
}
.researches .card .card-body .card-button:hover{
    box-shadow: 0px 0px 16px var(--shadwocolor);
}
.img-card{
    display: flex;
    width: 100%;
    height: 50%;
}
.card:not(:last-child){
    margin-left:-50px
}
.card:hover{
    box-shadow: -10px 5px 30px rgba(0, 0, 0, 0.371);
    transform: translateY(-20px);
}
.card:hover ~ .card{
    left:-50px
}

/* Serch Page */
.obj-continer-serch{
    width: 80%;
}
.obj-continer-serch ul{
    border: 1px solid var(--bordercolor);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
}
.obj-continer-serch ul li{
    margin-top: 20px;
}
.obj-continer-serch h2{
    color: var(--fontcolor);
    font-family: var(--titlefont);
    margin-bottom: 5px;
}
.obj-continer-serch h6{
    font-family: var(--titlefont);
    border: 1px solid var(--forthcolor);
    border-radius: 40px;
    color: var(--forthcolor);
    padding: 3px 20px;
    width: fit-content;
    font-weight: bolder;
}
.obj-continer-serch p{
    font-family: var(--mainfont);
    width: 100%;
    color: var(--fontcolor);
    font-weight: bolder;
    font-size: larger;
    margin: 30px 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.obj-continer-serch a{
    font-family: var(--titlefont);
    color: var(--maincolor);
    text-decoration: underline;
    font-size: large;
}

/* Post Page */
.all-post-continer{
    display: flex;
    gap: 20px;
}
#post-text li,a{
    list-style:initial;
    text-decoration:unset;
}
.all-post-continer .read-continer{
    width: 70vw;
}
.read-continer .dates{
    display: flex;
    width: 50%;
    justify-content: space-between;
}
.read-continer .dates h4{
    font-family: var(--titlefont);
    color: var(--fontcolor);
}
.read-continer .dates h4 span{
    font-family: var(--titlefont);
    color: var(--secondcolor);
}
.read-continer p,a{
    font-size: larger;
    font-weight: bolder;
    color: var(--fontcolor);
}
.read-continer a{
    text-decoration: underline;
    color: var(--secondcolor);
}
.read-continer .arrows{
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.read-continer .arrows a{
    text-decoration: none;
    font-size: unset;
    font-family: var(--titlefont);
}
.links-continer{
    width: 20%;
    border: 1px solid var(--bordercolor);
    border-radius: 10px;
    padding: 20px;
}
.links-continer ul{
    display: flex;
    flex-direction: column;
}
.links-continer ul li{
    margin: 10px;
}
.links-continer ul  a{
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--secondcolor);
    margin: 10px;
}
.links-continer h3{
    text-align: center;
    font-family: var(--titlefont);
    color: var(--maincolor);
    margin-bottom: 10px;
}

/* --- Enhanced Sections Page --- */
.sections-content{
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5% 40px;
}

.section-intro{
    text-align: center;
    margin-bottom: 50px;
}

.section-intro h2{
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--secondcolor);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.section-intro h2::after{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--maincolor), var(--secondcolor));
    border-radius: 2px;
}

.section-intro p{
    color: #666;
    font-size: 1.1rem;
    font-family: var(--titlefont);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.subsections-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.subsection-card{
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.subsection-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.subsection-link{
    display: flex;
    align-items: center;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    gap: 20px;
}

.subsection-icon{
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.subsection-card:hover .subsection-icon{
    transform: scale(1.1);
}

.subsection-content{
    flex: 1;
}

.subsection-content h3{
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--secondcolor);
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.subsection-meta{
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-count{
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--titlefont);
}

.subsection-arrow{
    flex-shrink: 0;
    color: var(--maincolor);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.subsection-card:hover .subsection-arrow{
    transform: translateX(-4px);
}

/* Legacy section support */
.sectionspagecontent{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90vw;
    text-align: center;
    margin: auto;
}
.sub_section{
    margin:0px;
    width:100vw;
}
.sectionspagecontent h1{
    font-size: 2.5rem;
    font-family: var(--titlefont);
    color: var(--maincolor);
    font-weight: bold;
}
.sectionspagecontent ul{
    width: 95vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.sectionspagecontent ul li a{
    text-decoration: none;
    width: 13vw;
    border-radius: 7px;
    color: var(--secondcolor);
    box-shadow: 0px 0px 12px var(--shadwocolor);
    padding: 10px;
    display: flex;
    align-items:center;
    flex-direction: column;
    justify-content:center;
    font-size: 1.5rem;
    transition: ease 0.3s;
}
.sectionspagecontent ul li a:hover{
    scale: 1.05;
    box-shadow: 0px 0px 20px var(--shadwocolor);
}
.sectionspagecontent ul li a i{
    font-size: 3rem;
}
.sectionspagecontent .all-sections{
    padding: 0px;
    margin: 0px;
}
/* Section Page*/
.sectionspagecontent .section_page {
    width: 100%;
    padding:0px;
}
.sectionspagecontent .section_page  li{
    width: clamp(300px , 28vw , 4000px);
    border-radius: 10px;
    color: var(--secondcolor);
    box-shadow: 0px 0px 12px var(--shadwocolor);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: start;
    font-size: 1.5rem;
    transition: ease 0.3s;
}
.section_page h3{
    width: fit-content;
    font-family: var(--titlefont);
    color: var(--fontcolor);
    font-weight: bold;
}
.section_page .tag-and-date{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    color:var(--maincolor);
}
.section_page .tag-and-date span{
    font-size:smaller;
}
.section_page p{
    text-align:start;
    font-family: var(--mainfont);
    font-size: large;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-radius: unset;
    color:var(--fontcolor);
}
.sectionspagecontent .section_page a{
    width: fit-content;
    height: fit-content;
    font-size:1.3rem;
    background-color: var(--secondcolor);
    color: white;
    text-decoration: none;
    padding: 5px 10px ;
    margin: 0px;
    box-shadow:none;
    border-radius: 20px;
    font-size:small;
}

/* --- Enhanced Page Headers --- */
.page-header{
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before{
    content: '';
    position: absolute;
    inset: 0;
    background: url("../attatch/headerBg.png");
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.page-header .header-content{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-header h1{
    color: white;
    font-family: var(--titlefont);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header p{
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: var(--titlefont);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Enhanced Books and Research Pages --- */
.all-books, .all-researches{
    padding: 60px 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.top-bar{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 30px;
}

.section-info h2{
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--secondcolor);
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-info p{
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Enhanced Search */
.search-container{
    flex: 0 0 auto;
    min-width: 300px;
}

.search-bar.enhanced{
    position: relative;
}

.search-form{
    margin: 0;
}

.search-input-wrapper{
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-wrapper:focus-within{
    border-color: var(--maincolor);
    box-shadow: 0 0 0 3px rgba(87,204,153,0.1);
}

.search-icon{
    padding: 0 15px;
    color: #666;
    font-size: 1.1rem;
}

.search-input{
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    font-family: var(--titlefont);
}

.search-input::placeholder{
    color: #999;
}

.search-btn{
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    color: white;
    border: none;
    padding: 12px 20px;
    font-family: var(--titlefont);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-btn:hover{
    transform: scale(1.02);
}
.all-books .search-bar,.all-researches .search-bar{
    width: 40%;
}
.all-books .search-bar input,.all-researches .search-bar input{
    border-color: var(--maincolor);
    direction: rtl;
}
.all-books .search-bar button,.all-researches .search-bar button{
    background-color: var(--maincolor);
    color: white;
    direction: rtl;
}
/* --- Enhanced Book Cards --- */
.books-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.book-card{
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.book-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.book-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-image{
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #f8f9fa;
}

.book-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-image img{
    transform: scale(1.05);
}

.book-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(87,204,153,0.9), rgba(56,163,165,0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: var(--titlefont);
    font-weight: bold;
}

.book-card:hover .book-overlay{
    opacity: 1;
}

.book-overlay i{
    font-size: 2rem;
    margin-bottom: 8px;
}

.book-info{
    padding: 20px;
}

.book-title{
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--secondcolor);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.book-author{
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-family: var(--titlefont);
}

.book-meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-type{
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: var(--titlefont);
}
.all-books .content .book .book-img{
    width: 80%;

    display: flex;
}
.book-img img{
    width: 100%;
    object-fit: cover;
}

/* Show Book Page */
.show-book{
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    width: 90vw;
    padding: 50px;
}
.book-img{
    width: 25%;
}
.book-info{
    width: 65%;
}
.book-info h1{
    color: var(--maincolor);
    font-weight: bold;
}
.book-info h3{
    color: var(--secondcolor);
    font-weight: bold;
}
.book-info p{
    font-size: large;
    font-weight: bold;
    color: var(--fontcolor);
    padding-left: 20px;
}
.book-info button{
    border: 0px;
    border-radius: 20px;
    background-color: var(--secondcolor);
    color: white;
    padding: 5px 30px;
    font-family: var(--titlefont);
    font-weight: bold;
}
/* ====================================
   RESEARCH CARDS - Modern UX/UI Design
==================================== */

/* Research Grid - CSS Grid Layout for optimal responsiveness */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-2xl);
    padding: var(--space-lg) 0;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Research Card - Vertical Card Design */
.research-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: cardSlideUp 0.6s ease-out backwards;
}

/* Staggered animation for cards */
.research-card:nth-child(1) { animation-delay: 0.05s; }
.research-card:nth-child(2) { animation-delay: 0.1s; }
.research-card:nth-child(3) { animation-delay: 0.15s; }
.research-card:nth-child(4) { animation-delay: 0.2s; }
.research-card:nth-child(5) { animation-delay: 0.25s; }
.research-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover state - Subtle elevation */
.research-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-green);
}

/* Image Container - Smart height with fallback */
.research-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-beige) 0%, #e8e4dd 100%);
    flex-shrink: 0;
}

/* Image with object-fit cover */
.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.research-card:hover .research-image img {
    transform: scale(1.08);
}

/* Overlay - Appears on hover */
.research-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    background: linear-gradient(135deg, rgba(74, 107, 92, 0.92) 0%, rgba(92, 122, 107, 0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--white);
    opacity: 0;
    transition: opacity 0.35s ease;
    font-family: var(--titlefont);
    backdrop-filter: blur(2px);
}

.research-card:hover .research-overlay {
    opacity: 1;
}

.research-overlay i {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-xs);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.research-overlay span {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Content Area - Proper spacing and hierarchy */
.research-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex-grow: 1;
}

/* Title - Clear hierarchy */
.research-title {
    font-family: var(--titlefont);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-dark);
    line-height: var(--leading-snug);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.research-card:hover .research-title {
    color: var(--primary-green);
}

/* Excerpt - Readable text */
.research-excerpt {
    font-family: var(--mainfont);
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Information - Flex container */
.research-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

/* Type Badge */
.research-type {
    font-family: var(--titlefont);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-main);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    letter-spacing: 0.3px;
}

/* Date - Subtle text */
.research-date {
    font-family: var(--titlefont);
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Action Button - Modern CTA */
.research-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    margin-top: var(--space-md);
    background: var(--gradient-main);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-family: var(--titlefont);
    font-size: var(--text-base);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 107, 92, 0.2);
}

.research-btn:hover {
    background: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(74, 107, 92, 0.35);
    transform: translateY(-2px);
    color: var(--white);
}

.research-btn i {
    font-size: var(--text-lg);
    transition: transform 0.3s ease;
}

.research-btn:hover i {
    transform: translateX(-4px);
}

/* ====================================
   FALLBACK FOR CARDS WITHOUT IMAGES
   ==================================== */

/* When no image exists - show decorative pattern */
.research-image:not(:has(img)) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.research-image:not(:has(img))::before {
    content: '📚';
    font-size: 4rem;
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.research-image:not(:has(img))::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 107, 92, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 165, 116, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* ====================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ==================================== */

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .research-image {
        height: 200px;
    }
}

/* Mobile - Single column */
@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-md) 0;
    }
    
    .research-card {
        max-width: 100%;
    }
    
    .research-image {
        height: 200px;
    }
    
    .research-content {
        padding: var(--space-lg);
    }
    
    .research-title {
        font-size: var(--text-lg);
    }
    
    .research-excerpt {
        font-size: var(--text-sm);
    }
    
    .research-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
    }
}

/* Small mobile - Compact design */
@media (max-width: 480px) {
    .research-grid {
        gap: var(--space-md);
    }
    
    .research-image {
        height: 180px;
    }
    
    .research-content {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .research-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* ====================================
   LIST VIEW - Alternative Layout
   ==================================== */

/* List view container */
.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-lg) !important;
}

/* List view card - Horizontal layout */
.list-view .research-card {
    flex-direction: row !important;
    height: auto !important;
    max-width: 100% !important;
}

.list-view .research-image {
    width: 280px !important;
    height: -webkit-fill-available !important;
    flex-shrink: 0 !important;
}

.list-view .research-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.list-view .research-btn {
    width: auto !important;
    align-self: flex-start !important;
    padding: var(--space-sm) var(--space-xl) !important;
}

/* List view - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .list-view .research-image {
        width: 240px !important;
        height: 180px !important;
    }
}

/* List view - Mobile */
@media (max-width: 768px) {
    .list-view .research-card {
        flex-direction: column !important;
    }
    
    .list-view .research-image {
        width: 100% !important;
        height: 200px !important;
    }
    
    .list-view .research-btn {
        width: 100% !important;
    }
}

/* Research Page Image */
    .research-img{
    width: 70vw;
    height: 50vh;
    display: flex;
    }
.all-researches .content .card{
    width: 20%;
    height: 350px;
    transition: ease 0.7s;
    margin: 0px;
    border: 2px solid rgba(46,139,87,0.2);
    border-radius: 12px;
}

.all-researches .card .card-body .card-title{
    font-family: var(--titlefont);
    font-size: 1rem;
    font-weight: bold;
    color: var(--maincolor);
}
.all-researches .card .card-body .card-text{
    color: var(--fontcolor);
    height: 30%;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.all-researches .card .card-body .card-button{
    background-color: var(--secondcolor);
    color: white;
    transition: ease 0.5s ;
}
.all-researches .card .card-body .card-button:hover{
    box-shadow: 0px 0px 16px var(--shadwocolor);
}
.all-researches .content .card:hover{
    transform: translateY(0px);
    border-color: rgba(46,139,87,0.5);
}
.all-researches .content .card:hover ~ .card{
    left: 0px;
}
.all-researches .content .card .img-card{
    width: 100%;
    height: 50%;
}
.continer_research{
    padding:0px 60px;
}

/* Mobile Screen */
@media (max-width:1000px) and (min-width:800px){
    .continer{
        margin: 0px;
        width: 99vw;
        align-items: center;
    }
    .all-continer .sid-continer ul{
        padding: 0px;
    }
    .all-books .content a,.all-researches .content .card{
        width: 40vw;
        text-align: center;
    }
    .content .cont{
        justify-content:start;
    }
    .books-and-researches .books{
        justify-content:start;
    }
}
@media screen and (max-width:800px){
    header{
        margin-bottom: 20px;
    }
    .content .cont{
        justify-content:start;
    }
    .hr{
        display:none;
    }
    .header-hed-mobile{
        display: block;
        box-shadow:0px 5px 5px var(--shadwocolor);
    }
    .header-hed{
        display: none;
    }
    /* --- Enhanced Mobile Styles --- */
    
    /* Hero Section Mobile */
    .hero-content{
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-text h1{
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-text p{
        font-size: 1.1rem;
    }
    
    .hero-stats{
        justify-content: center;
        gap: 20px;
    }
    
    .stat-item{
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number{
        font-size: 2rem;
    }
    
    .hero-decoration{
        width: 250px;
        height: 250px;
    }
    
    /* Social Media Mobile */
    .social-content{
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
        margin-top: 9vh;
    }
    
    .social-text h1{
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .social-text p{
        font-size: 0.9rem;
    }
    
    .social-links ul{
        justify-content: center;
        gap: 15px;
    }
    
    /* Section Headers Mobile */
    .section-title{
        font-size: 2rem;
    }
    
    .section-subtitle{
        font-size: 1rem;
    }
    
    /* Tabs Mobile */
    .content-tabs{
        flex-direction: column;
    }
    
    .tab-btn{
        padding: 15px;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer-main{
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px;
        text-align: center;
    }
    
    .footer-section h3::after{
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom-content{
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    /* end sochial media */
    
    .continer{
        margin-top:10px;
        width: 100vw;
    }
    .continer h1{
        font-weight:bold;
        margin-right:3vw;
        width:95%;
        padding:5px;
        border-bottom:2px solid var(--maincolor);
    }
    #post-text h1{
        border-bottom:none;
    }
    .end-line{
        width:95%;
        height:3px;
        margin-bottom:40px;
        background-color:var(--maincolor);
    }
    .continer .all-continer .sid-continer{
        width: 100%;
    }
    .continer .all-continer .homepage{
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100vw;
    }
    .continer .all-continer .obj-continer{
        width: 100%;
    }
    .continer .all-continer .homepage ul{
        padding: 0px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom:0px;
    }
    .continer .all-continer .homepage ul li{
        width: 95%;
    }
    .sid-continer ul li{
        width: 100%;
    }
    .books-and-researches{
        width: 100vw;
    }
    .books-and-researches .titles{
        flex-direction: column;
    }
    footer hr{
        margin: 0px 20px;
    }
    .footer-head{
        flex-direction: column;
        padding: 20px;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    .footer-head .footer-about-us{
        width: 90vw;
        text-align: center;
    }
    .footer-latest-obj{
        text-align: center;
    }
    .footer-latest-obj ul{
        padding: 0px;
        margin: 0px;
    }
    .footer-down h5{
        font-size: small;
    }

    /* Books And researches Page */
    .books-and-researches .books{
        justify-content:start;
    }
    .header-footer{
        display: none;
    }

    .all-books,.all-researches{
        margin-top: 80px;
    }
    .all-books,.all-researches{
        padding: 0px;
    }
    .all-books .top-bar,.all-researches .top-bar{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    .all-books .top-bar .search-bar,.all-researches .top-bar .search-bar{
        width: 100%;
    }
    /* Enhanced Books and Research Mobile */
    .books-grid{
        gap: 25px;
        padding: 20px 0;
    }
    
    .book-card, .research-card{
        max-width: 100%;
    }
    
    .search-container{
        min-width: auto;
        width: 100%;
    }
    
    .top-bar{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    /* Enhanced Sections Mobile */
    .sections-content{
        padding: 40px 20px 30px;
    }
    
    .section-intro h2{
        font-size: 2rem;
    }
    
    .section-intro p{
        font-size: 1rem;
    }
    
    .subsections-grid{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subsection-link{
        padding: 20px;
        gap: 15px;
    }
    
    .subsection-icon{
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .subsection-content h3{
        font-size: 1.1rem;
    }
    
    /* Legacy Main Section Page */
    .sectionspagecontent{
        margin-top: 60px;
    }
    .sectionspagecontent h1{
        width: 100vw;
        font-size:9vw;
        font-family:var(--titlefont);
    }
    .sectionspagecontent .all-sections{
        width: 100vw;
    }
    .sectionspagecontent .all-sections li a{
        width: 40vw;
        height: 47vw;
        font-size:6vw;
    }
    .sectionspagecontent .all-sections li a img{
        width: 70%;
    }

    /* Post Page */
    #post-text ul , ol{
        padding:20px;
    }
    .all-post-continer{
        flex-direction: column;
    }
    .all-post-continer .read-continer{
        width: 95vw;
        margin: auto;
    }
    .all-post-continer .read-continer .dates{
        width: 95vw;
        flex-wrap: wrap;
    }
    .all-post-continer .read-continer .arrows h2 a{
        font-size: 5vw;
    }
    .all-post-continer .links-continer{
        width: 95vw;
        margin: auto;
    }
    #post-text img,iframe{
        width:100%;
    }

    /* Book Page */
    .show-book{
        width: 100vw;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding:0px;
        padding-top:10vh;
    }
    .book-img{
        width:90vw;
    }
    .book-info{
        width:100vw;
    }

    /* Researches Page */
    .continer_research{
        padding:10px;
    }
    .research-img{
        display:flex;
        width:90vw;
        margin:auto;
    }
    .research-img img{
        width:100%;
    }
    .continer .research-h{
        border-bottom:unset;
    }
    .read-continer .dates{
        padding-right:10px;
        width: 100vw !important;
        flex-wrap:wrap;
        padding:0px 10px;
    }
    .dates h4{
        font-size:4vw;
    }

}
/* spinner */
.spinner{
    position: fixed;
    bottom: 50px;
    left: 30px;
    background-color: var(--maincolor);
    box-shadow: 0px 0px 30px var(--secondcolor);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 9999;
    animation: mymove 3s infinite linear;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color:white;
    font-size:2.5rem;
    transform:translateY(100px)rotate(180deg);

    transition:ease 0.5s;
    
}
.SpinnerActive{
    transform:translateY(0px)rotate(0deg);

}
.spinner:before, .spinner:after {
    content: "";
    position: absolute;
    background-color: inherit;
    -webkit-animation: pluse 2s linear infinite;
    -ms-animation: pluse 2s linear infinite;
    -o-animation: pluse 2s linear infinite;
    animation: pluse 2s linear infinite;
    width: 1.5rem;
    height: 1.5rem;
    -webkit-border-radius: inherit;
    border-radius: inherit;
    opacity: 0;
    z-index: -2;
    animation-delay:2.5s;
}
.spinner:after {
    -webkit-animation: pluse 2s linear 2.3s infinite;
    -ms-animation: pluse 2s linear 2.3s infinite;
    -o-animation: pluse 2s linear 2.3s infinite;
    animation: pluse 2s linear 2.3s infinite;
    -webkit-animation-delay: 0.5s;
    -ms-animation-delay: 0.5s;
    -o-animation-delay: 0.5s;
    animation-delay: 0.5s;
}
@keyframes pluse {
    0%{transform: scale(1);opacity: 1;}
    100%{transform: scale(3);opacity: 0;}
}
@keyframes mymove {
    0% {bottom: 30px;}
    50%{bottom: 50px;}
    100% {bottom: 30px;}
  }

/* --- UI polish enhancements (non-breaking) --- */
/* Base */
body{
	background-color: #fbfbfb;
}

/* Header overlay and search focus */
.header-hed{position: relative}
.header-hed:after{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
	pointer-events: none;
}
.header-hed input::placeholder{color:#8c8c8c}
.header-hed input:focus{box-shadow: 0 0 0 3px rgba(87,204,153,0.25)}
.header-hed .login{transition: box-shadow .25s ease, transform .2s ease}
.header-hed .login:hover{box-shadow:0 8px 20px rgba(56,163,165,.35); transform: translateY(-1px)}

/* Nav subtle elevation and underline animation */
nav{box-shadow: 0 2px 6px rgba(0,0,0,0.04)}
.header-footer ul li{position: relative}
.header-footer ul li a:after{
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	height: 2px;
	width: 0;
	background-color: #38A3A5;
	transition: width .25s ease;
}
.header-footer ul li a:hover:after{width: 100%}
.header-footer ul li .header-footer-active:after{width: 100%}
.header-footer ul li:hover .header-cont{display:block; animation: dropdown .2s ease}
.header-cont ul{box-shadow: 0 10px 18px rgba(0,0,0,.08)}

/* Post cards */
.post-card{padding: 16px}
.read-more-btn:hover{background-color: #2c8385}

/* Books cards */
.books-and-researches .book a{
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 10px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.books-and-researches .book a img{border-radius: 6px}
.books-and-researches .book a:hover{transform: translateY(-6px); box-shadow:0 12px 24px rgba(0,0,0,0.1)}

/* Research cards */
.researches .card{border-radius: 12px; overflow: hidden}
.img-card img{border-top-right-radius: 12px; border-top-left-radius: 12px}

/* Search bars on listing pages */
.all-books .search-bar input:focus,.all-researches .search-bar input:focus{box-shadow:0 0 0 3px rgba(87,204,153,0.25)}

/* Buttons */
.book-info button{
	box-shadow: 0 8px 18px rgba(56,163,165,.25);
	transition: transform .2s ease, box-shadow .25s ease;
}
.book-info button:hover{transform: translateY(-2px); box-shadow:0 12px 26px rgba(56,163,165,.35)}

/* Footer text polish */
.footer-about-us p{color:#5c5c5c; line-height: 1.8}
.footer-latest-obj li{margin-bottom:6px}

/* Mobile tweaks */
@media screen and (max-width:800px){
	.header-hed-mobile .header-logo div{font-weight:700; color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.25)}
	.books-and-researches .book a{width: 42vw; height: 62vw}
}

/* --- Additional professional polish (safe overrides) --- */
:root{
	--radius-sm: 8px;
	--radius-md: 12px;
	--shadow-sm: 0 4px 10px rgba(0,0,0,0.06);
	--shadow-md: 0 10px 18px rgba(0,0,0,0.08);
}

/* Typography refinements */
h1,h2,h3,h4,h5,h6{letter-spacing:.1px}
.continer h2{line-height:1.6}
.obj-continer p,.read-continer p{line-height:1.9}

/* Search suggestions dropdown (header) */
.serch_sug{
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid rgba(0,0,0,0.06) !important;
	box-shadow: var(--shadow-md) !important;
}
.serch_sug ul li a{
	border-radius: var(--radius-sm) !important;
}
.serch_sug::-webkit-scrollbar{width:8px}
.serch_sug::-webkit-scrollbar-thumb{background: var(--maincolor); border-radius:10px}

/* Buttons */
.read-more-btn{border: 0}
.read-more-btn i{transition: transform .2s ease}
.read-more-btn:hover i{transform: translateX(-2px)}

/* --- Enhanced Global Styles --- */

/* === ULTRA-PROFESSIONAL GLOBAL ENHANCEMENTS === */

/* Executive scrolling and focus management */
html{
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body{
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    color: var(--secondary-charcoal);
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: var(--leading-normal);
    overflow-x: hidden;
}

/* === PREMIUM ACCESSIBILITY & INTERACTIONS === */
*:focus-visible{
    outline: 3px solid rgba(196,155,90,0.6);
    outline-offset: 3px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 0 6px rgba(196,155,90,0.1);
    transition: all 0.2s ease;
}

/* Executive selection styling */
::selection{
    background: linear-gradient(135deg, rgba(196,155,90,0.3) 0%, rgba(27,41,81,0.2) 100%);
    color: var(--primary-navy);
}

/* مؤشر تمرير رسمي هادئ */
body::before{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-secondary);
    z-index: 10000;
    box-shadow: 0 1px 4px rgba(196,155,90,0.2);
    transform-origin: left;
    animation: scrollProgress linear;
    animation-timeline: scroll();
    opacity: 0.8;
}

@keyframes scrollProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Ultra-smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Executive loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shimmerLoading 1.5s infinite;
}

@keyframes shimmerLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* أزرار أساسية رسمية */
.btn-primary{
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.3px;
}

/* تأثير هادئ للأزرار الأساسية */
.btn-primary:hover{
    background: var(--gradient-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-primary:focus{
    box-shadow: 0 0 0 3px rgba(87,204,153,0.25);
}

/* Loading states */
.loading{
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea{
    transition: all 0.3s ease;
}

/* Enhanced text selection */
::selection{
    background: rgba(87,204,153,0.3);
    color: var(--fontcolor);
}

/* Improved readability */
p, li, div{
    line-height: var(--leading-relaxed);
}

h1, h2, h3, h4, h5, h6{
    line-height: var(--leading-tight);
    font-weight: 700;
}

/* Modern scrollbar */
::-webkit-scrollbar{
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track{
    background: #f1f3f4;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
    border-radius: 10px;
    border: 2px solid #f1f3f4;
}

::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(135deg, var(--secondcolor), var(--maincolor));
}

/* Cards micro-interactions */
.obj-continer ul li{transition: box-shadow .25s ease}
.obj-continer ul li:hover{box-shadow: var(--shadow-sm)}

/* Research card hover */
.researches .card{transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease}
.researches .card:hover{transform: translateY(-6px); box-shadow: 0 14px 26px rgba(0,0,0,0.12); border-color: rgba(46,139,87,0.5)}

/* Footer links spacing */
.footer-latest-obj a{line-height:1.8}

/* === MODERN BOOKS GALLERY WITH REAL IMAGES === */
.modern-books-gallery{
    display: flex;
    flex-direction: row-reverse;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-emerald) transparent;
    width: 100%;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.modern-books-gallery::-webkit-scrollbar {
    height: 8px;
}

.modern-books-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.modern-books-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-emerald);
    border-radius: 4px;
}

.modern-books-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--primary-navy);
}

.modern-book-card{
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.modern-book-card:hover{
    transform: translateY(-8px) scale(1.02);
}

.book-card-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-image-container{
    position: relative;
    width: 220px;
    height: 320px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(27,41,81,0.15),
        0 8px 16px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 2px solid rgba(196,155,90,0.2);
    background: var(--gradient-card);
}

.book-cover-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.modern-book-card:hover .book-cover-image{
    transform: scale(1.05);
}

.book-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(27,41,81,0.95) 0%, 
        rgba(44,62,80,0.90) 30%,
        rgba(196,155,90,0.85) 70%,
        rgba(180,115,51,0.90) 100%);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-xl);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-xl);
}

.modern-book-card:hover .book-overlay{
    opacity: 1;
}

.book-info-overlay{
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.modern-book-card:hover .book-info-overlay{
    transform: translateY(0);
}

.book-title-overlay{
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xl);
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author-overlay{
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-base);
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.3px;
}

.book-type-badge{
    display: inline-block;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.25) 0%, 
        rgba(245,245,220,0.20) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-full);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    letter-spacing: 0.2px;
}

.book-action{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.2) 0%, 
        rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius-xl);
    padding: var(--space-md);
    color: white;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.modern-book-card:hover .book-action{
    transform: translateY(0);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.3) 0%, 
        rgba(255,255,255,0.2) 100%);
}

.read-book-text{
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-base);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
}

.book-action i{
    font-size: var(--text-lg);
    transition: transform 0.3s ease;
}

.modern-book-card:hover .book-action i{
    transform: scale(1.1);
}

/* === LEGACY 3D BOOKS DESIGN (kept for reference) === */
.elevated-books-showcase{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-xl);
    padding: var(--space-3xl) var(--space-xl);
    perspective: 1000px;
    min-height: 400px;
}

.elevated-book-item{
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elevated-book-item:hover{
    transform: translateY(-15px) scale(1.05);
}

.book-wrapper{
    text-decoration: none;
    display: block;
}

.book-spine-container{
    position: relative;
    perspective: 800px;
}

.book-cover-3d{
    position: relative;
    width: 200px;
    height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.book-cover-3d:hover{
    transform: rotateY(-15deg) rotateX(5deg);
}

.book-front{
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary-navy) 0%,
        #2C3E50 30%,
        var(--primary-gold) 70%,
        #D4A574 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 15px 35px rgba(27,41,81,0.3),
        0 5px 15px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border: 2px solid rgba(196,155,90,0.4);
    overflow: hidden;
}

.cover-design{
    position: relative;
    width: 100%;
    height: 100%;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.cover-pattern{
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.cover-content{
    text-align: center;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

.book-title-cover{
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-lg);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: var(--leading-tight);
    text-align: center;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.decorative-line{
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.8) 0%,
        var(--accent-cream) 50%,
        rgba(255,255,255,0.8) 100%);
    border-radius: var(--border-radius-full);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.author-small{
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
}

.cover-ornament{
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ornament-top,
.ornament-bottom{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.2) 0%,
        rgba(196,155,90,0.3) 50%,
        rgba(255,255,255,0.2) 100%);
    border-radius: var(--border-radius-lg);
}

.ornament-top{
    top: var(--space-md);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.ornament-bottom{
    bottom: var(--space-md);
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
}

.book-spine{
    position: absolute;
    right: -8px;
    top: 0;
    width: 16px;
    height: 100%;
    background: linear-gradient(180deg, 
        #1a2544 0%,
        var(--primary-navy) 50%,
        #1a2544 100%);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    box-shadow: 
        2px 0 10px rgba(0,0,0,0.3),
        inset -2px 0 0 rgba(0,0,0,0.3);
    transform: rotateY(90deg);
    transform-origin: left;
}

.spine-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 10px;
    color: var(--primary-gold);
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.book-shadow{
    position: absolute;
    bottom: -20px;
    left: 10px;
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    transform: perspective(100px) rotateX(90deg);
}

/* === HORIZONTAL RESEARCH DESIGN === */
.horizontal-research-showcase{
    display: flex;
    flex-direction: row-reverse;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-emerald) transparent;
    /* direction normalized to LTR so arrow logic is consistent */
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.horizontal-research-showcase::-webkit-scrollbar {
    height: 8px;
}

.horizontal-research-showcase::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-research-showcase::-webkit-scrollbar-thumb {
    background: var(--primary-emerald);
    border-radius: 4px;
}

.horizontal-research-showcase::-webkit-scrollbar-thumb:hover {
    background: var(--primary-navy);
}

.research-horizontal-card{
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    width: 350px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Hover state - Subtle elevation */
.research-horizontal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-green);
}

.research-horizontal-link{
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image Container - Smart height with fallback */
.research-horizontal-card .research-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-beige) 0%, #e8e4dd 100%);
    flex-shrink: 0;
}

/* Image with object-fit cover */
.research-horizontal-card .research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.research-horizontal-card:hover .research-image img {
    transform: scale(1.08);
}

/* Overlay - Appears on hover */
.research-horizontal-card .research-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    background: linear-gradient(135deg, rgba(74, 107, 92, 0.92) 0%, rgba(92, 122, 107, 0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--white);
    opacity: 0;
    transition: opacity 0.35s ease;
    font-family: var(--titlefont);
    backdrop-filter: blur(2px);
}

.research-horizontal-card:hover .research-overlay {
    opacity: 1;
}

.research-horizontal-card .research-overlay i {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-xs);
    animation: iconPulse 2s ease-in-out infinite;
}

.research-horizontal-card .research-overlay span {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Content Area - Proper spacing and hierarchy */
.research-horizontal-card .research-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex-grow: 1;
}

/* Title - Clear hierarchy */
.research-horizontal-card .research-title {
    font-family: var(--titlefont);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-dark);
    line-height: var(--leading-snug);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.research-horizontal-card:hover .research-title {
    color: var(--primary-green);
}

/* Excerpt - Readable text */
.research-horizontal-card .research-excerpt {
    font-family: var(--mainfont);
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Information - Flex container */
.research-horizontal-card .research-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

/* Type Badge */
.research-horizontal-card .research-type {
    font-family: var(--titlefont);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-main);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    letter-spacing: 0.3px;
}

/* Date - Subtle text */
.research-horizontal-card .research-date {
    font-family: var(--titlefont);
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Action Button - Modern CTA */
.research-horizontal-card .research-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    margin-top: var(--space-md);
    background: var(--gradient-main);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-family: var(--titlefont);
    font-size: var(--text-base);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 107, 92, 0.2);
    pointer-events: none;
}

.research-horizontal-card:hover .research-btn {
    background: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(74, 107, 92, 0.35);
    transform: translateY(-2px);
    color: var(--white);
}

.research-horizontal-card .research-btn i {
    font-size: var(--text-lg);
    transition: transform 0.3s ease;
}

.research-horizontal-card:hover .research-btn i {
    transform: translateX(-4px);
}

/* === HORIZONTAL POSTS DESIGN (MATCHING RESEARCH STYLE) === */
.horizontal-posts-showcase{
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.post-horizontal-card{
    background: var(--gradient-card);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.post-horizontal-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-horizontal-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    border-color: rgba(196,155,90,0.2);
}

.post-horizontal-card:hover::before{
    transform: scaleX(1);
}

.post-horizontal-link{
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-visual{
    position: relative;
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-visual img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-horizontal-card:hover .post-visual img{
    transform: scale(1.08);
}

.post-category-badge{
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent-copper);
    backdrop-filter: blur(8px);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-full);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.post-category-badge i{
    font-size: 10px;
}

.post-horizontal-card:hover .post-category-badge{
    background: linear-gradient(135deg, 
        rgba(196,155,90,1) 0%, 
        rgba(180,115,51,0.95) 100%);
    transform: scale(1.05);
}

.post-info{
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: space-between;
}

.post-header-compact{
    flex: 1;
}

.post-title-compact{
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--primary-navy);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-horizontal-card:hover .post-title-compact{
    color: var(--primary-gold);
}

.post-meta-compact{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.post-date-compact,
.post-section-compact{
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    color: var(--secondary-slate);
    font-weight: 500;
}

.post-date-compact i,
.post-section-compact i{
    font-size: 10px;
    color: var(--primary-emerald);
}

.post-section-compact{
    background: rgba(46,139,87,0.1);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    color: var(--primary-emerald);
    font-weight: 600;
}

.post-summary{
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--secondary-charcoal);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.post-action{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.read-more-text{
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--secondary-slate);
    transition: all 0.3s ease;
}

.post-action i{
    font-size: var(--text-base);
    color: var(--primary-emerald);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-horizontal-card:hover .read-more-text,
.post-horizontal-card:hover .post-action i{
    color: var(--primary-navy);
}

.post-horizontal-card:hover .post-action i{
    transform: translate(-3px, -3px);
}

/* === RESPONSIVE DESIGN FOR NEW LAYOUTS === */
@media (max-width: 1024px) {
    .modern-books-gallery{
        gap: var(--space-md);
        padding: var(--space-lg) var(--space-md);
    }
    
    .modern-book-card{
        width: 200px;
    }
    
    .book-image-container{
        width: 200px;
        height: 280px;
    }
    
    .elevated-books-showcase{
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-xl);
    }
    
    .book-cover-3d{
        width: 180px;
        height: 250px;
    }
    
    .research-visual{
        width: 180px;
        height: 130px;
    }
    
    .post-visual{
        width: 180px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .post-visual{
        width: 100%;
    }
    .post-horizontal-link{
        flex-direction: column;
    }
    .modern-books-gallery{
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .modern-book-card{
        width: 180px;
    }
    
    .book-image-container{
        width: 180px;
        height: 250px;
    }
    
    .book-overlay{
        padding: var(--space-lg);
    }
    
    .book-title-overlay{
        font-size: var(--text-lg);
    }
    
    /* Navigation arrows for mobile */
    .nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .nav-arrow-right {
        right: 5px;
    }
    
    .nav-arrow-left {
        left: 5px;
    }
    
    /* Research horizontal layout for mobile */
    .horizontal-research-showcase{
        gap: var(--space-md);
        padding: var(--space-md) 0;
    }
    
    .research-horizontal-card{
        width: 400px;
    }
    
    .research-horizontal-link{
        display: flex;
        flex-direction: column;
        padding: var(--space-md);
    }
    
    .research-visual{
        width: 100%;
        height: 200px;
        order: 1;
    }
    
    .research-header-compact{
        order: 2;
    }
    
    .research-date-compact{
        order: 3;
    }
    
    .research-summary{
        order: 4;
    }
    
    .research-action{
        order: 5;
    }
    
    .research-info,
    .post-info{
        padding: var(--space-lg);
    }
    
    .book-author-overlay{
        font-size: var(--text-sm);
    }
    
    .elevated-books-showcase{
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
        padding: var(--space-lg);
        min-height: auto;
    }
    
    .elevated-book-item{
        width: 100%;
        max-width: 250px;
    }
    
    .book-cover-3d{
        width: 160px;
        height: 220px;
        margin: 0 auto;
    }
    
    .book-title-cover{
        font-size: var(--text-base);
    }
    
    .research-horizontal-link{
        flex-direction: column;
    }
    
    .research-visual{
        width: 100%;
        height: 200px;
    }
    
    .research-info{
        padding: var(--space-lg);
    }
    
    .research-title-compact{
        font-size: var(--text-lg);
    }
    
    .research-meta-compact{
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .modern-books-gallery{
        gap: var(--space-sm);
        padding: var(--space-sm);
    }
    
    .modern-book-card{
        width: 160px;
    }
    
    .book-image-container{
        width: 160px;
        height: 220px;
    }
    
    .book-overlay{
        padding: var(--space-md);
    }
    
    /* Navigation arrows for small screens */
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .nav-arrow-right {
        right: 2px;
    }
    
    .nav-arrow-left {
        left: 2px;
    }
    
    /* Research horizontal layout for small screens */
    .horizontal-research-showcase{
        gap: var(--space-sm);
        padding: var(--space-sm) 0;
    }
    
    .research-horizontal-card{
        width: 300px;
    }
    
    .book-title-overlay{
        font-size: var(--text-base);
    }
    
    .book-author-overlay{
        font-size: var(--text-xs);
    }
    
    .book-action{
        padding: var(--space-sm) var(--space-md);
    }
    
    .read-book-text{
        font-size: var(--text-sm);
    }
    
    .elevated-books-showcase{
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .book-cover-3d{
        width: 140px;
        height: 200px;
    }
    
    .book-title-cover{
        font-size: var(--text-sm);
    }
    
    .author-small{
        font-size: var(--text-xs);
    }
    
    .research-visual{
        height: 150px;
    }
    
    .research-info{
        padding: var(--space-md);
    }
    
    .research-action{
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

.premium-book-card{
    background: var(--gradient-card);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.premium-book-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-book-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: rgba(196,155,90,0.2);
}

.premium-book-card:hover::before{
    transform: scaleX(1);
}

.book-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-cover{
    position: relative;
    height: 250px;
    overflow: hidden;
}

.book-cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4a574eb 0%, #19875466 100%);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-book-card:hover .book-overlay{
    opacity: 1;
}

.premium-book-card:hover .book-cover img{
    transform: scale(1.05);
}

.book-actions{
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-book-card:hover .book-actions{
    transform: translateY(0);
}

.action-text{
    display: block;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.book-actions i{
    font-size: var(--text-2xl);
    opacity: 0.9;
}

.book-details{
    padding: var(--space-xl);
}

.book-title{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    line-height: var(--leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author{
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-base);
    color: var(--secondary-charcoal);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.book-author i{
    color: var(--primary-gold);
    font-size: var(--text-sm);
}

.book-meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(27,41,81,0.1);
}

.book-type{
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--secondary-slate);
    background: var(--gradient-subtle);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.book-type i{
    color: var(--primary-gold);
}

.book-rating{
    display: flex;
    gap: 2px;
}

.book-rating i{
    color: var(--primary-gold);
    font-size: var(--text-sm);
}

/* === PREMIUM RESEARCH HOMEPAGE DESIGN === */
.premium-research-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.premium-research-card{
    background: var(--gradient-card);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.premium-research-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-tertiary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-research-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: rgba(46,139,87,0.2);
}

.premium-research-card:hover::before{
    transform: scaleX(1);
}

.research-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.research-image{
    position: relative;
    height: 200px;
    overflow: hidden;
}

.research-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.research-overlay{
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
}

.research-badge{
    background: linear-gradient(135deg, 
        rgba(46,139,87,0.95) 0%, 
        rgba(27,41,81,0.90) 100%);
    backdrop-filter: blur(8px);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-full);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-soft);
}

.premium-research-card:hover .research-image img{
    transform: scale(1.05);
}

.research-content{
    padding: var(--space-xl);
}

.research-header{
    margin-bottom: var(--space-lg);
}

.research-title{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    line-height: var(--leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-meta{
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.research-date{
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--secondary-charcoal);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.research-date i{
    color: var(--primary-emerald);
}

.research-excerpt{
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    color: var(--secondary-slate);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(27,41,81,0.1);
}

.research-type{
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--secondary-slate);
    background: var(--gradient-subtle);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
}

.read-research-btn{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--primary-emerald);
    transition: all 0.3s ease;
}

.read-research-btn i{
    transition: transform 0.3s ease;
}

.premium-research-card:hover .read-research-btn{
    color: var(--primary-navy);
}

.premium-research-card:hover .read-research-btn i{
    transform: translateX(-3px);
}

/* === RESPONSIVE DESIGN FOR PREMIUM CARDS === */
@media (max-width: 768px) {
    .premium-books-grid{
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg) 0;
    }
    
    .premium-research-grid{
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg) 0;
    }
    
    .book-cover{
        height: 200px;
    }
    
    .research-image{
        height: 180px;
    }
    
    .book-details,
    .research-content{
        padding: var(--space-lg);
    }
    
    .book-title,
    .research-title{
        font-size: var(--text-lg);
    }
    
    .book-meta{
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .research-footer{
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .premium-books-grid,
    .premium-research-grid{
        padding: var(--space-md) 0;
        gap: var(--space-md);
    }
    
    .book-cover,
    .research-image{
        height: 160px;
    }
    
    .premium-book-card,
    .premium-research-card{
        margin: 0 var(--space-sm);
    }
}

/* === ENHANCED CONTENT TABS === */
.content-tabs{
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(248,249,250,0.95) 50%,
        rgba(245,245,220,0.85) 100%);
    border-radius: var(--border-radius-3xl);
    box-shadow: 
        var(--shadow-medium),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid rgba(196,155,90,0.1);
    position: relative;
    z-index: 1;
}

.tab-btn{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    background: rgba(255,255,255,0.7);
    border: 2px solid rgba(196,155,90,0.2);
    border-radius: var(--border-radius-2xl);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--primary-navy);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.tab-btn::before{
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn:hover,
.tab-btn.active{
    color: white;
    border-color: rgba(196,155,90,0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-large);
    background: rgba(255,255,255,0.95);
}

.tab-btn:hover::before,
.tab-btn.active::before{
    opacity: 1;
}

.tab-btn i{
    font-size: var(--text-lg);
    transition: transform 0.3s ease;
}

.tab-btn:hover i,
.tab-btn.active i{
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .content-tabs{
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .tab-btn{
        width: 100%;
        justify-content: center;
        padding: var(--space-md);
    }
}

/* === ENHANCED FEATURED CONTENT SECTION === */
.featured-content{
    background: linear-gradient(135deg, 
        rgba(248,249,250,0.95) 0%, 
        rgba(255,255,255,0.98) 50%,
        rgba(245,245,220,0.90) 100%);
    border-radius: var(--border-radius-3xl);
    padding: var(--space-3xl);
    margin: var(--space-3xl) 0;
    box-shadow: 
        var(--shadow-large),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid rgba(196,155,90,0.15);
    position: relative;
    overflow: hidden;
}

.featured-content::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-3xl) var(--border-radius-3xl) 0 0;
}

.featured-content::after{
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(196,155,90,0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(27,41,81,0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: var(--border-radius-3xl);
}

.content{
    position: relative;
}

.cont{
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cont.books,
.cont.researches{
    animation: fadeInContent 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navigation-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.nav-arrow {
    position: absolute;
    top: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-emerald);
    color: var(--primary-emerald);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.2);
    opacity: 0.9;
    pointer-events: all;
}

.nav-arrow:hover {
    background: var(--primary-emerald);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.35);
    opacity: 1;
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow-right {
    right: 10px;
}

.nav-arrow-left {
    left: 10px;
}

.nav-arrow i {
    pointer-events: none;
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(200, 200, 200, 0.5);
    border-color: #ccc;
}

.nav-arrow:disabled:hover {
    transform: scale(1);
    background: rgba(200, 200, 200, 0.5);
    color: #999;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced content container spacing */
.content{
    position: relative;
    z-index: 1;
}

.books-and-researches{
    position: relative;
}

/* Add subtle background pattern to content area */
.books-and-researches::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(196,155,90,0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(27,41,81,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    border-radius: var(--border-radius-2xl);
    z-index: -1;
}

/* Modal styling */
.modal-content{border-radius: var(--radius-md); box-shadow: var(--shadow-md)}
.modal-header{background: linear-gradient(90deg, var(--maincolor), var(--secondcolor)); color: #fff}
.modal-header .btn-close{filter: invert(1)}
.modal-footer{border-top: 0}

/* Alerts refinement */
.alert{border: 0; box-shadow: var(--shadow-sm); border-radius: var(--radius-sm)}

/* Inputs refinement */
.form-control:focus{box-shadow: 0 0 0 3px rgba(87,204,153,0.25); border-color: var(--maincolor)}

/* Social icons hover */
.social-media ul li{transition: transform .2s ease, box-shadow .2s ease}
.social-media ul li:hover{transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.12)}

/* Nav icons and links alignment tweaks */
.header-footer ul li a{display: inline-flex; align-items: center; gap: 6px}

/* Date badge style subtle */
.post-card .date{background: rgba(87,204,153,.08); padding: 2px 10px; border-radius: 999px}

/* Books title spacing */
.books-and-researches .book h5{margin-bottom: 2px}
.books-and-researches .book h6{margin-top: 0}

/* Responsive: give cards breathing room */
@media screen and (max-width:800px){
	.post-card{padding: 14px}
}

/* --- NAV professional styling (glass, spacing, hover, dropdown) --- */
nav{
	background-color: rgba(255,255,255,0.9);
	-webkit-backdrop-filter: saturate(160%) blur(8px);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid rgba(0,0,0,0.05);
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.header-footer{
	box-shadow: none;
	padding-top: 14px;
	padding-bottom: 14px;
}
.header-footer ul{
	gap: 14px;
	justify-content: center;
}
.header-footer ul li{position: relative}
.header-footer ul li a{
	padding: 8px 12px;
	border-radius: 10px;
	transition: background-color .2s ease, color .2s ease;
	font-size: clamp(.9rem, 1.05vw, 1rem);
}
.header-footer ul li a:hover{
	background-color: rgba(87,204,153,0.10);
}
.header-footer ul li .header-footer-active{
	background-color: rgba(56,163,165,0.12);
	border-radius: 10px;
}
.header-footer ul li a svg{vertical-align: middle}

/* Dropdown menu refinement */
.header-cont{
	display: none;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease;
}
.header-footer ul li:hover .header-cont{
	display: block;
	opacity: 1;
	transform: translateY(0);
}
.header-cont ul{
	min-width: 220px;
	padding: 8px;
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.header-cont ul li{padding: 8px 12px}
.header-cont ul li a{
	display: block;
	padding: 0;
	color: var(--secondcolor);
	font-family: var(--titlefont);
}
.header-cont ul li:hover{background-color: rgba(0,0,0,0.04)}

/* Focus accessibility */
.header-footer a:focus-visible{
	outline: 3px solid rgba(87,204,153,0.35);
	outline-offset: 2px;
	border-radius: 10px;
}

/* Mobile nav polish */
.header-footer-mobile{
	border-top: 1px solid rgba(0,0,0,0.06);
	border-bottom: 1px solid rgba(0,0,0,0.06);
	border-radius: 0 0 12px 12px;
}
.header-footer-mobile ul li a{
	padding: 8px 6px;
	border-radius: 8px;
}
.header-footer-mobile ul li a:hover{
	background-color: rgba(87,204,153,0.08);
	color: var(--secondcolor);
}

/* --- NAV dropdown formal refinement --- */
.header-footer ul li a{
	position: relative;
}
.header-footer ul li a:after{
	content: "";
	position: absolute;
	right: 12px;
	left: 12px;
	bottom: 6px;
	height: 2px;
	background: linear-gradient(90deg, rgba(56,163,165,0), rgba(56,163,165,.6), rgba(56,163,165,0));
	opacity: 0;
	transform: scaleX(.5);
	transition: opacity .18s ease, transform .18s ease;
	border-radius: 2px;
}
.header-footer ul li a:hover:after, .header-footer ul li .header-footer-active:after{
	opacity: 1;
	transform: scaleX(1);
}

/* Dropdown container arrow */
.header-footer ul li:hover .header-cont:before{
	content: "";
	position: absolute;
	top: calc(100% + 2px);
	right: 24px;
	border: 8px solid transparent;
	border-bottom-color: rgba(0,0,0,0.06);
}
.header-footer ul li:hover .header-cont:after{
	content: "";
	position: absolute;
	top: calc(100% + 4px);
	right: 24px;
	border: 7px solid transparent;
	border-bottom-color: #fff;
}

/* Dropdown list spacing & typography */
.header-cont ul{
	background-color: #fff;
	backdrop-filter: blur(6px);
	border-radius: 10px;
}
.header-cont ul li a{
	font-size: .95rem;
	letter-spacing: .1px;
}
.header-cont ul li + li{border-top: 1px dashed rgba(0,0,0,0.05)}

/* --- Global professional polish (typography, spacing, consistency) --- */
:root{
	--radius-xs: 6px;
	--radius-sm: 10px;
	--radius-md: 14px;
	--shadow-xs: 0 2px 6px rgba(0,0,0,0.05);
	--shadow-sm: 0 6px 16px rgba(0,0,0,0.06);
	--shadow-md: 0 12px 24px rgba(0,0,0,0.10);
	--container-w: 92vw;
}

html{scroll-behavior:smooth}
body{
	color: var(--fontcolor);
	line-height: 1.8;
	background: #fbfbfb;
}

/* Selection color */
::selection{background: rgba(87,204,153,.25)}

/* Links */
a{transition: color .18s ease}
a:hover{color: var(--secondcolor)}

/* Headings rhythm */
h1,h2,h3,h4,h5,h6{margin: .25em 0 .5em 0}

/* Containers */
.continer{width: var(--container-w)}
.all-books,.all-researches{width: var(--container-w)}

/* Global cards look */
.card, .obj-continer ul li, .sid-continer ul li, .links-continer{
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-xs);
	border: 1px solid rgba(0,0,0,0.06);
}

/* Images */
img{max-width:100%;height:auto}
.card img{border-radius: var(--radius-xs)}

/* Buttons (brand-consistent) */
.btn, .obj-continer a, .sectionspagecontent .section_page a, .books-and-researches .book a .book-button, .all-books a button{
	border-radius: 999px;
	font-family: var(--titlefont);
	transition: transform .18s ease, box-shadow .18s ease, background-color .2s ease;
}
.btn:hover, .obj-continer a:hover, .sectionspagecontent .section_page a:hover, .books-and-researches .book a .book-button:hover, .all-books a button:hover{
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

/* Inputs & forms */
input, select, textarea{border-radius: var(--radius-sm)}
input::placeholder, textarea::placeholder{color:#8c8c8c}
.form-control:focus{border-color: var(--maincolor) !important}

/* Scrollbars */
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-thumb{background: var(--maincolor); border-radius:10px}
*::-webkit-scrollbar-track{background: #efefef}

/* Posts list improvements */
.post-card{border-radius: var(--radius-sm); box-shadow: var(--shadow-sm)}
.post-card h4{color:#2d2d2d}
.post-card .homepage_p{color:#444}

/* Books grid polish */
.books-and-researches .book a{border: 1px solid rgba(0,0,0,0.06)}
.books-and-researches .book h5{color:#2d756f}
.books-and-researches .book h6{color:#3b9a8f}

/* Research cards polish */
.researches .card{box-shadow: var(--shadow-sm)}
.researches .card:hover{box-shadow: var(--shadow-md)}

/* Sections page cards */
.sectionspagecontent .section_page li{box-shadow: var(--shadow-xs)}
.sectionspagecontent .section_page li:hover{box-shadow: var(--shadow-sm)}

/* Footer improvements */
.footer-head{gap: 24px}
.footer-down{backdrop-filter: saturate(160%)}

/* Print minimal */
@media print{
	nav, .social-media, .footer-down, .spinner{display:none !important}
	body{background:#fff}
}

/* Responsive refinements */
@media (max-width:1000px){
	:root{--container-w: 96vw}
	.header-footer ul{gap: 8px}
}

/* Unified dropdown suggestions for books/research search */
.serch_sug_books{
	margin-top:5px;
	width: 32%;
	background-color: white;
	padding: 8px;
	position: absolute;
	z-index: 99999;
	border-radius:10px;
	display: none;
	box-shadow: 0 20px 30px #95959559;
	direction: rtl;
	border: 1px solid rgba(0,0,0,0.06);
}
.serch_sug_books ul{margin:0;padding:0}
.serch_sug_books ul li a{
	text-decoration: none;
	color: rgba(73, 73, 73, 0.92);
	border-radius: 8px;
	padding: 6px 10px;
	transition: ease 0.2s;
	display: flex;
	align-items: center;
	gap: 10px;
}
.serch_sug_books ul li a:hover{background-color: rgba(0,0,0,0.06)}

/* Screen reader only helper */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Nav dropdown toggle button */
.nav-item-with-dropdown{display:inline-flex; align-items:center; gap:6px}
.nav-item-with-dropdown .dropdown-toggle{
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	transition: background-color .2s ease;
}
.nav-item-with-dropdown .dropdown-toggle:hover{background-color: rgba(87,204,153,0.12)}

/* Ensure dropdown aligns nicely when toggle is present */
.nav-item-with-dropdown{position: relative}
.nav-item-with-dropdown .header-cont{right: 0}

/* ==== Global modern theme for header/nav/search (from index.html) ==== */
:root{
	--primary-green: #4a6b5c;
	--secondary-green: #5c7a6b;
	--accent-gold: #d4a574;
	--light-beige: #f5f1eb;
	--text-dark: #2c3e36;
	--text-muted: #6b7b72;
	--border-light: rgba(75, 107, 92, 0.15);
	--shadow-soft: 0 4px 20px rgba(44, 62, 54, 0.08);
	--shadow-medium: 0 8px 30px rgba(44, 62, 54, 0.12);
	--gradient-main: linear-gradient(135deg, #4a6b5c 0%, #5c7a6b 100%);
	--gradient-gold: linear-gradient(135deg, #d4a574 0%, #c89a67 100%);
	--white: #ffffff;
	--black: #000000;
	--bg-body: #fafafa;
	--overlay-white-15: rgba(255, 255, 255, 0.15);
	--overlay-white-20: rgba(255, 255, 255, 0.2);
	--text-white-85: rgba(255, 255, 255, 0.85);
	--radius-xs: 8px;
	--radius-sm: 12px;
	--radius-md: 16px;
	--radius-lg: 20px;
	--radius-pill: 25px;
	--radius-round: 50%;
}

/* Base typography override to match new style */
body{
	font-family: 'Cairo', sans-serif;
	background: var(--bg-body);
	color: var(--text-dark);
	line-height: 1.6;
}

/* Top header */
.top-header{
	background: var(--gradient-main);
	padding: 20px 0;
	position: relative;
	overflow: visible;
}
.top-header::before{
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
	opacity: .3;
}
.header-badge{
	position: absolute; top: 15px; right: 30px;
	background: var(--overlay-white-15);
	backdrop-filter: blur(10px);
	padding: 8px 16px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--overlay-white-20);
	color: var(--white);
	font-weight: 600; font-size: .9rem; z-index: 2;
}
.header-content{
	display: grid; grid-template-columns: 1fr 1.2fr; direction: ltr; gap: 40px; align-items: center; position: relative; z-index: 1038; margin-top: 30px;
}
.search-section{order: 1}
.title-section{order: 2; text-align: center}
.title-section h1{color: var(--white); font-size: 2.2rem; font-weight: 800; line-height: 1.3; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.3)}
.title-section p{color: var(--text-white-85); font-size: 1.1rem; font-weight: 500}

/* Search */
.search-container{position: relative; margin-bottom: 20px}
.search-bar{
	background: var(--white);
	border-radius: var(--radius-pill);
	padding: 8px; box-shadow: var(--shadow-medium);
	display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-light); height: 60px; position: relative; overflow: hidden;
}
.search-category{background: var(--light-beige); border: none; border-radius: var(--radius-md); padding: 12px 16px; color: var(--text-dark); font-weight: 600; cursor: pointer; min-width: 140px; outline: none}
.search-input{flex: 1; border: none; outline: none; background: transparent; font-size: 1rem; color: var(--text-dark); padding: 0 10px}
.search-input::placeholder{color: var(--text-muted); font-weight: 500}
.search-button{background: var(--gradient-gold); border: none; border-radius: var(--radius-round); width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1rem; box-shadow: var(--shadow-soft); transition: all .3s ease}
.search-button:hover{transform: translateY(-2px); box-shadow: var(--shadow-medium)}
.search-progress{position: absolute; bottom: 0; left: 0; height: 2px; background: var(--gradient-gold); width: 0%; transition: width .3s ease; border-radius: 0 0 25px 25px}
.search-bar.searching .search-progress{width: 100%}

.quick-filters{display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap}
.filter-chip{background: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-lg); padding: 8px 16px; color: var(--primary-green); font-weight: 600; font-size: .85rem; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all .3s ease; backdrop-filter: blur(10px)}
.filter-chip:hover{background: var(--white); transform: translateY(-1px)}
.filter-chip.active{background: var(--gradient-gold); color: #fff; transform: translateY(-2px)}

.social-links{display: flex; gap: 12px}
.social-link{width: 44px; height: 44px; background: var(--overlay-white-15); backdrop-filter: blur(10px); border: 1px solid var(--overlay-white-20); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: all .3s ease}
.social-link:hover{background: var(--white); color: var(--primary-green); transform: translateY(-2px)}

/* Bottom navigation */
.navigation-bar{background: var(--light-beige); border-top: 1px solid var(--border-light); box-shadow: 0 -2px 20px rgba(44,62,54,0.05); position: relative; z-index: 2000}
.nav-tabs{display: flex; justify-content: space-between; padding: 15px 0; gap: 5px}
.nav-tab{position: relative; min-width: 140px; text-align: center; animation: fadeInUp .6s ease forwards; animation-delay: calc(var(--delay, 0) * .1s)}
.nav-tab-link{display: block; text-decoration: none; color: var(--text-dark); padding: 8px 12px; border-radius: 12px; transition: all .3s ease; position: relative; overflow: hidden}
.nav-tab-link:hover{background: #fff}
.nav-tab-link::before{content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left .5s ease}
.nav-tab-link:hover::before{left: 100%}
.tab-icon{width: 40px; height: 40px; background: var(--accent-gold); border-radius: 12px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; box-shadow: var(--shadow-soft)}
.nav-tab.active .tab-icon{background: var(--gradient-gold); transform: scale(1.05)}
.tab-title{font-weight: 700; font-size: .9rem; margin-bottom: 4px}
.tab-arrow{color: var(--text-muted); font-size: .7rem}

/* Match staggered animation delays as in index.html */
.nav-tab:nth-child(1){--delay: 1}
.nav-tab:nth-child(2){--delay: 2}
.nav-tab:nth-child(3){--delay: 3}
.nav-tab:nth-child(4){--delay: 4}
.nav-tab:nth-child(5){--delay: 5}
.nav-tab:nth-child(6){--delay: 6}
.nav-tab:nth-child(7){--delay: 7}

.dropdown-menu{position: absolute; top: 100%; right: 0; background: black; border: 1px solid var(--border-light); border-radius: var(--radius-sm); box-shadow: var(--shadow-medium); min-width: 250px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s ease; z-index: 3000; margin-top: 8px}
.nav-tab:hover .dropdown-menu{opacity: 1; visibility: visible; transform: translateY(0); display: block}
.dropdown-item{display: block; padding: 12px 20px; color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .3s ease}
.dropdown-item:hover{background: var(--light-beige); color: var(--primary-green)}

/* Search results dropdown */
.search-results{position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-medium); margin-top: 8px; max-height: 400px; overflow-y: auto; z-index: 4000; display: none; border: 1px solid var(--border-light)}
.results-header{background: var(--gradient-main); color: var(--white); padding: 15px 20px; font-weight: 700; border-radius: var(--radius-md) var(--radius-md) 0 0}
.result-item{padding: 15px 20px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: all .3s ease; display: flex; align-items: center; gap: 12px; position: relative}
.result-item:hover{background: var(--light-beige)}
.result-item:last-child{border-bottom: none; border-radius: 0 0 16px 16px}
.result-icon{width: 24px; text-align: center; color: var(--primary-green)}
.result-content{flex: 1}
.result-title{font-weight: 700; color: var(--text-dark); margin-bottom: 2px}
.result-category{font-size: .85rem; color: var(--text-muted)}
.result-item::before{content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--gradient-gold); transform: scaleY(0); transition: transform .3s ease}
.result-item:hover::before{transform: scaleY(1)}

@keyframes fadeInUp{from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)}}

/* Responsive */
@media (max-width:1024px){
	.header-content{grid-template-columns: 1fr; gap: 30px; text-align: center}
	.search-section{order: 2}
	.title-section{order: 1}
	.site-nav__tabs{flex-direction: column; gap: 8px}
	.site-nav__item{min-width: auto}
	.site-nav__dropdown{position: static; opacity: 1; visibility: visible; transform: none; margin-top: 8px; display: none; box-shadow: none; border: 1px solid var(--border-light)}
	.site-nav__item.open .site-nav__dropdown{display: block}
}
@media (max-width:768px){
	.title-section h1{font-size: 1.8rem}
	.search-bar{height: 55px; padding: 6px}
	.search-button{width: 40px; height: 40px}
	.tab-icon{width: 36px; height: 36px}
}
@media (max-width:480px){
	.title-section h1{font-size: 1.5rem; line-height: 1.4}
	.search-bar{flex-direction: column; height: auto; padding: 12px; gap: 10px}
	.search-category{min-width: 100%; order: 1}
	.search-input{order: 2; padding: 12px; border: 1px solid var(--border-light); border-radius: 12px}
	.search-button{order: 3; align-self: center}
	.social-links{justify-content: center}
}

/* Cairo global font override */
html, body, button, input, textarea, select{font-family: 'Cairo', sans-serif !important}

.site-nav{background: var(--light-beige); border-top: 1px solid var(--border-light); box-shadow: 0 -2px 20px rgba(44,62,54,0.05); position: relative; z-index: 2000}
.site-nav__tabs{display: flex; justify-content: space-between; padding: 15px 0; gap: 5px}
.site-nav__item{position: relative; min-width: 140px; text-align: center; animation: fadeInUp .6s ease forwards; animation-delay: calc(var(--delay, 0) * .1s)}
.site-nav__link{display: block; text-decoration: none; color: var(--text-dark); padding: 8px 12px; border-radius: 12px; transition: all .3s ease; position: relative; overflow: hidden}
.site-nav__link:hover{background: #fff}
.site-nav__link::before{content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left .5s ease}
.site-nav__link:hover::before{left: 100%}
.site-nav__icon{width: 40px; height: 40px; background: var(--accent-gold); border-radius: 12px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; box-shadow: var(--shadow-soft)}
.site-nav__item.active .site-nav__icon{background: var(--gradient-gold); transform: scale(1.05)}
.site-nav__title{  font-family: "Cairo", sans-serif;font-weight: 700; font-size: .9rem; margin-bottom: 4px}
.site-nav__arrow{color: var(--text-muted); font-size: .7rem}
.site-nav__item:nth-child(1){--delay: 1}
.site-nav__item:nth-child(2){--delay: 2}
.site-nav__item:nth-child(3){--delay: 3}
.site-nav__item:nth-child(4){--delay: 4}
.site-nav__item:nth-child(5){--delay: 5}
.site-nav__item:nth-child(6){--delay: 6}
.site-nav__item:nth-child(7){--delay: 7}
.site-nav__dropdown{position: absolute; top: 100%; right: 0; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-sm); box-shadow: var(--shadow-medium); min-width: 250px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s ease; z-index: 3000; margin-top: 8px}
.site-nav__item:hover .site-nav__dropdown{opacity: 1; visibility: visible; transform: translateY(0); display: block}
.site-nav__dropdown-item{display: block; padding: 12px 20px; color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .3s ease}
.site-nav__dropdown-item:hover{background: var(--light-beige); color: var(--primary-green)}
/* اجعل dropdown عائماً على الجوال أيضاً حتى لا يزيد ارتفاع nav */
.site-nav__dropdown{position: absolute; top: 100%; right: 0; margin-top: 8px; display: block}
.site-nav__item.open .site-nav__dropdown{display: block}

/* ===== Enhanced Sections Page ===== */
.sections-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--maincolor)15, var(--secondcolor)15);
    border-radius: 50px;
    font-family: var(--titlefont);
    font-weight: 600;
    color: var(--fontcolor);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-item i {
    font-size: 1.3rem;
    color: var(--maincolor);
}

.subsections-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.subsection-card-enhanced {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.subsection-card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--maincolor);
}

.subsection-link-enhanced {
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.subsection-header-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.subsection-icon-enhanced {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.subsection-icon-enhanced i {
    font-size: 2rem;
}

.subsection-card-enhanced:hover .subsection-icon-enhanced {
    transform: rotate(10deg) scale(1.1);
}

.subsection-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--maincolor);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--titlefont);
    font-weight: 600;
}

.subsection-content-enhanced h3 {
    font-family: var(--titlefont);
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--fontcolor);
    margin-bottom: 12px;
    line-height: 1.4;
}

.subsection-description {
    font-family: var(--mainfont);
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.subsection-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--maincolor);
    font-family: var(--titlefont);
}

.subsection-arrow-enhanced {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1.8rem;
    color: var(--secondcolor);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.subsection-card-enhanced:hover .subsection-arrow-enhanced {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Modern Sub-Section Page ===== */
.gradient-header {
    background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
    color: white;
}

.breadcrumb-nav {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-family: var(--titlefont);
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-nav i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.sub-section-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.toolbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--titlefont);
    font-weight: 600;
    color: var(--fontcolor);
}

.toolbar-info i {
    font-size: 1.3rem;
    color: var(--maincolor);
}

.toolbar-actions {
    display: flex;
    gap: 10px;
}

.view-toggle {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    color: #666;
}

.view-toggle:hover {
    border-color: var(--maincolor);
    color: var(--maincolor);
}

.view-toggle.active {
    background: var(--maincolor);
    border-color: var(--maincolor);
    color: white;
}

.posts-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.modern-post-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.modern-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--secondcolor);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-post-card:hover .post-image-wrapper img {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--maincolor)dd, var(--secondcolor)dd);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.modern-post-card:hover .post-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: var(--titlefont);
    font-weight: bold;
}

.overlay-content i {
    font-size: 2.5rem;
}

.post-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--maincolor);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-card-content {
    padding: 25px;
}

.post-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--maincolor)15;
    color: var(--maincolor);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--titlefont);
    font-weight: 600;
    margin-bottom: 15px;
}

.post-card-title {
    font-family: var(--titlefont);
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--fontcolor);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-excerpt {
    font-family: var(--mainfont);
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #999;
    font-family: var(--titlefont);
}

.read-more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--titlefont);
    font-weight: 600;
    color: var(--secondcolor);
    transition: gap 0.3s;
}

.modern-post-card:hover .read-more-link {
    gap: 12px;
}

/* List View */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-view .modern-post-card {
    display: flex;
    flex-direction: row;
}

.list-view .post-image-wrapper {
    width: 280px;
    height: auto;
    flex-shrink: 0;
}

.list-view .post-card-content {
    flex: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: var(--titlefont);
    font-weight: bold;
    color: var(--fontcolor);
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--maincolor);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--titlefont);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondcolor);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .subsections-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .posts-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .section-toolbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .list-view .modern-post-card {
        flex-direction: column;
    }
    
    .list-view .post-image-wrapper {
        width: 100%;
        height: 220px;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
}
