/* =========================================
   FULL TRADE LIST BANNER SECTION STYLING
   ========================================= */
html {                      
    scroll-behavior: smooth;
}                           

.trade-list-banner {
    background: linear-gradient(
        120deg,
        #c8e6c5 0%,
        #d9edcf 55%,
        #eee3bd 100%
    ); /* Smooth green-to-gold gradient background */
    padding: 70px 0 0 0; /* Removed side padding so bottom strip hits screen edges */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevents horizontal scrollbar */
}

.trade-banner-container {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px; /* Internal container padding keeps text aligned nicely */
    text-align: left;
}

/* Small Subtitle Category Tag */
.trade-banner-tag {
    display: inline-block;
    color: #a47a22; /* Metallic Gold Accent */
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Main Heading Title */
.trade-banner-title {
    font-size: 4rem;
    font-weight: 900;
    color: #17352d; /* Dark Muted Green */
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-transform: uppercase;
    max-width: 900px;
}

/* Paragraph Subtitle */
.trade-banner-desc {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 650px;
    line-height: 1.6;
    font-weight: 500;
}

/* Full-Screen Edge-to-Edge Strip (Green & Gold Theme) */
.warning-tape-strip {
    height: 20px;
    width: 100vw; /* Spans 100% full screen width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 40px;
    background: repeating-linear-gradient(
        -45deg,
        #a47a22,       /* Metallic Gold */
        #a47a22 20px,  /* Stripe Width */
        #285b40 20px,  /* Deep Green */
        #285b40 40px   /* Stripe Width */
    );
    border-top: 1px solid rgba(40, 91, 64, 0.2);
    border-bottom: 1px solid rgba(40, 91, 64, 0.2);
}

/* =========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================= */

/* Tablet Screens */
@media (max-width: 992px) {
    .trade-banner-title {
        font-size: 3rem;
    }
    .trade-banner-desc {
        font-size: 1.1rem;
    }
}

/* Mobile Screens */
@media (max-width: 600px) {
    .trade-list-banner {
        padding-top: 50px;
    }
    .trade-banner-title {
        font-size: 2.2rem;
    }
    .trade-banner-tag {
        font-size: 0.85rem;
    }
    .trade-banner-desc {
        font-size: 1rem;
    }
    .warning-tape-strip {
        height: 16px;
    }
}





/* =========================================
   ALTERNATING TRADES LIST SECTION STYLING
   ========================================= */

.trades-listing-section {
    background-color: #f4f2ea; /* Soft beige background */
    padding: 60px 20px 0px 20px;
    width: 100%;
    box-sizing: border-box;
}

.trades-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Individual Trade Row */
.trade-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* FIX: Keep elements tightly grouped */
    gap: 40px; /* Reduced overall gap between Image Side and Info Side */
    padding-bottom: 60px;
    border-bottom: 1px dashed rgba(40, 91, 64, 0.2);
}

.trade-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Media Side (Big Number + Image Box) */
.trade-media-side {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* Tight gap between number and image */
    flex: 0 0 auto; /* FIX: Prevents the box from stretching and creating extra whitespace */
}

.trade-big-num {
    font-size: 5rem;
    font-weight: 900;
    color: #285b40; /* Deep Green Branding */
    line-height: 0.9;
}

.trade-img-box {
    width: 160px;   /* Your preferred width */
    height: 160px;  /* Your preferred height */
    background: #ffffff; /* Clean white background */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trade-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces the PNG image to take up the full box size */
    padding: 0; /* Removes all internal space/padding */
}

/* Info Side (Category, Title, Desc, Meta, Button) */
.trade-info-side {
    flex: 1.2;
    text-align: left;
}

.trade-category {
    font-size: 0.85rem;
    font-weight: 800;
    color: #a47a22; /* Metallic Gold Accent */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.trade-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #17352d;
    text-transform: uppercase;
    margin-bottom: 14px;
    line-height: 1.1;
}

.trade-desc {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Meta Grid (Duration, Best For, Fee) */
.trade-meta-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #17352d;
}

.meta-value.highlight {
    color: #e53e3e; /* Red color for confirmations */
}

/* Enquire Button */
.enquire-btn {
    display: inline-block;
    background-color: #17352d;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.enquire-btn:hover {
    background-color: #285b40;
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================= */

@media (max-width: 992px) {
    /* Stack the main row components vertically */
    .trade-row {
        display: flex;
        flex-direction: column !important;
        align-items: stretch;
        gap: 25px;
        padding-bottom: 40px;
    }
    
    /* 
      Inside the media side, we change the order so 
      the image box comes first, and the big number comes second.
    */
    .trade-media-side {
        display: flex;
        flex-direction: column; /* Image first, Big Number second */
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        order: 1; /* Forces media side (Image + Number) to appear before text */
    }

    /* 
      Forces the text info side to appear right after the image and number 
    */
    .trade-info-side {
        width: 100%;
        order: 2; 
    }

    /* Adjust image box sizing for mobile/tablet */
    .trade-img-box {
        width: 100% !important;
        max-width: 100%;
        height: 200px;
    }

    .trade-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .trades-listing-section {
        padding: 40px 15px;
    }

    .trades-container {
        gap: 50px;
    }

    .trade-img-box {
        height: 180px;
    }

    .trade-big-num {
        font-size: 3rem; /* Scales down the big numbers nicely on smaller phones */
    }

    .trade-meta-grid {
        gap: 15px;
    }
}