/*
Theme Name: Blocksy Child - Al Arabia Auto
Description: Child Theme لموقع معرض السيارات Al Arabia Auto، مبني فوق Blocksy
Template: blocksy
Version: 8.0.0
Author: Al Arabia Auto
*/

/* ============================================
   🎨 GOOGLE FONTS - Montserrat
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* ============================================
   🎨 CSS VARIABLES - ألوان الهوية الرسمية
   ============================================ */
:root {
    --color-primary:     #ed1c24;   /* أحمر - الأزرار والعناوين المهمة */
    --color-black:       #000000;   /* أسود - العناوين الرئيسية */
    --color-dark-gray:   #3f3f3f;   /* رمادي داكن - النصوص العادية */
    --color-light-gray:  #9c9c9c;   /* رمادي فاتح - نصوص ثانوية */
    --color-bg-dark:     #2b2b2b;   /* رمادي غامق - الخلفيات الداكنة */
    --color-white:       #ffffff;   /* أبيض */
    --font-main: 'Montserrat', sans-serif;
}

/* ============================================
   🔤 TYPOGRAPHY - تطبيق الخط على الموقع كله
   ============================================ */
body,
p,
span,
div,
li,
a,
input,
textarea,
select,
button {
    font-family: var(--font-main) !important;
    color: var(--color-dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main) !important;
    font-weight: 700;
    color: var(--color-black);
}

/* ============================================
   🔴 BUTTONS - أزرار بالأحمر الرسمي
   ============================================ */
.wp-block-button__link,
.btn,
button[type="submit"],
input[type="submit"] {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-family: var(--font-main) !important;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.wp-block-button__link:hover,
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    opacity: 0.88;
    color: var(--color-white) !important;
}

/* ============================================
   🔗 LINKS - الروابط
   ============================================ */
a {
    color: var(--color-primary) !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ============================================
   🚗 WHATSAPP BUTTON - زرار الواتساب العائم
   ============================================ */
.car-single-page a[href*="wa.me"]:hover {
    opacity: 0.9;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    body.home, body.page-template-front-page .site-title,
    body.home, body.page-template-front-page .site-title a {
        font-size: 22px !important;
    }
    body.home, body.page-template-front-page .ct-header .menu > li > a {
        font-size: 15px !important;
    }
}

/* ============================================
   Header Transparent + White Text (Home Only)
   ============================================ */

/* الهيدر شفاف في الرئيسية فقط */
body.home, body.page-template-front-page #header.ct-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: transparent !important;
    box-shadow: none !important;
}

body.home, body.page-template-front-page #header.ct-header [data-row],
body.home, body.page-template-front-page #header.ct-header [data-row] > *,
body.home, body.page-template-front-page #header.ct-header .ct-container {
    background: transparent !important;
}

/* اسم الموقع - أبيض وكبير */
body.home, body.page-template-front-page #header .site-title,
body.home, body.page-template-front-page #header .site-title a,
body.home, body.page-template-front-page #header .site-title-container a {
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    text-decoration: none !important;
}

/* المنيو - أبيض وأكبر */
body.home, body.page-template-front-page #header .header-menu-1 a,
body.home, body.page-template-front-page #header .menu li a,
body.home, body.page-template-front-page #header nav a {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

body.home, body.page-template-front-page #header .header-menu-1 a:hover,
body.home, body.page-template-front-page #header .menu li a:hover {
    color: #ed1c24 !important;
}

/* أيقونات البحث والقائمة - أبيض */
body.home, body.page-template-front-page #header .ct-icon,
body.home, body.page-template-front-page #header svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

body.home, body.page-template-front-page #header .ct-header-search .ct-icon,
body.home, body.page-template-front-page #header .ct-header-trigger .ct-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* إزالة المسافة فوق الهيرو */
body.home, body.page-template-front-page #main-container,
body.home, body.page-template-front-page .ct-main-container,
body.home, body.page-template-front-page main#main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.home, body.page-template-front-page .entry-content,
body.home, body.page-template-front-page .ct-container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* لو الهيرو داخل .site-main */
body.home, body.page-template-front-page .site-main > *:first-child,
body.home, body.page-template-front-page #primary > *:first-child {
    margin-top: 0 !important;
}

/* في الصفحات الداخلية - الهيدر عادي */
body:not(.home):not(.page-template-front-page) #header.ct-header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    body.home, body.page-template-front-page #header .site-title,
    body.home, body.page-template-front-page #header .site-title a {
        font-size: 22px !important;
    }
    body.home, body.page-template-front-page #header .header-menu-1 a {
        font-size: 15px !important;
    }
}

/* ============================================
   FORCE Override for Home Page (Elementor Compatible)
   ============================================ */
html body.home #header,
html body.home header.ct-header,
html body.home #header.ct-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

html body.home #header [data-row="middle"],
html body.home #header [data-row="top"],
html body.home #header [data-row="bottom"],
html body.home #header .ct-container,
html body.home #header .ct-container-fluid {
    background: transparent !important;
    background-color: transparent !important;
}

html body.home #header .site-title,
html body.home #header .site-title a,
html body.home #header .site-title-container a {
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7) !important;
}

html body.home #header a,
html body.home #header .menu a,
html body.home #header nav a,
html body.home #header ul li a {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
}

html body.home #header a:hover {
    color: #ed1c24 !important;
}

html body.home #header svg,
html body.home #header .ct-icon {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* الصفحة تبدأ من فوق */
html body.home {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

html body.home #main-container,
html body.home main,
html body.home .site-main,
html body.home .ct-main-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* ============================================
   AA GLOBAL — Style C (Modern Automotive)
   ============================================ */

/* Base */
html body {
    background: #ffffff !important;
    color: #2b2b2b !important;
    font-family: var(--font-main) !important;
    line-height: 1.85;
}

/* Silver metallic — TEXT ONLY (not real image logos) */
html body .aa-brand-silver,
html body .site-title-container a,
html body .ct-site-title a {
    background: linear-gradient(145deg, #f2f2f2, #c9c9c9 45%, #8f8f8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
            background-clip: text;
    color: transparent !important;
    font-weight: 800;
}

/* Silver text style helper */
.aa-silver-text {
    background: linear-gradient(145deg, #f2f2f2, #c9c9c9 45%, #8f8f8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
            background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Headings polish */
html body h1,
html body h2,
html body h3,
html body h4 {
    color: #111 !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
}
html body h1 { font-size: 40px; margin-bottom: 18px; }
html body h2 { font-size: 30px; margin: 30px 0 16px; }
html body h3 { font-size: 22px; margin: 22px 0 12px; }
html body h4 { font-size: 18px; margin: 18px 0 10px; }

/* Red accent under H2 in content */
.entry-content h2:not(.no-accent):after,
.single-cars .entry-content h2:after,
.page .entry-content h2:after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    background: #ed1c24;
    margin-top: 10px;
    border-radius: 2px;
}

/* Paragraphs */
html body p {
    color: #444 !important;
    font-size: 20px !important;
    line-height: 1.95 !important;
}

/* Links */
html body a {
    color: #ed1c24;
    text-decoration: none;
    transition: color .2s ease;
}
html body a:hover {
    color: #b91218;
}

/* Buttons — primary */
html body .wp-block-button__link,
html body .btn,
html body button[type="submit"],
html body input[type="submit"],
html body .aa-btn-primary {
    background: #ed1c24 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(237,28,36,.25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    display: inline-block;
}
html body .wp-block-button__link:hover,
html body .btn:hover,
html body .aa-btn-primary:hover {
    background: #c91a21 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(237,28,36,.35);
}

/* Buttons — outline */
html body .aa-btn-outline {
    background: transparent !important;
    color: #111 !important;
    border: 2px solid #111 !important;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    display: inline-block;
    transition: all .2s ease;
}
html body .aa-btn-outline:hover {
    background: #111 !important;
    color: #fff !important;
}

/* Sections spacing */
.entry-content > * + * { margin-top: 18px; }
.entry-content ul,
.entry-content ol { padding-inline-start: 22px; }
.entry-content li { margin-bottom: 8px; color: #444; }

/* Tables in car pages */
html body table {
    border-collapse: collapse;
    width: 100%;
    margin: 22px 0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    border-radius: 10px;
    overflow: hidden;
}
html body table th {
    background: #ed1c24 !important;
    color: #fff !important;
    font-weight: 700;
    padding: 14px 16px;
    text-align: right;
}
html body table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
}
html body table tr:last-child td { border-bottom: none; }
html body table tr:nth-child(even) td { background: #fafafa; }

/* Featured images / thumbnails */
.single-cars .post-thumbnail img,
.aa-car-image img,
.entry-content img {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* Section wrapper backgrounds (soft gray) */
.aa-section-soft { background: #f7f7f8 !important; }
.aa-section-white { background: #ffffff !important; }

/* Feature cards polish (home) */
html body.home .aa-home-cat-card {
    border-radius: 18px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.06) !important;
}
html body.home .aa-home-cat-card:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,.10) !important;
    border-color: #ed1c24 !important;
}

/* Pages: About & Contact polish */
.page-id-about .entry-content,
.page-id-contact .entry-content,
.page .entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* Contact card */
.contact-page-content .contact-details {
    border-right: 4px solid #ed1c24 !important;
    background: #f7f7f8 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

/* Footer already styled — small refinements */
.aa-site-footer h3 { letter-spacing: .3px; }
.aa-site-footer .aa-brand {
    background: linear-gradient(145deg, #f2f2f2, #c9c9c9 45%, #8f8f8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
            background-clip: text;
}

/* Blocksy overrides (soft) */
html body .ct-container,
html body .ct-container-narrow {
    max-width: 1200px !important;
}

/* Selection color */
::selection { background: #ed1c24; color: #fff; }

/* Responsive tweaks */
@media (max-width: 767px){
    html body h1 { font-size: 28px; }
    html body h2 { font-size: 24px; }
    html body h3 { font-size: 20px; }
    html body p  { font-size: 15px !important; }
}

/* ==========================================================================
   AL ARABIA AUTO - HOMEPAGE V3.0 - NEW DESIGN
   ========================================================================== */

:root {
    --aa-gray-header: #9CA8B7;
    --aa-gray-cards: #B4BDC8;
    --aa-bg-light: #F5F5F3;
    --aa-text-dark: #171717;
    --aa-text-gray: #555555;
    --aa-red-accent: #A71920;
    --aa-white: #FFFFFF;
    --aa-border: #D8D8D5;
}

/* ===== General Container ===== */
.aa-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.aa-homepage {
    background: var(--aa-bg-light);
    direction: rtl;
}

/* ==========================================================================
   1) HERO SLIDER
   ========================================================================== */
.aa-hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    background: #1a1a1a;
}

.aa-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.aa-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.aa-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ===== Slider Dots ===== */
.aa-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.aa-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.aa-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.aa-dot.active {
    background: var(--aa-white);
    width: 32px;
    border-radius: 6px;
}

/* ===== Slider Arrows ===== */
.aa-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--aa-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.aa-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--aa-text-dark);
}

.aa-arrow-prev {
    right: 30px;
}

.aa-arrow-next {
    left: 30px;
}

/* ==========================================================================
   2) CATEGORIES SECTION
   ========================================================================== */
.aa-categories-section {
    padding: 80px 0;
    background: var(--aa-bg-light);
}

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

.aa-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--aa-text-dark);
    margin: 0 0 12px 0;
    position: relative;
    display: inline-block;
}

.aa-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--aa-red-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.aa-section-subtitle {
    font-size: 17px;
    color: var(--aa-text-gray);
    margin: 0;
    font-weight: 400;
}

.aa-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.aa-category-card {
    background: var(--aa-gray-cards);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--aa-text-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.aa-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.aa-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e5e5e5;
}

.aa-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

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

.aa-card-content {
    padding: 24px 22px 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.aa-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--aa-text-dark);
    margin: 0 0 10px 0;
}

.aa-card-desc {
    font-size: 15px;
    color: var(--aa-text-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.aa-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--aa-text-dark);
    transition: color 0.3s ease;
}

.aa-category-card:hover .aa-card-link {
    color: var(--aa-red-accent);
}

.aa-card-link svg {
    transition: transform 0.3s ease;
}

.aa-category-card:hover .aa-card-link svg {
    transform: translateX(-4px);
}

/* ==========================================================================
   3) CONTACT CTA
   ========================================================================== */
.aa-contact-cta {
    padding: 70px 0;
    background: var(--aa-gray-header);
}

.aa-cta-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.aa-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--aa-text-dark);
    margin: 0 0 14px 0;
}

.aa-cta-text {
    font-size: 17px;
    color: var(--aa-text-dark);
    opacity: 0.85;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.aa-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 38px;
    background: var(--aa-text-dark);
    color: var(--aa-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.aa-cta-button:hover {
    background: var(--aa-red-accent);
    color: var(--aa-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 25, 32, 0.3);
}

.aa-cta-button svg {
    transition: transform 0.3s ease;
}

.aa-cta-button:hover svg {
    transform: translateX(-4px);
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */
@media (max-width: 992px) {
    .aa-hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .aa-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .aa-section-title {
        font-size: 30px;
    }
    
    .aa-cta-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 640px) {
    .aa-hero-slider {
        height: 50vh;
        min-height: 320px;
    }
    
    .aa-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .aa-arrow-prev { right: 12px; }
    .aa-arrow-next { left: 12px; }
    
    .aa-categories-section {
        padding: 50px 0;
    }
    
    .aa-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aa-section-title {
        font-size: 26px;
    }
    
    .aa-section-subtitle {
        font-size: 15px;
    }
    
    .aa-card-image {
        height: 200px;
    }
    
    .aa-card-title {
        font-size: 22px;
    }
    
    .aa-contact-cta {
        padding: 50px 0;
    }
    
    .aa-cta-title {
        font-size: 24px;
    }
    
    .aa-cta-text {
        font-size: 15px;
    }
    
    .aa-cta-button {
        padding: 13px 30px;
        font-size: 15px;
    }
}

/* ===== Remove Blocksy text-shadow on Homepage titles ===== */
.aa-homepage h1,
.aa-homepage h2,
.aa-homepage h3,
.aa-homepage .aa-section-title,
.aa-homepage .aa-card-title,
.aa-homepage .aa-cta-title {
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    filter: none !important;
}

/* ===== Remove text-shadow from ALL text site-wide ===== */
body,
body *,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th,
button, input, textarea, label {
    text-shadow: none !important;
}

/* ==========================================================================
   HEADER - Fixed Gray Background (Site-wide)
   ========================================================================== */

/* الهيدر الأساسي - خلفية رمادي ثابتة */
header[data-id="header"],
.ct-header,
#header {
    background: #9CA8B7 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* الشفافية على الرئيسية - نلغيها */
body.home header[data-id="header"],
body.home .ct-header,
body.home #header,
header[data-transparent-row] {
    background: #9CA8B7 !important;
}

/* ارتفاع الهيدر أعرض */
header[data-id="header"] [data-row="middle"],
.ct-header [data-row="middle"] {
    min-height: 90px !important;
    padding: 10px 0 !important;
}

/* لون النصوص والروابط في القائمة */
header[data-id="header"] .ct-menu-link,
.ct-header .ct-menu-link,
header[data-id="header"] a,
.ct-header a {
    color: #171717 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

/* Hover على القائمة */
header[data-id="header"] .ct-menu-link:hover,
.ct-header .ct-menu-link:hover {
    color: #A71920 !important;
}

/* اللوجو */
header[data-id="header"] .site-logo-container img,
.ct-header .site-logo-container img {
    max-height: 60px !important;
    width: auto !important;
}

/* Sticky Header */
header[data-id="header"],
.ct-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

/* ==========================================================================
   HEADER OVERRIDE - Blocksy Type-1
   ========================================================================== */

/* خلفية الهيدر رمادي */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
    background-color: #9CA8B7 !important;
    background-image: none !important;
    --height: 90px !important;
}

[data-header*="type-1"] {
    --header-height: 90px !important;
}

/* لون النصوص في القائمة */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
    --theme-link-initial-color: #171717 !important;
    color: #171717 !important;
    font-size: 15px !important;
    text-transform: none !important;
}

/* Hover للقائمة */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover {
    color: #A71920 !important;
}

/* لون اللوجو النصي */
[data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
    --theme-link-initial-color: #171717 !important;
    color: #171717 !important;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-title a {
    color: #171717 !important;
}

/* أيقونة البحث والقائمة */
[data-header*="type-1"] .ct-header .ct-toggle {
    color: #171717 !important;
}

/* Shadow للهيدر */
[data-header*="type-1"] .ct-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Sticky */
#header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

/* Mobile */
@media (max-width: 999.98px) {
    [data-header*="type-1"] .ct-header [data-row*="middle"] {
        --height: 70px !important;
    }
    [data-header*="type-1"] {
        --header-height: 70px !important;
    }
}

/* ==========================================================================
   HEADER OVERRIDE - Blocksy Type-1
   ========================================================================== */

/* خلفية الهيدر رمادي */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
    background-color: #9CA8B7 !important;
    background-image: none !important;
    --height: 90px !important;
}

[data-header*="type-1"] {
    --header-height: 90px !important;
}

/* لون النصوص في القائمة */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
    --theme-link-initial-color: #171717 !important;
    color: #171717 !important;
    font-size: 15px !important;
    text-transform: none !important;
}

/* Hover للقائمة */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover {
    color: #A71920 !important;
}

/* لون اللوجو النصي */
[data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
    --theme-link-initial-color: #171717 !important;
    color: #171717 !important;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-title a {
    color: #171717 !important;
}

/* أيقونة البحث والقائمة */
[data-header*="type-1"] .ct-header .ct-toggle {
    color: #171717 !important;
}

/* Shadow للهيدر */
[data-header*="type-1"] .ct-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Sticky */
#header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

/* Mobile */
@media (max-width: 999.98px) {
    [data-header*="type-1"] .ct-header [data-row*="middle"] {
        --height: 70px !important;
    }
    [data-header*="type-1"] {
        --header-height: 70px !important;
    }
}

/* FORCE HEADER BACKGROUND */
html body header#header,
html body .ct-header,
html body [data-header] .ct-header,
html body header#header [data-row="middle"],
html body header#header [data-row*="middle"],
html body .ct-header [data-row*="middle"] {
    background-color: #9CA8B7 !important;
    background-image: none !important;
    background: #9CA8B7 !important;
}

html body.home header#header,
html body.home .ct-header {
    background-color: #9CA8B7 !important;
    background: #9CA8B7 !important;
}

/* ULTRA FORCE HEADER - Maximum Specificity */
html body[data-header] header#header .ct-header [data-row="middle"],
html body[data-header] header#header .ct-header [data-row*="middle"],
html body[data-header*="type-1"] header#header .ct-header [data-row*="middle"],
html body[data-header*="type-1"] .ct-header [data-row*="middle"],
body[data-header*="type-1"] header[data-id="type-1"] [data-row*="middle"] {
    background-color: #9CA8B7 !important;
    background: #9CA8B7 !important;
    background-image: none !important;
}

body[data-header*="type-1"] header[data-id="type-1"] {
    background-color: #9CA8B7 !important;
    background: #9CA8B7 !important;
}

/* Fix Header Position - Not Overlay */
header#header {
    position: relative !important;
    background-color: #9CA8B7 !important;
}

body.home header#header {
    position: relative !important;
}

/* Push slider below header */
.aa-hero-slider {
    margin-top: 0 !important;
}

/* Sticky when scrolling */
header#header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

/* ========== FINAL HEADER FIX ========== */
body[data-header="type-1"] #header.ct-header {
    background-color: #9CA8B7 !important;
    background: #9CA8B7 !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

body[data-header="type-1"] #header.ct-header [data-row="middle"],
body[data-header="type-1"] #header.ct-header [data-row*="middle"] {
    background-color: #9CA8B7 !important;
    background: #9CA8B7 !important;
    background-image: none !important;
}

/* Make sure main content starts BELOW header */
body[data-header="type-1"] #main.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body[data-header="type-1"].home #main.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure body has no negative offset */
body[data-header="type-1"] {
    padding-top: 0 !important;
}

/* Remove gap between header and slider */
body.home #main.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home #main.site-main > *:first-child,
body.home .aa-homepage,
body.home .aa-hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any container spacing */
body.home .ct-container-fluid,
body.home article.post,
body.home article {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove entry header if exists */
body.home .entry-header {
    display: none !important;
}

/* Remove Blocksy main padding on homepage */
body.home main#main.site-main {
    padding: 0 !important;
    margin: 0 !important;
}

body.home main#main.site-main > article,
body.home main#main.site-main .entry-content,
body.home main#main.site-main .entry-header {
    padding: 0 !important;
    margin: 0 !important;
}

body.home main#main.site-main .ct-container,
body.home main#main.site-main .ct-container-fluid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Push slider down - keep header size */
body.home .aa-hero-slider {
    margin-top: 40px !important;
}

/* FORCE push slider down */
html body.home main#main .aa-hero-slider,
html body.home main#aa-homepage .aa-hero-slider,
html body .aa-homepage .aa-hero-slider {
    margin-top: 120px !important;
}

/* FORCE push slider down */
html body.home main#main .aa-hero-slider,
html body.home main#aa-homepage .aa-hero-slider,
html body .aa-homepage .aa-hero-slider {
    margin-top: 120px !important;
}

/* Hide site title text in header */
#header .site-title,
.ct-header .site-title,
[data-header] .site-title,
[data-header] [data-id="logo"] .site-title {
    display: none !important;
}

/* Enlarge site logo */
#header .site-logo-container img,
.ct-header .site-logo-container img,
[data-header] [data-id="logo"] img,
.site-branding img {
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
}

/* Move logo up */
#header .site-logo-container,
.ct-header .site-logo-container,
[data-header] [data-id="logo"],
.site-branding {
    transform: translate(140px, -10px) !important;
}

/* Move menu closer to logo */
#header [data-id="menu"],
.ct-header [data-id="menu"] {
    margin-right: 500px !important;
}

/* Push menu closer to logo (right side in RTL) */
#header [data-column="start"] > [data-items="primary"] {
    margin-right: auto !important;
    margin-left: 100px !important;
}

#header [data-id="menu"] {
    margin-right: auto !important;
}

/* Move column end (menu) closer to logo */
#header [data-row="middle"] .ct-container {
    justify-content: flex-start !important;
    gap: 0px !important;
}

#header [data-column="end"] {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Force column order */
#header [data-column="start"] {
    order: 1 !important;
}
#header [data-column="end"] {
    order: 2 !important;
    margin-left: auto !important;
}

/* Negative margin to overlap menu closer */
#header [data-column="end"] {
    margin-right: -300px !important;
}

/* Enlarge menu items */
#header [data-id="menu"] > ul > li > a,
.ct-header [data-id="menu"] > ul > li > a {
    font-size: 20px !important;
    text-transform: none !important;
}

/* Force menu font size using CSS variable */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
    --theme-font-size: 20px !important;
    font-size: 20px !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .ct-menu-link {
    font-size: 20px !important;
}

/* ULTRA FORCE menu font size */
html body [data-header*="type-1"] .ct-header [data-id="menu"] .ct-menu-link,
html body [data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a.ct-menu-link,
html body [data-header*="type-1"] .ct-header nav [data-id="menu"] li a {
    --theme-font-size: 20px !important;
    font-size: 20px !important;
}
