/* =========================================================
   ABOUT US — Yogayatan Group (mobile responsive)
   Shared header / mobile menu / footer styles come from style.css
   ========================================================= */

/* ---------- Page flow ---------- */
html,
body {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f7f5f0 !important;
}

.standard-section {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* =========================================================
   HERO + INTRO
   ========================================================= */
.header-section,
.intro-section {
    background: #f7f5f0;
    overflow: hidden;
}

.header-section {
    padding: 120px 20px 60px;
}

.about-header-content {
    width: min(820px, 92vw);
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.about-hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.intro-section {
    padding: 40px 20px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.intro-box {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.intro-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004b87;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.intro-box p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #475569;
    font-weight: 400;
    margin: 0;
}

/* =========================================================
   CHAIRMAN BANNER
   ========================================================= */
.chairman-slide {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #d9d4ca;
}

.chairman-img-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.chairman-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 40%;
    min-width: 450px;
    background-color: #e5e7eb;
    padding: 50px 70px 60px 60px;
    text-align: left;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chairman-info-box h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.chairman-info-box p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 35px;
}

.btn-view-profile {
    display: inline-block;
    text-decoration: none;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* =========================================================
   LEADERSHIP
   ========================================================= */
.leadership-slide-section {
    background-color: #f7f5f0;
    padding: 90px 0 80px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.leadership-intro {
    max-width: 780px;
    text-align: center;
    margin: 0 auto 55px;
    padding: 0 6vw;
}

.leadership-slide-title {
    font-size: 2.3rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}

.leadership-grid {
    width: 100%;
    margin: 0 auto;
    padding: 0 6vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Department headings (HEAD OFFICE, MARINE, …) */
.leadership-dept {
    grid-column: 1 / -1;
    margin: 30px 28px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2ddd2;
}

.leadership-dept:first-child {
    margin-top: 0;
}

.grid-leader-card {
    --pad-top: 28px;
    --pad-x: 28px;
    --pad-bottom: 28px;
    --text-h: 110px;

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
    overflow: hidden;
}

.grid-leader-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1;
}

.grid-leader-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #f1f1f1;
    z-index: 0;
    transition: inset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.grid-leader-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.grid-leader-img-wrap img.is-ready {
    opacity: 1;
}

.grid-leader-img-wrap .initials-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 600;
    color: #ffffff;
    background: #004b87;
    letter-spacing: 1px;
}

.grid-leader-img-wrap.show-fallback img {
    display: none;
}

.grid-leader-img-wrap.show-fallback .initials-fallback {
    display: flex;
}

.grid-bottom-content {
    display: flex;
    flex-direction: column;
    min-height: var(--text-h);
    padding-top: 24px;
    position: relative;
    z-index: 1;
}

.grid-leader-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
}

.grid-leader-card h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

.grid-leader-card p {
    font-size: 0.9rem;
    color: #6b7580;
    line-height: 1.5;
    margin: 0;
}

/* Hover only on devices with a real mouse (no sticky hover on phones) */
@media (hover: hover) {
    .grid-leader-card:hover .grid-leader-img-wrap::before {
        top: calc(-1 * var(--pad-top));
        left: calc(-1 * var(--pad-x));
        right: calc(-1 * var(--pad-x));
        bottom: -12px;
    }
}

/* =========================================================
   FOOTER MAP
   ========================================================= */
#footer-logo {
    width: 100%;
    max-height: 100%;
}

#india-map-modal-container {
    background-color: #ffffff;
}

.india-map-svg-wrap {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.india-map-svg-wrap svg {
    width: 100%;
    height: auto;
    background-color: #ffffff;
}

.claimed-territory {
    fill: #f1f1f1;
    stroke: #b0b0b0;
    stroke-width: 0.8;
    stroke-dasharray: 3, 2;
}

.state {
    fill: #9e9e9e;
    stroke: #ffffff;
    stroke-width: 0.7;
    transition: fill 0.2s;
    cursor: pointer;
}

.state:hover {
    fill: #6c6c6c;
}

.location-marker {
    fill: #000000;
    stroke: #ffffff;
    stroke-width: 1.5;
    cursor: pointer;
}

.location-marker:hover {
    fill: #d32f2f;
}

#india-tooltip {
    position: absolute;
    background: #212529;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    display: none;
    z-index: 2000;
    max-width: 220px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#india-tooltip .tt-name {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
}

#india-tooltip .tt-desc {
    font-size: 11px;
    color: #cfd8dc;
    line-height: 1.3;
}

#footer-india-loading,
#modal-india-loading {
    display: none;
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 10px;
}

#footer-india-map-thumb {
    height: 220px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    position: relative;
}

#footer-india-map-thumb svg {
    max-height: 100%;
}

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

/* ---------- Tablets (< 992px) ---------- */
@media (max-width: 991px) {
    .header-section {
        padding: 100px 20px 40px;
    }

    .intro-section {
        padding: 30px 16px 70px;
    }

    .intro-box h2 {
        font-size: 2rem;
    }

    .intro-box p {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .chairman-slide {
        height: 80vh;
        height: 80svh;
        min-height: 520px;
    }

    .chairman-info-box {
        width: 60%;
        min-width: 0;
        padding: 40px 40px 45px;
    }

    .chairman-info-box h2 {
        font-size: 2rem;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .leadership-slide-title {
        font-size: 2rem;
    }
}

/* ---------- Phones (< 768px) ---------- */
@media (max-width: 767px) {
    .header-section {
        padding: 90px 16px 20px;
    }

    .about-header-content {
        padding: 20px 10px;
        gap: 14px;
    }

    .about-hero-logo {
        max-width: 280px;
    }

    .intro-box {
        padding: 0 4px;
    }

    .intro-box h2 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .intro-box p {
        font-size: 1rem;
    }

    /* Chairman: photo on top, grey info box below it (no overlap) */
    .chairman-slide {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .chairman-img-bg {
        position: relative;
        inset: auto;
        height: 60vh;
        height: 60svh;
        min-height: 360px;
    }

    .chairman-info-box {
        position: relative;
        width: 100%;
        padding: 30px 20px 36px;
    }

    .chairman-info-box h2 {
        font-size: 1.6rem;
    }

    .chairman-info-box p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .btn-view-profile {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    /* Leadership: 2 compact columns on phones */
    .leadership-slide-section {
        padding: 60px 0 50px;
    }

    .leadership-intro {
        margin-bottom: 30px;
    }

    .leadership-slide-title {
        font-size: 1.7rem;
    }

    .leadership-grid {
        padding: 0 12px;
        gap: 4px 8px;
    }

    .leadership-dept {
        margin: 24px 8px 4px;
        font-size: 1rem;
    }

    .grid-leader-card {
        --pad-top: 8px;
        --pad-x: 8px;
        --pad-bottom: 8px;
        --text-h: 80px;
    }

    .grid-bottom-content {
        padding-top: 12px;
    }

    .grid-leader-card h3 {
        font-size: 0.95rem;
    }

    .grid-leader-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .grid-leader-img-wrap .initials-fallback {
        font-size: 1.8rem;
    }
}

/* ---------- Very small phones (< 360px) ---------- */
@media (max-width: 359px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}