@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --green: #61B9A7;
  --dark-blue: #322873;
  --pink: #F7B5C0;
  --orange: #F16967;
  --font-family: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.no-scroll {
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: auto;
}

.is-animated {
    transition: all 0.3s ease-in-out;
}

.toggle {
    position: relative;

    &.has-children {
        padding: 0;

        & > .toggle-content {
            padding: 0;
        }

        & > .btn-toggle {
            top: 20px;
            bottom: auto;
        }

        & .toggle-content {
            padding: 0;
        }

        & .toggle-child {

            & .toggle-title {
                font-weight: 400;
            }
        }

        &.is-active {

            & > .btn-toggle {
                top: 20px;
                bottom: auto;
            }
        }
    }

    & .toggle-content {
        display: none;
    }

    &.is-active {
        & > .toggle-content {
            display: block;
        }

        & > .btn-toggle {
            transform: rotate(180deg);
            top: auto;
            bottom: 40px;
        }
    }

    & .toggle-title {
        font-size: 29px;
        font-weight: bold;
        line-height: 1;
        text-transform: uppercase;
        padding: 10px 50px 10px 0;

        @media(max-width: 980px){
           font-size: 22px;
           padding: 10px 30px 10px 0;
        }
    }

    & .toggle-content {
        padding: 72px 0;
        font-size: 29px;
        line-height: 52px;

        @media(max-width: 980px){
            padding: 20px 0;
            font-size: 18px;
            line-height: 21px;
        }

        & strong {
            color: inherit;
        }

        & li {
            margin-bottom: 52px;
            &:last-child {
                margin-bottom: 0;
            }

            @media(max-width: 980px){
                margin-bottom: 24px;
            }
        }
    }
    & .btn-toggle {
        position: absolute;
        bottom: 0;
        top: 0;
        right: calc(50% - 720px);
        background-color: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;

        @media(max-width: 1530px){
            right: 10px;
        }

        @media(max-width: 980px){
            width: 30px;
        }
    }
}

.page-template-zdrav-pocetak {
    font-family: var(--font-family);

    & h1,
    & h2,
    & h3,
    & p,
    & button,
    & a {
        font-family: var(--font-family);
    }

    & .header-dark.header-relative,
    & footer,
    & #galenika-chat {
        display: none;
    }

    & .section-title {
        font-size: 53px;
        line-height: 55px;
        text-transform: uppercase;
        font-weight: 700;
        color: #fff;

        @media(max-width: 980px){
            font-size: 30px;
            line-height: 35px;
        }
    }

    & .primary-header {
        border-bottom: 1px solid var(--pink);
        height: auto;
        padding: 0;

        & .header-content {
            padding: 30px 40px;

            @media(max-width: 980px){
                padding: 24px;
            }
        }
    }

    & .btn {
        padding: 32px 38px;
        font-size: 30px;
        line-height: 1;
        border-radius: 100px;
        border: 1px solid;
        text-transform: uppercase;
        font-weight: 700;
        text-align: center;

        &.small {
            padding: 15px 42px;
        }

        &.btn-dark-blue {
            background-color: var(--dark-blue);
            border-color: var(--dark-blue);
            color: #fff;

            &:hover {
                background-color: var(--green);
            }
        }

        &.btn-outline-green {
            background-color: var(--green);
            border-color: var(--dark-blue);
            color: #fff;

            &:hover {
                background-color: var(--dark-blue);
            }
        }

        &.btn-outline-cta {
            background-color: transparent;
            border-color: var(--pink);
            color: #fff;

            &:hover {
                background-color: var(--pink);
            }
        }  
    }

    & .wpcf7-form {
        width: 100%;
        max-width: 710px;
        margin-inline: auto;
        text-align: center;
        font-family: var(--font-family) !important;

        & label {
            text-align: center;
            color: #fff;
            font-size: 32px;
            line-height: 44px;
            text-transform: uppercase;
            margin-bottom: 20px;

            @media(max-width: 980px){
                font-size: 20px;
            }
        }

        & .wpcf7-form-control-wrap {
            display: block;
        }

        & .wpcf7-form-control[type="text"],
        & .wpcf7-form-control[type="email"],
        & .wpcf7-form-control[type="file"],
        & .wpcf7-form-control[type="submit"] {
            background-color: var(--pink);
            border: 1px solid;
            border-radius: 100px;
            min-height: 55px;
            line-height: 55px;
            font-size: 32px;
            color: var(--orange);
            width: 100%;
            padding: 0 20px;
            text-align: center;
            font-family: var(--font-family);

            &::placeholder {
                color: var(--orange);
                font-family: var(--font-family);
                text-transform: uppercase;
                font-weight: 700;
            }

            @media(max-width: 980px){
                font-size: 20px;
            }
        }

        & input::file-selector-button {
            background-color: transparent;
            color: var(--orange);
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: 0.3s;
        }

        & input::file-selector-button:hover {
            background-color: transparent;
        }

        & .wpcf7-form-control.wpcf7-submit {
            width: auto !important;
            display: inline-block;
            padding: 10px 30px;
            text-align: center;
            text-transform: uppercase;
            font-size: 24px;
            line-height: 32px;
            font-family: var(--font-family);

            &:not([disabled]) {

                &:hover {
                    background-color: var(--orange);
                    color: var(--pink);
                    cursor: pointer;
                }
            }
        }
        
        & .radio-wrapper .wpcf7-list-item label {
            position: relative;
            text-align: center;
            color: var(--pink);
            border: 1px solid #fff;
            border-radius: 100px;
            width: 100%;
            font-size: 24px;

            @media(max-width: 980px){
                font-size: 20px;
                line-height: 1.2;
            }
        }
       
        & .radio-wrapper .wpcf7-list-item input {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        & .radio-wrapper input[type="radio"] {
            opacity: 0.011;
            z-index: 100;
        }

        & .radio-wrapper .wpcf7-list-item label {
            padding: 10px 20px;
            cursor: pointer;
            z-index: 90;
            text-aling: center;
        }
        & .radio-wrapper .wpcf7-list-item input[type="radio"]:checked + label,
        & .radio-wrapper .wpcf7-list-item label:hover {
            background: var(--pink);
            color: var(--orange);
        }

        & .radio-wrapper .wpcf7-list-item,
        & .radio-wrapper .wpcf7-form-control {
            display: block;
            width: 100%;
            margin: 0;
        }

        & .wpcf7-acceptance {
            text-align: left;
            font-size: 18px;

            & a {
                text-decoration: underline;
            }

            & label {
                text-align: left;
                font-size: 18px;
                line-height: 25px;
            }
        }

        & .file-wrapper,
        & .text-wrapper {
            margin-top: 70px;
            margin-bottom: 40px;

            & label {
                font-size: 24px;
            }
        }

        & .wpcf7-not-valid-tip {
            color: var(--pink);
        }

        & .wpcf7-response-output {
            font-size: 30px;
            line-height: 40px;
            color: #fff;
        }

    }
}

.section {

    &.hero {
        padding-bottom: 54px;

        @media(max-width: 980px){
            padding-bottom: 118px;
        }

        & .container {
            padding: 0 24px;
        }

        & .headline {
            text-align: center;
            padding-bottom: 45px;
            max-width: 1220px;
            margin: auto;

            & h2 {
                font-size: 37px;
                line-height: 45px;
                color: var(--green);
                text-transform: uppercase;
                font-weight: 400;

                @media(max-width: 980px){
                    font-size: 30px;
                    line-height: 40px;
                }
            }
        }

        & .logo {
            padding: 80px 0;
            text-align: center;

            & svg {
                display: block;
                margin: auto;
            }

            @media(max-width: 980px){
                padding: 64px 0 48px 0;

                & img {
                    max-width: 350px;
                }
            }
        }

        & .arrow {
            text-align: center;
        }
    }

    &.intro {
        color: #fff;
        border-bottom: 1px solid var(--pink);
        background-color: var(--green);
        padding: 100px 0;

        @media(max-width: 980px){
            padding: 20px 0 100px 0;
        }

        & .container {
            padding: 0 24px;
        }

        & .headline-wrapper {
            background-image: url(../images/zdrav-pocetak/middle-school-1-bg.svg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: 1200px auto;
            margin-bottom: 75px;

            @media(max-width: 1260px){
                background-size: calc(100% - 40px) auto;
            }
        }

        &:hover {

            & .headline {
                backdrop-filter: blur(10px);
            }
        }

        & .headline {
            text-align: center;
            padding: 180px 0;

            & h3 {
                margin-bottom: 0;
            }

            @media(max-width: 980px){
                padding: 80px 0;
            }
        }

        & .buttons-wrapper {
            display: flex;
            justify-content: center;
            gap: 178px;

            & .btn {
                width: 322px;
            }

            @media(max-width: 980px){
                flex-wrap: wrap;
                flex-direction: column;
                align-items: center;
                gap: 33px;

                & .btn {
                    width: 100%;
                    max-width: 322px;
                }
            }
        }
    }

    &.middle-school-1 {
        background-color: var(--green);
        padding: 120px 0px 80px 0;

        & .container {
            padding: 0 24px;
        }

        & .headline {
            text-align: center;
            margin-bottom: 100px;
        }

        & .videos-wrapper {
            display: flex;
            gap: 60px;

            @media(max-width: 768px){
                flex-direction: column;
                flex-wrap: wrap;
                gap: 20px;
            }

            & .video-box {
                flex: 1;
                border-radius: 40px;
                border: 2px solid var(--drak-blue);
                overflow: hidden;
            }

            & .swiper-slide {
                border-radius: 40px;
                border: 2px solid var(--drak-blue);
                overflow: hidden;
            }
            & iframe {
                aspect-ratio: 3 / 4;
                width: 100%;
                object-fit: cover;
                height: 100%;
            }
        }
    }

    &.middle-school-2 {
        background-color: var(--green);
        background-image: url(../images/zdrav-pocetak/middle-school-2-bg.svg);
        background-position: center 60px;
        background-repeat: no-repeat;

        & .container {
            padding: 0 24px;
        }

        @media(max-width: 980px){
            background-size: 222px 244px;
            background-position: center;
        }

        & .content-wrapper {
            padding: 60px 0;
        }

        &:hover {

            & .content-wrapper {
                backdrop-filter: blur(10px);
            }
        }

        & .headline {
            padding: 126px 0 80px 0;
            text-align: center;

            & h3 {
                font-weight: 400;

                @media(max-width: 980px){
                    line-height: 40px;
                }
            }
        }
    }

    &.middle-school-3 {
        background-color: var(--green);
        padding-bottom: 107px;

        @media(max-width: 980px){
            padding-bottom: 60px;
        }

        & .container {
            padding: 0 24px;
        }

        @media(max-width: 980px){
            line-height: 40px;
        }

        & .headline-1 {
            padding: 185px 0 165px 0;
            max-width: 980px;
            margin-inline: auto;
            text-align: center;
            margin-bottom: 76px;
            position: relative;
            z-index: 10;

            @media(max-width: 980px){
                padding: 0;
            }
        }
        & .headline-2 {
            max-width: 1014px;
            margin: auto;
            text-align: center;
            position: relative;
            z-index: 10;

            & h3 {
                font-weight: 400;
            }
        }

        & .content-wrapper .container {
            position: relative;
            max-width: 1024px;
        }

        & .img-box {
            opacity: 0;
            transform: translateY(200px);
            transition:
                transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 1.8s ease;
            will-change: transform, opacity;
            position: absolute;
        }

        &.in-view .img-box {
            opacity: 1;
            transform: translateY(0);

            @media(max-width: 980px){
                opacity: 0;
                visibility: 0;
                display: none;
            }
        }

        & .img-box-1 {
            right: 262px;
            top: 0;
        }

        & .img-box-2 {
            left: 0;
            top: 221px;
        }

        & .img-box-3 {
            right: 20px;
            top: 311px;
        }

        &.in-view .img-box-1 {
            transition-delay: 0s;
        }

        &.in-view .img-box-2 {
            transition-delay: 0.15s;
        }

        &.in-view .img-box-3 {
            transition-delay: 0.3s;
        }
    }

    &.middle-school-4 {
        border-top: 1px solid var(--pink);
        background-color: var(--green);
        color: #fff;
        padding-bottom: 80px;

        & .content-wrapper-1 .container {

            @media(min-width: 1531px){
                padding-left: 60px !important;
            }
            
        }

        & h3 {
            color: #fff;
            font-weight: 400;
            font-size: 29px;
            line-height: 1;
            margin-bottom: 0;

            @media(max-width: 980px){
                font-size: 24px;
            }
        }

        & .content-wrapper .container {
            padding: 20px 85px;

            @media(max-width: 1530px){
                padding: 20px 10px;
            }
        }
        
        & .toggle-title {
            background-color: var(--orange);
            font-size: 29px;
            font-weight: bold;
            line-height: 1;
            text-transform: uppercase;

            @media(max-width: 980px){
                font-size: 20px;
            }
        }
    }

    &.section-cta {

        & .row {
            display: flex;

            @media(max-width: 980px){
                flex-direction: column;
                flex-wrap: wrap;
            }

            & .col {
                align-items: center;
                text-align: center;

                &.col-icon {
                    width: 60%;
                    padding: 100px 40px;

                    &:hover img {
                        filter: blur(10px);
                    }

                    @media(max-width: 980px){
                        width: 100%;
                    }
                }
                &.col-txt {
                    width: 40%;
                    padding: 100px 62px;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    color: #fff;

                    @media(max-width: 980px){
                        padding: 70px 24px;
                    }

                    & .txt {
                        font-size: 38px;
                        line-height: 44px;
                        text-transform: uppercase;
                        margin-bottom: 55px;
                        
                        @media(max-width: 980px){
                            font-size: 30px;
                            line-height: 40px;
                        }

                    }

                    @media(max-width: 980px){
                        width: 100%;
                    }
                }
            }
        }

        &.middle-school-cta {
            background: linear-gradient(to right, var(--pink) 50%, var(--orange) 50%);
            & .col-icon {
                background-color: var(--pink);
            }
            & .col-txt {
                background-color: var(--orange);
            }
        }

        &.students-cta {
            background: linear-gradient(to right, var(--pink) 50%, var(--green) 50%);
            & .col-icon {
                background-color: var(--pink);
            }
            & .col-txt {
                background-color: var(--green);
            }
        }
    }

    &.students-toggle {
        border-top: 1px solid var(--green);
        background-color: var(--dark-blue);
        color: #fff;
        padding-bottom: 80px;

        & .content-wrapper-1 .container {

            @media(min-width: 1531px){
                padding-left: 60px !important;
            }
            
        }

        & h3 {
            color: var(--green);
            font-weight: 400;
            font-size: 29px;
            line-height: 1;
            margin-bottom: 0;
        }

        & .content-wrapper .container {
            padding: 20px 85px;

            @media(max-width: 1530px){
                padding: 20px 10px;
            }
        }

        & .content-wrapper-toggle > .toggle > .toggle-title {
            background-color: var(--green);
            color: #fff;
        }

        & .toggle {
            border-bottom: 1px solid var(--green);
        }

        & .toggle.has-children {
            border-bottom: 1px solid #fff;
        }

        & .toggle-child .toggle-content {
            color: var(--green);

        }

        & .toggle.toggle-child .toggle-title {
            padding-right: 40px;
        }

         & .toggle-child .toggle-title{

            @media(max-width: 980px){
                font-size: 18px;
            }
        }

         & .toggle-child .toggle-content {
            color: var(--green);

            @media(max-width: 980px){
                font-size: 20px;
            }
        }

         & .toggle-title {

            @media(max-width: 980px){
                font-size: 18px;
            }
        }
    }

    &.students-1 {
        background-color: var(--dark-blue);
        text-align: center;
        padding-top: 116px;

        @media(max-width: 980px){
            padding-top: 80px;
        }

        & .section-title {
            margin-bottom: 188px;
            padding: 0 24px;

            @media(max-width: 980px){
                margin-bottom: 80px;
            }
        }
    }

    &.students-2 {
        background-color: var(--dark-blue);
        background-image: url(../images/zdrav-pocetak/students-2-bg.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 416px 416px;

        @media(max-width: 980px){
            background-size: 200px 200px;
        }

        & .container {
            padding: 0 24px;
        }

        & .content-wrapper {
            padding: 60px 0;
        }

        &:hover {

            & .content-wrapper {
                backdrop-filter: blur(10px);
            }
        }

        & .headline {
            padding: 126px 0 80px 0;
            text-align: center;
            max-width: 1080px;
            margin: auto;

            & h3 {
                font-weight: 400;

                @media(max-width: 980px){
                    margin-bottom: 0;
                }
            }

            @media(max-width: 980px){
                padding: 80px 0;
            }
        }
    }

    &.students-3 {
        background-color: var(--dark-blue);
        padding-bottom: 183px;

        @media(max-width: 980px){
            padding-bottom: 0;
        }

        & .container {
            padding: 0 24px;
        }

        & .headline {
            padding: 126px 0 80px 0;
            text-align: center;
            position: relative;
            z-index: 10;

            @media(max-width: 980px){
                padding: 60px 0;
            }
        }

        & .content-wrapper .container {
            position: relative;
            max-width: 1090px;
        }

        & .img-box {
            opacity: 0;
            transform: translateY(200px);
            transition:
                transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 1.8s ease;
            will-change: transform, opacity;
            position: absolute;
        }

        &.in-view .img-box {
            opacity: 1;
            transform: translateY(0);

            @media(max-width: 980px){
                opacity: 0;
                visibility: 0;
                display: none;
            }
        }

        & .img-box-1 {
            right: 262px;
            top: 0;
        }

        & .img-box-2 {
            left: 0;
            top: 221px;
        }

        & .img-box-3 {
            right: 20px;
            top: 311px;
        }

        &.in-view .img-box-1 {
            transition-delay: 0s;
        }

        &.in-view .img-box-2 {
            transition-delay: 0.15s;
        }

        &.in-view .img-box-3 {
            transition-delay: 0.3s;
        }
    }

    &.footer {
        text-align: center;
        padding: 100px 24px;

        & img {
            max-width: 366px;
            margin-bottom: 40px;

            @media(max-width: 980px){
                max-width: 220px;
            }
        }

        & p {
            color: var(--dark-blue);
            font-size: 23px;
            line-height: 27px;

            @media(max-width: 980px){
                font-size: 12px;
                line-height: 15px;
            }
        }
    }
}

.students-rotate {
    position: relative;
    width: calc( 100% + 200px );
    aspect-ratio: 2.5/1;
    margin: 0 -100px;

    & .rotate {
        position: absolute;
        inset: 0;
        opacity: 0;
        transform: translateX(140px) scale(0.95) rotate(10deg);
        transition:
            opacity 0.1s ease,
            transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    & .rotate.active {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
        z-index: 2;
    }

    & .rotate.exit {
        opacity: 0;
        transform: translateX(-40px) scale(0.95) rotate(-10deg);
        z-index: 1;
    }

    & img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 99999;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 55px 24px;

    & .modal-title {
        color: #fff;
        text-transform: uppercase;
        font-weight: 700;
        font-size: 38px;
        margin-bottom: 30px;
        text-align: center;
    }

    &.modal-middle-school {
        background-color: var(--orange);
    }

    &.modal-students {
        background-color: var(--green);

        & .wpcf7-form-control {
            border-color: var(--dark-blue);
        }
    }

    &.is-active {
        display: block;
    }

    & .btn-close {
        position: absolute;
        background-color: transparent;
        width: 50px;
        top: 40px;
        right: 40px;
        border: 0;
        padding: 0;

        @media(max-width: 980px){
            top: 20px;
            right: 20px;
            width: 30px;
        }
    }
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease,
                transform 0.3s ease,
                visibility 0.3s ease;
    z-index: 2999;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;

    @media(max-width: 980px){
        right: 15px;
    }

    &.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.cf7-file-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* Hide CF7 default file input */
    & input {
        opacity: 0;
        position: absolute;
        left: -9999px;
    }

    /* Custom button */
    & .cf7-file-button {
        background-color: var(--pink);
        border: 1px solid;
        border-radius: 100px;
        min-height: 55px;
        line-height: 55px;
        font-size: 32px;
        color: var(--orange);
        width: 100%;
        padding: 0 20px;
        text-align: center;
        font-family: var(--font-family);
        cursor: pointer;
        text-transform: uppercase;
        font-weight: 700;
    }
}




