/**
 * Homepage Dashboard Theme
 * Applied to the landing page to match the dashboard UI
 */

body, .page-wrapper {
    background: linear-gradient(135deg, #18181B 0%, #27272A 100%) !important;
    background-color: transparent !important;
    color: #E4E4E7 !important;
    font-family: 'Tajawal', sans-serif !important;
}

/* =======================================
   Typography Overrides
======================================= */
h1, h2, h3, h4, h5, h6, 
.sec-title h2, .sec-title h3, .sec-title h4,
.title, .name {
    color: #FFFFFF !important;
    font-family: 'Tajawal', sans-serif !important;
}

p, .text, .lower-text, .designation, li, span {
    color: #A1A1AA !important;
}

/* =======================================
   Card & Block Designs
======================================= */
/* Services, News, Team, Testimonials, Values */
.service-block-two .inner-box,
.news-block .inner-box,
.team-block .inner-box,
.testi-block .inner,
.value-card .inner-box,
.gallery-item .inner-box,
.about-section .text-column .inner,
.we-do-section .left-col .inner,
.we-do-section .right-col .inner,
.get-quote-two .form-box,
.map-container,
.feature-item .inner {
    background: #27272A !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    padding: 30px !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-block-two .inner-box {
    display: flex !important;
    align-items: center !important;
    text-align: right !important;
    padding: 25px !important;
    gap: 20px !important;
    min-height: 120px !important;
}

.service-block-two .inner-box:hover,
.news-block .inner-box:hover,
.team-block .inner-box:hover,
.value-card .inner-box:hover,
.gallery-item .inner-box:hover {
    border-color: rgba(134, 96, 142, 0.4) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Remove old curves and shapes from cards */
.bottom-curve, .top-curve, .curve, .bg-image, .image-layer {
    display: none !important;
}

/* =======================================
   Buttons (Dashboard Style) – مثل أيقونة Login في الفوتر
======================================= */
.theme-btn, .btn-style-one, .btn-style-two, button[type="submit"] {
    background: rgba(134, 96, 142, 0.35) !important;
    color: #FFFFFF !important;
    padding: 12px 24px !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(134, 96, 142, 0.5) !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.theme-btn:hover, .btn-style-one:hover, .btn-style-two:hover, button[type="submit"]:hover {
    background: rgba(134, 96, 142, 0.5) !important;
    border-color: #86608E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(134, 96, 142, 0.2) !important;
    color: #FFFFFF !important;
}

.theme-btn::before, .btn-curve {
    display: none !important;
}

/* =======================================
   Icons & Interactive elements
======================================= */
.icon-box, .icon {
    background: rgba(134, 96, 142, 0.1) !important;
    color: #86608E !important;
    border-radius: 12px !important;
}

.icon-box span, .icon span, .icon i, .icon-box i {
    color: #86608E !important;
}

/* =======================================
   Forms
======================================= */
input, textarea, select, .form-control {
    background: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #86608E !important;
    box-shadow: 0 0 0 2px rgba(134, 96, 142, 0.2) !important;
    outline: none !important;
}

/* Page Title Section */
.page-title {
    background: transparent !important;
    padding: 100px 0 50px !important;
    margin: 0 !important;
    text-align: center !important;
    position: relative !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.page-title .auto-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(134, 96, 142, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.page-title h1 {
    font-size: 42px !important;
    margin-bottom: 15px !important;
}

.page-breadcrumb {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-breadcrumb li {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    font-size: 15px !important;
}

.page-breadcrumb li a {
    color: #86608E !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.page-breadcrumb li a:hover {
    color: #FFFFFF !important;
}

.page-breadcrumb li:not(:last-child)::after {
    content: '/' !important;
    margin: 0 10px !important;
    color: #555 !important;
}

/* Page Wrapper Fix for Full Width */
.page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}
section {
    background: transparent !important;
    padding: 60px 0 !important;
    margin-bottom: 30px !important;
}

/* Specific spacing for first section to offset fixed header */
.about-section {
    margin-top: 40px !important;
}

.auto-container {
    max-width: 1400px !important;
}

/* Clean up Gallery / Portfolio */
.gallery-section {
    padding-top: 60px !important;
}

/* Gallery: image full visible, cap-box below image (no overlay on image) */
.gallery-item .inner-box {
    display: flex !important;
    flex-direction: column !important;
}

.gallery-item .inner-box .image {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
}

.gallery-item .inner-box .image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    vertical-align: middle;
}

/* Lightbox overlay only over the image (inside figure) */
.gallery-item .inner-box .image a.overlay-box {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Cap-box below image, not overlapping */
.gallery-item .cap-box {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    opacity: 1 !important;
    transform: none !important;
    flex: 0 0 auto;
    margin-top: 0;
}

.gallery-item .cap-box .cap-inner {
    border-radius: 0 0 16px 16px !important;
    background: #323338 !important; /* لون أفتح من الهوفر */
}

/* Clean up Banner */
.banner-section {
    background: transparent !important;
    min-height: auto !important;
    padding-top: 150px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.slide-item {
    background: transparent !important;
}

/* Clean up Services Block Base CSS */
.service-block-two .icon-box {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(134, 96, 142, 0.1) !important;
}

.service-block-two .icon-box span {
    font-size: 28px !important;
    line-height: 1 !important;
    color: #86608E !important;
}

.service-block-two h5 {
    margin: 0 0 5px 0 !important;
    text-align: right !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.service-block-two .text {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: right !important;
    color: #A1A1AA !important;
}
.about-section,
.about-section::before,
.about-section::after {
    background: transparent !important;
}

.about-section .text-column .text .since .txt {
    background: #86608E !important;
}
.about-section .text-column .text .since::before {
    display: none !important;
}

/* Vertical Cards (Value Props, Teams, etc) */
.dashboard-card-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 15px !important;
}

.dashboard-card-vertical .icon-box {
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    font-size: 28px !important;
}

.dashboard-card-vertical h4, 
.dashboard-card-vertical h5 {
    margin: 10px 0 !important;
}

/* Horizontal Service Cards */
.dashboard-card-horizontal {
    display: flex !important;
    align-items: center !important;
    text-align: right !important;
    gap: 20px !important;
    text-decoration: none !important;
    color: inherit !important;
    justify-content: flex-start !important;
}

.dashboard-card-horizontal .icon-box {
    flex-shrink: 0 !important;
    margin: 0 !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    float: none !important;
}

.dashboard-card-horizontal .content-box {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    float: none !important;
}

.dashboard-card-horizontal h5 {
    margin: 0 0 5px 0 !important;
    text-align: right !important;
}

.dashboard-card-horizontal .text {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: right !important;
}

/* Force override any weird positioning from old template */
.service-block-two .inner-box {
    padding: 25px !important;
    display: flex !important;
}

/* Clean up Accordion (We Do section) */
.accordion-box .block {
    background: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    margin-bottom: 10px !important;
}

.accordion-box .acc-btn {
    background: transparent !important;
    color: #FFFFFF !important;
}

.accordion-box .acc-btn.active {
    color: #86608E !important;
}

/* Remove decorative dots from titles */
.sec-title .dot {
    color: #86608E !important;
}

/* Testimonials cleanup */
.testi-block .inner .image img {
    border: 2px solid #86608E !important;
}

/* Footer overrides */
.main-footer {
    background: #18181B !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* =======================================
   Preloader Overlay
======================================= */
.preloader {
    background-color: #18181B !important;
    z-index: 9999999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.preloader .icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100px !important;
    height: 100px !important;
    margin-top: -50px !important;
    margin-left: -50px !important;
    border: none !important;
    border-radius: 50% !important;
    background-image: url('../images/icon.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    animation: pulseLogo 1.5s ease-in-out infinite !important;
    -webkit-animation: pulseLogo 1.5s ease-in-out infinite !important;
}

@keyframes pulseLogo {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 15px rgba(134, 96, 142, 0.6)); }
    100% { transform: scale(0.9); opacity: 0.7; }
}

@-webkit-keyframes pulseLogo {
    0% { -webkit-transform: scale(0.9); opacity: 0.7; }
    50% { -webkit-transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 15px rgba(134, 96, 142, 0.6)); }
    100% { -webkit-transform: scale(0.9); opacity: 0.7; }
}

/* Value cards spacing on mobile */
@media (max-width: 767px) {
    .value-proposition-section .value-card {
        margin-bottom: 24px !important;
    }
    .value-proposition-section .value-card:last-child {
        margin-bottom: 0 !important;
    }
}

/* Features list: larger text & icon, better card shape */
.value-proposition-section .features-list .feature-item .text {
    font-size: 18px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
}
.value-proposition-section .features-list .feature-item i.icon,
.value-proposition-section .features-list .feature-item .icon-box i {
    font-size: 28px !important;
}
.value-proposition-section .features-list .feature-item .inner {
    padding: 22px 26px !important;
    gap: 18px !important;
    min-height: 64px !important;
}

/* Features list spacing on mobile – equal gaps only via margin-bottom */
@media (max-width: 767px) {
    .value-proposition-section .features-list .feature-item,
    .value-proposition-section .features-list .feature-item.mt-4 {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }
    .value-proposition-section .features-list .feature-item:last-child {
        margin-bottom: 0 !important;
    }
    .value-proposition-section .features-list .feature-item .inner {
        padding: 24px 20px !important;
    }
}

/* Parallax section: fixed background (image stays fixed, content scrolls) */
.parallax-section--fixed-bg {
    background-color: #27272A !important;
}
.parallax-section__bg {
    pointer-events: none;
}
@media (max-width: 1024px) {
    /* On tablets/mobile many browsers ignore background-attachment:fixed; use scroll so image still shows */
    .parallax-section__bg {
        background-attachment: scroll !important;
    }
}

/* News section: equal height cards */
.news-section .row.clearfix {
    display: flex;
    flex-wrap: wrap;
}
.news-section .news-block {
    display: flex;
}
.news-section .news-block .inner-box {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
}
.news-section .news-block .inner-box .image-box {
    flex-shrink: 0;
}
.news-section .news-block .inner-box .lower-box {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}
.news-section .news-block .inner-box .lower-box .text {
    flex: 1 !important;
}
.news-section .news-block .inner-box .lower-box .link-box {
    margin-top: auto !important;
}

/* Get Quote — توحيد محاذاة البريد والهاتف (عمود أيقونة + عمود نص)؛ الجوال: صف بريد ثم صف هاتف */
.translated-rtl .get-quote-two .info ul li {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.translated-rtl .get-quote-two .info ul li .icon {
    right: auto !important;
    left: auto !important;
}
.get-quote-two .info ul li {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 18px !important;
    min-height: 0 !important;
}
.get-quote-two .info ul li:last-child {
    margin-bottom: 0 !important;
}
.get-quote-two .info ul li .icon {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    align-self: start !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.get-quote-two .info ul li .info-text-wrap {
    grid-column: 2 !important;
    grid-row: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    min-width: 0 !important;
    text-align: start !important;
}
.get-quote-two .info ul li .info-text-wrap strong,
.get-quote-two .info ul li .info-text-wrap a {
    display: block !important;
    width: 100% !important;
    text-align: start !important;
}
.get-quote-two .info ul li .info-text-wrap a {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

/* Get Quote + Footer: center all content on mobile */
@media (max-width: 767px) {
    /* زر اكتشف المزيد في قسم عنّا: في النص (المنتصف) على الجوال */
    .about-section .link-box {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }
    .about-section .link-box .theme-btn {
        margin: 0 auto;
    }
    /* Get Quote section */
    .get-quote-two .left-col .inner,
    .get-quote-two .left-col .sec-title,
    .get-quote-two .left-col .text {
        text-align: center !important;
    }
    .get-quote-two .info ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: start !important;
        gap: 16px !important;
        max-width: min(100%, 400px) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* صف البريد ثم صف الهاتف تحته؛ داخل كل صف: شبكة أيقونة + نص بمحاذاة موحّدة */
    .get-quote-two .info ul li {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        column-gap: 14px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 0 4px 0 !important;
    }
    .get-quote-two .info ul li:last-child {
        margin-bottom: 0 !important;
    }
    .get-quote-two .info ul li .icon {
        position: static !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    .get-quote-two .info ul li .info-text-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: start !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .get-quote-two .info ul li .info-text-wrap strong,
    .get-quote-two .info ul li .info-text-wrap a {
        display: block !important;
        width: 100% !important;
        text-align: start !important;
    }
    .get-quote-two .info ul li .info-text-wrap strong {
        margin-bottom: 2px !important;
    }
    .get-quote-two .right-col .form-box,
    .get-quote-two .form-group button[type="submit"] {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .get-quote-two .default-form .form-group button {
        width: 100%;
        max-width: 320px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Main footer */
    .main-footer .widgets-section .row {
        justify-content: center;
        text-align: center;
    }
    .main-footer .footer-widget,
    .main-footer .footer-widget .widget-content,
    .main-footer .logo-widget .text,
    .main-footer .links-widget ul,
    .main-footer .info-widget .contact-info,
    .main-footer .newsletter-widget .text {
        text-align: center !important;
    }
    .main-footer .logo-widget .logo,
    .main-footer .logo-widget .logo a {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }
    .main-footer .social-links {
        justify-content: center !important;
    }
    .main-footer .links-widget .row {
        justify-content: center;
    }
    .main-footer .links-widget ul li {
        display: block;
        text-align: center;
    }
    /* تواصل: كل المحتوى في المنتصف، والأيقونات فوق بعض في عمود واحد */
    .main-footer .info-widget .widget-content {
        text-align: center !important;
    }
    .main-footer .info-widget .contact-info {
        margin: 0 auto !important;
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: 320px;
    }
    .main-footer .info-widget .contact-info li {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        min-height: 48px !important;
        padding: 0 !important;
        position: relative !important;
    }
    .main-footer .info-widget .contact-info li .icon {
        position: static !important;
        flex-shrink: 0 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        left: auto !important;
        right: auto !important;
    }
    .main-footer .info-widget .contact-info li .info-text-wrap {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 !important;
    }
    .main-footer .info-widget .contact-info li .info-text-wrap a {
        text-align: center !important;
    }
    .main-footer .newsletter-form .form-group {
        justify-content: center;
    }
    .main-footer .footer-bottom .inner,
    .main-footer .footer-bottom .copyright {
        text-align: center !important;
    }
}