/* Services Page Styles */

body {
    background-color: #F6FFF7;
}

.nav-item {
    color: #656565;
}

.top-divider {
    padding-top: 100px;
    padding-bottom: 50px;
}

.top-line-divider {
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, #9F9F9F 50%, transparent 100%);
    max-width: 1300px;
    margin: 0 auto;
}

/* Service Hero Section */
.service-hero {
    padding: 20px 5% 60px;
}

.service-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-info {
    padding-left: 8rem;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 650px;
    width: 100%;
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.doctor-credentials {
    list-style: none;
    margin: 0 0 20px 0;
    padding-left: 15px;
    position: relative;
}

.doctor-credentials::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-image: repeating-linear-gradient(
        to bottom,
        #01784B 0px,
        #01784B 6px,
        transparent 6px,
        transparent 12px
    );
    height: 88%;
    z-index: 0;
}

.doctor-credentials li {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    z-index: 1;
}

.doctor-credentials li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: #01784B;
    border-radius: 50%;
    z-index: 2;
}

.doctor-expertise {
    font-size: 1.3rem;
    color: #000000;
    line-height: 1.6;
    margin-top: 20px;
}

.doctor-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

.doctor-image {
    width: 324px;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.doctor-image:hover {
    transform: scale(1.05);
}

/* Service Description Section */
.service-description {
    padding: 60px 5%;
    /*background-color: #fff;*/
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 30px;
    margin-left: 30px;
}

.description-text {
    max-width: 900px;
    margin-left: 80px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

/* Team Section - Carousel Style */
.team-section {
    padding: 60px 5%;
    position: relative;
}

.team-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0 3rem;
}

.team-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 90%;
    margin: 0 auto;
    align-items: flex-start;
}

.team-container::-webkit-scrollbar {
    display: none;
}

.team-member {
    text-align: center;
    position: relative;
    flex: 0 0 280px;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFFFFF66;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    text-align: center;
}

.team-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.team-function {
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Team Carousel Buttons */
.team-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(1, 120, 75, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    z-index: 10;
}

.team-scroll-btn:hover {
    background: #01784b;
    transform: translateY(-50%) scale(1.08);
}

.team-left-btn {
    left: 12px;
}

.team-right-btn {
    right: 12px;
}

/* Reasons Section */
.reasons-section {
    padding: 60px 5%;
    /*background-color: #fff;*/
}

.reasons-diagram {
    max-width: 1000px;
    margin: 40px auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    min-height: 400px;
}

.reason-bubble {
    background: linear-gradient(135deg, #01784B 0%, #97C49C 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(1, 120, 75, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 280px;
    min-height: 80px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.reason-bubble.reason-1 {
    animation-delay: 0s;
}

.reason-bubble.reason-2 {
    animation-delay: 0.5s;
}

.reason-bubble.reason-3 {
    animation-delay: 1s;
}

.reason-bubble.reason-4 {
    animation-delay: 1.5s;
}

.reason-bubble.reason-5 {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Technologies Section */
.technologies-section {
    padding: 60px 5%;
    /*background-color: #FAF8F3;*/
}

.tech-diagram {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.tech-bubble {
    background: #ffffff;
    color: #01784B;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #01784B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Services List Section */
.services-list-section {
    padding: 60px 5%;
    /*background-color: #fff;*/
}

.tech-diagram-svg {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto;
    padding-top: 40px;
}

.services-svg-bg {
    max-width: 100%;
    height: auto;
    display: block;
}

.services-grid {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.service-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    display: flex;
    align-items: center;
}

.service-title-content {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.service-card-description {
    font-size: 1.3rem;
    color: #000000;
    line-height: 1.6;
    margin-left: 63px;
}


/* CTA Section */
.cta {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem 5%;
    overflow: hidden;
    margin-bottom: 5rem;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-top-right-radius: 120px;
    border-bottom-left-radius: 120px;
}

.cta-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.69);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
}

.cta-logo-image {
    width: 250px;
    height: auto;
    margin-bottom: 40px;
}

.cta-logo-text {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4rem;
    line-height: 1.3;
}

.cta-btn {
    background: #00a651;
    color: white;
    padding: 0.7rem 2rem 0.7rem 0.7rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
    position: relative;
    margin: 0 auto;
}

.cta-btn::before {
    content: '';
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300a651' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.cta-btn:hover {
    background: #008a44;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.services-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}


.about-btn {
    background: transparent;
    color: #00a651;
    padding: 1.5rem 1rem;
    border: 3px solid #00a651;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    gap: 3rem;
    transition: all 0.3s;
    position: relative;
    min-width: 300px;
    margin: 0 auto;
}

.about-btn::after {
    content: '';
    width: 60px;
    height: 60px;
    background: #00a651;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.about-btn:hover {
    background: #008a44;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 166, 81, 0.4);
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for services page */
.service-title.animate-on-scroll.visible {
    transition-delay: 0.1s;
}

.doctor-credentials.animate-on-scroll.visible {
    transition-delay: 0.2s;
}

.doctor-expertise.animate-on-scroll.visible {
    transition-delay: 0.3s;
}

.doctor-image-container.animate-on-scroll.visible {
    transition-delay: 0.2s;
}

.section-title.animate-on-scroll.visible {
    transition-delay: 0.1s;
}

.description-text.animate-on-scroll.visible {
    transition-delay: 0.2s;
}

.team-member.animate-on-scroll.visible:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member.animate-on-scroll.visible:nth-child(2) {
    transition-delay: 0.2s;
}

.team-member.animate-on-scroll.visible:nth-child(3) {
    transition-delay: 0.3s;
}

.team-member.animate-on-scroll.visible:nth-child(4) {
    transition-delay: 0.4s;
}

.tech-diagram-svg.animate-on-scroll.visible {
    transition-delay: 0.2s;
}

.service-card.animate-on-scroll.visible:nth-child(odd) {
    transition-delay: 0.1s;
}

.service-card.animate-on-scroll.visible:nth-child(even) {
    transition-delay: 0.3s;
}

.services-cta.animate-on-scroll.visible {
    transition-delay: 0.2s;
}


/* Map Section */
.map-section {
    padding: 5rem 5%;
    /*background: #faf8f3;*/
    text-align: center;
}

.map-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 600px;
}

.map-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .technologies-section {
        padding: 10px 5%;
    }

    .nav-item {
        color: #656565 !important;
    }

    .nav-item.active {
        color: #97C49C !important;
    }

    .service-description {
        padding: 10px 5%;
    }

    .section-title {
        text-align: left;
    }

    .service-hero-content,
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-info {
        padding-right: 0;
    }

    .team-scroll-btn {
        display: none !important;
    }

    .team-container {
        max-width: 100%;
    }

    .team-member {
        flex: 0 0 85vw;
        max-width: 320px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 100px 5% 40px;
    }

    .service-title {
        font-size: 2rem;
    }

    .doctor-name {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
        font-weight: 600;
        text-align: left;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .reasons-diagram {
        min-height: auto;
    }

    .reason-bubble {
        max-width: 100%;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-logo-img {
        width: 150px;
    }
}

/*   DOWNLOAD BUTTON   */
.download-wrapper {
    /* Folosim flexbox pe containerul exterior pentru a împinge butonul maxim în dreapta */
    display: flex;
    justify-content: flex-end; /* Aliniază conținutul (butonul) la final (dreapta) */
    width: 100%; /* Ocupă lățimea disponibilă */
    padding: 20px 0; /* Adaugă spațiu sus/jos */
}

.download-btn {
    /* Transformă link-ul într-un container flexibil */
    display: flex;
    align-items: center; /* Aliniază textul și iconița pe verticală */
    justify-content: space-between; /* Distribuie spațiul între text și iconiță */

    /* Stilurile vizuale din imagine */
    color: #01784B; /* Culoarea textului (verde închis) */
    padding: 10px 20px;
    border-radius: 5px; /* Adaugă colțuri rotunjite */
    text-decoration: none; /* Scoate sublinierea link-ului */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    gap: 15px; /* Spațiu între text și SVG */
}

.download-btn:hover {
    background-color: #E0FFE0; /* O mică schimbare de culoare la hover */
}


/* ==========================================================================
   RESPONSIVE STYLES – ajustat pentru a semăna cu screenshot-ul mobil
   ========================================================================== */

@media (max-width: 1024px) {

    header {
        background-color: #00000033;
        backdrop-filter: blur(10px);
    }

    .services-list-section {
        padding: 10px 5%;
    }

    .top-line-divider {
        display: none;
    }

    .service-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .service-info {
        padding: 0 5%;
    }

    .doctor-expertise {
        font-size: 1.12rem;
        padding: 0 10%;
        text-align: left;
    }

    .doctor-image-container {
        order: 2;
        margin: 20px auto 0;
        height: fit-content;
    }

    .doctor-image {
        width: 80%;
        height: auto;
        margin: 0 auto;
    }

    .doctor-image img {
        width: 100%;
        height: auto;
    }

    .service-title {
        font-size: 2.1rem;
        width: 100%;
        margin: 0 auto 24px;
        order: 1;
    }

    .section-title {
        font-size: 1.9rem;
        text-align: left;
        margin-left: 0;
        margin-bottom: 28px;
    }

    .description-text {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        font-size: 1.08rem;
        line-height: 1.75;
        padding: 0 5%;
    }

    .team-container {
        gap: 16px;
        padding: 0 0.5rem;
    }

    .team-member {
        height: 420px;
        flex: 0 0 280px;
    }

    .team-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0;
        margin-left: 0;
        margin-right: 30px;
    }

    .service-card {
        text-align: left;
        padding-left: 0;
    }

    .service-title-content {
        align-items: center;
    }

    .service-card-description {
        margin-left: 40px;
        margin-top: 9px;
    }

    .tech-diagram-svg {
        padding: 20px 5% 40px;
    }

    .services-svg-bg {
        max-width: 120%;
    }

    .services-cta {
        margin: 40px auto;
    }

    .about-btn {
        min-width: 200px;
    }

    .about-btn::after {
        right: 5px;
    }

    .cta {
        text-align: center;
        padding: 60px 5% 80px;
    }

    .cta-card {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 1030px) {
    .service-hero {
        padding: 50px 5% 30px;
    }

    .service-title {
        font-size: 1.95rem;
        line-height: 1.28;
    }

    .doctor-credentials {
        padding-left: 0;
        text-align: center;
        margin-left: 4%;
    }

    /*.doctor-credentials::before {*/
    /*    display: none;*/
    /*}*/
    .doctor-credentials li {
        padding-left: 0;
        margin: 6px 0;
        font-size: 1rem;
        text-align: left;
        padding-left: 40px;
    }

    .doctor-credentials li::before {
        transform: translateX(15px);
    }

    .doctor-expertise {
        font-size: 1.12rem;
        padding: 0 6%;
        order: 1;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 24px;
    }

    .team-info {
        padding: 8px 16px;
        bottom: 16px;
    }

    .team-name {
        font-size: 0.95rem;
    }

    .team-function {
        font-size: 0.85rem;
    }

    .services-grid {
        gap: 32px;
    }

    .service-card {
        padding: 20px 5% 20px 5%;
    }

    .service-card-title {
        font-size: 1.4rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .service-card-description {
        font-size: 1.05rem;
        margin-left: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }

    .service-icon {
        flex-shrink: 0;
    }

    .service-icon svg {
        width: 30px;
        height: 28px;
    }

    .service-title-content {
        height: auto;
        align-items: center;
        gap: 12px;
    }

    .about-btn {
        width: 100%;
        max-width: 240px;
        font-size: 1.15rem;
        padding: 1.3rem 1.2rem;
    }

    .cta {
        min-height: 460px;
        height: 600px;
        padding: 50px 6% 70px;
    }

    .cta-title {
        font-size: 1.65rem;
        margin-bottom: 2.2rem;
    }

    .cta-logo-image {
        width: 240px;
        margin-bottom: 32px;
    }

    .cta-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 1.05rem;
    }

    .map-container {
        height: 380px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 20px 5% 24px;
    }

    .service-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .description-text {
        font-size: 1.04rem;
        line-height: 1.7;
    }

    .service-card {
        padding: 18px 5% 18px 5%;
    }

    .service-card-title {
        font-size: 1.15rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .service-card-description {
        font-size: 1rem;
        margin-left: 40px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.35;
    }

    .service-icon svg {
        width: 28px;
        height: 26px;
    }

    .service-title-content {
        align-items: center;
    }

    .about-btn {
        font-size: 1.08rem;
        padding: 1.2rem 1rem;
    }

    .cta {
        padding: 40px 5% 60px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-logo-image {
        width: 210px;
    }

    .map-container {
        height: 320px;
        border-radius: 20px;
    }

    /* For very small screens – make checkmark list more readable */
    .services-list-section ul {
        padding-left: 0;
    }

    .services-list-section li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .services-list-section li::before {
        content: "✔";
        color: #01784B;
        font-size: 1.4rem;
        margin-right: 14px;
        line-height: 1.4;
        flex-shrink: 0;
    }
}
