/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Trust and Peace */
    --primary-color: #0D325E;
    /* Gece Mavisi - Otorite ve Güven */
    --secondary-color: #568EA3;
    /* Koyu Pudra Mavisi - İkincil Elemanlar */
    --accent-color: #E1F5FE;
    /* Açık Pudra Mavisi - Arka Plan Vurguları */
    --highlight-color: #FFAB91;
    /* Soft Mercan - Sıcaklık ve Vurgu */
    --background-color: #F8F9FA;
    /* Açık Gri/Beyaz - Temizlik */
    --text-color: #2C3E50;
    /* Koyu Arduvaz - Netlik */
    --white: #ffffff;

    /* Spacing & Borders */
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive 2K & 4K Updates */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px !important;
    }

    body {
        font-size: 1.1rem;
        /* Slightly larger text */
    }
}

@media (min-width: 2000px) {
    .container {
        max-width: 1800px !important;
    }
}

@media (min-width: 2500px) {

    /* 4K and Ultra Wide */
    .container {
        max-width: 80% !important;
        /* Switch to percentage for very wide screens */
    }

    body {
        font-size: 1.2rem;
    }

    h1,
    hop,
    .section-title {
        font-size: 2.5rem;
    }
}

/* Navbar */
/* Navbar */
/* Navbar */
@keyframes gradientBG {
    0% {
        background-color: var(--white);
    }

    50% {
        background-color: var(--accent-color);
    }

    100% {
        background-color: var(--white);
    }
}

.navbar {
    background-color: var(--white) !important;
    /* Fallback */
    animation: gradientBG 8s ease-in-out infinite;
    /* Fade in-out color transition */
    border-bottom: 2px solid var(--highlight-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-height: 100px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    mix-blend-mode: multiply;
    width: auto;
    max-width: 250px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
    /* Make logo pop */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    /* Bouncy zoom */
}

.navbar-brand:hover img {
    transform: scale(1.15);
    /* Zoom effect on hover */
}

/* Modern Navbar Links */
.navbar-nav .nav-link {
    color: var(--text-color) !important;
    /* Dark text for light bg */
    font-weight: 600;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem;
    color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 110, 145, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    background-color: var(--white);
    margin-top: 10px !important;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    /* Prevent text breaking */
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    /* Removed transform to prevent text rendering issues */
}

/* Mobile Bottom Bar (Hidden on desktop) */
.fixed-bottom {
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1030;
}

.fixed-bottom .btn {
    background: none;
    border: none;
    color: var(--primary-color);
    position: relative;
    bottom: auto;
    width: 100% !important;
}

.fixed-bottom .tt {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Footer */
/* Footer */
footer.nb-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding-top: 60px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle pattern overlay or shape divider here if supported */

footer.nb-footer .about p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

footer.nb-footer .title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    border: none;
    text-transform: none;
    /* Removed uppercase for friendlier look */
    padding-left: 0;
}

footer.nb-footer .title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 40px;
    background-color: var(--highlight-color);
    border-radius: 2px;
}

footer.nb-footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
}

footer.nb-footer ul li a:hover {
    color: var(--highlight-color);
    transform: translateX(5px);
    padding-left: 5px;
    /* Enhanced slide effect */
}

footer.nb-footer .social-media ul li {
    display: inline-block;
    margin-right: 10px;
}

footer.nb-footer .social-media ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    padding: 0;
    /* Reset padding for center alignment */
}

footer.nb-footer .social-media ul li a:hover {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Home Page Specifics */
.carousel-item img {
    height: 60vh;
    /* Default for mobile/tablet */
    object-fit: cover;
    filter: brightness(0.9);
    border-radius: var(--border-radius);
}

@media (min-width: 992px) {
    .carousel-item img {
        height: calc(100vh - 140px);
        /* Full screen minus navbar/margin on desktop */
    }
}

.carousel-caption {
    background-color: rgba(13, 50, 94, 0.85); /* Slightly darker instead of blur */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInCaption 1s ease-in-out forwards;
}

@keyframes fadeInCaption {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 1.5rem;
        left: 5%;
        right: 5%;
        padding: 1rem;
    }
    .carousel-caption h5 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 5px;
    }
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.4;
    }
}

.doctor-profile,
.doctor-services {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    border: none !important;
}

.doctor-profile {
    margin-top: 8rem !important;
    /* Push down to require scrolling */
}

.carousel-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0;
    border: none !important;
    overflow: hidden;
}

/* Doctor Profile Image */
.doctor-profile-img {
    width: 100%;
    /* Full width on mobile to prevent overflow */
    max-width: 300px;
    /* Limit max size */
    display: block;
    margin: 0 auto 1.5rem auto;
    /* Center on mobile */
}

@media (min-width: 768px) {
    .doctor-profile-img {
        width: 300px;
        /* Fixed width for wrapping on tablet/desktop */
        margin-right: 2rem !important;
        margin-bottom: 1rem;
        margin-left: 0;
    }
}

.doctor-profile img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Cards */
.cards {
    padding: 0 1%;
    background: transparent;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: 15px !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.doctor-services .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    flex-grow: 1;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    position: static;
    /* Reset absolute positioning from old css */
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

/* Service Detail Pages */
.detail-card {
    margin: 4% 15% 10% 15%;
    border: none;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding-bottom: 2rem;
}

.detail-card .card-img-top {
    width: auto;
    max-width: 100%;
    max-height: 600px;
    display: block;
    margin: 0 auto;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.detail-card .card-body {
    padding: 2rem;
}

.detail-card .card-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.detail-card .card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 500;
}

/* Utility */
.text-highlight {
    color: var(--highlight-color);
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background-color: var(--highlight-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Global Polish */
::selection {
    background-color: var(--highlight-color);
    color: var(--primary-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 6px;
    border: 3px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-left.is-visible,
.animate-on-scroll.slide-right.is-visible {
    transform: translateX(0);
}

/* Responsive Fixes */
@media (min-width: 992px) and (max-width: 1200px) {

    /* Navbar compact mode for medium screens */
    .navbar-nav .nav-link {
        padding: 8px 8px !important;
        font-size: 0.9rem;
        margin: 0 2px;
    }

    .navbar-brand img {
        max-width: 180px;
    }
}

@media (max-width: 768px) {

    /* Reduce card side margins on mobile */
    .card {
        margin: 0 0 15px 0 !important;
    }

    .certificate-wrapper {
        padding: 1rem !important;
    }
}

/* Certificate Section Styles */
.certificate-wrapper {
    background-color: var(--accent-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.certificate-card {
    transition: all 0.3s ease;
    border: none !important;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}


/* Blog Section Styles */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .btn-outline-primary {
    transition: all 0.3s ease;
}

.blog-card:hover .btn-outline-primary {
    background-color: var(--primary-color);
    color: #fff;
}