﻿/* =====================================================
   ATRIN TEJARAT â€” Building Chemicals Page Styles (Ø´ÛŒÙ…ÛŒ Ø³Ø§Ø®ØªÙ…Ø§Ù†)
   ===================================================== */

.trade-page-main {
    background-color: #ECEBF2;
    direction: rtl;
    font-family: 'Yekan Bakh', Tahoma, sans-serif;
    padding-bottom: 80px;
}

/* =====================================================
   SECTION 1: HERO & WHITE CONTAINER CARD (POPPING OUT IMAGE)
   ===================================================== */
.trade-hero-section {
    padding: 50px 0 100px 0;
    /* Padding creates perfect top and bottom spacing for overflow */
    position: relative;
    overflow: visible !important;
    /* Ensure negative margin contents are fully visible */
}

.trade-hero-card-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: visible !important;
}

/* 1. Title Area (Outside and Above the White Card) */
.trade-hero-header-block {
    text-align: right;
    width: 100%;
    z-index: 10;
}

.trade-hero-header-block-mobile {
    display: none;
}

.trade-hero-pre-title {
    font-size: 25px;
    font-weight: 700;
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;

    /* Elegant Dark Gray */
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
    color: #153152;
}

.trade-hero-main-title {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #153152;
    /* Navy Blue */
    line-height: 1.35;
    margin: 0;
}

/* 2. Premium White Card */
.trade-hero-white-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 0px;
    box-shadow: 0 15px 45px rgba(21, 49, 82, 0.04);
    border: 1px solid rgba(21, 49, 82, 0.03);
    overflow: visible !important;
    /* Extremely important for the popping image */
}

.trade-card-split-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 48px;
    padding: 0px;
    overflow: visible !important;
}

/* Text Content Column (Right RTL) */
.trade-card-text-col {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 70px 40px;
    z-index: 10;
}

.trade-hero-description-text {
    font-size: 16px;
    line-height: 2.1;
    color: #4D4D4D;
    margin: 0;
    font-weight: 500;
    text-align: justify;
    padding: 0 0 0 50%;
}

/* CTA Buttons area inside card */
.trade-hero-action-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trade-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 5px;
    /* Precision 5px border-radius as requested by user */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(21, 49, 82, 0.08);
}

.cta-icon-left {
    font-size: 18px;
    margin-left: 8px;
}

/* Gold Button Style */
.trade-btn-primary-yellow {
    background-color: #FBB900;
    color: #153152;
    border: 1px solid #FBB900;
}

.trade-btn-primary-yellow:hover {
    background-color: #e5a700;
    border-color: #e5a700;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(251, 185, 0, 0.22);
}

/* Navy Button Style */
.trade-btn-secondary-navy {
    background-color: #153152;
    color: #FFFFFF;
    border: 1px solid #153152;
}

.trade-btn-secondary-navy:hover {
    background-color: #0f243d;
    border-color: #0f243d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 49, 82, 0.15);
}

/* Image Column (Left RTL) with negative margin to pop out */
.trade-card-image-col {
    z-index: 5;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible !important;
}

.trade-image-wrapper-outer {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 530px;
    overflow: visible !important;
}

/* Image Container */
.trade-hero-image-clip {
    width: 100%;
    border-radius: 12px;
    overflow: visible;
    z-index: 2;
    display: flex;
    justify-content: end;
}

.trade-hero-main-img {
    width: auto;
    height: 450px;
    object-fit: cover;
    display: flex;
    transition: transform 0.6s ease;
    margin-right: -250px;
    margin-top: -175px;
}

/* =====================================================
   5. RESPONSIVE MEDIA QUERIES
   ===================================================== */

@media (max-width: 1024px) {
    .trade-hero-section {
        padding: 120px 0 60px 0;
    }

    .trade-hero-header-block {
        display: none;
    }

    .trade-hero-header-block-mobile {
        display: block;
        margin-bottom: 24px;
        text-align: center;
    }

    .trade-hero-white-card {
        padding: 0px;
    }

    .trade-card-split-row {
        flex-direction: column-reverse;
        /* image at the top, text at the bottom */
        gap: 24px;
    }

    .trade-card-text-col {
        padding: 20px;
    }

    .trade-hero-description-text {
        padding: 0;
    }

    .trade-card-text-col {
        gap: 0px;
    }

    .trade-card-image-col {
        margin-top: -60px;
        /* Pull the image UPWARD so it pops out of the white box! */
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .trade-image-wrapper-outer {
        max-width: 100%;
        position: relative;
        bottom: auto;
    }

    .trade-hero-main-img {
        margin-right: 0;
        margin-top: 0;
        width: 100%;
        height: auto;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .trade-hero-section {
        padding: 100px 0 40px 0;
    }

    .trade-hero-main-title {
        font-size: 25px;
    }

    .trade-hero-pre-title {
        font-size: 18px;

    }

    .trade-hero-white-card {
        padding: 0px;
    }

    .trade-hero-description-text {
        font-size: 14px;
        line-height: 1.95;
        padding: 0;
        margin-bottom: 10px;
    }

    .trade-hero-action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .trade-btn-cta {
        width: 100%;
    }

    .trade-image-wrapper-outer {
        max-width: 100%;
    }
}

/* =====================================================
   SECTION 2: SIKA AGENCY & FEATURES SLIDER
   ===================================================== */
.trade-services-section {
    padding: 60px 0 100px 0;
    position: relative;
    overflow: visible;
}

.trade-services-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
}

.trade-services-split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4%;
}

/* Left Column (Content) */
.trade-services-text-col {
    flex: 0 0 66%;
    max-width: 66%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: right;
    z-index: 10;
}

/* Header Row containing titles and logos */
.trade-services-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* Logos at the top */
.trade-services-logos-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
}

.trade-services-logo-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.trade-services-logo-card.services-brand-logo-card {
    width: 90px;
}

.trade-services-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.02);
}

.trade-services-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Title block */
.trade-services-title-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trade-services-pre-title {
    font-size: 15px;
    font-weight: 700;
    color: #153152;
    /* Navy */
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    display: block;
    letter-spacing: 0.5px;
}

.trade-services-main-title {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #153152;
    line-height: 1.4;
    margin: 0;
}

/* Description */
.trade-services-description-text {
    font-size: 15px;
    line-height: 2.1;
    color: #4D4D4D;
    margin: 0;
    font-weight: 500;
    text-align: justify;
}

/* Divider */
.trade-services-divider {
    height: 1px;
    background-color: rgba(21, 49, 82, 0.08);
    margin: 4px 0;
}

/* Features Block */
.trade-services-features-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    max-width: 100%;
}

.trade-services-features-heading {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #153152;
    margin: 0;
}

/* Horizontal features slider */
.trade-services-features-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 18px 4px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    max-width: 100%;
    width: 100%;
}

/* Custom Scrollbar for Slider */
.trade-services-features-slider::-webkit-scrollbar {
    height: 6px;
}

.trade-services-features-slider::-webkit-scrollbar-track {
    background: rgba(21, 49, 82, 0.03);
    border-radius: 10px;
}

.trade-services-features-slider::-webkit-scrollbar-thumb {
    background: rgba(251, 185, 0, 0.4);
    border-radius: 10px;
}

.trade-services-features-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 185, 0, 0.7);
}

/* Feature Card */
.trade-services-feature-card {
    flex: 0 0 250px;
    background: #FFFFFF;
    /* Premium White Feature Cards */
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    box-shadow: 0 10px 30px -10px rgba(21, 49, 82, 0.08), 0 1px 3px rgba(21, 49, 82, 0.02);
    border: 1px solid rgba(21, 49, 82, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.trade-services-feature-card:hover {
    background: #FFFFFF;
    box-shadow: 0 20px 40px -15px rgba(21, 49, 82, 0.15), 0 2px 6px rgba(21, 49, 82, 0.03);
    border-color: rgba(251, 185, 0, 0.25);
}

/* Feature Header containing icon and title side by side */
.trade-services-feature-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.trade-services-feature-icon-box {
    width: 32px;
    height: 32px;
    background: rgba(21, 49, 82, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #153152;
    transition: all 0.3s ease;
}

.trade-services-feature-card:hover .trade-services-feature-icon-box {
    background: #FBB900;
    color: #153152;
}

.trade-services-icon {
    font-size: 16px;
}

.trade-services-feature-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #153152;
    margin: 0;
    font-family: 'Yekan Bakh', sans-serif;
}

.trade-services-feature-desc {
    font-size: 11.5px;
    line-height: 1.8;
    color: #666666;
    margin: 0;
    font-weight: 500;
}

/* Button row aligned to Left in RTL */
.trade-services-action-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* Right Column (Image) */
.trade-services-image-col {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.trade-services-image-wrapper {
    width: 100%;
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
}

.trade-services-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.trade-services-img:hover {
    transform: scale(1.015);
}

/* =====================================================
   SECTION 3: PRODUCTS SLIDER & TABS
   ===================================================== */
.trade-products-section {
    padding: 0px 0;
    /* Matches the light gray background from design */
    direction: rtl;
    overflow: hidden;
    /* Prevent horizontal scroll bleed */
    width: 100%;
}

.trade-products-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.trade-products-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 24px;
}

.trade-products-title-block {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.trade-products-yellow-line {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.trade-products-title-texts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.trade-products-pre-title {
    font-size: 15px;
    color: #4D4D4D;
    font-weight: 500;
}

.trade-products-main-title {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #153152;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

/* Category Tabs */
.trade-products-tabs-block {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.trade-products-tabs {
    display: flex;
    gap: 12px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 40px;
    padding: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.trade-products-tabs::-webkit-scrollbar {
    height: 4px;
}

.trade-products-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.trade-products-tabs::-webkit-scrollbar-thumb {
    background: rgba(21, 49, 82, 0.15);
    border-radius: 10px;
}

.trade-products-tab-btn {
    flex: 1 0 auto;
    text-align: center;
    background-color: transparent;
    color: #4D4D4D;
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.trade-products-tab-btn:hover {
    background-color: #f8f9fc;
}

.trade-products-tab-btn.active {
    background-color: #e2e4ed;
    /* Active pill background */
    color: #153152;
    box-shadow: none;
}

/* Products Slider */
.trade-products-slider-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.trade-products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 30px 4px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
}

/* Custom Scrollbar for Slider */
.trade-products-slider::-webkit-scrollbar {
    height: 6px;
}

.trade-products-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.trade-products-slider::-webkit-scrollbar-thumb {
    background: rgba(21, 49, 82, 0.2);
    border-radius: 10px;
}

.trade-products-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(21, 49, 82, 0.4);
}

.trade-product-card {
    flex: 0 0 230px;
    max-width: 230px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.trade-product-card:hover {

    box-shadow: 0 20px 40px rgba(21, 49, 82, 0.08);
}

.trade-product-img-wrapper {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.trade-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trade-product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-product-title {
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #153152;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.trade-product-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ffb700;
    border-radius: 50%;
}

.trade-product-code {
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 12px;
    color: #888888;
    margin: 0;
    direction: ltr;
    /* Important for SikaÂ® brand codes */
}

/* =====================================================
   PRODUCT MODAL STYLES
   ===================================================== */
.trade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    direction: rtl;
}

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

.trade-modal-content {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.trade-modal-overlay.active .trade-modal-content {
    transform: translateY(0);
}

.trade-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Left for RTL */
    background: #f1f3f7;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4d4d4d;
    transition: all 0.2s ease;
}

.trade-modal-close:hover {
    background: #e2e4ed;
    color: #153152;
}

.trade-modal-body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.trade-modal-image-col {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fc;
    border-radius: 16px;
    padding: 20px;
    height: 300px;
}

.trade-modal-image-col img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trade-modal-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trade-modal-title {
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #153152;
    margin: 0 0 8px 0;
}

.trade-modal-code {
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 15px;
    color: #666666;
    margin: 0 0 24px 0;
    direction: ltr;
    display: inline-block;
    background: #f1f3f7;
    padding: 4px 12px;
    border-radius: 30px;
    align-self: flex-start;
}

.trade-modal-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #4d4d4d;
    text-align: justify;
    white-space: pre-line;
}

/* =====================================================
   SECTION 4: PROJECTS PORTFOLIO
   ===================================================== */
.trade-projects-sec4 {
    padding: 60px 0;
    direction: rtl;
    width: 100%;
    overflow: hidden;
}

.trade-projects-container-sec4 {

    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    box-sizing: border-box;
}

.trade-projects-header-sec4 {
    display: flex;

    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.trade-projects-title-block-sec4 {
    display: flex;

    align-items: center;
    gap: 16px;
    min-width: 0;
}

.trade-projects-yellow-line-sec4 {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.trade-projects-title-texts-sec4 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.trade-projects-pre-title-sec4 {
    font-size: 15px;
    color: #4D4D4D;
    font-weight: 500;
}

.trade-projects-main-title-sec4 {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #153152;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.trade-projects-actions-sec4 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trade-btn-all-projects-sec4 {
    background: transparent;
    border: none;
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #153152;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    opacity: 0.6;
}

.trade-projects-slider-wrapper-sec4 {
    width: 100%;
    box-sizing: border-box;
}

.trade-projects-slider-sec4 {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 30px 4px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
}

.trade-projects-slider-sec4::-webkit-scrollbar {
    height: 6px;
}

.trade-projects-slider-sec4::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.trade-projects-slider-sec4::-webkit-scrollbar-thumb {
    background: rgba(21, 49, 82, 0.2);
    border-radius: 10px;
}

.trade-project-card-sec4 {
    flex: 0 0 320px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.trade-project-card-sec4:hover {
    box-shadow: 0 20px 40px rgba(21, 49, 82, 0.08);
}

.trade-project-img-wrapper-sec4 {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.trade-project-img-sec4 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trade-project-info-sec4 {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trade-project-title-sec4 {
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #153152;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yellow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffb700;
    border-radius: 50%;
    flex-shrink: 0;
}

.trade-project-bullets-sec4 {
    flex-grow: 1;
    margin-bottom: 20px;
}

.trade-project-bullets-sec4 p {
    font-size: 13px;
    color: #888888;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.trade-project-footer-sec4 {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.trade-project-details-btn-sec4 {
    background: #f1f3f7;
    color: #153152;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.trade-project-card-sec4:hover .trade-project-details-btn-sec4 {
    background: #e2e4ed;
}

/* Modals for sec4 */
.trade-project-modal-body {
    flex-direction: column !important;
    align-items: stretch !important;
}

.trade-project-modal-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.trade-project-modal-gallery img {
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
}

.trade-form-group {
    margin-bottom: 15px;
    text-align: right;
}

.trade-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #153152;
}

.trade-form-group input,
.trade-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    font-family: 'Yekan Bakh', sans-serif;
    box-sizing: border-box;
}

/* Collab Modal Specific Layout */
.trade-collab-modal-content {
    max-width: 800px !important;
}

.trade-collab-modal-content .trade-modal-body {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
}

.trade-collab-form {
    width: 100%;
    box-sizing: border-box;
}

.trade-collab-modal-header {
    border-bottom: 1px solid #eef2f5;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.trade-collab-modal-header .trade-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #153152;
}

.trade-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.trade-form-row .trade-form-group {
    flex: 1;
    margin-bottom: 0;
}

.trade-form-group-full {
    margin-top: 15px;
    margin-bottom: 25px;
}

.trade-form-submit-row {
    text-align: center;
    margin-top: 20px;
}

.trade-form-submit-row .trade-btn-cta {
    width: auto !important;
    min-width: 200px;
    padding: 12px 35px;
    font-size: 15px;
    display: inline-block;
}

/* =====================================================
   SECTION 5: ABOUT ATRIN & CLIENT LOGOS
   ===================================================== */
.trade-about-sec5 {
    position: relative;
    padding: 80px 0;
    direction: rtl;
    width: 100%;
    overflow: visible;
}

.trade-about-desktop-view {
    display: block;
    width: 100%;
}

.trade-about-mobile-view {
    display: none;
    width: 100%;
}

.trade-about-bg-favicon {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.trade-about-container-sec5 {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Top Header outside White Card */
.trade-about-header-sec5 {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    padding-right: 140px;

    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.trade-about-text-wrap-sec5 {
    flex: 1;
    max-width: 65%;
}

.trade-about-pre-title-sec5 {
    display: block;
    color: #153152;
    font-family: 'Rokh Pro', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.trade-about-main-title-sec5 {
    color: #153152;
    font-family: 'Rokh Pro', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 20px;
}

.trade-about-desc-sec5 {
    color: #4a5568;
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify;
}

.trade-about-actions-sec5 {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-bottom: 8px;
    padding: 0px;
}

/* White Card layout below header */
.trade-about-card-sec5 {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
    display: flex;
    direction: rtl;
    width: 100%;
    overflow: visible;
    position: relative;
    border: 1px solid #eef2f6;
    align-items: flex-end;
}

.trade-about-img-col-sec5 {
    flex: 0 0 44%;
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-top: -350px;
    /* Sticking out high! */
    padding-right: 0px;
    z-index: 5;
}

.trade-about-img-sec5 {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

.trade-about-content-col-sec5 {
    flex: 1;
    min-width: 0;
    /* CRITICAL: prevent flex item from expanding past viewport */
    overflow: hidden;
    /* Clips any bleeders */
    padding: 60px 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logos Area inside Left Column */
.trade-logos-area-sec5 {
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 2;
}

/* Logos Marquee Animation */
.trade-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.trade-marquee-wrapper:last-child {
    margin-bottom: 0;
}

.trade-marquee-track {
    display: flex;
    width: max-content;
    gap: 40px;
}

.trade-marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: auto;
}

.trade-marquee-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: all 0.3s ease;
}

.trade-marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

@keyframes marquee-ltr {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.trade-marquee-rtl .trade-marquee-track {
    animation: marquee-rtl 25s linear infinite;
}

.trade-marquee-ltr .trade-marquee-track {
    animation: marquee-ltr 25s linear infinite;
}

/* Pause on Hover */
.trade-marquee-wrapper:hover .trade-marquee-track {
    animation-play-state: paused;
}

/* =====================================================
   SECTION RESPONSIVE MEDIA QUERIES
   ===================================================== */
@media (max-width: 1024px) {
    .trade-services-section {
        padding: 50px 0;
        overflow-x: hidden;
        /* CRITICAL: Prevent entire section from causing horizontal page scroll */
        width: 100%;
    }

    .trade-services-card {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .trade-about-actions-sec5 {
        padding: 10px;

    }

    .trade-about-text-wrap-sec5 {
        flex: 1;
        padding: 10px;
        max-width: 100%;
    }

    .trade-services-split-row {
        flex-direction: column;
        gap: 32px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .trade-services-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .trade-services-image-col,
    .trade-services-text-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .trade-services-text-col {
        overflow: hidden !important;
        /* Critical to prevent flex item from expanding past viewport */
    }

    .trade-services-features-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .trade-services-img {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        display: block;
    }

    .trade-services-action-buttons {
        justify-content: center;
    }

    .trade-products-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Section 5 Tablet / Mobile responsive layout */
    .trade-about-desktop-view {
        display: none !important;
    }

    .trade-about-mobile-view {
        display: block !important;
    }

    .trade-about-mobile-img-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        box-sizing: border-box;
        margin-top: -120px;
        /* Sticks out beautifully! */
        margin-bottom: 10px;
        position: relative;
        z-index: 5;
    }

    .trade-about-mobile-img {
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .trade-about-mobile-content-card {
        background-color: #ffffff;
        border-radius: 24px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
        border: 1px solid #eef2f6;
        padding: 45px 35px;
        position: relative;
        overflow: visible;
        /* CRITICAL for image sticking out */
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 100px;
        /* Space for the sticking out image */
    }

    .trade-about-mobile-content-card .trade-logos-area-sec5 {
        border-top: 1px solid #eef2f6;
        padding-top: 30px;
        margin-top: 10px;
    }
}

@media (max-width: 640px) {
    .trade-services-card {
        padding: 0;
    }

    .trade-services-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .trade-services-title-block {
        text-align: center;
        align-items: center;
    }

    .trade-services-logos-wrapper {
        justify-content: center;
    }

    .trade-services-main-title {
        font-size: 22px;
    }

    .trade-services-pre-title {
        font-size: 13.5px;
    }

    .trade-services-description-text {
        font-size: 13.5px;
        line-height: 1.95;
    }

    .trade-services-features-heading {
        text-align: center;
    }

    .trade-services-action-buttons {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
    }

    .trade-services-action-buttons .trade-btn-cta {
        width: 100%;
    }

    .trade-products-section {
        padding: 0px 0;
    }

    .trade-products-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .trade-products-title-block {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .trade-products-title-texts {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .trade-products-all-btn-block {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .trade-products-all-btn-block .trade-btn-cta {
        width: auto;
        padding: 0 30px;
    }

    .trade-products-yellow-line {
        display: none;
    }

    .trade-products-main-title {
        font-size: 19px;
        line-height: 1.5;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
    }

    .trade-products-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .trade-products-tab-btn {
        flex: 0 0 auto;
    }

    /* Convert slider to 2-column grid */
    .trade-products-slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow-x: hidden;
        padding: 10px 0;
    }

    .trade-product-card {
        flex: none;
        max-width: none;
        width: 100%;
        padding: 12px 8px;
    }

    .trade-product-img-wrapper {
        height: 100px;
        margin-bottom: 8px;
    }

    .trade-product-title {
        font-size: 13px;
    }

    .trade-product-category,
    .trade-product-code {
        font-size: 11px;
    }

    /* Modal Responsive */
    .trade-modal-content {
        padding: 24px;
        width: 95%;
    }

    .trade-modal-close {
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .trade-modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .trade-modal-image-col {
        height: 200px;
        width: 100%;
        max-width: 100%;
    }

    .trade-modal-title {
        font-size: 22px;
        text-align: center;
    }

    .trade-modal-code {
        align-self: center;
        margin-bottom: 16px;
    }

    .trade-modal-desc {
        font-size: 14px;
    }

    /* Section 4 Mobile */
    .trade-projects-header-sec4 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .trade-projects-title-block-sec4 {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .trade-projects-yellow-line-sec4 {
        display: none;
    }

    .trade-projects-title-texts-sec4 {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .trade-projects-main-title-sec4 {
        font-size: 19px;
        line-height: 1.5;
    }

    .trade-projects-actions-sec4 {
        flex-direction: column;
        width: 100%;
    }

    .trade-projects-actions-sec4 .trade-btn-cta {
        width: 100%;
    }

    .trade-project-card-sec4 {
        flex: 0 0 280px;
        max-width: 280px;
    }

    /* Mobile form rows stacking */
    .trade-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .trade-form-submit-row .trade-btn-cta {
        width: 100% !important;
    }

    /* Section 5 Mobile responsive */
    .trade-about-sec5 {
        padding: 50px 0 40px 0;
    }

    .trade-about-mobile-img-wrap {
        margin-top: -80px;
        /* Sticks out beautifully */
        margin-bottom: 15px;
    }

    .trade-about-mobile-img {
        max-height: 100%;
    }

    .trade-about-mobile-content-card {
        padding: 0px;
        border-radius: 16px;
        gap: 25px;
        margin-top: 75px;
        /* Space for the sticking out image */
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
        border: 1px solid #eef2f6;
        position: relative;
        overflow: visible;
        box-sizing: border-box;
    }

    .trade-about-bg-favicon {
        width: 160px;
        height: 160px;
        top: 15px;
        right: 15px;
        opacity: 0.03;
    }

    .trade-about-text-wrap-sec5 {
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .trade-about-pre-title-sec5 {
        font-size: 15.5px;
        text-align: center;
        margin-bottom: 10px;
    }

    .trade-about-main-title-sec5 {
        font-size: 22px;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 15px;
    }

    .trade-about-desc-sec5 {
        font-size: 15px;
        line-height: 1.8;
        text-align: center;
    }

    .trade-logos-area-sec5 {
        margin-bottom: 15px;
        /* Spacing below the logos, before the buttons! */
        width: 100%;
        overflow: hidden;
        padding: 10px;
    }

    .trade-about-actions-sec5 {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0;
    }

    .trade-about-actions-sec5 .trade-btn-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px;
    }

    .trade-marquee-track {
        gap: 30px;
    }

    .trade-marquee-item {
        width: auto;
        height: 80px;
    }
}
