html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    body {
        /* padding-top: 92px; Removed as topbar and header are static on mobile */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 2rem; /* Adjusted to be below the topbar */
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Match container width */
    margin: 0 auto; /* Center the navbar */
    padding: 0 20px; /* Match container padding */
}

.nav-brand h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin: 0;
}

.nav-brand span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: -5px;
}

.nav-links { /* Changed from .nav-menu */
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #2c5aa0;
}

/* Hide hamburger on desktop */
.hamburger-menu {
    display: none;
}

/* Topbar */
.topbar {
    background: #2c5aa0;
    color: #fff;
    font-size: 0.95rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar i { margin-right: 6px; color: #ffd700; }
.separator { opacity: 0.7; }
@media (max-width: 768px) {
    .topbar {
        display: none; /* Hide topbar on mobile */
    }
    .topbar-content { flex-direction: column; gap: 0.25rem; }

    .header {
        top: 0; /* Header sticks to top of viewport on mobile as topbar is hidden */
    }

    .navbar {
        padding: 1rem; /* Adjust padding for smaller screens */
        position: relative; /* Ensure hamburger is positioned relative to navbar */
    }

    .hamburger-menu {
        display: none; /* Hidden by default, shown on mobile */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1002;
        position: relative;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 100%;
        height: 100%;
    }

    .bar {
        width: 100%;
        height: 3px;
        background-color: #333; /* Or your desired color */
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-menu input[type="checkbox"] {
        display: none;
    }

    /* Hamburger active state (for animation) */
    .menu-icon.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-icon.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .nav-menu {
        display: none; /* Hidden by default on mobile */
    }

    .nav-links.active { /* Changed from .nav-menu.active to .nav-links.active */
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        padding: 1rem;
        border-radius: 0; /* Remove border-radius for full width */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        background-color: #fff; /* Add a solid background color */
    }

    .nav-links li {
        text-align: left;
        margin: 0.5rem 0;
    }

    .nav-links .dropdown-menu {
        position: static; /* Remove absolute positioning for mobile dropdowns */
        display: none; /* Hidden by default on mobile */
        box-shadow: none; /* Remove shadow for nested dropdowns */
        border-top: none; /* Remove border for nested dropdowns */
        padding: 0;
        min-width: auto; /* Reset min-width */
    }

    .nav-links .dropdown-menu li a {
        padding: 0.5rem 1rem; /* Adjust padding for nested items */
    }

    .nav-links .dropdown.dropdown-active .dropdown-menu {
        display: flex; /* Show dropdown items when parent is active */
        flex-direction: column;
        max-height: none; /* Allow dropdown to expand fully */
        overflow-y: visible; /* Ensure all content is visible */
    }
}

/* Replace the existing .hero section in your styles.css with this */


/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 10px 2rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

/* Add watermark background that fills entire section */
.hero::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('surgery.jpg');
    background-size: cover; /* Fill entire section */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15; /* Adjust this value to control watermark visibility */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: nowrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.trust-badges span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.trust-badges i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* Ensure buttons are centered on all screens */
    position: relative;
    z-index: 2;
}

/* Hide the original hero-image container */
.hero-image {
    display: none;
}

/* Responsive adjustments for watermark */
@media (max-width: 992px) {
    .hero::before {
        background-size: cover; /* Keep cover for mobile too */
        background-position: center;
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 2rem; /* Adjusted padding for smaller screens */
    }

    .hero::before {
        background-size: cover; /* Ensure it still covers on mobile */
        background-position: center;
        opacity: 0.08;
    }

    .hero h1 {
        font-size: 2rem; /* Adjusted font size for smaller screens */
    }

    .trust-badges {
        flex-wrap: wrap; /* Allow badges to wrap on smaller screens */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem; /* Further adjusted font size for very small screens */
    }

    .hero p {
        font-size: 1rem; /* Adjusted font size for very small screens */
    }

    .hero::before {
        opacity: 0.05;
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about h3 {
    color: #666;
    margin-bottom: 1.5rem;
}

.credentials {
    margin-top: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.credential i {
    font-size: 2rem;
    color: #2c5aa0;
}

.credential h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.video-placeholder {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed #ddd;
}

.video-placeholder i {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: flex-start;
}

.treatment-group {
    margin-bottom: 3rem;
}

.treatment-group h3 {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c5aa0;
}

.service-card {

    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    max-width: 350px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: #2c5aa0;
    color: white;
}

.why-choose h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}


.features-grid {
/* PDF overlay modal */


    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* CTA Strip */
.cta-strip { background: #1e3f73; color: #fff; padding: 30px 0; }
.cta-strip-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-strip h3 { margin-bottom: 0.25rem; }
.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 768px) { .cta-strip-content { flex-direction: column; text-align: center; } .cta-actions {
        justify-content: center;
    }}

/* Stats */
.stats { background: #fff; padding: 50px 0 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: #2c5aa0; }
.stat-label { color: #555; margin-top: 0.25rem; }


.feature {
    text-align: center;
    padding: 2rem;
}

.feature i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.feature h3 {
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 80px 0 40px;
    background: #fff;
}

.testimonials h2 {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.patient {
    font-weight: 600;
    color: #2c5aa0;
    margin-top: 1rem;
}

/* Appointment Section */
.appointment {
    padding: 80px 0;
    background: #f8f9fa;
}

.appointment h2 {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-group textarea {
    height: 100px;
    resize: none; /* Make it fixed size */
    overflow-y: auto; /* Show scrollbar if content overflows vertically */
}

.contact-info h3 {
    color: #2c5aa0;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: #2c5aa0;
    width: 20px;
}
.map-embed-inline { display:none; margin-top: 0.75rem; }
.map-embed-inline.show { display:block; }


/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2c5aa0;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #1e3f73;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links { /* Changed from .nav-menu to .nav-links */
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content,
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .services h2,
    .testimonials h2,
    .appointment h2 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

}
.btn {
    padding: 15px 30px; /* Increased padding for better appearance */
    border-radius: 50px; /* More rounded corners */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem; /* Slightly larger font */
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem; /* Slightly more gap between icon and text */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Add subtle shadow */
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3f73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
}

.btn-secondary {
    background: #28a745;
    color: white;
}

.btn-secondary:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Ensure icons are properly sized */
.btn i {
    font-size: 1.1rem;
}
/* Interactive Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card .hover-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.service-card:hover .hover-details {
    opacity: 1;
    transform: translateY(0);
}

.hover-details h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hover-details .treatment-info {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.hover-details .patient-count {
    font-weight: 600;
    color: #ffd700;
    font-size: 1rem;
}

/* Blog Section */
.blog {
    padding: 80px 0 100px; /* Adjusted padding */
    background: #f8f9fa;
    position: relative; /* Needed for absolute positioning of arrows */
    overflow: hidden; /* Hide overflowing blog posts */
}

.blog h2 {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Original .blog-grid for blog.html */
.blog-grid {
    display: block;
    width: 100%;  /* Ensure stacking for blog.html */
}

/* Original .blog-post for blog.html */
.blog-post {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    margin-bottom: 3rem;
    width: 100%; /* Added to make it occupy full width */
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post img {
    width: 100%;
    object-fit: cover;
}

.blog-post h3 {
    color: #333;
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-post h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 1.5rem;
}

.blog-post p {
    margin: 0 1.5rem 1.5rem;
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
}

.blog-post p ul {
    padding-left: 20px;
    list-style-type: none;
}

.blog-post p ul li {
    margin-bottom: 10px;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.blog-post p ul li::before {
    content: '\2022';
    color: #2c5aa0;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
    position: absolute;
    left: 15px;
}

.blog-post p ul ul {
    margin-top: 10px;
}

.blog-post p ul ul li::before {
    content: '\25E6';
}

.blog-post p ul li strong {
    font-weight: 600;
    color: #333;
}

.blog-post .btn {
    margin: 1rem auto 1.5rem;
    display: block;
    width: fit-content;
}

/* Carousel-specific styles for home page blog */
.blog-grid.home-blog-grid { /* Target both classes for higher specificity */
    display: flex; /* Arrange blog posts horizontally */
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to individual blog posts */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
    gap: 2rem; /* Maintain gap between posts */
    padding-bottom: 1rem; /* Space for potential scrollbar if not hidden */
    width: 100%; /* Ensure it takes full width of its parent container */
    box-sizing: border-box; /* Include padding in width */
    padding-left: 50px; /* Adjust as needed */
    padding-right: 50px; /* Adjust as needed */
}

.blog-grid.home-blog-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.home-blog-grid .blog-post { /* Specific rule for blog posts within the carousel */
    flex: 0 0 420px; /* Increased width for wider boxes */
    scroll-snap-align: start; /* Snap to the start of each blog post */
}

/* Carousel-specific styles for home page blog */
.blog-grid.home-blog-grid { /* Target both classes for higher specificity */
    display: flex; /* Arrange blog posts horizontally */
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to individual blog posts */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
    gap: 2rem; /* Maintain gap between posts */
    padding-bottom: 1rem; /* Space for potential scrollbar if not hidden */
    width: 100%; /* Ensure it takes full width of its parent container */
    box-sizing: border-box; /* Include padding in width */
    padding-left: 50px; /* Adjust as needed */
    padding-right: 50px; /* Adjust as needed */
}

.blog-grid.home-blog-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.home-blog-grid .blog-post { /* Specific rule for blog posts within the carousel */
    flex: 0 0 350px; /* Increased width for wider boxes */
    scroll-snap-align: start; /* Snap to the start of each blog post */
}

/* Tabs */
.tabs {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    list-style: none;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap; /* Allow tabs to wrap */
    justify-content: center; /* Center tabs when wrapped */
}

.tab-nav li a {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    display: block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-nav li a.active, .tab-nav li a:hover {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

.tab-content .tab-pane {
    display: none;
}

.tab-content .tab-pane.active {
    display: block;
}

@media (max-width: 768px) {
    .tab-nav li a {
        padding: 0.8rem 1rem; /* Smaller padding on mobile */
        font-size: 0.9rem; /* Smaller font size on mobile */
    }
}

/* Tabs */
.tabs {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    list-style: none;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap; /* Allow tabs to wrap */
    justify-content: center; /* Center tabs when wrapped */
}

.tab-nav li a {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    display: block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-nav li a.active, .tab-nav li a:hover {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

.tab-content .tab-pane {
    display: none;
}

.tab-content .tab-pane.active {
    display: block;
}

@media (max-width: 768px) {
    .tab-nav li a {
        padding: 0.8rem 1rem; /* Smaller padding on mobile */
        font-size: 0.9rem; /* Smaller font size on mobile */
    }
}

/* Treatment Grid */


/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
}

.dropdown-menu li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}

.dropdown-toggle i {
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.blog-dropdown {
    min-width: 250px;
    right: 0;
    left: auto;
    max-height: none; /* Allow dropdown to expand fully */
    overflow-y: visible !important; /* Ensure all content is visible */

    /* Custom Scrollbar */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #2c5aa0 #f1f1f1; /* thumb track */
}

/* Webkit browsers (Chrome, Safari) */
.blog-dropdown::-webkit-scrollbar {
    width: 8px;
}

.blog-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.blog-dropdown::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 10px;
}

.blog-dropdown::-webkit-scrollbar-thumb:hover {
    background: #1e3f73;
}

.search-bar-dropdown {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-bar-dropdown input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-bar-dropdown button {
    display: none;
}

[id$="-box"] {
  scroll-margin-top: 120px;
}

/* Blog Post Full */
.blog-post-full {
    padding: 120px 0 80px;
}

.blog-post-full h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.blog-post-full h3 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-full h4 {
    font-size: 1.4rem;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-full p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Read More Button */
.blog-post .btn {
    margin-top: 1rem;
}

/* Blog Section - Carousel Enhancements */
.blog {
    position: relative; /* Needed for absolute positioning of arrows */
    overflow: hidden; /* Hide overflowing blog posts */
    padding-bottom: 5rem; /* Add some space for arrows if needed */
}

.home-blog-grid {
    display: flex; /* Arrange blog posts horizontally */
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to individual blog posts */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
    gap: 2rem; /* Maintain gap between posts */
    padding-bottom: 1rem; /* Space for potential scrollbar if not hidden */
}

.home-blog-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.blog-post {
    flex: 0 0 auto; /* Prevent shrinking and growing, maintain content width */
    width: 100%; /* Fixed width for each blog post in the carousel */
    scroll-snap-align: start; /* Snap to the start of each blog post */
}

/* Navigation Arrows */
.blog-navigation-arrow {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    background-color: rgba(44, 90, 160, 0.8); /* Blue with some transparency */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, transform 0.3s;
}

.blog-navigation-arrow:hover {
    background-color: #2c5aa0; /* Darker blue on hover */
    transform: translateY(-50%) scale(1.1);
}

.blog-navigation-arrow.prev {
    left: 10px;
}

.blog-navigation-arrow.next {
    right: 10px;
}

/* Hide arrows on smaller screens if not enough posts to scroll */
@media (max-width: 768px) {
    .blog-navigation-arrow {
        display: none; /* Hide arrows on small screens, rely on touch scroll */
    }
}

.blog-post-full h4, .blog-post h4 {
    margin-left: 1.5rem;
}

.blog-search {
    margin-bottom: 2rem;
}

.blog-search input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.2rem;
}

.blog-search button {
    display: none;
}

.blog-post-full {
    padding: 120px 0 80px;
}

.blog-post-full h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.blog-post-full h3 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-full h4 {
    font-size: 1.4rem;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-full p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Read More Button */
.blog-post .btn {
    margin-top: 1rem;
}

/* Blog Section - Carousel Enhancements */
.blog {
    position: relative; /* Needed for absolute positioning of arrows */
    overflow: hidden; /* Hide overflowing blog posts */
    padding-bottom: 5rem; /* Add some space for arrows if needed */
}

.home-blog-grid {
    display: flex; /* Arrange blog posts horizontally */
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to individual blog posts */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
    gap: 2rem; /* Maintain gap between posts */
    padding-bottom: 1rem; /* Space for potential scrollbar if not hidden */
}

.home-blog-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.blog-post {
    flex: 0 0 auto; /* Prevent shrinking and growing, maintain content width */
    width: 100%; /* Fixed width for each blog post in the carousel */
    scroll-snap-align: start; /* Snap to the start of each blog post */
}

/* Navigation Arrows */
.blog-navigation-arrow {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    background-color: rgba(44, 90, 160, 0.8); /* Blue with some transparency */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, transform 0.3s;
}

.blog-navigation-arrow:hover {
    background-color: #2c5aa0; /* Darker blue on hover */
    transform: translateY(-50%) scale(1.1);
}

.blog-navigation-arrow.prev {
    left: 10px;
}

.blog-navigation-arrow.next {
    right: 10px;
}

/* Hide arrows on smaller screens if not enough posts to scroll */
@media (max-width: 768px) {
    .blog-navigation-arrow {
        display: none; /* Hide arrows on small screens, rely on touch scroll */
    }
}

.blog-post-full h4, .blog-post h4 {
    margin-left: 1.5rem;
}

.blog-search {
    margin-bottom: 2rem;
}

.blog-search input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.2rem;
}

.blog-search button {
    display: none;
}

.dropdown.active .dropdown-menu {
    display: block;
}
