:root {
    --spacing-card: 15%;
}

html {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Tab Switcher Navigation */
.co-curricular-tabs-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0 35px 0;
    flex-wrap: wrap;
}

.tab-pill {
    background: #ffffff;
    color: #134168;
    border: 2px solid var(--blue);
    border-radius: 50px;
    padding: 10px 38px;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Merriweather';
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 1px;
}

.tab-pill:hover {
    background: var(--blue);
    color: #ffffff;
}

.tab-pill.active {
    background: var(--blue);
    color: #ffffff;
    border-color: var(--secondary-color);
    /* box-shadow: 0 4px 14px rgba(19, 65, 104, 0.25); */
}

/* Tab Content Visibility */
.cocurricular-tab-content {
    display: none;
}

.cocurricular-tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* Curricular Section Canvas & Background Sizing */
.curricular-section {
    position: relative;
    width: 100%;
    margin: 40px auto;
    padding: 20px 0;
}

.curricular-section-canvas {
    position: relative;
    width: 100%;
    min-height: 100% !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat;
    background-position: center top;
    margin: 40px auto;
    max-width: 100%;
    height: 100% !important;
}

.cur-imgs-relative {
    position: relative;
    width: 100%;
    height: 3300px;
}


/* Common Activity Item absolute positioning base */
.activity-pos-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

/* Early Years items base */
.activity-item {
    transition: transform 0.3s ease;
}

.activity-item:hover {
    z-index: 120;
}

.activity-pos-item:hover {
    transform: scale(1.06);
    z-index: 120;
}

/* py-item-2 and py-item-11 (translateX centered) */
.py-item-2:hover {
    transform: translateX(-50%) scale(1.06) !important;
}

.py-item-11:hover {
    transform: translateX(-50%) scale(1.06) !important;
}



.activity-pos-item .activity-icon {
    width: 53vh;
    height: 42vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

/* Popups Base & Bottom-to-Top Above-Icon Fade-Up Animation */
.activity-item .popup,
.activity-pos-item .popup {
    display: block !important;
    position: absolute !important;
    bottom: 20% !important;
    left: 50% !important;
    top: auto !important;
    right: auto !important;
    background-color: #2c5282;
    color: white;
    border-radius: 20px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.5;
    width: 440px;
    max-width: 90vw;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 5px solid #ecb250;
    z-index: 250;
    text-align: left;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(20px) !important;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.35s ease !important;
}

/* .activity-pos-item .popup .popup-title,
.activity-item .popup .popup-title {
    margin: 0 0 8px 0;
    color: #ecb250;
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
} */

.activity-pos-item .popup .popup-text,
.activity-item .popup .popup-text {
    margin: 0;
    color: #ffffff;
    font-size: 0.88rem;
    font-family: 'Merriweather', serif;
}

/* ACTIVE HOVER STATE: Smooth Bottom-to-Top Fade-Up directly ABOVE icon */
.activity-item:hover .popup,
.activity-pos-item:hover .popup {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* ----------------------------------------------------
   Primary Years Exact Screenshot Absolute Positioning
---------------------------------------------------- */
.py-item-1 {
    top: 3.5%;
    left: 5%;
}

.py-item-1 .popup {
    top: 100%;
    left: 0;
}

.py-item-2 {
    top: 1.5%;
    left: 48%;
    transform: translateX(-50%);
}

.py-item-2:hover {
    transform: translateX(-50%) scale(1.06);
}

.py-item-2 .popup {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.py-item-3 {
    top: 3.5%;
    right: 10%;
}

.py-item-3 .popup {
    top: 100%;
    right: 0;
}

.py-item-4 {
    top: 21%;
    left: 4%;
}

.py-item-4 .popup {
    top: 0;
    left: 100%;
}

.py-item-5 {
    top: 21%;
    right: 6%;
}

.py-item-5 .popup {
    top: 0;
    right: 100%;
}

.py-item-6 {
    top: 41%;
    left: 2%;
}

.py-item-6 .popup {
    top: 0;
    left: 100%;
}

.py-item-7 {
    top: 41%;
    right: 3%;
}

.py-item-7 .popup {
    top: 0;
    right: 100%;
}

.py-item-8 {
    top: 59%;
    left: 2%;
}

.py-item-8 .popup {
    bottom: 100%;
    left: 0;
}

.py-item-9 {
    top: 60%;
    right: 4%;
}

.py-item-9 .popup {
    bottom: 100%;
    right: 0;
}

.py-item-10 {
    bottom: 3.5%;
    left: 5%;
}

.py-item-10 .popup {
    bottom: 100%;
    left: 0;
}

.py-item-11 {
    bottom: 0.5%;
    left: 50%;
    transform: translateX(-50%);
}

.py-item-11:hover {
    transform: translateX(-50%) scale(1.06);
}

.py-item-11 .popup {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.py-item-12 {
    bottom: 5.5%;
    right: 6%;
}

.py-item-12 .popup {
    bottom: 100%;
    right: 0;
}


/* ----------------------------------------------------
   Upper Secondary Exact Screenshot Absolute Positioning
---------------------------------------------------- */
.us-item-1 {
    top: 1.5%;
    left: 16%;
}

.us-item-1 .popup {
    top: 100%;
    left: 0;
}

.us-item-2 {
    top: 1.5%;
    right: 16%;
}

.us-item-2 .popup {
    top: 100%;
    right: 0;
}

.us-item-3 {
    top: 17%;
    left: 7%;
}

.us-item-3 .popup {
    top: 0;
    left: 100%;
}

.us-item-4 {
    top: 17%;
    right: 7%;
}

.us-item-4 .popup {
    top: 0;
    right: 100%;
}

.us-item-5 {
    top: 34%;
    left: 3%;
}

.us-item-5 .popup {
    top: 0;
    left: 100%;
}

.us-item-6 {
    top: 34%;
    right: 3%;
}

.us-item-6 .popup {
    top: 0;
    right: 100%;
}

.us-item-7 {
    top: 52%;
    left: 3%;
}

.us-item-7 .popup {
    bottom: 0;
    left: 100%;
}

.us-item-8 {
    top: 52%;
    right: 3%;
}

.us-item-8 .popup {
    bottom: 0;
    right: 100%;
}

.us-item-9 {
    top: 69%;
    left: 7%;
}

.us-item-9 .popup {
    bottom: 100%;
    left: 0;
}

.us-item-10 {
    top: 69%;
    right: 7%;
}

.us-item-10 .popup {
    bottom: 100%;
    right: 0;
}

.us-item-11 {
    bottom: 1.5%;
    left: 16%;
}

.us-item-11 .popup {
    bottom: 100%;
    left: 0;
}

.us-item-12 {
    bottom: 1.5%;
    right: 16%;
}

.us-item-12 .popup {
    bottom: 100%;
    right: 0;
}

.prmry.cur-imgs-relative {
    height: 2900px;
}

.cocur-content {
    max-height: 260px;
    /* height: 260px; */
    overflow: auto;
    /* scrollbar-width: thin;
    scrollbar-color: #999 transparent; */
}



.cocur-content {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #afafaf14 !important;
    padding: 5px;
}

.cocur-content::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
}

.cocur-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.cocur-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 20px;
}

@media (max-width:2000px) {
    .activity-pos-item .activity-icon {
        width: 47vh;
    }
}

@media (max-width:1700px) {
    .activity-pos-item .activity-icon {
        width: 53vh;
        height: 47vh;
    }
}

@media (max-width:1600px) {
    .prmry.cur-imgs-relative {
        height: 2570px;
    }

    .activity-pos-item .activity-icon {
        width: 63vh;
    }

    .cur-imgs-relative {
        height: 2500px;
    }

    .curricular-section .heading-title {
        font-size: 4.6vw !important;
    }

    .curricular-section {
        height: 130vh;
    }
}

@media (max-width:1500px) {
    .curricular-section {
        padding: 0px 0;
        height: 130vh;
    }

    .prmry.cur-imgs-relative {
        height: 2370px;
    }

}

@media (max-width:1400px) {
    .prmry.cur-imgs-relative {
        height: 2170px;
    }

    .curricular-section .heading-title {
        font-size: 4.6vw !important;
    }

}

@media (max-width:1300px) {
    .center-content .cta-button {
        padding: 12px 22px;
        font-size: 20px;
    }

    .cur-imgs-relative {
        height: 2500px;
    }

}

@media (max-width:1199px) {
    .activity-pos-item .activity-icon {
        width: 20vh;
        height: 16vh;
    }

    .prmry.cur-imgs-relative {
        height: 1800px;
    }

    .cur-imgs-relative {
        position: relative;
        width: 100%;
        height: 2000px;
    }

    .activity-icon {
        width: 28vh;
        height: 20vh;
    }

    .curricular-section {
        padding: 0px 0;
        height: 100vh;
    }

    .activity-item.top-left {
        top: 3%;
    }

    .activity-item.top-right {
        top: 3%;
        right: 3%;
    }

    .center-content {
        position: absolute;
        top: 41%;
    }

    .activity-item.bottom-left {
        bottom: 15%;
        left: 0%;
    }

    .activity-item.bottom-right {
        bottom: 15%;
        right: 0%;
    }

    .activity-item.bottom-center {
        bottom: 90px;
        left: 57%;
    }

    .activity-item.bottom-right {
        bottom: 30%;
        right: 0%;
    }

    .activity-item .popup,
    .activity-pos-item .popup {
        width: 100%;
    }

    .popup-title {
        font-size: 1.7rem;
    }

}

@media (min-width: 1025px) and (max-width: 1181px) {

    .activity-pos-item .activity-icon {
        width: 36vh;
        height: 33vh;
    }

    .activity-icon {
        width: 43vh;
        height: 26vh;
    }

    .curricular-section {
        padding: 0px 0;
        height: 130vh;
    }
}

/* Responsive Rules for Tablet & Mobile */
@media (max-width: 991px) {
    .prmry.cur-imgs-relative {
        height: 100%;
    }

    .activity-label br {
        display: none;
    }

    .activity-pos-item .activity-icon {
        width: 40vh;
        height: 24vh;
    }

    .curricular-section-canvas {
        min-height: auto;
    }

    .cur-imgs-relative {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 20px 15px;
        padding: 30px 10px;
    }

    .activity-pos-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 45%;
        max-width: 200px;
        margin: 10px 0;
    }

    .activity-pos-item:hover {
        transform: scale(1.05) !important;
    }

    .activity-pos-item .popup {
        width: 350px;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: 12% !important;
        transform: translateX(-50%) !important;
    }

    .cur-imgs-relative .center-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        order: -1;
        margin-bottom: 25px;
    }

    .center-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        order: -1;
        margin-bottom: 25px;
    }

    .activity-icon {
        width: 100vh;
        height: 34vh;
    }

    .activity-pos-item,
    .activity-item {
        width: 90%;
        max-width: 260px;
    }

    .cur-imgs {
        display: flex;
        justify-content: space-evenly;
        margin: 0px;
        flex-wrap: wrap;
        left: 0%;
        width: 100%;
        height: 100%;
    }

    .activity-item {
        position: unset !important;
        width: 50% !important;
        max-width: unset;
    }

    .activity-icon {
        width: 100%;
        height: 100%;
    }

    .activity-item.bottom-center {
        transform: translateX(0%) translateY(0) !important;
    }

    .activity-item {
        height: 25%;
    }

    .popup-title {
        font-size: 1.7rem;
    }
}

@media (max-width:767px) {
    .center-content .cta-button {
        padding: 12px 22px;
        font-size: 16px;
        margin-top: 20px;
        border-radius: 14px;
    }

    .curricular-section .heading-title {
        line-height: 1.6;
    }

    .activity-label {
        font-size: 30px;
    }

    .activity-pos-item .activity-icon {
        width: 100vh;
        height: 34vh;
    }

    .activity-label br {
        display: none;
    }

    .prmry.cur-imgs-relative {
        height: 100%;
    }

    .activity-item {
        width: 100% !important;
        height: 42%;
        margin-bottom: 30px;
    }

    .curricular-section .curri-img {
        display: none;
    }

    .cur-imgs {
        background: url('../images/co-curricular/early_years_background.webp');
        position: unset;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .curricular-section {
        padding: 0px 0;
        height: 100%;
    }

    .activity-icon {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }

    .co-curricular-tabs-header {
        gap: 7px;
    }

    .tab-pill {
        padding: 8px 22px;
        font-size: 18px;
    }

    .curricular-section .heading-title {
        font-size: 9.6vw !important;
    }



}

@media (max-width: 576px) {
    .activity-pos-item {
        width: 90%;
        max-width: 260px;
    }

    .activity-pos-item .popup {
        width: 88vw;
    }
}