.platform-overview {
    width: 100%;
    background: #fff;
    padding: 80px 100px;
}

.platform-overview .container {
    max-width: 1335px;
    margin: auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 40px;
}

.platform-tabs {

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--color-border);

    margin-bottom: 40px;
}

.platform-tabs .tab {

    position: relative; /* anchors the .tab-progress bar */

    background: none;
    border: none;

    cursor: pointer;

    padding: 12px;
    gap: 8px;

    font-size: 16px;
    font-weight: 400;

    color: #222;
    line-height: 24px;

    transition: none;
}

.platform-tabs .tab.active {

    color: var(--color-text-dark);

    font-weight: 600;

    /* the static border-bottom is replaced by the animated .tab-progress bar below */
}

.platform-tabs .tab:hover {

    color: var(--color-text-dark);

}

/* =========================================================
   TAB AUTO-ADVANCE PROGRESS BAR
   Injected by platform.js into every .tab as <span class="tab-progress">
   Sits exactly where the old 2px active border-bottom used to be.
========================================================= */

.tab-progress {

    position: absolute;

    left: 0;
    bottom: -1px; /* aligns with .platform-tabs border-bottom line */

    height: 2px;
    width: 0%;

    background: #10131a;
    border-radius: 2px;

    pointer-events: none;
}

.tab-progress.running {
    /* duration is set by platform.js (--tab-progress-duration) so the bar
       always finishes exactly when the JS timer fires — never hardcode
       this value here again, or the two can drift out of sync. */
    animation: tabProgressFill var(--tab-progress-duration, 8000ms) linear forwards;
}

@keyframes tabProgressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tab-progress.running {
        animation: none;
        width: 100%;
    }
}

.platform-title {
    margin: 0 auto;
    max-width: 931px;
}

.platform-card {

    display: flex;

    gap: 24px;

    padding: 24px;

    border-radius: 16px;

    background: linear-gradient(270deg, #BAD9FF 0%, #EEF5FF 100%);

}

.platform-left {
    position: relative;

    flex: 1;
    min-width: 0;

    height: 492px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    box-sizing: border-box;

    border-radius: 12px;

    background: linear-gradient(109.22deg, #D8E9FF 2.21%, #8AC1FF 95.42%);

    overflow: visible;
}

.dashboard-panel {
    position: relative;


    width: 510px;

    height: 443px;

    max-width: none;
    max-height: none;

    box-sizing: border-box;

    padding: 20px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.9);

    background: radial-gradient(56.94% 34% at 50% 66%, rgba(216, 233, 255, 0.2) 50.49%, rgba(255, 255, 255, 0.2) 100%);

    overflow: visible;

    animation: dashboardEnter 0.8s ease-out both;
}

.dashboard-image {
    width: 100%;
    max-width: 650px;
    display: block;
    object-fit: contain;
}

.dashboard-header {
    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    margin: 0;

    z-index: 2;
}

.dashboard-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: linear-gradient(134.05deg, #BAD9FF -0.1%, #53A0FF 113.05%);

    box-sizing: border-box;
}

.dashboard-icon img {
    width: 38px;
    height: 38px;

    display: block;


    object-fit: contain;
}

.dashboard-heading {
    min-width: 0;
}

.dashboard-heading h4 {
    margin: 0 0 4px;

    font-family: 'lato', sans-serif;
    line-height: 100%;
    font-style: medium;

    font-size: 18px;
    line-height: 24px;

    font-weight: 500;

    color: #222;
}

.dashboard-heading p {
    margin: 0;

    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 24px;
    letter-spacing: -4%;

    font-weight: 400;
    font-style: normal;

    color: #222;
}

.dashboard-divider {
    width: 100%;
    height: 1px;

    margin-top: 16px;
    margin-bottom: 16px;

    background: rgba(255, 255, 255, 0.85);
}

.dashboard-chart {
    position: relative;

    width: 100%;

    border-radius: 12px;

    overflow: hidden;

    background: #fff;

    z-index: 1;

    animation: chartEnter 0.9s ease-out 0.25s both;
}

.dashboard-chart img {
    display: block;

    width: 100%;
    height: auto;

    max-width: none;

    object-fit: contain;
}

/* =========================================================
   EXAMINATION DASHBOARD
   Does NOT affect normal .dashboard-chart
========================================================= */

.examination-dashboard {
    background: transparent;
    overflow: visible;
}

/* =========================
   4 CARDS
========================= */

.exam-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    width: 100%;
}

.exam-card {
    height: 87px;

    padding: 12px 16px;
    box-sizing: border-box;

    background: #fff;

    border-radius: 12px;
}

.exam-card-title {
    display: flex;
    align-items: flex-start;

    gap: 10px;
}

.exam-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    box-sizing: border-box;
}

.exam-icon img {
    width: 32px !important;
    height: 32px !important;

    object-fit: contain;
}

.exam-card h5 {
    margin: 0 0 3px;

    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 24px;

    font-weight: 400;
    letter-spacing: -4%;

    color: #222;
}

.exam-card strong {
    display: block;

    margin: 0;

    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 20px;

    font-weight: 600;

    color: var(--color-orange-900, #6B4015);

}

.exam-card p {
    margin: 1px 0 0;

    font-family: 'lato', sans-serif;

    font-size: 10px;
    font-weight: 400;
    line-height: 14px;

    color: var(--color-neutral-800, #464646);

}

/* =========================
   DIGITAL CERTIFICATION
========================= */

.certification-card {
    grid-column: 1 / -1;

    position: relative;

    width: 100%;
    height: 71px;

    box-sizing: border-box;

    background: #FFF;

    border-radius: 12px;

    overflow: hidden;
}

/* =========================
   FIGMA ORANGE SHAPE
========================= */

.certification-bg {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 409px;
    height: 71px;

    max-width: none;

    display: block;

    object-fit: contain;

    z-index: 1;

    pointer-events: none;
}

/* =========================
   TEXT
========================= */

.certification-content {
    position: relative;

    z-index: 2;

    padding: 12px 16px;
}

.certification-card h5 {
    margin: 0 0 3px;

    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 24px;

    font-weight: 400;

    color: #222;
}

.certification-card strong {
    display: block;

    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 100%;

    font-weight: 600;

    color: #6B4015;
}

/* =========================
   BOTTOM TEXT
========================= */

.exam-dashboard-text {
    margin: 0 0 0;

    text-align: center;

    font-family: 'lato', sans-serif;

    font-size: 16px;

    line-height: 24px;
    padding-top: 22px;
    color: #42270D;

}

.exam-dashboard-text strong {
    font-weight: 700;
}

/* =========================================================
     for academic management only TWO-CHART DASHBOARD
   Used only for Academic / Finance style layouts
========================================================= */

.dashboard-chart--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 135px;
    gap: 14px;

    background: transparent;
    overflow: visible;

    border-radius: 0;
}

/* Main chart */

.dashboard-chart--split .dashboard-chart-main {
    min-width: 0;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;
}

/* Side chart */

.dashboard-chart--split .dashboard-chart-side {
    min-width: 0;

    background: #fff;

    border-radius: 12px;

    overflow: hidden;
}

/* Images */

.dashboard-chart--split img {
    display: block;

    width: 100%;
    height: auto;

    max-width: none;

    object-fit: contain;
}

/* Floating Cards */

/* =========================================================
   FLOATING STAT BOXES
========================================================= */

.dashboard-stat {
    position: absolute;

    z-index: 10;

    width: 307px;
    height: 48px;

    padding: 12px 16px;
    gap: 24px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

    transform-origin: center;

    overflow: hidden;

}

/* TEXT */

.dashboard-stat span {
    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 24px;

    font-weight: 400;

    color: var(--color-neutral-800, #464646);

}

.dashboard-stat strong {
    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 100%;

    font-weight: 500;

    color: var(--color-Blue-Ribbon-900, #153593);

}

/* =========================================================
    for acedmic management DIARY STAT CARDS
   Used only for Academic-style dashboard
========================================================= */

.diary-stat {
    gap: 12px;
    justify-content: flex-start;
}

/* ICON */

.diary-stat__icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

}

.diary-stat__icon img {
    width: 32px;
    height: 32px;

    display: block;

    object-fit: contain;
}

/* NUMBER */

.diary-stat strong {
    flex: 0 0 auto;

    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 24px;

    font-weight: 500;

    color: #d90091;
}

/* DESCRIPTION */

.diary-stat span {
    font-family: 'lato', sans-serif;

    font-size: 16px;
    line-height: 24px;

    font-weight: 400;

    color: #464646;

    white-space: nowrap;
}

/* =========================================================
   FIRST CARD
========================================================= */

.diary-stat--teachers {
    left: -26px;
    bottom: 94px;

    animation: appliedBoxEnter 0.8s cubic-bezier(.22, 1, .36, 1) 0.4s both;
}

/* =========================================================
   SECOND CARD
========================================================= */

.diary-stat--course {
    right: -26px;
    bottom: 28px;

    animation: admittedBoxEnter 0.8s cubic-bezier(.22, 1, .36, 1) 0.6s both;
}

/* FOr admission adn finance*/
/* =========================================================
   APPLIED
   Comes from LEFT
========================================================= */

.dashboard-stat.applied {

    left: -26px;
    bottom: 70px;

    animation: appliedBoxEnter 0.8s cubic-bezier(.22, 1, .36, 1) 0.4s both;
}

/* =========================================================
   ADMITTED
   Comes from RIGHT
========================================================= */

.dashboard-stat.admitted {

    right: -26px;
    bottom: 10px;

    animation: admittedBoxEnter 0.8s cubic-bezier(.22, 1, .36, 1) 0.6s both;
}

/* =========================================================
   LEFT SIDE ANIMATIONS
========================================================= */

@keyframes dashboardEnter {

    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

@keyframes chartEnter {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   APPLIED BOX ANIMATION
========================================================= */

@keyframes appliedBoxEnter {

    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes admittedBoxEnter {

    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

/* ===========================
   RIGHT
=========================== */

.platform-right {

    flex: 1;
    max-width: 632px;
    max-height: 492px;

    background: #fff;

    border-radius: 12px;

    padding: 24px;
    gap: 16px;

    opacity: 0;
    transform: translateY(45px);

    transition: opacity 0.7s ease,
    transform 0.7s cubic-bezier(.22, 1, .36, 1);
}

.platform-right.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.platform-right h3 {

    font-size: 24px;
    line-height: 34px;
    letter-spacing: -4%;
    font-weight: 600;

    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(25px);

    transition: opacity 0.6s ease,
    transform 0.6s cubic-bezier(.22, 1, .36, 1);


    transition-delay: 0.05s;
}

.platform-right.is-visible h3 {
    opacity: 1;
    transform: translateY(0);
}

.platform-right p {

    color: #222;
    font-size: 16px;

    line-height: 24px;
    font-weight: 400;

    margin-bottom: 24px !important;
    opacity: 0;
    transform: translateY(25px);

    transition: opacity 0.6s ease,
    transform 0.6s cubic-bezier(.22, 1, .36, 1);

    transition-delay: 0.15s;
}

.platform-right.is-visible p {
    opacity: 1;
    transform: translateY(0);
}

.platform-right h4 {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 100%;
    font-weight: 500;
    opacity: 0;
    transform: translateY(25px);

    transition: opacity 0.6s ease,
    transform 0.6s cubic-bezier(.22, 1, .36, 1);

    transition-delay: 0.25s;
}

.platform-right.is-visible h4 {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   LIST
=========================== */

.platform-right ul {

    list-style: none;

    padding: 0;

    margin: 0 0 0;
    display: block;
    padding-bottom: 14px;
}

.platform-right li {

    display: flex;

    align-items: center;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -4%;
    font-style: normal;
    gap: 8px;
    margin-bottom: 12px;
    color: #222;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease,
    transform 0.55s cubic-bezier(.22, 1, .36, 1);
}

.platform-content {
    position: relative;
    width: 100%;
}

/* =========================================================
   PLATFORM ITEM CROSSFADE
   The active item sits in normal flow (position: relative) so it
   defines the container's height. The outgoing item is lifted to
   position: absolute over the same spot and fades out in place,
   instead of vanishing instantly via display:none — that's what
   was causing the "jump." Both are driven by --tab-fade-duration,
   set once by platform.js.
========================================================= */

.platform-item {
    width: 100%;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity var(--tab-fade-duration, 450ms) ease;
}

.platform-item.active {
    position: relative;
    z-index: 2;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.platform-item.leaving {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    opacity: 0;
    visibility: visible; /* stays paintable while it fades out */
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .platform-item {
        transition: none;
    }
}

.platform-item[data-theme="green"] .platform-card {
    background: linear-gradient(270deg, #95EBAB 0%, #E8FBED 100%);

}

.platform-item[data-theme="green"] .platform-left {
    background: linear-gradient(109.22deg, #B8F1C6 2.21%, #65E284 95.42%);

}

.platform-item[data-theme="green"] .dashboard-icon {
    background: linear-gradient(
            134.05deg,
            #BDEFD2 -0.1%,
            #43B979 113.05%
    );
}

.platform-item[data-theme="pink"] .platform-card {
    background: linear-gradient(270deg, #FFB5E8 0%, #FEEAF8 100%);

}

.platform-item[data-theme="pink"] .platform-left {
    background: linear-gradient(109.22deg, #FFD6F2 2.21%, #FF81D7 95.42%);

}

.platform-item[data-theme="pink"] .dashboard-icon {
    background: linear-gradient(134.05deg, #FFB5E8 -0.1%, #FF33BE 113.05%);

}

.platform-item[data-theme="orange"] .platform-card {
    background: linear-gradient(270deg, #FFDBB7 0%, #FFF5EB 100%);

}

.platform-item[data-theme="orange"] .platform-left {
    background: linear-gradient(109.22deg, #FFE6CD 2.21%, #FFC68D 95.42%);

}

.platform-item[data-theme="orange"] .dashboard-icon {
    background: linear-gradient(134.05deg, #FFDBB7 -0.1%, #FFAD5C 113.05%);

}

.platform-right.is-visible li:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.32s;
}

.platform-right.is-visible li:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.40s;
}

.platform-right.is-visible li:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.48s;
}

.platform-right.is-visible li:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.56s;
}

.platform-right.is-visible li:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.64s;
}

.platform-right.is-visible li:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.72s;
}

.platform-right.is-visible li:last-child {
    margin-bottom: 0;
}

.platform-right li img {

    width: 12px;
}

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


.platform-right.is-visible .btn-primary {
    opacity: 1;
    transform: translateY(-12px);
}

/* =========================================================
   PLATFORM OVERVIEW
   MOBILE RESPONSIVE
   Desktop CSS remains unchanged
========================================================= */

@media (max-width: 480px) {

    /* =====================================================
       MAIN SECTION
    ===================================================== */
    .platform-overview {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .platform-overview .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* =====================================================
       SECTION HEADER
    ===================================================== */
    .section-header {
        gap: 12px;
        margin-bottom: 28px;
    }

    /* =====================================================
       TABS
       Horizontal scrolling on mobile
    ===================================================== */
    .platform-tabs {
        width: 100%;

        display: flex;
        justify-content: flex-start;
        align-items: center;

        gap: 4px;

        margin-bottom: 24px;

        overflow-x: auto;
        overflow-y: hidden;

        white-space: nowrap;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .platform-tabs::-webkit-scrollbar {
        display: none;
    }

    .platform-tabs .tab {
        flex: 0 0 auto;

        padding: 10px 12px;

        font-size: 14px;
        line-height: 22px;

        white-space: nowrap;
    }

    .platform-tabs .tab.active {
        border-bottom-width: 2px;
    }

    /* =====================================================
       MAIN PLATFORM CARD
    ===================================================== */
    .platform-card {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 16px;

        padding: 12px;

        box-sizing: border-box;

        border-radius: 14px;
    }

    /* =====================================================
       LEFT DASHBOARD
    ===================================================== */
    .platform-left {
        width: 100%;
        min-width: 0;

        height: auto;
        min-height: 0;

        padding: 12px;

        box-sizing: border-box;

        border-radius: 10px;

        overflow: hidden;

        display: block;
    }

    /* =====================================================
       DASHBOARD PANEL
    ===================================================== */
    .dashboard-panel {
        width: 100%;
        height: auto;

        max-width: 100%;
        max-height: none;

        padding: 14px;

        box-sizing: border-box;

        border-radius: 10px;

        overflow: hidden;

        animation: none !important;
    }

    /* =====================================================
       DASHBOARD HEADER
    ===================================================== */
    .dashboard-header {
        gap: 10px;
    }

    .dashboard-icon {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;

        border-radius: 9px;
    }

    .dashboard-icon img {
        width: 32px;
        height: 32px;
    }

    .dashboard-heading h4 {
        margin-bottom: 2px;

        font-size: 16px;
        line-height: 21px;
    }

    .dashboard-heading p {
        font-size: 13px;
        line-height: 19px;
    }

    /* =====================================================
       DIVIDER
    ===================================================== */
    .dashboard-divider {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    /* =====================================================
       DASHBOARD CHART
    ===================================================== */
    .dashboard-chart {
        width: 100%;

        border-radius: 9px;

        animation: none !important;

        overflow: hidden;
    }

    .dashboard-chart img {
        width: 100%;
        height: auto;

        max-width: 100%;

        display: block;

        object-fit: contain;
    }

    /* =====================================================
       SPLIT DASHBOARD
       Academic / Finance etc.
    ===================================================== */
    .dashboard-chart--split {
        display: grid;

        grid-template-columns: minmax(0, 1fr) 90px;

        gap: 8px;

        width: 100%;

        overflow: hidden;
    }

    .dashboard-chart--split .dashboard-chart-main,
    .dashboard-chart--split .dashboard-chart-side {
        width: 100%;
        min-width: 0;

        border-radius: 8px;

        overflow: hidden;
    }

    .dashboard-chart--split img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* =====================================================
       HIDE DESKTOP FLOATING STAT BOXES
       
       Applied / Admitted
       Teachers / Course Diary
    ===================================================== */
    .dashboard-stat.applied,
    .dashboard-stat.admitted,
    .diary-stat--teachers,
    .diary-stat--course {
        display: none !important;
    }

    /* =====================================================
       DISABLE FLOATING CARD ANIMATIONS
    ===================================================== */
    .dashboard-stat {
        animation: none !important;
    }

    .diary-stat {
        animation: none !important;
    }

    /* =====================================================
       EXAMINATION DASHBOARD
    ===================================================== */
    .examination-dashboard {
        width: 100%;

        overflow: hidden;
    }

    .exam-grid {
        width: 100%;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .exam-card {
        width: 100%;
        height: auto;
        min-height: 78px;

        padding: 10px;

        border-radius: 9px;
    }

    .exam-card-title {
        gap: 7px;
    }

    .exam-icon {
        width: 28px;
        height: 28px;

        flex: 0 0 28px;
    }

    .exam-icon img {
        width: 27px !important;
        height: 27px !important;
    }

    .exam-card h5 {
        margin-bottom: 2px;

        font-size: 13px;
        line-height: 18px;
    }

    .exam-card strong {
        font-size: 13px;
        line-height: 18px;
    }

    .exam-card p {
        margin-top: 1px;

        font-size: 9px;
        line-height: 12px;
    }

    /* =====================================================
       DIGITAL CERTIFICATION
    ===================================================== */
    .certification-card {
        width: 100%;
        height: 62px;

        border-radius: 9px;
    }

    .certification-bg {
        width: 55%;
        max-width: none;

        height: 62px;

        right: 0;
        bottom: 0;

        object-fit: cover;
        object-position: right center;
    }

    .certification-content {
        padding: 10px 12px;
    }

    .certification-card h5 {
        margin-bottom: 2px;

        font-size: 13px;
        line-height: 18px;
    }

    .certification-card strong {
        font-size: 13px;
        line-height: 18px;
    }

    /* =====================================================
       EXAMINATION BOTTOM TEXT
    ===================================================== */
    .exam-dashboard-text {
        margin: 0;
        padding-top: 14px;
        font-size: 13px;
        line-height: 20px;
    }

    /* =====================================================
       RIGHT CONTENT
    ===================================================== */
    .platform-right {
        width: 100%;
        max-width: 100%;
        max-height: none;

        padding: 18px;

        box-sizing: border-box;

        border-radius: 10px;

        gap: 12px;

        /* Immediately visible on mobile */
        opacity: 1;
        transform: none;

        transition: none;
    }

    /* =====================================================
       DISABLE RIGHT CONTENT ANIMATIONS
    ===================================================== */
    .platform-right h3,
    .platform-right p,
    .platform-right h4,
    .platform-right li {
        opacity: 1;
        transform: none;

        transition: none !important;

        transition-delay: 0s !important;
    }

    /* =====================================================
       RIGHT HEADING
    ===================================================== */
    .platform-right h3 {
        margin: 0 0 12px;

        font-size: 24px;
        line-height: 29px;
    }

    /* =====================================================
       RIGHT DESCRIPTION
    ===================================================== */
    .platform-right p {
        margin: 0 0 20px;

        font-size: 16px;
        line-height: 22px;
    }

    /* =====================================================
       RIGHT SUB HEADING
    ===================================================== */
    .platform-right h4 {
        margin: 0 0 14px;

        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
    }

    /* =====================================================
       RIGHT LIST
    ===================================================== */
    .platform-right ul {
        margin: 0 0 24px;
    }

    .platform-right li {
        gap: 7px;

        margin-bottom: 12px;

        font-size: 16px;
        line-height: 20px;
    }

    .platform-right li img {
        width: 12px;
        height: auto;

        flex: 0 0 auto;
    }

    /* =====================================================
       BUTTON
    ===================================================== */
    /* =====================================================
       PLATFORM CONTENT
    ===================================================== */
    .platform-content {
        width: 100%;
    }

    .platform-item {
        width: 100%;
    }

    /* =====================================================
       REMOVE ALL POSSIBLE MOBILE OVERFLOW
    ===================================================== */
    .platform-card,
    .platform-left,
    .platform-right,
    .dashboard-panel,
    .dashboard-chart,
    .dashboard-chart--split {
        max-width: 100%;
    }

}

/* ==========================================
   LARGE TABLET / SMALL LAPTOP
   769px - 1024px
========================================== */

@media (min-width: 769px) and (max-width: 1024px) {

    /* --- Section shell --- */
    .platform-overview {
        padding: 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .platform-overview .container {
        width: 100%;
        max-width: 100%;
    }

    .platform-overview .section-header {
        margin-bottom: 32px;
    }

    /* --- Tabs stay horizontal, evenly usable --- */
    .platform-tabs {
        margin-bottom: 32px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .platform-tabs::-webkit-scrollbar {
        display: none;
    }

    .platform-tabs .tab {
        flex: 0 0 auto;
        font-size: 15px;
        padding: 12px 10px;
    }

    /* --- Two-column card, but narrower gap/padding than desktop --- */
    .platform-card {
        gap: 20px;
        padding: 20px;
        box-sizing: border-box;
    }

    .platform-left {
        height: auto;
        min-height: 400px;
        padding: 18px;
        box-sizing: border-box;
    }

    /* --- Dashboard panel scales down proportionally, never overflows --- */
    .dashboard-panel {
        width: 100%;
        max-width: min(100%, 460px);
        height: auto;
        aspect-ratio: 510/443;
        padding: 16px;
        box-sizing: border-box;
    }

    .dashboard-header {
        gap: 12px;
    }

    .dashboard-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .dashboard-icon img {
        width: 34px;
        height: 34px;
    }

    .dashboard-heading h4 {
        font-size: 16px;
        line-height: 22px;
    }

    .dashboard-heading p {
        font-size: 14px;
        line-height: 20px;
    }

    .dashboard-chart img {
        width: 100%;
        height: auto;
    }

    .dashboard-chart--split {
        grid-template-columns:minmax(0, 1fr) 110px;
        gap: 12px;
    }

    /* --- Examination / certification cards --- */
    .exam-grid {
        gap: 12px;
    }

    .exam-card {
        height: auto;
        min-height: 80px;
        padding: 11px 14px;
    }

    .exam-icon {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .exam-icon img {
        width: 28px !important;
        height: 28px !important;
    }

    .exam-card h5,
    .exam-card strong {
        font-size: 14px;
        line-height: 20px;
    }

    .exam-card p {
        font-size: 9px;
        line-height: 13px;
    }

    .certification-card {
        height: 65px;
    }

    .certification-bg {
        width: min(370px, 60%);
        height: 65px;
    }

    /* --- Floating stat cards: scale + reposition to stay inside viewport --- */
    .dashboard-stat {
        width: min(280px, 88%);
        height: auto;
        min-height: 44px;
        padding: 10px 14px;
    }

    .dashboard-stat.applied,
    .diary-stat--teachers {
        left: -14px;
    }

    .dashboard-stat.admitted,
    .diary-stat--course {
        right: -14px;
    }

    .diary-stat__icon {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }

    .diary-stat__icon img {
        width: 28px;
        height: 28px;
    }

    .diary-stat span,
    .dashboard-stat span {
        font-size: 14px;
    }

    .diary-stat strong,
    .dashboard-stat strong {
        font-size: 14px;
    }

    /* --- Right column --- */
    .platform-right {
        max-width: 100%;
        max-height: none;
        padding: 22px;
        box-sizing: border-box;
    }

    .platform-right h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .platform-right p {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 22px;
    }

    .platform-right li {
        font-size: 15px;
        margin-bottom: 14px;
    }

}

/* ==========================================
   TABLET
   481px - 768px
========================================== */

/* ==========================================
   TABLET
   481px - 768px
========================================== */

@media (min-width: 481px) and (max-width: 768px) {

    /* --- Section shell --- */
    .platform-overview {
        padding: 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .platform-overview .container {
        width: 100%;
        max-width: 100%;
    }

    .section-header {
        gap: 14px;
        margin-bottom: 28px;
    }

    /* --- Tabs: ~3.5 visible, scrollable, no wrap, no space-between --- */
    .platform-tabs {
        margin-bottom: 24px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .platform-tabs::-webkit-scrollbar {
        display: none;
    }

    .platform-tabs .tab {
        flex: 0 0 auto;
        min-width: 120px;
        font-size: 14px;
        padding: 10px 14px;
        text-align: center;
    }

    /* --- Main card: equal-height columns via stretch --- */
    .platform-card {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        box-sizing: border-box;
        border-radius: 14px;
    }

    .platform-left {
        flex: 1 1 260px;
        min-width: 260px;
        height: auto;
        min-height: 0;
        padding: 14px;
        box-sizing: border-box;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .platform-right {
        flex: 1 1 260px;
        min-width: 260px;
        max-width: 100%;
        max-height: none;
        height: auto;
        padding: 18px;
        box-sizing: border-box;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* --- Dashboard: compact controlled height, no aspect-ratio driving it --- */
    .dashboard-panel {
        width: 100%;
        max-width: 100%;
        height: 340px;
        padding: 12px;
        box-sizing: border-box;
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .dashboard-header {
        gap: 10px;
        flex: 0 0 auto;
    }

    .dashboard-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 9px;
    }

    .dashboard-icon img {
        width: 28px;
        height: 28px;
    }

    .dashboard-heading h4 {
        font-size: 14px;
        line-height: 19px;
        margin-bottom: 2px;
    }

    .dashboard-heading p {
        font-size: 12px;
        line-height: 17px;
    }

    .dashboard-divider {
        margin-top: 10px;
        margin-bottom: 10px;
        flex: 0 0 auto;
    }

    .dashboard-chart {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-chart img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .dashboard-chart--split {
        grid-template-columns:minmax(0, 1fr) 80px;
        gap: 8px;
        flex: 1 1 auto;
        min-height: 0;
    }

    .dashboard-chart--split img {
        height: 100%;
        object-fit: contain;
    }

    /* --- Examination dashboard: fit inside compact panel --- */
    .examination-dashboard {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .exam-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .exam-card {
        height: auto;
        min-height: 60px;
        padding: 8px 10px;
        border-radius: 9px;
    }

    .exam-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .exam-icon img {
        width: 23px !important;
        height: 23px !important;
    }

    .exam-card h5,
    .exam-card strong {
        font-size: 12px;
        line-height: 16px;
    }

    .exam-card p {
        font-size: 8px;
        line-height: 11px;
        margin-top: 0;
    }

    .certification-card {
        height: 52px;
        border-radius: 9px;
    }

    .certification-bg {
        width: 55%;
        max-width: none;
        height: 52px;
        object-fit: cover;
        object-position: right center;
    }

    .certification-content {
        padding: 8px 10px;
    }

    .certification-card h5,
    .certification-card strong {
        font-size: 12px;
        line-height: 16px;
    }

    .exam-dashboard-text {
        margin: 0;
        padding-top: 8px;
        font-size: 11px;
        line-height: 16px;
    }

    /* --- Floating cards: smaller, contained within .platform-left --- */
    .dashboard-stat {
        position: absolute;
        width: min(200px, 80%);
        height: auto;
        min-height: 36px;
        padding: 7px 10px;
        gap: 10px;
    }

    .dashboard-stat.applied,
    .diary-stat--teachers {
        left: 2px;
        bottom: 10px;
    }

    .dashboard-stat.admitted,
    .diary-stat--course {
        right: 2px;
        bottom: 6px;
    }

    .diary-stat__icon {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .diary-stat__icon img {
        width: 24px;
        height: 24px;
    }

    .diary-stat span,
    .dashboard-stat span {
        font-size: 11px;
        white-space: normal;
    }

    .diary-stat strong,
    .dashboard-stat strong {
        font-size: 12px;
    }

    /* --- Right column --- */
    .platform-right h3 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    .platform-right p {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 16px;
    }

    .platform-right h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .platform-right ul {
        margin-bottom: 18px;
    }

    .platform-right li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* --- Disable all entrance animations, keep tab-switch (display:none/block) intact --- */
    .dashboard-panel,
    .dashboard-chart,
    .dashboard-stat,
    .diary-stat,
    .platform-right,
    .platform-right h3,
    .platform-right p,
    .platform-right h4,
    .platform-right li {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

}

@media (max-width: 600px) {
    .tab-progress {
        bottom: 1px;
    }
}
