@font-face {
    font-family: NSK-TSR-W;
    font-style: normal;
    font-weight: normal;
    src: url("fonts/NSK-TSR-W-Regular.otf") format("opentype");
}

#body,
.tabItem {
    font-family: 'NSK-TSR-W', sans-serif;
    font-size: 16px;
    color: #001E37;
    font-weight: 400;
}

#main {
    width: 100%;
    margin: 0 auto;
}

#body {
    margin: 0;
}

div {
    display: block;
}

iframe {
    width: 100%;
    height: 100%;
    border: 0 !important;
}

/* --- Updated Tabs Container --- */
.tabs {
    text-align: center;
    font-size: 0px !important;
    padding: 0;
    margin: 10px 0 10px 0;
    position: relative;
    background: transparent; /* Removed grey capsule background */
    border-radius: 0;
    border-bottom: none;
    display: flex;
    justify-content: center;
    gap: 40px; /* Adjusted gap to behave like reference margins */
    -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
    height: 3px;
}

.tabs::-webkit-scrollbar-track {
    background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
    background: #7997AF;
    border-radius: 30px;
}

.tabs::-webkit-scrollbar-thumb:hover {
    background: #001E37;
}

.tabs li {
    float: none;
    display: inline-block;
    font-size: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.tabItem:first-letter {
    text-transform: capitalize;
}

/* --- Updated Base Tab Button --- */
.tabItem {
    height: auto;
    line-height: normal;
    display: inline-block;
    box-sizing: border-box;
    padding: 1em 0 !important; /* Reference vertical padding, 0 horizontal */
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    text-transform: capitalize;
    transition: color 0.3s ease;
    position: relative;
    font-family: inherit;
    font-weight: bold; /* Match reference font weight */
    font-size: 16px;
    text-align: center;
    color: #0D295D; /* Reference deep blue color */
    white-space: nowrap;
}

/* Reference Underline Animation Setup */
.tabItem::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #0D295D;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

/* --- Hover State --- */
.tabItem:hover {
    color: #0D295D;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Underline reveals on hover */
.tabItem:hover::after {
    transform: scaleX(1);
}

/* --- Active State (.tabItem-active) --- */
.tabItem:active,
.tabItem-active {
    background: transparent !important;
    color: #0D295D;
    font-weight: bold;
    border: none !important;
    box-shadow: none;
}

/* Keep underline visible on active tab */
.tabItem-active::after {
    transform: scaleX(1) !important;
}

.tabs-control {
    margin-top: 2px;
    display: table;
    width: 100%;
    margin-bottom: 1.5em;
    max-width: 100px;
    margin: 0 auto;
}
@media (max-width: 1200px) {
    .tabItem {
        font-size: 16px !important;
    }
}
@media (max-width: 600px) {
    .tabs {
        overflow-x: visible;
        overflow-y: visible;
        -webkit-overflow-scrolling: auto;
        max-width: 100%;
        display: grid !important;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(3, auto);  
        gap: 12px 16px;                       
        justify-content: stretch;
        padding: 4px 16px;
        box-sizing: border-box;
    }

    .tabs li {
        flex-shrink: unset;
        display: block;
        text-align: center;
    }

    .tabItem {
        white-space: normal; 
        display: inline-block;
        width: 100%;
        padding: 0.6em 0 !important; 
    }

    .tabs::-webkit-scrollbar,
    .tabs::-webkit-scrollbar-thumb,
    .tabs::-webkit-scrollbar-thumb:hover {
        display: none;
        background: transparent;
    }

    .tabs-control {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        margin-top: 2px;
        display: block !important;
        width: fit-content;
        max-width: 100% !important;
        margin-bottom: 32px;
    }
}

@media (max-width: 544px) {
    .tabItem {
        font-size: 14px !important;
    }
}