/********** Template CSS **********/
:root {
    --primary: #3185bf;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15) !important;
}

/* Specific fix for buttons in services/diseases/team to ensure white background on hover */
.service-item a.btn:hover,
.team-item .text-center a.btn:hover,
.team-item a.btn:hover,
.back-to-top:hover {
    background-color: #ffffff !important;
    color: var(--primary) !important;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 15px;
    padding: 15px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    outline: none;
    transition: .5s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 3px;
        bottom: 8px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 16px);
        left: 8px;
    }
}

.navbar-light .navbar-nav {
    align-items: center;
}

.navbar-light .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar {
    padding: 0.5rem 0 !important;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    margin: 0;
}

.navbar-brand .fa-clinic-medical {
    font-size: 1.3rem;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

/* Hero Full Width - Modern Style */
.hero-header-fullwidth {
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-modern {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hero-content-left {
    padding-left: 0;
    padding-right: 40px;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 25px !important;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px !important;
}

.hero-buttons {
    margin-top: 20px;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-hero-primary {
    background-color: #ffffff;
    color: #354F8E;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #354F8E;
}

.btn-hero-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-content-left {
        padding-right: 30px;
    }
}

@media (max-width: 992px) {
    .hero-header-fullwidth {
        min-height: 500px;
    }
    .hero-content-left {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-header-fullwidth {
        min-height: 450px;
        padding: 60px 30px !important;
    }
    .hero-title {
        font-size: 2rem;
        margin-bottom: 30px !important;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px !important;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 28px;
        font-size: 0.95rem;
        display: block;
        width: 100%;
        margin-bottom: 15px !important;
    }
    .hero-buttons {
        margin-top: 25px;
    }
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -12px;
    opacity: 1;
}

.team-item {
    position: relative;
    transition: .5s;
}

.team-item .text-center {
    position: relative;
}

.team-item .text-center a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
    transition: .5s;
    z-index: 10;
}

.team-item:hover .text-center a.btn {
    bottom: -12px;
    opacity: 1;
}

/* Стилі для секцій головної сторінки */
.home-section-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.home-section-content h2,
.home-section-content h3,
.home-section-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #3185bf;
}

.home-section-content p {
    margin-bottom: 1.5rem;
}

.home-section-content ul,
.home-section-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.home-section-content li {
    margin-bottom: 0.5rem;
}

.home-section-content strong {
    color: #354F8E;
    font-weight: 600;
}

/* Стилі для зображень в контенті */
.home-section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-image-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

/* --- Плавна анімація появи (Reveal Animation) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Затримки для каскадного ефекту */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }




