/* Dealer Corner — GBX briefing template styles.
 * Extracted from Theo's supplied HTML template, namespaced to the
 * .gbx-* classes so it only affects sections rendered by the
 * Dealer Corner Elementor widgets (or the legacy HTML content mode).
 */

.gbx-main-wrapper,
.gbx-hero-section,
.gbx-intro-section,
.gbx-product-section,
.gbx-features-section,
.gbx-startup-section,
.gbx-service-section,
.gbx-support-section,
.gbx-footer-section {
    font-family: "DM Sans", Sans-serif;
}

.gbx-main-wrapper{
    width:100%;
    overflow:hidden;
}

/* =========================================================
   COMMON STYLES
========================================================= */

.gbx-container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.gbx-section-space{
    padding:60px 0 !important;
}

/* Collapse the top padding when two GBX sections sit back-to-back.
   Covers raw HTML mode (direct siblings) and Elementor's nested wrappers
   (each widget is its own .elementor-element / .elementor-widget). */
  /*.gbx-section-space + .gbx-section-space,
.elementor-widget + .elementor-widget .gbx-section-space,
.elementor-element + .elementor-element > .elementor-widget-container > .gbx-section-space,
.elementor-element + .elementor-element .gbx-section-space{
  padding-top:0; 
}*/

.gbx-section-heading{
    margin-bottom:40px;
    text-align:center;
}

.gbx-section-subtitle{
    display:inline-block;
    color:#156dac;
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:15px;
}

.gbx-section-title{
    font-size:42px;
    line-height:1.2;
    color:#111C27;
    margin-bottom:20px;
    margin-top: 0;
}

.gbx-section-text{
    max-width:850px;
    margin:0 auto;
    color:#5f6d82;
    font-size:18px;
}

.gbx-btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:15px 30px;
    background:linear-gradient(135deg,#156dac,#1457b8);
    color:#ffffff;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    transition:0.3s ease;
}

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

/* =========================================================
   HERO SECTION
========================================================= */

.gbx-hero-section{
    background:linear-gradient(232deg, #156dac 0%, #0B9BCB 99%) !important;
    padding:100px 0;
    position:relative;
    overflow:hidden;
}

.gbx-hero-section::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    border-radius:50%;
    background:rgba(255,255,255,0.06);
    top:-200px;
    right:-150px;
}

.gbx-hero-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
    position:relative;
    z-index:2;
}

.gbx-hero-content{
    width:55%;
}

.gbx-hero-date{
    display:inline-block;
    background:rgba(255,255,255,0.12);
    color:#ffffff;
    padding:8px 16px;
    border-radius:30px;
    font-size:13px;
    margin-bottom:25px;
}

.gbx-hero-title{
    font-size:56px;
    line-height:1.15;
    color:#ffffff;
    margin-bottom:25px;
    font-family: "DM Sans", Sans-serif;
    font-weight: 600;
}

.gbx-hero-text{
    color:#dceeff;
    font-size:18px;
    margin-bottom:35px;
}

.gbx-hero-image{
    width:40%;
}

.gbx-hero-image-box{
    background:#ffffff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 20px 60px rgba(0,0,0,0.18);
}

.gbx-hero-image-box img{
    max-width:100%;
    height:auto;
    display:block;
}

/* =========================================================
   INTRO SECTION
========================================================= */

.gbx-intro-section{
    background:#ffffff;
}

.gbx-intro-wrapper{
    max-width:1000px;
    margin:0 auto;
    text-align:center;
}

.gbx-intro-text{
    font-size:19px;
    color:#5c6780;
}

.gbx-main-wrapper p:last-child {
    margin: 0;
}

/* =========================================================
   PRODUCT CARDS
========================================================= */

.gbx-product-section{
    background:#F1F8FF;
}

.gbx-product-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.gbx-product-card{
    background:#ffffff;
    border-radius:20px;
    padding:40px;
    box-shadow:0 10px 35px rgba(0,0,0,0.05);
    border:1px solid #e3edf7;
}

.gbx-product-title{
    font-size:30px;
    margin-bottom:20px;
    color:#111C27;
}

.gbx-product-text{
    color:#5f6d82;
    margin-bottom:15px;
}

/* =========================================================
   FEATURES SECTION
========================================================= */

.gbx-features-section{
    background:#ffffff;
}

.gbx-features-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.gbx-feature-card{
    background:#f7fbff;
    border:1px solid #dce9f7;
    border-radius:18px;
    padding:35px;
}

.gbx-feature-title{
    font-size:24px;
    color:#111C27;
    margin-bottom:15px;
}

.gbx-feature-text{
    color:#5f6d82;
}

/* =========================================================
   STARTUP DISPLAY
========================================================= */

.gbx-startup-section{
    background:#F1F8FF;
}

.gbx-startup-wrapper{
    display:flex;
    align-items:center;
    gap:50px;
}

.gbx-startup-visual{
    width:45%;
}

.gbx-display-card{
    background:#ffffff;
    border-radius:24px;
    padding:35px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.gbx-display-item{
    background:#f7fbff;
    border:1px solid #dce9f7;
    padding:18px;
    border-radius:12px;
    margin-bottom:18px;
}

.gbx-startup-content {
    width: 100%;
}

.gbx-startup-content .imagegrid {
    width: 100%;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gbx-startup-content .imagegrid .imagebox {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 10px;
}

.gbx-startup-content .imagegrid .imagebox img {
    height: 215px;
    object-fit: contain;
}

/* =========================================================
   SERVICEABILITY SECTION
========================================================= */

.gbx-service-section{
    background:linear-gradient(232deg, #156dac 0%, #0B9BCB 99%) !important;
}

.gbx-service-title{
    color:#ffffff;
}

.gbx-service-text{
    color:#dceeff;
}

.gbx-service-grid{
    display:grid;
    grid-template-columns:repeat(1,1fr);
    gap:30px;
    margin-top:50px;
}

.gbx-service-card{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:20px;
    padding:40px;
}

.gbx-service-card-title{
    font-size:28px;
    color:#ffffff;
    margin-bottom:20px;
}

.gbx-service-card-text{
    color:#dceeff;
    margin-bottom:18px;
}

.gbx-service-section .gbx_service_row {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 40px;
    align-items: center;
    gap: 0;
}

.gbx-service-section .gbx_service_row .gbx-service-card {
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
}

.gbx-service-section .gbx_service_row .contentside {
    padding-bottom: 0;
    padding-right: 35px;
    width: 60%;
    flex-basis: 60%;
}

.gbx-service-section .gbx_service_row .imagepart {
    padding-right: 0;
    display: flex;
    width: 40%;
    flex-basis: 40%;
}

.gbx-service-section .gbx_service_row .imagepart img {
    width: 100%;
    border-radius: 10px;
    max-height: 450px;
    object-fit: cover;
}

/* Auto-alternate: every other row flips the image to the left.
   Explicit overrides win via the modifier classes below. */
.gbx-service-section .gbx_service_row:nth-of-type(even) {
    flex-direction: row-reverse;
}

.gbx-service-section .gbx_service_row:nth-of-type(even) .contentside {
    padding-right: 0;
    padding-left: 35px;
}

.gbx-service-section .gbx_service_row--image-left {
    flex-direction: row-reverse;
}
.gbx-service-section .gbx_service_row--image-left .contentside {
    padding-right: 0;
    padding-left: 35px;
}
.gbx-service-section .gbx_service_row--image-right {
    flex-direction: row;
}
.gbx-service-section .gbx_service_row--image-right .contentside {
    padding-right: 35px;
    padding-left: 0;
}

/* When the dark service section sits next to a row that owns its own intro,
   collapse the duplicate top padding so the rows stack visually. */
.gbx-service-section + .gbx-service-section {
    padding-top: 0;
}

/* =========================================================
   SUPPORT SECTION
========================================================= */

.gbx-support-section{
    background:#ffffff;
}

.gbx-support-wrapper{
    max-width:1000px;
    margin:0 auto;
    text-align:center;
}

.gbx-support-box{
    background:#f7fbff;
    border:1px solid #dce9f7;
    border-radius:24px;
    padding:60px 40px;
}

.gbx-support-title{
    font-size:40px;
    margin-bottom:20px;
    color:#111C27;
}

.gbx-support-text{
    color:#5f6d82;
    font-size:18px;
    margin-bottom:20px;
}

/* =========================================================
   FOOTER
========================================================= */

.gbx-footer-section{
    background:#101827;
    padding:45px 0;
}

.gbx-footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.gbx-footer-logo{
    color:#ffffff;
    font-size:34px;
    font-weight:700;
}

.gbx-footer-address{
    color:#b6c1d2;
    font-size:15px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1024px){

    .gbx-hero-inner,
    .gbx-startup-wrapper{
        flex-direction:column;
    }

    .gbx-hero-content,
    .gbx-hero-image,
    .gbx-startup-content,
    .gbx-startup-visual{
        width:100%;
    }

    .gbx-product-grid,
    .gbx-features-grid,
    .gbx-service-grid{
        grid-template-columns:1fr;
    }

    .gbx-hero-title{
        font-size:42px;
    }

    .gbx-section-title{
        font-size:34px;
    }
}

@media(max-width:767px){
    .gbx-startup-content .imagegrid {
        grid-template-columns: repeat(1, 1fr);
    }

    .gbx-service-section .gbx_service_row,
    .gbx-service-section .gbx_service_row:nth-of-type(even),
    .gbx-service-section .gbx_service_row--image-left,
    .gbx-service-section .gbx_service_row--image-right {
        flex-direction: column;
    }

    .gbx-service-section .gbx_service_row .contentside,
    .gbx-service-section .gbx_service_row:nth-of-type(even) .contentside,
    .gbx-service-section .gbx_service_row--image-left .contentside,
    .gbx-service-section .gbx_service_row--image-right .contentside {
        padding: 0;
        width: 100%;
        flex-basis: 100%;
    }

    .gbx-service-section .gbx_service_row .imagepart {
        width: 100%;
        flex-basis: 100%;
    }

    .gbx-hero-text:last-child {
        margin: 0;
    }

    .gbx-hero-inner {
        gap: 40px;
    }

    .gbx-section-space{
        padding:40px 0;
    }

    .gbx-hero-title{
        font-size:34px;
    }

    .gbx-section-title{
        font-size:28px;
    }

    .gbx-support-title{
        font-size:30px;
    }

    .gbx-footer-inner{
        flex-direction:column;
        text-align:center;
    }
}
