@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;
}

@media (max-width: 767.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 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;
}

/* 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;
    }
}
