@font-face {
    font-family: "Futura New";
    src: url("/Fonts/FuturaNewBook-Reg.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura New";
    src: url("/Fonts/FuturaNewHeavy-Reg.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

.topsi-shell {
    margin: 0;
    background: #fff;
    color: #494f54;
    font-family: "Futura New", "Open Sans", open_sansregular, Tahoma, Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.2rem;
}

.topsi-page {
    --topsi-pink: #ec008c;
    --topsi-blue: #333366;
    --topsi-white: #fff;
    width: 100%;
    margin: 0 auto;
    background: var(--topsi-white);
}

.topsi-page a {
    color: var(--topsi-pink);
    text-decoration: none;
}

.topsi-page a:hover,
.topsi-page a:focus-visible {
    color: #a0005f;
}

.topsi-header {
    padding: 5px 0;
    background: #fff;
}

.topsi-topnav {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.topsi-topnav__bar {
    display: flex;
    align-items: stretch;
}

.topsi-brand {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: #fff;
}

.topsi-brand img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.topsi-menu-toggle {
    display: none;
    width: 48px;
    margin-left: auto;
    border: 3px solid var(--topsi-pink);
    background: var(--topsi-pink);
    padding: 9px;
}

.topsi-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.topsi-menu {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topsi-menu.collapse:not(.show) {
    display: flex;
}

.topsi-menu > li {
    position: relative;
    flex: 1 1 0;
    text-align: center;
}

.topsi-menu > li > a,
.topsi-menu > li > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 53px;
    padding: .7rem 1rem;
    border: 3px solid var(--topsi-pink);
    background: var(--topsi-pink);
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: normal;
    line-height: .75rem;
    cursor: pointer;
}

.topsi-menu > li:hover > a,
.topsi-menu > li:focus-within > a,
.topsi-menu > li:hover > button,
.topsi-menu > li:focus-within > button {
    background: #fff;
    color: var(--topsi-pink);
}

.topsi-submenu {
    position: absolute;
    top: calc(100% - 2px);
    left: 2px;
    right: 2px;
    z-index: 5;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.topsi-menu__item--dropdown:hover .topsi-submenu,
.topsi-menu__item--dropdown:focus-within .topsi-submenu {
    display: block;
}

.topsi-submenu a {
    display: block;
    padding: 11px 14px;
    border: 2px solid var(--topsi-pink);
    border-top: 0;
    background: var(--topsi-pink);
    color: #fff;
    font-size: .94rem;
}

.topsi-submenu a:hover,
.topsi-submenu a:focus-visible {
    background: #fff;
    color: var(--topsi-pink);
}

.topsi-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.topsi-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 6px;
    background: var(--topsi-pink);
}

.topsi-tabs div {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 10px 27px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.topsi-tabs div:last-child {
    border-right: 0;
}

.topsi-home-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-height: 354px;
    margin-top: 8px;
    padding: 22px 15px 28px;
    background: var(--topsi-blue);
}

.topsi-panel-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
}

.topsi-panel-card p {
    margin: 0 0 20px;
}

.topsi-panel-card strong {
    font-weight: 900;
}

.topsi-panel-card--be {
    padding-right: 18px;
}

.topsi-panel-card--semos {
    padding: 0 24px;
}

.topsi-panel-card--pay {
    padding-left: 18px;
}

/* Images sit at the bottom of their column (reference layout), not overlapping.
   margin-top:auto pushes each image to the foot of the flex-column card. */
.topsi-panel-card .topsi-image-link,
.topsi-panel-card > img {
    margin-top: auto;
}

.topsi-panel-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.topsi-footer {
    padding: 26px 0 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
}

.topsi-footer__divider {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 56px;
    margin-bottom: 3px;
    background-image: url("https://www.stb.com.mk/media/1895/home_devider.jpg");
    background-repeat: no-repeat;
    background-position: 0 16px;
}

.topsi-footer__social {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-left: 8px;
    background: #fff;
}

.topsi-footer__social a {
    display: block;
    width: 39px;
    padding: 3px;
    background: #fff;
}

.topsi-footer__social img {
    display: block;
    width: 31px;
    height: 31px;
}

.topsi-footer__logo {
    display: block;
    margin-right: -15px;
    padding: 0 10px;
    background: #fff;
}

.topsi-footer__logo img {
    display: block;
    width: 117px;
    height: 51px;
}

.topsi-footer p {
    margin: 0;
    text-align: center;
    color: #666;
}

.topsi-footer p a {
    color: var(--topsi-pink);
    font-weight: 400;
}

.topsi-footer p a:hover,
.topsi-footer p a:focus-visible {
    color: #a0005f;
}

.topsi-inner-main {
    background: #fff;
}

.topsi-content-page,
.topsi-product-page {
    min-height: 430px;
    padding: 34px 42px 46px;
    background: #57bcc4;
    color: #fff;
}

.topsi-creative-page {
    background-color: #fff;
    background-image: url("/assets/images/topsi/backgroun_plain.png");
    background-repeat: no-repeat;
    background-size: 100%;
    color: #333366;
}

.topsi-content-page.topsi-creative-page p,
.topsi-content-page.topsi-creative-page a {
    color: #333366;
}

.topsi-content-page a,
.topsi-product-page a {
    color: var(--topsi-pink);
}

.topsi-about-hero {
    position: relative;
    aspect-ratio: 1602 / 642;
    overflow: hidden;
    background: #f8e510;
}

.topsi-about-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.topsi-about-hero__actions {
    position: absolute;
    top: 11%;
    left: 3.2%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(23.1%, 370px);
    min-width: 120px;
}

.topsi-about-hero__actions img {
    display: block;
    width: 100%;
    height: auto;
}

.topsi-about-page {
    min-height: 0;
    margin-top: 12px;
    background: var(--topsi-pink);
}

.topsi-content-page h1,
.topsi-content-page h2 {
    margin: 0 0 16px;
    color: #333366;
    font-weight: 900;
}

.topsi-content-page h1 {
    font-size: 1.34rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.topsi-content-page.topsi-about-page h1 {
    color: #fff;
}

.topsi-content-page h2 {
    margin-top: 24px;
    font-size: 1.04rem;
    line-height: 1.35;
}

.topsi-content-page p,
.topsi-product-page p {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.45;
}

.topsi-about-page p {
    max-width: none;
}

.topsi-content-page a,
.topsi-product-page a {
    font-weight: 400;
}

.topsi-legal-page {
    min-height: 241px;
    margin: 10px 15px 0;
    padding: 0 0 36px;
    background-color: #fff;
    background-image: url("/assets/images/topsi/backgroun_plain.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    color: #494f54;
}

.topsi-legal-page h1 {
    min-height: 40px;
    margin: 0;
    padding: 10px 24px;
    background: var(--topsi-blue);
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.15;
    font-weight: 700;
}

.topsi-legal-page p {
    max-width: none;
    margin: 12px 24px 0;
    color: #494f54;
    line-height: 1.2;
}

.topsi-product-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.topsi-product-actions img {
    max-width: min(100%, 260px);
    height: auto;
}

.topsi-product-page {
    display: grid;
    gap: 28px;
}

.topsi-scenario-page {
    display: grid;
    gap: 4px;
    padding: 0;
    background: #fff;
}

.topsi-scenario-page .topsi-product-block {
    display: block;
    background-repeat: no-repeat;
    background-size: 100% auto;
    color: #fff;
}

.topsi-scenario-page .topsi-product-block > img {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin-bottom: 3%;
}

.topsi-scenario-page .topsi-product-block > p {
    max-width: none;
    color: #fff;
}

.studiram-1,
.studiram-2 {
    aspect-ratio: 1602 / 600;
    padding: 6%;
}

.studiram-1 {
    background-color: #00a9b5;
    background-image: url("/assets/images/topsi/istudy_block_1.jpg");
    padding-left: 52%;
}

.studiram-2 {
    background-color: #f8d50c;
    background-image: url("/assets/images/topsi/istudy_block_2.jpg");
    padding-right: 52%;
}

.rabotam-1 {
    aspect-ratio: 1602 / 696;
    padding: 6%;
    padding-right: 46%;
    background-color: #ce0082;
    background-image: url("/assets/images/topsi/iwork_block.jpg");
}

.rabotam-1 .topsi-product-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
}

.topsi-app-download {
    padding: 26px 20px;
    text-align: center;
}

.topsi-app-download__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topsi-app-download__links a {
    display: block;
}

.topsi-app-download__links img {
    display: block;
    width: min(100%, 170px);
    height: auto;
}

.topsi-accordion-list {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

.topsi-accordion-list details {
    background: transparent;
    border: 0;
}

.topsi-accordion-list summary {
    list-style: none;
    cursor: pointer;
    padding: 0;
    color: #333366;
    font-size: 1.04rem;
    line-height: 1.35;
    font-weight: 900;
}

.topsi-accordion-list summary::-webkit-details-marker {
    display: none;
}

.topsi-accordion-list summary::after {
    content: "\F0140";
    display: inline-block;
    margin-left: 6px;
    color: #fff;
    font-family: "Material Design Icons";
    font-weight: 400;
}

.topsi-npp-page > h1 {
    margin: 6px 0 20px;
    padding: 10px 10%;
    background: #333366;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.15;
}

.topsi-faq-intro {
    margin-bottom: 20px;
}

.topsi-faq-intro h2 {
    margin: 20px 0 0;
    padding: 10px 24px;
    background: var(--topsi-pink);
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.2;
    text-transform: none;
}

.topsi-faq-intro p {
    margin: 12px 0 0;
}

.topsi-accordion-list details p {
    padding: 8px 0 0;
    margin-bottom: 0;
    font-size: 1rem;
}

.topsi-products-overview {
    overflow: hidden;
    padding: 0 0 26px;
    color: #333366;
}

.topsi-products-overview h1,
.topsi-products-overview h2 {
    margin: 0;
    padding: 10px 10%;
    background: #333366;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.15;
    text-transform: uppercase;
}

.topsi-products-overview > p {
    max-width: none;
    margin: 12px 10% 0;
    color: #333366;
    font-size: .95rem;
    line-height: 1.45;
}

.topsi-products-overview .topsi-accordion-list {
    gap: 10px;
    width: min(82%, 1308px);
    margin: 36px auto 58px;
}

.topsi-products-overview .topsi-accordion-list details {
    background: #ec008c;
}

.topsi-products-overview .topsi-accordion-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 10px 24px;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.2;
}

.topsi-products-overview .topsi-accordion-list details[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, .75);
}

.topsi-products-overview .topsi-accordion-list summary::after {
    margin-left: 18px;
    color: #fff;
    font-size: 1rem;
}

.topsi-products-overview .topsi-accordion-list details p,
.topsi-npp-page .topsi-accordion-list details p {
    max-width: none;
    margin: 0;
    padding: 0 24px;
    color: #fff;
}

.topsi-products-overview .topsi-accordion-list details p:first-of-type,
.topsi-npp-page .topsi-accordion-list details p:first-of-type {
    padding-top: 16px;
}

.topsi-products-overview .topsi-accordion-list details p:last-of-type,
.topsi-npp-page .topsi-accordion-list details p:last-of-type {
    padding-bottom: 16px;
}

.topsi-products-overview .topsi-accordion-list details p + p,
.topsi-npp-page .topsi-accordion-list details p + p {
    margin-top: 12px;
}

.topsi-npp-page .topsi-accordion-list {
    gap: 10px;
    width: min(82%, 1308px);
    margin: 24px auto 0;
}

.topsi-npp-page .topsi-accordion-list details {
    background: #3aafd1;
}

.topsi-npp-page .topsi-accordion-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 10px 24px;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.2;
}

.topsi-npp-page .topsi-accordion-list details[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, .75);
}

.topsi-npp-page .topsi-accordion-list summary::after {
    margin-left: 18px;
    color: #fff;
    font-size: 1rem;
}

/* Match the main STB site: content capped at 85% of the viewport and centered
   on desktop (site.css: .container-fluid { max-width: 85%; }); full-width below. */
@media (min-width: 992px) {
    .topsi-page {
        max-width: 85%;
    }
}

@media (max-width: 991.98px) {
    .topsi-brand {
        flex-basis: 150px;
    }

    .topsi-menu > li > a,
    .topsi-menu > li > button {
        min-height: 47px;
        font-size: 15px;
        line-height: 1rem;
    }

    .topsi-tabs div {
        min-height: 46px;
        padding: 9px 18px;
        font-size: .9rem;
    }

    .topsi-home-panel {
        min-height: 380px;
        padding-left: 22px;
        padding-right: 22px;
        padding-bottom: 60px;
    }

    .topsi-panel-card {
        font-size: .9rem;
        line-height: 1.25;
    }
}

@media (max-width: 767.98px) {
    .topsi-topnav {
        flex-direction: column;
        gap: 4px;
    }

    .topsi-topnav__bar {
        min-height: 54px;
    }

    .topsi-brand {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 4px 0;
    }

    .topsi-menu-toggle {
        display: block;
    }

    .topsi-menu,
    .topsi-tabs,
    .topsi-home-panel {
        grid-template-columns: 1fr;
    }

    .topsi-menu {
        display: grid;
    }

    .topsi-menu.collapse:not(.show) {
        display: none;
    }

    .topsi-menu.collapse.show {
        display: grid;
    }

    .topsi-submenu {
        position: static;
        box-shadow: none;
    }

    .topsi-menu__item--dropdown:focus-within .topsi-submenu,
    .topsi-menu__item--dropdown:hover .topsi-submenu {
        display: block;
    }

    .topsi-home-panel {
        display: block;
        min-height: 0;
        padding: 18px 22px 26px;
    }

    .topsi-tabs div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }

    .topsi-panel-card {
        padding: 0;
        margin-bottom: 26px;
        text-align: left;
    }

    .topsi-panel-card:last-child {
        margin-bottom: 0;
    }

    .topsi-panel-card img {
        display: block;
        width: min(100%, 343px);
        max-width: 100%;
        margin: 12px 0 0;
    }

    .topsi-footer__divider {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        background-position: center 16px;
    }

    .topsi-footer__logo {
        margin-right: 0;
    }

    .topsi-content-page,
    .topsi-product-page {
        min-height: 0;
        padding: 26px 20px 34px;
    }

    .topsi-content-page h1 {
        font-size: 1.24rem;
    }

    .topsi-content-page p,
    .topsi-product-page p {
        font-size: 1rem;
    }

    .topsi-scenario-page .topsi-product-block {
        aspect-ratio: auto;
        min-height: 320px;
        padding: 24px 20px;
        background-size: cover;
        background-position: center top;
    }

    .topsi-about-hero__actions {
        gap: 2%;
    }

    .topsi-about-hero__actions img {
        width: min(160px, 30vw);
    }

    .topsi-product-block > a,
    .topsi-product-block .topsi-product-actions {
        grid-column: auto;
    }

    .topsi-products-overview h1,
    .topsi-products-overview h2 {
        padding-right: 20px;
        padding-left: 20px;
    }

    .topsi-products-overview > p,
    .topsi-products-overview .topsi-accordion-list {
        width: auto;
        margin-right: 20px;
        margin-left: 20px;
    }

    .topsi-npp-page .topsi-accordion-list {
        width: auto;
        margin-right: 20px;
        margin-left: 20px;
    }
}
