/* Premium Base Styles */
:root {
    --primary-color: #00baa3;
    /* Medical Teal */
    --primary-dark: #008f7d;
    --secondary-color: #0f1c2e;
    /* Deep Navy */
    --accent-color: #f1c40f;
    /* Gold accent for premium feel */
    --text-color: #555;
    --light-bg: #f9fbfd;
    --white: #ffffff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    /* Modern Font */
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 2rem;
}

/* Navigation Dropdown */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--secondary-color);
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a:hover {
    background: rgba(0, 186, 163, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 186, 163, 0.4);
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white) !important;
}

.cta-btn::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Hero Section (Clean Text Only) */
.hero {
    background: var(--secondary-color);
    /* Dark clean background */
    color: var(--white);
    padding: 180px 0 120px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: var(--primary-color);
}

/* Booking Strip (Form below Hero) */
.booking-strip {
    background: var(--primary-color);
    padding: 30px 0;
    margin-top: -50px;
    /* Overlap effect if desired, or just below */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.booking-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.booking-form-inline .form-control {
    width: auto;
    min-width: 200px;
    border: none;
    height: 50px;
}

.booking-form-inline .btn {
    background: var(--secondary-color);
    height: 50px;
    line-height: 50px;
    /* Vertically center text */
    padding: 0 40px;
    display: flex;
    /* Flex to center content if needed */
    align-items: center;
    border-radius: 5px;
}

.booking-form-inline .btn:hover {
    background: #0a1320;
}

/* Premium About Section */
.about-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.experience-badge span {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.about-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Video Card Custom Design */
.video-card-custom {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    background: #000;
}

.video-thumb {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.video-card-custom:hover .video-thumb {
    opacity: 0.6;
    transform: scale(1.05);
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.video-card-custom:hover .play-btn-overlay {
    background: var(--primary-color);
    color: var(--white);
}

/* Doctors Centered */
.doctors-centered {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.doctors-centered .doctor-card {
    flex: 0 1 350px;
    /* Fixed width basis but responsive */
    max-width: 350px;
}

/* Video Slider / Sidebar Layout */
.video-grid-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Alternating Doctor Section */
.doctor-alt-section {
    padding: 80px 0;
}

.doctor-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.doctor-flex-reverse {
    flex-direction: row-reverse;
}

.doctor-img-box {
    flex: 1;
    position: relative;
}

.doctor-img-box img {
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.doctor-content-box {
    flex: 1.2;
}

.doctor-content-box h4 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.doctor-content-box h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.doctor-content-box p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.doctor-specialties-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.doctor-specialties-list li {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--secondary-color);
}

.doctor-specialties-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Blog Preview Section */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--secondary-color);
}

.blog-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-card .read-more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.blog-card .read-more i {
    margin-left: 8px;
    transition: var(--transition);
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* Responsive Tweaks */
@media (max-width: 900px) {
    .booking-form-inline {
        flex-direction: column;
        padding: 0 20px;
    }

    .booking-form-inline .form-control,
    .booking-form-inline .btn {
        width: 100%;
    }

    .about-premium {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 0;
    }

    .video-grid-slider {
        grid-template-columns: 1fr;
    }
}

/* Section Common */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title span {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(0, 186, 163, 0.1);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: #777;
    margin-bottom: 20px;
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more-btn i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more-btn:hover i {
    margin-left: 10px;
}

/* Doctors Section */
.doctor-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.doctor-img {
    height: 350px;
    overflow: hidden;
    background: #f0f0f0;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 25px;
    text-align: center;
}

.doctor-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.doctor-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--secondary-color);
    margin: 0 5px;
    transition: var(--transition);
}

.doctor-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* About Section Styles */
.about-features {
    list-style: none;
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.about-features i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: #aaa;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

textarea.form-control {
    height: 120px;
    resize: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    /* Reset for button elements */
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-full {
    width: 100%;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(15, 28, 46, 0.9), rgba(15, 28, 46, 0.8)), url('https://placehold.co/1920x600/2c3e50/ffffff?text=Page+Header');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .appointment-form-wrapper {
        margin: 40px auto 0;
    }

    .doctor-img {
        height: 300px;
    }

    .top-bar {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-top: none;
        border-bottom: 1px solid #eee;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 30px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu li a:hover {
        padding-left: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Service Details Layout Fixes */
.content-sidebar-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: start;
    margin-top: 30px;
}

.main-content {
    flex: 1;
    min-width: 320px;
    max-width: 850px;
    background: var(--white);
}

.service-detail-img {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.service-detail-img img {
    width: 100%;
    height: auto;
    display: block;
}

.main-content h2 {
    margin-bottom: 25px;
    font-size: 2.2rem;
    margin-top: 10px;
    color: var(--secondary-color);
}

.main-content h3 {
    margin: 45px 0 25px;
    font-size: 1.8rem;
    color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.main-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    border-top: 3px solid var(--primary-color);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
    position: relative;
}

.sidebar-widget ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-widget ul li a {
    display: block;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

@media (max-width: 900px) {
    .content-sidebar-layout {
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        position: static;
        margin-top: 40px;
    }
}

/* Sidebar Inquiry Form */
.sidebar-inquiry-form .form-group {
    margin-bottom: 20px;
}

.sidebar-inquiry-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fdfdfd;
    transition: var(--transition);
}

.sidebar-inquiry-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 186, 163, 0.1);
}

.sidebar-inquiry-form .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

/* Blog Content Styles */
.blog-full-content {
    color: var(--text-color);
    line-height: 1.8;
}

.blog-full-content h3 {
    margin: 30px 0 15px;
    font-size: 1.6rem;
}

/* Blog CTA Section */
.blog-cta-box {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
    border: 2px dashed var(--primary-color);
}

.blog-cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.blog-cta-box p {
    margin-bottom: 25px;
    color: #666;
}

/* Category Header Details */
.category-header-details {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 30px;
    align-items: center;
}

.category-header-img {
    flex: 0 0 200px;
    border-radius: 8px;
    overflow: hidden;
}

.category-header-content {
    flex: 1;
}

@media (max-width: 600px) {
    .category-header-details {
        flex-direction: column;
        text-align: center;
    }

    .category-header-img {
        flex: 0 0 auto;
        width: 100%;
    }
}