/* =========================================================
   SHAAGIRD LEARNING CENTERS — INTEGRATED STYLES
========================================================= */

.hunar-academy-section {
    width: 100%;
    padding: 30px 34px;
    box-sizing: border-box;
    background: #ffffff;
    font-family: "DM Sans", Arial, sans-serif;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.hunar-academy-container {
    position: relative;
    isolation: isolate;
    max-width: 1720px;
    margin: 0 auto 34px;
    padding: 48px 52px 58px;
    box-sizing: border-box;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(41, 157, 142, 0.075) 0%,
            rgba(41, 157, 142, 0.025) 26%,
            transparent 48%
        ),
        radial-gradient(
            circle at 92% 15%,
            rgba(41, 157, 142, 0.10) 0%,
            rgba(41, 157, 142, 0.035) 28%,
            transparent 52%
        ),
        linear-gradient(
            135deg,
            #f1faf8 0%,
            #f7fcfb 45%,
            #ffffff 100%
        );
    box-shadow: 0 22px 55px rgba(16, 51, 71, 0.055);
}

/* =========================================================
   CORNER GLOW — LEFT & RIGHT
========================================================= */

.hunar-academy-container::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -125px;
    bottom: -145px;
    width: 430px;
    height: 300px;
    background: radial-gradient(
        ellipse,
        rgba(41, 157, 142, 0.23) 0%,
        rgba(41, 157, 142, 0.12) 30%,
        rgba(41, 157, 142, 0.045) 55%,
        transparent 75%
    );
    filter: blur(18px);
    pointer-events: none;
}

.hunar-academy-container::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -125px;
    bottom: -145px;
    width: 430px;
    height: 300px;
    background: radial-gradient(
        ellipse,
        rgba(41, 157, 142, 0.23) 0%,
        rgba(41, 157, 142, 0.12) 30%,
        rgba(41, 157, 142, 0.045) 55%,
        transparent 75%
    );
    filter: blur(18px);
    pointer-events: none;
}

/* =========================================================
   GRID & ALTERNATING LAYOUT
========================================================= */

.hunar-academy-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
    gap: 55px;
    align-items: center;
    min-width: 0;
}

.hunar-academy-content {
    max-width: 790px;
    min-width: 0;
    padding-left: 2px;
}

.hunar-academy-grid.is-reverse .hunar-academy-content { order: 2; }
.hunar-academy-grid.is-reverse .hunar-academy-media { order: 1; }

.hunar-academy-media {
    position: relative;
    min-width: 0;
    padding-bottom: 45px;
}

/* =========================================================
   LABEL
========================================================= */

.hunar-academy-label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 27px;
    color: #299d8e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hunar-academy-label-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border: 1.5px solid #299d8e;
    border-radius: 7px;
    color: #299d8e;
    font-size: 14px;
    line-height: 1;
}

.hunar-academy-label-line {
    width: 40px;
    height: 1.5px;
    margin-left: 3px;
    background: #299d8e;
    border-radius: 100px;
}

/* =========================================================
   HEADING
========================================================= */

.hunar-academy-title {
    margin: 0 0 23px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.0vw, 44px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -3.5px;
    color: #103347;
}

.hunar-academy-title .hunar {
    position: relative;
    display: inline-block;
    color: #103347;
}

.hunar-academy-title .hunar::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: -8px;
    width: 215px;
    height: 4px;
    background: #f5c542;
    border-radius: 100px;
    transform: rotate(-1.5deg);
}

.hunar-academy-title .academy {
    color: #299d8e;
}

/* =========================================================
   LOCATION
========================================================= */

.hunar-academy-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 27px;
    color: #103347;
    font-size: 16px;
    font-weight: 700;
}

.hunar-academy-location svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    stroke: #103347;
}

/* =========================================================
   PARAGRAPHS
========================================================= */

.hunar-academy-text {
    margin: 0 0 22px;
    color: #17425b;
    font-size: 16px;
    line-height: 1.72;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
}

.hunar-academy-text:last-of-type {
    margin-bottom: 0;
}

/* =========================================================
   BUTTON ACTIONS
========================================================= */

.hunar-academy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.hunar-academy-actions a,
.hunar-academy-actions .hunar-visit-btn {
    min-height: 58px;
    box-sizing: border-box;
    padding: 0 26px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none !important;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hunar-academy-actions .hunar-visit-btn {
    min-width: 230px;
    background: #299d8e;
    color: #fff !important;
    border: 2px solid #299d8e;
    box-shadow: 0 10px 24px rgba(41, 157, 142, 0.15);
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hunar-academy-actions a.hunar-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(41, 157, 142, 0.28);
    background: #218276;
}

.hunar-academy-actions .hunar-story-btn {
    min-width: 205px;
    background: #fff;
    color: #299d8e !important;
    border: 2px solid #299d8e;
    cursor: pointer;
}

.hunar-academy-actions a.hunar-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 51, 71, 0.13);
    background: #f0faf8;
}

.hunar-story-play {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #299d8e;
    color: #fff;
    font-size: 13px;
}

/* =========================================================
   MAIN IMAGE
========================================================= */

.hunar-academy-main-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 25px 55px rgba(20, 60, 65, 0.14),
        0 5px 15px rgba(41, 157, 142, 0.06);
}

.hunar-academy-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 21px;
    cursor: default;
    transition: opacity 0.25s ease;
}

/* =========================================================
   GALLERY BAR & THUMBNAILS
========================================================= */

.hunar-academy-gallery {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -42px;
    height: 106px;
    display: flex;
    align-items: center;
    padding: 11px 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 21px;
    box-shadow:
        0 18px 40px rgba(20, 65, 65, 0.16),
        0 5px 16px rgba(41, 157, 142, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
    gap: 0;
}

.hunar-academy-thumbnails {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    overflow: hidden;
}

.hunar-academy-thumb {
    width: 100%;
    height: 82px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    overflow: hidden;
    background: #edf6f4;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hunar-academy-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.hunar-academy-thumb:hover {
    transform: translateY(-2px);
}

.hunar-academy-thumb.active {
    box-shadow: 0 0 0 3px #299d8e;
}

.hunar-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #299d8e;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(20, 70, 65, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hunar-gallery-arrow:hover {
    background: #299d8e;
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.hunar-gallery-prev { left: -25px; }
.hunar-gallery-next { right: -25px; }

/* =========================================================
   STORY MODAL
========================================================= */

.m2s-story-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(7, 27, 37, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.m2s-story-modal.is-open { display: flex; }

.m2s-story-dialog {
    position: relative;
    width: min(940px, 94vw);
    max-height: 90vh;
    padding: 10px;
    background: #0d1e24;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.m2s-story-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.m2s-story-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.m2s-story-dialog img {
    display: block;
    width: 100%;
    max-height: calc(90vh - 24px);
    object-fit: contain;
    border-radius: 12px;
}

.m2s-story-close {
    position: absolute;
    right: -14px;
    top: -14px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #299d8e;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.m2s-story-close:hover {
    transform: scale(1.08);
    background: #207d72;
}

/* =========================================================
   STORIES-STYLE FULL-WIDTH HERO BANNER
========================================================= */

.m2s-centers-hero--banner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, .42fr) minmax(0, .58fr) !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: clamp(300px, 25vw, 475px) !important;
    margin: 0 auto 36px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #079d8e !important;
    box-shadow: none !important;
    font-family: "DM Sans", Arial, sans-serif !important;
}

.m2s-centers-hero--banner .m2s-centers-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 42px clamp(28px, 5.1vw, 100px) 42px max(28px, calc((100vw - 1280px) / 2));
    color: #fff;
    background: linear-gradient(110deg, #009d8d 0%, #079e8f 72%, rgba(7, 158, 143, .94) 100%);
    min-width: 0;
}

.m2s-centers-hero--banner .m2s-centers-hero-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.m2s-centers-hero--banner .m2s-centers-hero-kicker:before {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .38);
}

.m2s-centers-hero--banner h1 {
    max-width: 680px !important;
    margin: 0 0 18px !important;
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(34px, 2.7vw, 48px) !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: -.8px !important;
    overflow-wrap: normal !important;
}

.m2s-centers-hero--banner h1 span {
    color: #fff !important;
}

.m2s-centers-hero--banner p {
    max-width: 520px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-weight: 500;
    text-align: justify;
    text-justify: inter-word;
}

.m2s-centers-hero--banner .m2s-centers-hero-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100%;
    margin-top: 25px !important;
}

.m2s-centers-hero--banner .m2s-hero-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px !important;
    padding: 0 20px !important;
    border-radius: 28px;
    text-decoration: none !important;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.m2s-centers-hero--banner .m2s-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.m2s-centers-hero--banner .m2s-hero-btn--dark {
    background: #050505;
    color: #fff !important;
    border: 1px solid #050505;
}

.m2s-centers-hero--banner .m2s-hero-btn--light {
    background: #fff;
    color: #102e37 !important;
    border: 1px solid #fff;
}

.m2s-centers-hero--banner .m2s-centers-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #d9b28a;
}

.m2s-centers-hero--banner .m2s-centers-hero-visual:before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 158, 143, .36) 0%, rgba(7, 158, 143, .04) 30%, rgba(0, 0, 0, .04) 100%);
    pointer-events: none;
}

.m2s-centers-hero--banner .m2s-centers-hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(300px, 25vw, 475px);
    object-fit: cover;
    object-position: center;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#m2s-all-centers {
    scroll-margin-top: 90px;
}

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

@media (min-width: 901px) {
    .hunar-academy-title {
        font-size: clamp(30px, 3vw, 44px) !important;
        line-height: 1.02 !important;
        margin-bottom: 12px !important;
    }
    .hunar-academy-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

@media (max-width: 1200px) {
    .hunar-academy-container {
        padding: 42px 35px 50px;
    }
    .hunar-academy-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }
    .hunar-academy-grid.is-reverse .hunar-academy-content,
    .hunar-academy-grid.is-reverse .hunar-academy-media {
        order: initial;
    }
    .hunar-academy-content {
        max-width: 900px;
    }
    .hunar-academy-media {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .hunar-academy-title {
        font-size: clamp(29px, 5.4vw, 38px) !important;
        line-height: 1.04 !important;
    }
}

@media (max-width: 767px) {
    .hunar-academy-section {
        padding: 30px 18px;
    }
    .hunar-academy-container {
        padding: 30px 18px 38px;
        border-radius: 24px;
    }
    .hunar-academy-container::before,
    .hunar-academy-container::after {
        width: 280px;
        height: 220px;
        bottom: -120px;
        filter: blur(22px);
    }
    .hunar-academy-grid {
        gap: 30px;
    }
    .hunar-academy-label {
        margin-bottom: 20px;
        font-size: 10px;
        letter-spacing: 3px;
        gap: 9px;
    }
    .hunar-academy-label-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }
    .hunar-academy-label-line {
        width: 28px;
    }
    .hunar-academy-title {
        margin-bottom: 20px;
        letter-spacing: -2px;
    }
    .hunar-academy-title .hunar::after {
        width: 150px;
        height: 3px;
        bottom: -6px;
    }
    .hunar-academy-location {
        margin-bottom: 20px;
        font-size: 14px;
    }
    .hunar-academy-text {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.7;
        text-align: justify;
        text-justify: inter-word;
    }
    .hunar-academy-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 22px !important;
        width: 100% !important;
    }

    .hunar-academy-actions a,
    .hunar-academy-actions .hunar-visit-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 9px 8px !important;
        font-size: clamp(11px, 2.9vw, 13px) !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        border-radius: 999px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hunar-academy-actions .hunar-visit-btn {
        background: #299d8e !important;
        color: #ffffff !important;
        border: 1.5px solid #299d8e !important;
        box-shadow: 0 4px 14px rgba(41, 157, 142, 0.2) !important;
    }

    .hunar-academy-actions .hunar-story-btn {
        background: #ffffff !important;
        color: #299d8e !important;
        border: 1.5px solid #299d8e !important;
        gap: 6px !important;
        box-shadow: 0 4px 14px rgba(16, 51, 71, 0.08) !important;
    }

    .hunar-story-play {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
        flex: 0 0 22px !important;
    }
    .hunar-academy-main-image-wrap {
        padding: 6px;
        border-radius: 21px;
    }
    .hunar-academy-main-image {
        border-radius: 16px;
    }
    .hunar-academy-gallery {
        left: 8px;
        right: 8px;
        bottom: -32px;
        height: 82px;
        padding: 8px;
        border-radius: 16px;
    }
    .hunar-academy-thumbnails {
        gap: 7px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .hunar-academy-thumb {
        height: 64px;
        border-radius: 9px;
    }
    .hunar-gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    .hunar-gallery-prev {
        left: -14px;
    }
    .hunar-gallery-next {
        right: -14px;
    }
    .hunar-academy-media {
        padding-bottom: 32px;
    }
    .m2s-story-modal {
        padding: 15px;
    }
}

@media (max-width: 760px) {
    .m2s-centers-hero--banner {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
        margin-bottom: 25px !important;
    }
    .m2s-centers-hero--banner .m2s-centers-hero-copy {
        grid-row: 2;
        padding: 28px 23px 32px;
    }
    .m2s-centers-hero--banner .m2s-centers-hero-visual {
        grid-row: 1;
        height: clamp(210px, 58vw, 330px);
        min-height: 0;
    }
    .m2s-centers-hero--banner .m2s-centers-hero-visual img {
        height: 100%;
        min-height: 0;
        object-position: center 35%;
    }
    .m2s-centers-hero--banner h1 {
        font-size: clamp(32px, 7vw, 42px) !important;
    }
    .m2s-centers-hero--banner p {
        font-size: 14px !important;
    }
    .m2s-centers-hero--banner .m2s-centers-hero-actions {
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-top: 21px;
    }
    .m2s-centers-hero--banner .m2s-hero-btn {
        min-height: 44px !important;
        padding: 0 17px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 560px) {
    .hunar-academy-title {
        font-size: 29px !important;
        line-height: 1.05 !important;
    }
    .hunar-academy-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 420px) {
    .m2s-centers-hero--banner .m2s-centers-hero-copy {
        padding: 25px 18px 28px;
    }
}

@media (max-width: 400px) {
    .m2s-centers-hero--banner .m2s-hero-btn {
        padding: 0 14px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 380px) {
    .hunar-academy-actions {
        gap: 6px !important;
    }
    .hunar-academy-actions a,
    .hunar-academy-actions .hunar-visit-btn {
        padding: 8px 4px !important;
        font-size: 10.5px !important;
        min-height: 42px !important;
    }
    .hunar-story-play {
        width: 18px !important;
        height: 18px !important;
        font-size: 8.5px !important;
        flex: 0 0 18px !important;
    }
}

