/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --white: #ffffff;
    --dark: #111827;
    --gray: #6b7280;
}

/* ==========================================================================
   GLOBAL RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #fff;
    color: var(--dark);
    overflow-x: hidden;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding: 40px 7%;
    background: #fff;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.hero-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.jgm-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.bmf-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   HERO CONTENT
   ========================================================================== */
.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */
.back-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 30px;
    transition: .3s;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   TITLES
   ========================================================================== */
.hero-left h1 {
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    margin-bottom: 15px;
}

.hero-left h1 span {
    color: var(--primary);
}

.marathi-title {
    font-size: 34px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 25px;
}

/* ==========================================================================
   DESCRIPTION
   ========================================================================== */
.hero-left p {
    font-size: 17px;
    line-height: 30px;
    color: var(--gray);
    max-width: 700px;
}

/* ==========================================================================
   IMAGE
   ========================================================================== */
.machine-image-box {
    width: 100%;
    max-width: 500px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.machine-image-box img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   EXERCISE SECTION
   ========================================================================== */
.exercise-section {
    padding: 100px 7%;
    background: #f8fafc;
}

.exercise-section h2 {
    text-align: center;
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 60px;
}

.exercise-section h2 span {
    color: var(--primary);
}

.exercise-grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 30px;
}

/* ==========================================================================
   CARD
   ========================================================================== */
.exercise-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: .3s;
}

.exercise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.exercise-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.exercise-info {
    padding: 25px;
}

.exercise-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.exercise-info button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: .3s;
}

.exercise-info button:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   VIDEO POPUP
   ========================================================================== */
.video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.video-box {
    width: 100%;
    max-width: 950px;
    aspect-ratio: 16/9;
    position: relative;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #0f172a;
    padding: 30px;
    text-align: center;
}

.footer-content p {
    color: #cbd5e1;
    margin: 8px 0;
}

.footer-content span {
    color: #22c55e;
    font-weight: 700;
}

/* ==========================================================================
   MOBILE VIEW
   ========================================================================== */
@media (max-width:768px) {

    .hero {
        padding: 20px;
    }

    .hero-topbar {
        margin-bottom: 30px;
    }

    .jgm-logo {
        height: 55px;
    }

    .bmf-logo {
        height: 55px;
    }

    .hero-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .hero-left {
        order: 1;
        width: 100%;
    }

    .hero-right {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .back-btn {
        margin-bottom: 20px;
    }

    .hero-left h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .marathi-title {
        font-size: 24px;
    }

    .hero-left p {
        font-size: 15px;
        line-height: 25px;
    }

    .machine-image-box {
        max-width: 100%;
    }

    .machine-image-box img {
        height: auto;
        max-height: 450px;
    }

    .exercise-section {
        padding: 60px 20px;
    }

    .exercise-section h2 {
        font-size: 32px;
    }

    .exercise-grid {
        grid-template-columns: 1fr;
    }

    .exercise-card img {
        height: 220px;
    }
}

.exercise-marathi{
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}