@import url('richtext.css');

body {
    background-color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.grecaptcha-badge {
    z-index: 9999 !important;
}

p {
    margin-top: 0;
    margin-bottom: 0
}

.page {
    margin-top: 77px;
    align-content: center;
    color: var(--darujme-tmava);
    background-color: white !important;
}

/* Body texts */
.body-01 {
    font-size: 10px;
    font-weight: var(--fw-regular);
    /*line-height: 125%;*/
}

.body-02 {
    font-size: 14px;
    font-weight: var(--fw-regular);
    /*line-height: 1.4;*/
}

.body-03 {
    font-size: 16px;
    font-weight: var(--fw-regular);
    /*line-height: 140%;*/
}

.body-04 {
    font-size: 18px;
    font-weight: var(--fw-regular);
    /*line-height: 120%;*/
}

.body-05 {
    font-size: 22px;
    font-weight: var(--fw-regular);
    /*line-height: 110%;*/
}

/* CTA texts */
.cta-01 {
    font-size: 14px;
    font-weight: var(--fw-regular);
    /*line-height: 120%;*/
    text-decoration: underline;
}

.cta-02 {
    font-size: 14px;
    font-weight: var(--fw-regular);
    /*line-height: 110%;*/
}

.btn-pill {
    border-radius: 100px;
}


/*TODO presunut do overrides.css!!*/

/* Headings */
h6 {
    font-size: 20px;
    /*font-weight: var(--fw-bold);*/
    line-height: 1.15;
}

h5 {
    font-size: 26px;
    /*font-weight: var(--fw-regular);*/
    line-height: 1.15;
}

h4 {
    font-size: 34px;
    /*font-weight: var(--fw-regular);*/
    line-height: 1.10;
}

h3 {
    font-size: 38px;
    /*font-weight: var(--fw-bold);*/
    line-height: 1.10;
}

h2 {
    font-size: 60px;
    /*font-weight: var(--fw-regular);*/
    line-height: 1.15;
}

h1 {
    font-size: 65px;
    /*font-weight: var(--fw-bold);*/
    line-height: 1.2;
}

.custom-badge {
    position: absolute;
    top: 0;
    right: 40px;
    padding: 25px 15px 30px 15px;
    font-size: 0.8rem;
    line-height: 1;
    z-index: 10;

    clip-path: polygon(0 0, 100% 0, 100% 75%, 0% 100%);


    padding-right: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-title {
    padding-right: 110px;
}

.news-index-page .custom-badge {
    position: static;
    display: inline-block;
    padding: 10px 14px 20px 7px;
    font-size: 0.65rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.event-content-col {
    width: calc(100% - 400px) !important;
}

@media (max-width: 991.98px) {
    .event-index-page .custom-badge {
        position: static;
        display: inline-block;
        padding: 10px 14px 20px 7px;
        font-size: 0.65rem;
        flex-shrink: 0;
        align-self: flex-start;
    }

    .event-card-title {
        padding-right: 0;
    }

    .event-content-col {
        border: none !important;
        width: 100% !important;
    }
}

/* Width utilities for all Bootstrap breakpoints */
/* Small (sm) - ≥576px */
@media (min-width: 576px) {
    .w-sm-25 {
        width: 25% !important;
    }

    .w-sm-50 {
        width: 50% !important;
    }

    .w-sm-60 {
        width: 60% !important;
    }


    .w-sm-70 {
        width: 70% !important;
    }

    .w-sm-75 {
        width: 75% !important;
    }

    .w-sm-80 {
        width: 80% !important;
    }

    .w-sm-90 {
        width: 90% !important;
    }

    .w-sm-100 {
        width: 100% !important;
    }

    .w-sm-auto {
        width: auto !important;
    }
}

/* Medium (md) - ≥768px */
@media (min-width: 768px) {
    .w-md-25 {
        width: 25% !important;
    }

    .w-md-50 {
        width: 50% !important;
    }

    .w-md-60 {
        width: 60% !important;
    }


    .w-md-70 {
        width: 70% !important;
    }

    .w-md-75 {
        width: 75% !important;
    }

    .w-md-80 {
        width: 80% !important;
    }

    .w-md-90 {
        width: 90% !important;
    }

    .w-md-100 {
        width: 100% !important;
    }

    .w-md-auto {
        width: auto !important;
    }
}

/* Large (lg) - ≥992px */
@media (min-width: 992px) {
    .w-lg-25 {
        width: 25% !important;
    }

    .w-lg-50 {
        width: 50% !important;
    }

    .w-lg-60 {
        width: 60% !important;
    }


    .w-lg-70 {
        width: 70% !important;
    }

    .w-lg-75 {
        width: 75% !important;
    }

    .w-lg-80 {
        width: 80% !important;
    }

    .w-lg-90 {
        width: 90% !important;
    }

    .w-lg-100 {
        width: 100% !important;
    }

    .w-lg-auto {
        width: auto !important;
    }
}

/* Extra Large (xl) - ≥1200px */
@media (min-width: 1200px) {
    .w-xl-25 {
        width: 25% !important;
    }

    .w-xl-50 {
        width: 50% !important;
    }

    .w-xl-60 {
        width: 60% !important;
    }


    .w-xl-70 {
        width: 70% !important;
    }

    .w-xl-75 {
        width: 75% !important;
    }

    .w-xl-80 {
        width: 80% !important;
    }

    .w-xl-90 {
        width: 90% !important;
    }

    .w-xl-100 {
        width: 100% !important;
    }

    .w-xl-auto {
        width: auto !important;
    }
}

/* Extra Extra Large (xxl) - ≥1400px */
@media (min-width: 1400px) {
    .w-xxl-25 {
        width: 25% !important;
    }

    .w-xxl-50 {
        width: 50% !important;
    }

    .w-xxl-60 {
        width: 60% !important;
    }


    .w-xxl-70 {
        width: 70% !important;
    }

    .w-xxl-75 {
        width: 75% !important;
    }

    .w-xxl-80 {
        width: 80% !important;
    }

    .w-xxl-90 {
        width: 90% !important;
    }

    .w-xxl-100 {
        width: 100% !important;
    }

    .w-xxl-auto {
        width: auto !important;
    }
}

/* Responsive background images using CSS variables */
.bg-responsive {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-image: var(--bg-mobile) !important;
}

@media (min-width: 768px) {
    .bg-responsive {
        background-image: var(--bg-desktop, var(--bg-mobile)) !important;
    }
}

/* richtext link/anchor fix color */

a {
    color: var(--darujme-tmava);
}

/* Hero + Stats combined layout:
   When StatsBlock immediately follows HeroBlock, constrain hero height so both
   fit in the viewport. Stats gets 200px reserve (generous for content + padding).
   DOM: .page > main.default-page > .component-hero + .component-statistics */
.component-hero:has(+ .component-statistics) {
    --hero-min-height: calc(100dvh - 77px - 200px);
    --hero-max-height: calc(100dvh - 77px - 200px);
    max-height: calc(100dvh - 77px - 200px);
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove the large margin-top: 25% that inflates the hero's content height */
.component-hero:has(+ .component-statistics) .hero-title {
    margin-top: 0;

}

.language-switch {
    margin: 1.25rem 0;
}

.language-switch__link {
    align-items: center;
    color: var(--darujme-tmava);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.65rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.language-switch--subtle .language-switch__link {
    background: #fff;
    border-color: #d7deec;
}

@media (max-width: 575.98px) {
    .language-switch__link {
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Vertically center the text column within the hero on desktop */
@media (min-width: 992px) {
    .component-hero:has(+ .component-statistics) .container > .row {
        min-height: 100%;
    }

    .component-hero:has(+ .component-statistics) .col-lg-5 {
        justify-content: center;
    }
}

/* Stats: consistent padding at every viewport size */
.component-hero + .component-statistics {
    min-height: 200px;
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
    display: flex;
    align-items: center;
}

.component-hero + .component-statistics > * {
    width: 100%;
}

/* Constrain the desktop image to fit within hero — uses min() so it never exceeds
   600px (design size). z-index stacking context on .container escapes overflow:hidden. */
.component-hero:has(+ .component-statistics) .h-600px {
    max-height: min(600px, calc(100dvh - 77px - 200px - 1rem)) !important;
    width: auto;
}

/* On mobile: disable the viewport-fill constraint, constrain phone mockup height */
@media (max-width: 991.98px) {
    .component-hero:has(+ .component-statistics) {
        --hero-max-height: none;
        max-height: none;
        overflow: visible;
    }

    .component-hero + .component-statistics {
        min-height: auto;
    }

    .component-hero .d-lg-none img {
        max-height: 50vh;
        width: auto !important;
        max-width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

.language-switch .language-switch__link .language-switch-flag {
    width: 60px;
    height: 40px;
    border: 1px solid #1a1a1a;
    background-size: contain;
}

.language-switch .language-switch__link .language-switch-flag.language-switch-flag-sk {
    background-image: url(../assets/icons/sk.png);
}

.language-switch .language-switch__link .language-switch-flag.language-switch-flag-en {
    background-image: url(../assets/icons/en.png);
}

/*
.hero-slider-container .hero-slide {
    border: 8px solid #101351;
    border-radius: 25px;
}

.hero-slider-container .hero-slide img{
    border-radius: 15px;
}
 */

.hero-slide {
    width: 100%;
    text-align: center;
}

.hero-slider-lg-alignment {
    justify-content: center;
    align-items: center;
}



/* HOME MAIN CAROUSEL */
.hero-content-wrapper.home-main .hero-slider-mask {
    max-width: 693px;
}

.hero-content-wrapper.home-main .hero-slider-mask {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 194px;
    height: 360px;
}

.hero-content-wrapper.home-main .hero-slider-mask .hero-slider-container {
    position: relative;
    z-index: 1;
}

.hero-content-wrapper.home-main .hero-slider-mask-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: url('../images/mobile-mask.png') top center / 100% 100% no-repeat;
    pointer-events: none;
}

.hero-content-wrapper.home-main .hero-slider-container img {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.hero-content-wrapper.home-main h1 {
    margin-top: 2rem;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
}

.hero-content-wrapper.home-main .hero-title {
    margin-bottom: 1.5rem;
}

.hero-content-wrapper.home-main .title-column {
    width: 100%;
    justify-content: center;
}

.hero-content-wrapper.home-main .carousel-column {
    width: 50%;
}

@media (min-width: 992px) {
    .hero-content-wrapper.home-main .hero-slider-mask {
        width: auto;
        height: initial;
    }

    .hero-content-wrapper.home-main .hero-slider-mask-overlay {
        background: url('../images/ipad-mask.png') top center / 100% 100% no-repeat;
    }

    .hero-content-wrapper.home-main .hero-slider-container img {
        padding-top: 3dvh;
        object-fit: cover;
        border-radius: 3dvh;
    }

    .hero-content-wrapper.home-main h1 {
        margin-top: initial;
        font-size: 55px;
    }

    .hero-content-wrapper.home-main .hero-text {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 2.5rem;
    }

    .hero-content-wrapper.home-main .title-column {
        width: 50%;
    }
}

@media (min-width: 1600px) {
    .hero-content-wrapper.home-main h1 {
        font-size: 67px;
    }

    .hero-content-wrapper.home-main .hero-text {
        font-size: 24px;
        line-height: 34px;
    }
}


/* ADMIN CAROUSEL */

.hero-content-wrapper.admin-carousel .hero-slider-mask {
     position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 320px;
    height: auto;
}

.hero-content-wrapper.admin-carousel .hero-slider-container img {
    border-radius: 0;
    padding: 10px 30px 20px;
    object-fit: cover;
}

.hero-content-wrapper.admin-carousel .hero-slider-mask-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: url('../images/mac-mask.png') top center / 100% 100% no-repeat;
    pointer-events: none;
}


@media (min-width: 576px) {
    .hero-content-wrapper.admin-carousel .hero-slider-mask {
        width: 500px;
    }

    .hero-content-wrapper.admin-carousel .hero-slider-container img {
        padding: 15px 46px 32px;
    }
}

@media (min-width: 1200px) {
    .hero-content-wrapper.admin-carousel .hero-slider-lg-alignment {
        justify-content: end;
        align-items: center;
    }

      .hero-content-wrapper.admin-carousel .hero-slider-mask {
        width: 660px;
    }

    .hero-content-wrapper.admin-carousel .hero-slider-container img {
        padding: 20px 60px 40px;
    }
}


.accordion {
    background: none;
}

.accordion .accordion-item {
    background: none;
}


.event-card {
    height: 350px;
}

.event-card img {
    width: 400px;
}

.event-card .image-container {
    display: none;
}

@media (min-width: 992px) {
    .event-card .image-container {
        display: block;
        width: 400px;
        height: 350px;
        position: relative;
    }
}

.event-card .row.g-0,
.event-card .event-content-col,
.event-card .card-body {
    height: 100%;
}

.event-index-page .event-card .card-body {
    padding: 1.5rem !important;
    overflow: hidden;
}

.event-index-page .event-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-index-page .event-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .event-card {
        height: auto;
    }
}
