/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - calc(100vh - 100%));
    z-index: 9997;
    display: none;
}

.modal.show {
    display: block;
}

.modal-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    align-items: flex-start;
    padding: 24px 30px 24px 0;
}

.modal-section:hover {
    transform: scale(1.02);
}

/* Patients section */
.patients-section {
    background-image: url('../img/intro-modal/patients-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Doctors section */
.doctors-section {
    background-image: url('../img/intro-modal/doctors-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Section header */
.section-header {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.logo {
    height: 34px;
    width: auto;
}
.doctors-section .logo {
    width: 200px;
}

/* Section content */
.section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    height: 100%;
}

.patients-section .section-header, .patients-section .section-content {
    padding-left: 290px;
}
.doctors-section .section-header, .doctors-section .section-content {
    padding-left: 80px;
}

.section-title {
    font-size: 70px;
    font-weight: 700;
    line-height: 1.15;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #000000;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.154;
    transition: opacity 0.3s ease;
}

.section-link:hover {
    opacity: 0.8;
}

.arrow-icon {
    width: 33px;
    height: 7px;
    transition: transform 0.3s ease;
}

.section-link:hover .arrow-icon {
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 1440px) {
    .modal-section {
        align-items: flex-start;
    }
    .section-content {
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
        padding: 0;
        height: auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    .patients-section .section-header, .patients-section .section-content,
    .doctors-section .section-header, .doctors-section .section-content{
        padding-left: 30px;
    }
}
@media (max-width: 1023px) {
    .modal-container {
        flex-direction: column;
    }

    .modal-section {
        flex: 1;
        padding: 20px;

    }

    .section-title {
        font-size: 35px;
        margin-bottom: 30px;
        text-align: left;
    }

    .section-link {
        font-size: 24px;
        gap: 20px;
    }

    .logo {
        height: 34px;
    }

    .section-header {
        justify-content: flex-start;
        align-items: flex-start;
    }
}
@media (max-width: 768px) {
    .home-intro-button.el-1 a {
        line-height: initial;
        padding: 0 38px 0 0;
        background: none;
        margin: initial;
        border: none;
        color: initial;
    }
    .home-intro-button.el-1 a:hover {
        color: #F32F2E !important;
    }
    .btn-black-arrow:hover svg path {
        fill: #F32F2E !important;
    }
    .home-intro-button.el-1 a.btn-black-arrow .arrow-desktop, .home-intro-button.el-1 a.btn-black-arrow .arrow-mobile {
        display: block;
    }
    .home-intro-button.el-1 a.btn-black-arrow svg {
        right: 0;
    }

}

@media (max-width: 480px) {
    .modal-section {
        padding: 15px;
        align-items: flex-start;
    }

    .section-content {
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
        padding: 0;
        height: auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    .section-title {
        margin-bottom: 24px;
    }

    .section-link {
        font-size: 18px;
        gap: 15px;
    }

    .logo {
        height: 22px;
    }
    .doctors-section .logo {
        width: 97px;
    }

    .arrow-icon {
        width: 28px;
        height: 6px;
    }

    .section-header {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

/* Animation for modal appearance */
.modal.show {
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ensure modal is always on top */
.modal {
    background-color: rgba(0, 0, 0, 0.05);
}