/* استيراد خط Tajawal بجميع أوزانه من جوجل */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* إعدادات عامة وتمرير سلس */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f9f9f9; 
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

/* تصميم الهيدر (الشريط العلوي) */
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.logo-container {
    flex: 1; 
    display: flex;
    justify-content: flex-start;
}

.logo-img {
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.center-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.center-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.center-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s ease;
}

.center-nav ul li a:hover {
    color: #005A9C; 
}

/* تصميم زر التواصل والقائمة المنسدلة */
.contact-dropdown {
    flex: 1;
    display: flex;
    justify-content: flex-end; 
    position: relative;
}

.contact-btn {
    background-color: #005A9C; 
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 90, 156, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.contact-btn:hover, .contact-dropdown:focus-within .contact-btn {
    background-color: #00487a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 90, 156, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.contact-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 90, 156, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; 
    background-color: #ffffff;
    min-width: 150px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    margin-top: 5px;
    border: 1px solid #eee;
    padding: 5px 0;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: flex; 
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
}

.dropdown-content a:hover {
    background-color: #f0f8ff; 
    color: #005A9C;
}

.contact-dropdown:hover .dropdown-content,
.contact-dropdown:focus-within .dropdown-content {
    display: block;
}

/* إعدادات الأقسام العامة */
section {
    padding: 80px 20px;
    text-align: center;
}

h1, h2 {
    color: #005A9C;
    font-size: 32px;
    margin-top: 0.83em;
    margin-bottom: 20px;
    font-weight: 800;
}

h3, h4 {
    font-weight: 700;
}

/* قسم البانر الرئيسي */
.hero-section {
    background-color: #005A9C;
    color: white;
    padding: 80px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 650px;
}

.hero-content h1 {
    color: white;
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
}

.hero-image-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-btn {
    display: inline-block;
    background-color: white;
    color: #005A9C;
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    font-family: inherit;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

/* تصميم سلايد الصور (Slideshow) بعرض الصفحة */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: 350px;
    background-color: #eef2f5;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* حركة التلاشي التلقائي للسلايد */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* تأثير المربعات التفاعلية (Hover & Click) */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-box {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    width: 300px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* صورة الخلفية داخل المربع التي تظهر عند التفاعل */
.feature-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

/* محتوى المربع (العنوان والنص) */
.feature-content {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.feature-box h3 {
    color: #005A9C;
    margin-top: 0;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* الجملة التي تختفي وتظهر عند التأثير */
.feature-text {
    color: #555;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

/* عند المرور بالماوس على الكمبيوتر أو الضغط في الجوال (.active) */
.feature-box:hover .feature-text,
.feature-box.active .feature-text {
    max-height: 150px;
    opacity: 1;
    margin-top: 10px;
}

.feature-box:hover,
.feature-box.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,90,156,0.15);
}

.feature-box:hover .feature-bg-img,
.feature-box.active .feature-bg-img {
    opacity: 0.15; /* تظهر الصورة بشكل خفيف جداً كخلفية جمالية */
    transform: scale(1.05);
}

.feature-box:hover h3,
.feature-box.active h3 {
    color: #003b66;
}

/* شبكة الأقسام الستة في صفحة المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0 auto;
}

.project-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-align: right;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,90,156,0.15);
}

.project-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eef2f5;
}

.project-card-body {
    padding: 20px;
}

.project-card-body h3 {
    color: #005A9C;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.project-card-body p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* شبكة عملاؤنا المميزون */
.clients-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.client-badge {
    background-color: white;
    padding: 25px 20px;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: center;
}

.client-badge h3 {
    color: #005A9C;
    margin: 0 0 8px 0;
    font-size: 18px;
}

.client-badge p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* تصميم الفوتر */
footer {
    background-color: #222;
    color: #ddd;
    padding: 60px 20px 20px 20px;
    font-family: inherit;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
    text-align: right;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col.about {
    flex: 2;
}

.footer-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.footer-col p {
    line-height: 1.8;
    font-size: 15px;
    color: #bbb;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #005A9C;
}

.footer-map-box {
    background-color: transparent;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #444;
    overflow: hidden;
    height: 200px;
}

.footer-map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #888;
}



/* القائمة المنسدلة لقطاعات المشاريع في الهيدر */
.center-nav .has-submenu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    padding: 4px 6px;
    transition: color 0.3s ease;
}

.submenu-toggle:hover {
    color: #005A9C;
}

.center-nav ul.submenu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 5px 0;
    margin: 5px 0 0 0;
    z-index: 100;
}

.center-nav ul.submenu::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    width: 100%;
    height: 10px;
}

.center-nav ul.submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    white-space: nowrap;
}

.center-nav ul.submenu li a:hover {
    background-color: #f0f8ff;
    color: #005A9C;
}

.center-nav .has-submenu.open > ul.submenu {
    display: flex;
}

@media (hover: hover) {
    .center-nav .has-submenu:hover > ul.submenu {
        display: flex;
    }
}

/* صفحات قطاعات المشاريع */
.breadcrumb {
    max-width: 1100px;
    margin: 0 auto 10px auto;
    text-align: right;
    font-size: 15px;
    color: #777;
}

.breadcrumb a {
    color: #005A9C;
    text-decoration: none;
}

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

.sector-intro {
    max-width: 800px;
    margin: 0 auto 10px auto;
    font-size: 18px;
    font-weight: 500;
}

.project-card-body .project-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 4px;
}

.project-card-body p + p {
    margin-top: 6px;
}

/* توافق الموقع مع شاشات الجوال */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .logo-container, .center-nav, .contact-dropdown {
        justify-content: center;
        width: 100%;
    }

    .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-section {
        padding: 40px 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* الوضع الداكن (Dark Mode) التلقائي للأجهزة */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    header, .dropdown-content {
        background-color: #1e1e1e;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        border-bottom: 1px solid #333;
    }

    .center-nav ul li a, .dropdown-content a {
        color: #e0e0e0;
    }

    .center-nav ul li a:hover, .dropdown-content a:hover {
        color: #66b2ff; 
        background-color: transparent;
    }

    .dropdown-content a:hover {
        background-color: #2a2a2a;
    }

    h1, h2, h3, h4 {
        color: #66b2ff !important; 
    }

    section {
        background-color: #121212 !important;
    }

    .hero-section {
        background-color: #003b66 !important; 
    }

    .hero-section h1, .hero-section p, .hero-section ul {
        color: #ffffff !important;
    }

    div[style*="background-color: #f9f9f9"],
    div[style*="background: white"],
    div[style*="background-color: white"],
    .project-card,
    .client-badge,
    .feature-box,
    form, table {
        background-color: #1e1e1e !important;
        border-color: #333 !important;
        color: #e0e0e0 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    }

    .feature-text {
        color: #bbb !important;
    }

    th {
        background-color: #00487a !important;
    }

    td, th {
        border-color: #333 !important;
    }

    input, textarea {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border-color: #444 !important;
    }

    input:focus, textarea:focus {
        border-color: #66b2ff !important;
    }

}

/* القائمة المنسدلة على الجوال: تتوسط تحت الزر */
@media (max-width: 768px) {
    .center-nav ul.submenu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* القائمة المنسدلة وصفحات القطاعات في الوضع الداكن */
@media (prefers-color-scheme: dark) {
    .center-nav ul.submenu {
        background-color: #1e1e1e;
        border-color: #333;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .center-nav ul.submenu li a:hover {
        background-color: #2a2a2a;
        color: #66b2ff;
    }

    .submenu-toggle {
        color: #e0e0e0;
    }

    .submenu-toggle:hover {
        color: #66b2ff;
    }

    .breadcrumb {
        color: #aaa;
    }

    .breadcrumb a {
        color: #66b2ff;
    }

    .project-card-body p {
        color: #bbb;
    }

    .project-card-body .project-meta {
        color: #999;
    }
}


/* =========================================================
   صفحة خبرتنا
   ========================================================= */
.page-hero {
    background: linear-gradient(135deg, #003b66 0%, #005A9C 100%);
    color: #ffffff;
    padding: 70px 20px 80px 20px;
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
    font-size: 40px;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-hero p {
    max-width: 780px;
    margin: 0 auto 30px auto;
    font-size: 20px;
    font-weight: 500;
}

.exp-section {
    padding: 70px 20px;
}

.exp-alt {
    background-color: #ffffff;
}

.exp-story {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 30px auto 0 auto;
    text-align: right;
}

.exp-figure {
    flex: 0 0 260px;
    text-align: center;
}

.exp-photo {
    width: 260px;
    height: 320px;
    border-radius: 16px;
    background-color: #eef2f5;
    background-image: var(--bg), linear-gradient(160deg, #cfe3f3 0%, #7fb2da 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.exp-text {
    flex: 1;
    min-width: 280px;
    font-size: 18px;
    font-weight: 500;
}

.exp-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto 0 auto;
}

.exp-stat {
    flex: 1;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.exp-stat-num {
    display: block;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: #005A9C;
}

.exp-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
}

.exp-groups {
    max-width: 1000px;
    margin: 30px auto 0 auto;
    text-align: right;
}

.exp-groups h3 {
    color: #005A9C;
    font-size: 22px;
    margin: 35px 0 15px 0;
}

.exp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.exp-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-right: 4px solid #005A9C;
    border-radius: 10px;
    padding: 16px 18px;
}

.exp-item strong {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.exp-item span {
    font-size: 14px;
    color: #777;
}

.value-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 900px;
    margin: 30px auto 0 auto;
}

.value-card {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: right;
}

.value-card h3 {
    color: #005A9C;
    margin: 0 0 12px 0;
    font-size: 22px;
}

.value-card p {
    margin: 0;
    font-size: 17px;
    color: #555;
}

@media (max-width: 768px) {
    .center-nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .center-nav ul li a {
        font-size: 16px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 17px;
    }

    .exp-story {
        text-align: center;
    }
}

@media (prefers-color-scheme: dark) {
    .page-hero h1,
    .page-hero p {
        color: #ffffff !important;
    }

    .exp-alt {
        background-color: #121212;
    }

    .exp-stat,
    .value-card,
    .exp-item {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .exp-item {
        border-right-color: #66b2ff;
    }

    .exp-item strong {
        color: #e0e0e0;
    }

    .exp-item span,
    .exp-stat-label,
    .value-card p,
        .exp-stat-num {
        color: #66b2ff;
    }
}


/* =========================================================
   البانر المتحرك (سلايدر الصفحات)
   ========================================================= */
.banner-slider {
    position: relative;
    background-color: #f3f7fc;
}

.banner-viewport {
    position: relative;
    display: grid;
    overflow: hidden;
}

.banner-slide {
    grid-area: 1 / 1;
    position: relative;
    min-height: 560px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity 0.9s ease;
}

.banner-photo {
    position: absolute;
    inset: 0;
    background-color: #0a4a7a;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 9s linear;
}

.banner-slide.active .banner-photo {
    transform: scale(1.06);
}

.mode-cool  .banner-photo { background-image: var(--img1), var(--img2), linear-gradient(135deg, #0a7ea4 0%, #37b7c9 100%); }
.mode-heat  .banner-photo { background-image: var(--img1), var(--img2), linear-gradient(135deg, #5a3a5e 0%, #c9743a 100%); }
.mode-smart .banner-photo { background-image: var(--img1), var(--img2), linear-gradient(135deg, #005A9C 0%, #2f86c8 100%); }

/* خلفية متدرجة شفافة أسفل الصورة */
.banner-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 120px 80px 40px 80px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: right;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 30, 60, 0.9) 0%, rgba(0, 30, 60, 0.5) 60%, transparent 100%);
    border-radius: 0;
}

.banner-kicker {
    display: inline-block;
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 4px solid #38b6ff;
}

.banner-title {
    margin: 0 0 18px 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.4;
    max-width: 900px;
}

.banner-text {
    margin: 0 0 28px 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    max-width: 800px;
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-pill {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #0b2f55;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.22);
}

/* بطاقة الحرارة فوق الصورة */
.banner-temp {
    position: absolute;
    left: 70px;
    top: 60px;
    bottom: auto;
    z-index: 2;
    width: 240px;
    box-sizing: border-box;
    padding: 18px 20px 16px 20px;
    border-radius: 16px;
    color: #ffffff;
    text-align: right;
    background: rgba(0,43,76,0.45);
    border: 1px solid rgba(255,255,255,0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.banner-temp .temp-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.banner-temp .temp-scene {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.banner-temp .temp-value {
    margin: 4px 0 0 0;
    font-size: 64px;
    justify-content: flex-end;
}

.banner-temp .temp-unit {
    font-size: 22px;
}

.banner-temp .temp-range {
    font-size: 14px;
    opacity: 0.95;
}

.mode-heat .banner-temp .temp-value { color: #ffb870; }
.mode-heat .banner-temp .temp-mode-dot { background: #ffb870; box-shadow: 0 0 0 4px rgba(255,184,112,0.25); }
.mode-smart .banner-temp .temp-value { color: #ffffff; }
.mode-smart .banner-temp .temp-mode-dot { background: #ffffff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }

/* عناصر بطاقة الحرارة (مشتركة) */
.temp-mode-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8fe3ff;
    box-shadow: 0 0 0 4px rgba(143,227,255,0.25);
}

.temp-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
    font-weight: 800;
    color: #8fe3ff;
    direction: ltr;
}

.temp-unit {
    font-weight: 700;
}

/* حركة دخول النصوص عند ظهور الشريحة */
.banner-slide.active .banner-kicker,
.banner-slide.active .banner-title,
.banner-slide.active .banner-text,
.banner-slide.active .banner-actions {
    animation: bannerRise 0.7s ease both;
}

.banner-slide.active .banner-title   { animation-delay: 0.08s; }
.banner-slide.active .banner-text    { animation-delay: 0.16s; }
.banner-slide.active .banner-actions { animation-delay: 0.24s; }

@keyframes bannerRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* الأسهم على الحافتين */
.banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 62px;
    height: 62px;
    margin-top: -31px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(11,47,130,0.82);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.banner-arrow:hover {
    background-color: rgba(11,47,130,1);
    transform: scale(1.06);
}

.banner-prev { right: 14px; }
.banner-next { left: 14px; }

/* الأشرطة تحت الصورة */
.banner-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 6px 0;
}

.banner-bar {
    position: relative;
    width: 60px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.banner-bar::before,
.banner-bar::after {
    content: "";
    position: absolute;
    top: 10px;
    height: 8px;
}

.banner-bar::before {
    left: 0;
    right: 0;
    background-color: #b7c8ea;
}

.banner-bar::after {
    right: 0;
    width: 0;
    background-color: #0b2f82;
}

.banner-bar.active::after {
    animation: bannerFill var(--banner-interval, 7000ms) linear forwards;
}

@keyframes bannerFill {
    from { width: 0; }
    to   { width: 100%; }
}

.banner-slider.is-paused .banner-bar.active::after {
    animation-play-state: paused;
}

.banner-slider.user-paused .banner-bar.active::after {
    animation: none;
    width: 100%;
}

.banner-pause {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #b7c8ea;
    background: #ffffff;
    color: #0b2f82;
    font-size: 9px;
    letter-spacing: -1px;
    cursor: pointer;
    font-family: inherit;
}

.banner-slider button:focus-visible,
.banner-slider a:focus-visible {
    outline: 3px solid #38b6ff;
    outline-offset: 2px;
}

/* شريط المزايا تحت البانر */
.banner-features {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.banner-features ul {
    list-style: none;
    margin: 0 auto;
    padding: 22px 20px;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 36px;
}

.banner-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0b2f55;
}


@media (max-width: 900px) {
    .banner-panel {
        padding: 100px 40px 40px 40px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-temp {
        display: none;
    }
}

@media (max-width: 768px) {
    .banner-slide {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .banner-photo {
        position: relative;
        inset: auto;
        height: 210px;
        flex: 0 0 210px;
    }

    .banner-panel {
        position: relative;
        width: 100%;
        padding: 28px 22px 34px 22px;
        align-items: center;
        text-align: center;
        border-radius: 0;
        background: linear-gradient(180deg, rgba(0,43,76,1) 0%, rgba(0,59,102,1) 100%);
    }

    .banner-title {
        font-size: 26px;
    }

    .banner-text {
        font-size: 17px;
    }

    .banner-actions {
        justify-content: center;
    }

    .btn-pill {
        padding: 12px 26px;
        font-size: 16px;
    }

    .banner-temp {
        display: block;
        left: 14px;
        top: 14px;
        bottom: auto;
        width: 150px;
        padding: 10px 12px;
    }

    .banner-temp .temp-scene,
    .banner-temp .temp-range {
        display: none;
    }

    .banner-temp .temp-value {
        font-size: 42px;
    }

    .banner-arrow {
        width: 44px;
        height: 44px;
        margin-top: -22px;
        top: 105px;
    }

    .banner-arrow svg {
        width: 22px;
        height: 22px;
    }

    .banner-features ul {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-slide,
    .banner-slide.active { transition: none; }
    .banner-photo { transition: none; transform: none !important; }
    .banner-slide.active .banner-kicker,
    .banner-slide.active .banner-title,
    .banner-slide.active .banner-text,
    .banner-slide.active .banner-actions { animation: none; }
    .banner-bar.active::after { animation: none; width: 100%; }
}

@media (prefers-color-scheme: dark) {
    .banner-slider {
        background-color: #121212;
    }

    .banner-bar::before {
        background-color: #2c3e5c;
    }

    .banner-bar::after {
        background-color: #66b2ff;
    }

    .banner-pause {
        background: #1e1e1e;
        border-color: #333;
        color: #66b2ff;
    }

    .banner-features {
        background-color: #121212;
        border-bottom-color: #333;
    }

    .banner-features li {
        color: #e0e0e0;
    }

    .banner-title,
    .banner-text,
    .banner-kicker {
        color: #ffffff !important;
    }
}/* تنسيق سلايدر اللوغوهات الأفقي المتحرك ببطء */
.logos-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: 20px 0;
}

.logos-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: slideHorizontal 40s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

.slide-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item img {
    height: 45px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.slide-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

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