/* =========================================
   1. GLOBAL & RESET STYLES
   ========================================= */
#bmw-brand-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#bmw-brand-page {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   2. SECTION 1: WHITE SECTION (Header & Stats)
   ========================================= */
#bmw-brand-page .bmw-wrapper {
    width: 100%;
    padding: 80px 50px;
    background-color: #ffffff;
}

#bmw-brand-page .bmw-container {
    max-width: 1200px;
    margin: 0 auto;
}

#bmw-brand-page .bmw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 80px;
}

#bmw-brand-page .text-side { flex: 2; }

#bmw-brand-page .main-heading {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -1px;
}

#bmw-brand-page .logo-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#bmw-brand-page .rotating-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 150px;
}

#bmw-brand-page .rotating-text {
    width: 100%;
    height: 100%;
    animation: bmwRotateText 15s linear infinite;
    transform: scale(1.1);
}

@keyframes bmwRotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#bmw-brand-page .circular-font {
    font-size: 18px;
    font-weight: 500;
    text-transform: capitalize;
    fill: #000000;
}

#bmw-brand-page .center-logo {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #ddd;
    z-index: 2;
}




/* Stats Styling */
#bmw-brand-page .stats-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#bmw-brand-page .stat-item { flex: 1; }

#bmw-brand-page .outline-text, 
#bmw-brand-page .outline-text1 {
    font-size: 90px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px #333;
    line-height: 1;
    margin-bottom: 10px;
}

#bmw-brand-page .outline-text1 { margin-top: -25px; }

#bmw-brand-page .label-wrap, 
#bmw-brand-page .label-wrap1 {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

#bmw-brand-page .label-wrap { margin-top: 30px; }
#bmw-brand-page .label-wrap1 { margin-top: 40px; }

#bmw-brand-page .dot-bg, 
#bmw-brand-page .dot-bg1 {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #ffe8d6;
    border-radius: 50%;
    z-index: 0;
    left: -10px;
}

#bmw-brand-page .dot-bg { top: -8px; }
#bmw-brand-page .dot-bg1 { top: -25px; }

#bmw-brand-page .label-wrap p, 
#bmw-brand-page .label-wrap1 p {
    font-size: 30px;
    font-weight: 500;
    color: #444;
    position: relative;
    z-index: 1;
}

#bmw-brand-page .label-wrap1 p {
    width: 40px;
    margin-top: -30px;
    line-height: 50px;
    padding-left: 6px;
}





/* =========================================
   3. SECTION 2: BLACK SECTION (Story)
   ========================================= */
#bmw-brand-page .story-section {
    width: 100%;
    padding: 100px 50px;
    background-color: #101010;
    color: #ffffff;
    min-height: 100vh;
}

#bmw-brand-page .story-container {
    max-width: 1200px;
    margin: 0 auto;
}

#bmw-brand-page .title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 80px;
}

#bmw-brand-page .top-title {
    font-size: 60px;
    font-weight: bolder;
    color: #ffffff;
}

#bmw-brand-page .line {
    width: 100px;
    height: 2px;
    background-color: #ff6600;
}

#bmw-brand-page .content-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

#bmw-brand-page .left-side { flex: 2; }

#bmw-brand-page .story-section .left-side .main-heading {
    font-size: 45px;
    font-weight: 700;
    color: #ffffff; 
    margin-left: 40px;
}

#bmw-brand-page .right-side {
    width: 48%;
    height: 120vh;
}

#bmw-brand-page .right-side p {
    font-size: 16px;
    line-height: 1.6;
    font-weight: bold;
    color: #7E7C7C;
    margin-bottom: 25px;
}

/* =========================================
   4. SECTION 3: GALLERY SECTION
   ========================================= */
#bmw-brand-page .bmw-gallery-section {
    width: 100%;
    background-color: #ffffff;
    padding: 20px 0 100px 0;
    margin-top: -60px; 
    position: relative;
    z-index: 5;
}

#bmw-brand-page .gallery-container {
    max-width: 1200px;
    margin: -240px auto 0 auto;
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 30px;
}

#bmw-brand-page .image-box {
    background-color: #f2f2f2;
    overflow: hidden;
    border-radius: 4px;
}

#bmw-brand-page .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#bmw-brand-page .col-left { width: 300px; }
#bmw-brand-page .img-1 { height: 410px; margin-top: 20px; }
#bmw-brand-page .col-center { width: 430px; }
#bmw-brand-page .img-2 { height: 570px; }
#bmw-brand-page .col-right { width: 320px; display: flex; flex-direction: column; gap: 30px; }
#bmw-brand-page .img-3, #bmw-brand-page .img-4 { height: 350px; }


/* =========================================
   MOBILE RESPONSIVE (768px) - FINAL FIX
   ========================================= */
@media (max-width: 768px) {
    
    /* --- SECTION 1: HEADER --- */
    #bmw-brand-page .bmw-wrapper { padding: 40px 20px; }
    #bmw-brand-page .bmw-header { flex-direction: column; align-items: flex-start; gap: 20px; }

    /* Heading size as per image */
    #bmw-brand-page .main-heading { 
        font-size: 34px; 
        text-align: left; 
        line-height: 1.1;
        font-weight: 800;
    }
    
    /* Logo at start */
    #bmw-brand-page .logo-side { width: 100%; justify-content: flex-start; display: flex; }
    #bmw-brand-page .rotating-container { width: 180px; height: 180px; }
    #bmw-brand-page .center-logo { width: 110px; height: 110px; }

    #bmw-brand-page .stats-row { flex-direction: column; gap: 40px; }
    #bmw-brand-page .outline-text, #bmw-brand-page .outline-text1 { font-size: 70px; }

    /* --- SECTION 2: STORY SECTION --- */
    #bmw-brand-page .story-section { padding: 80px 20px 150px 20px; height: auto; }
    
    /* Center lines and title */
    #bmw-brand-page .title-wrapper { 
        display: flex;
        flex-direction: column; 
        gap: 6px; 
        margin-bottom: px; 
        align-items: center; 
        width: 100%;
    }
    
    /* Orange Lines (Above and Below) */
    #bmw-brand-page .line { 
        display: block !important; 
        width: 100px; 
        height: 2px;
        background-color: #ff6600;
        
    }

    #bmw-brand-page .top-title { font-size: 32px; text-align: center; font-weight: 700; }

    /* Text Layout: Full Line and Start */
    #bmw-brand-page .content-grid { 
        display: flex;
        flex-direction: column; 
        gap: 10px; 
        width: 100%; /* Pura column cover karne ke liye */
    }

    #bmw-brand-page .story-section .left-side .main-heading { 
        margin-left: 0; 
        font-size: 28px; 
        text-align: left; 
        max-width: 320px; /* Heading 2 lines break */
        line-height: 1;
    }

    /* Paragraphs FULL LINE START TO END */
    #bmw-brand-page .right-side { 
        width: 100% !important; 
        max-width: 100% !important; 
        height: auto; 
    }
    
    #bmw-brand-page .right-side p { 
        font-size: 16px; 
        color: #7E7C7C !important; 
        margin-bottom: 25px;
        line-height: 1.6;
        font-weight: 600;
        text-align: left; /* Start alignment */
        width: 100% !important; /* Full line fix */
        display: block;
    }

    /* --- SECTION 3: GALLERY SECTION --- */
    #bmw-brand-page .gallery-container { 
        flex-direction: column; 
        padding: 0 20px; 
        margin-top: -100px; /* Image moves up over black section */
        gap: 20px; 
    }

    #bmw-brand-page .col-left, #bmw-brand-page .col-center, #bmw-brand-page .col-right { 
        width: 100% !important; 
    }

    #bmw-brand-page .img-1, #bmw-brand-page .img-2, #bmw-brand-page .img-3, #bmw-brand-page .img-4 { 
        height: 350px !important; 
        width: 100%;
        margin-top: 0 !important; 
    }
}