/* ================================================
   Banners Grid - Section Styles
   Flexible grid with 2-column internal banner layout
   ================================================ */

/* ------------------------------------------------
   Base Section
   ------------------------------------------------ */
.banners-grid {
    padding: 6rem 0;
    position: relative;
}

.banners-grid--inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100% !important; /* Prevent external CSS from breaking layout */
}

/* ------------------------------------------------
   Section Header
   ------------------------------------------------ */
.banners-header {
    margin-bottom: 4rem;
    text-align: left; /* Left aligned like other sections */
}

.banners-header .feature_block_heading {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.316;
    color: #1e1e23;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 1rem;
}

/* Green underline */
.banners-header .feature_block_heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #00e65f;
}

/* ------------------------------------------------
   Banners Grid (Using data-columns pattern)
   ------------------------------------------------ */
.banners-grid-container {
    display: grid;
    gap: 2rem;
}

/* Ensure grid items fill their grid cells */
.banners-grid-container > * {
    width: auto !important;
    max-width: none !important;
}

/* 1 Column */
.banners-grid-container[data-columns="1"] {
    grid-template-columns: 1fr;
}

/* 2 Columns */
.banners-grid-container[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 Columns */
.banners-grid-container[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

/* ------------------------------------------------
   Individual Banner Card
   ------------------------------------------------ */
.banner-card {
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid transparent;
    width: 100% !important; /* Prevent external CSS from breaking layout */
    max-width: none !important;
}

/* Internal 2-column layout (content 60% | image 40%) */
.banner-card-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: center;
}

/* ------------------------------------------------
   Banner Content (Left Side)
   ------------------------------------------------ */
.banner-content {
    display: flex;
    flex-direction: column;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1e1e23;
}

.banner-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #1e1e23;
    margin-bottom: 1.5rem;
}

.banner-button-wrapper {
    margin-top: auto;
}

/* Green Secondary Button Style */
.button.button-secondary {
    background-color: #00e65f;
    color: #1e1e23;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button.button-secondary:hover {
    background-color: #00a843;
    color: #1e1e23;
}

/* ------------------------------------------------
   Banner Image (Right Side)
   ------------------------------------------------ */
.banner-image-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1024px) {
    .banners-grid {
        padding: 4rem 0;
    }

    .banners-header {
        margin-bottom: 3rem;
    }

    .banners-grid-container {
        gap: 1.75rem;
    }

    .banner-card {
        padding: 1.75rem;
    }

    .banner-card-inner {
        gap: 1.75rem;
    }

    .banner-title {
        font-size: 1.375rem;
    }

    .banner-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .banners-grid {
        padding: 3rem 0;
    }

    .banners-header {
        margin-bottom: 2.5rem;
    }

    /* All grids become 1 column on mobile */
    .banners-grid-container[data-columns="2"],
    .banners-grid-container[data-columns="3"] {
        grid-template-columns: 1fr;
    }

    .banners-grid-container {
        gap: 1.5rem;
    }

    /* Banners become single column internally */
    .banner-card-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .banner-content {
        order: 1;
    }

    .banner-image-wrapper {
        order: 2;
    }

    .banner-card {
        padding: 1.5rem;
    }

    .banner-title {
        font-size: 1.25rem;
    }

    .banner-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .banners-grid {
        padding: 2.5rem 0;
    }

    .banners-header {
        margin-bottom: 2rem;
    }

    .banners-grid-container {
        gap: 1.25rem;
    }

    .banner-card {
        padding: 1.25rem;
    }

    .banner-card-inner {
        gap: 1.25rem;
    }

    .banner-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .banner-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .button.button-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}