:root {
    --primary: #006d77;
    --accent: #83c5be;
    --bg-light: #edf6f9;
    --text-dark: #333;
    --white: #fff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.topbar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-left i {
    margin-right: 8px;
}

.topbar-right a {
    color: var(--white);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.topbar-right a:hover {
    transform: scale(1.2);
}

.navbar {
    background: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.navbar.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f8fdfd;
}

.navbar .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: 0.3s;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        width: 100%;
        flex-direction: column;
        gap: 0;
        display: none;
        padding: 1rem 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    .nav-links li {
        margin: 0.5rem 0;
    }
    .nav-links.show {
        display: flex;
    }
}

.hero-creative {
    background: linear-gradient(to bottom right, var(--white), var(--bg-light));
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-circle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--white);
    border-radius: 100px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: auto;
}

.circle-left {
    flex: 1;
    min-width: 260px;
}

.circle-left h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.circle-left p {
    color: #444;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-btn {
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.circle-right {
    flex: 1;
    text-align: center;
}

.circle-right img {
    max-width: 400px;
    width: 100%;
    animation: float 4s ease-in-out infinite;
}

.floating-icon {
    position: absolute;
    font-size: 2.2rem;
    color: var(--accent);
    opacity: 0.15;
    animation: pulse 5s infinite ease-in-out;
}

.floating-icon.stethoscope {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.floating-icon.heart {
    bottom: 18%;
    right: 6%;
    animation-delay: 1s;
}

.floating-icon.shield {
    top: 12%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #006d77;
    margin-bottom: 0.5rem;
}

.section-header .highlight {
    color: #83c5be;
}

.section-header p {
    font-size: 1rem;
    color: #555;
}

.about-enhanced {
    padding: 6rem 1.5rem;
    background-color: #fdfdfd;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.about-img {
    flex: 1;
    position: relative;
    min-width: 280px;
}

.img-wrapper {
    position: relative;
    border-radius: 30% 70% 50% 50% / 50% 50% 30% 70%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.img-wrapper .floating-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 2.5rem;
    color: #83c5be;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.about-info {
    flex: 1;
    min-width: 280px;
}

.about-info h2 {
    font-size: 2.5rem;
    color: #006d77;
    margin-bottom: 1rem;
}

.about-info .highlight {
    color: #83c5be;
}

.about-info p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 200px;
    background: #f0fafa;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.feature i {
    font-size: 2rem;
    color: #006d77;
    margin-bottom: 0.8rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: #006d77;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
    }
    .img-wrapper {
        border-radius: 20% 80% 60% 40% / 40% 60% 30% 70%;
    }
    .feature {
        margin-bottom: 1rem;
    }
    .about-info h2 {
        font-size: 2rem;
    }
}

.about-section {
    background: #ffffff;
}

.services-section {
    padding: 6rem 1.5rem;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #006d77;
}

.section-header .highlight {
    color: #83c5be;
}

.section-header p {
    font-size: 1.05rem;
    color: #555;
    max-width: 700px;
    margin: auto;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.09);
}

.service-img {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid #83c5be;
    border-radius: 0 0 40% 40% / 0 0 20% 20%;
    transition: transform 0.4s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
    text-align: center;
}

.service-content h4 {
    color: #006d77;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-content p {
    color: #555;
    font-size: 0.96rem;
    line-height: 1.5;
}

.doctors-section {
    padding: 6rem 1.5rem;
    background: #f0fbfb;
}

.doctors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.doctor-profile {
    width: 100%;
    max-width: 300px;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.doctor-profile:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.profile-img {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    transition: transform 0.5s ease;
}

.doctor-profile:hover .profile-img img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #83c5be;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-info {
    padding: 1.5rem;
    text-align: center;
}

.profile-info h4 {
    font-size: 1.3rem;
    color: #006d77;
    margin-bottom: 0.4rem;
}

.profile-info p {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.6rem;
}

.profile-info span {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    display: block;
}

.appointment-section {
    padding: 6rem 1.5rem;
    background: #ffffff;
}

.appointment-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.appointment-image {
    flex: 1;
    position: relative;
    min-width: 300px;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.appointment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
}

.image-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    font-size: 1rem;
}

.appointment-form {
    flex: 1;
    min-width: 320px;
    background: #f4fdfd;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.appointment-form h2 {
    font-size: 2rem;
    color: #006d77;
    margin-bottom: 2rem;
}

.appointment-form .highlight {
    color: #83c5be;
}

.appointment-form .form-floating {
    margin-bottom: 1.2rem;
}

.appointment-form .form-control,
.appointment-form .form-select {
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.appointment-form .appointment-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    background: #83c5be;
    color: #fff;
    border: none;
    border-radius: 12px;
    transition: background 0.3s;
}

.appointment-form .appointment-btn:hover {
    background: #5fb0a9;
}

@media (max-width: 768px) {
    .appointment-wrapper {
        flex-direction: column;
    }
    .appointment-form {
        width: 100%;
    }
    .appointment-image {
        width: 100%;
    }
}

.appointment-form .form-floating input[type="date"],
.appointment-form .form-floating input[type="time"] {
    min-height: 60px;
}

.testimonial-section {
    background: #ffffff;
    padding: 6rem 1.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #006d77;
}

.testimonial-scroll-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}

.testimonial-scroll {
    display: flex;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    padding: 2rem 1rem;
    scroll-behavior: smooth;
}

.testimonial-scroll::-webkit-scrollbar {
    height: 8px;
}

.testimonial-scroll::-webkit-scrollbar-thumb {
    background: #83c5be;
    border-radius: 10px;
}

.testimonial-card {
    flex: 0 0 80%;
    max-width: 500px;
    scroll-snap-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: scale(1.03);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #83c5be;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin: 1rem 0;
}

.testimonial-card h4 {
    color: #006d77;
    margin: 0.5rem 0 0;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: #999;
}

.blog-horizontal {
    padding: 6rem 1rem;
    background-color: #ffffff;
}

.blog-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.blog-row:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.blog-img {
    flex: 0 0 320px;
    height: 100%;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-row:hover .blog-img img {
    transform: scale(1.05);
}

.blog-info {
    flex: 1;
    padding: 2rem 1rem 2rem 0;
}

.blog-info h4 {
    font-size: 1.4rem;
    color: #006d77;
    margin-bottom: 0.8rem;
}

.blog-info p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.read-more {
    color: #83c5be;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #006d77;
    margin-left: 4px;
}

@media screen and (max-width: 768px) {
    .blog-row {
        flex-direction: column;
        text-align: center;
    }
    .blog-img {
        width: 100%;
    }
    .blog-info {
        padding: 1.5rem;
    }
    .blog-meta {
        justify-content: center;
    }
}

.themed-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 20px 30px;
    border-radius: 50px 50px 0 0;
    font-family: 'Poppins', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo span {
    color: var(--accent);
}

.footer-col h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--white);
    transition: 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.newsletter-form {
    display: flex;
    margin-top: 12px;
}

.newsletter-form input {
    padding: 8px 12px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    flex: 1;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: var(--accent);
    border: none;
    color: var(--primary);
    padding: 0 14px;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #b2e6dc;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    font-size: 1.2rem;
    color: var(--white);
    margin-right: 12px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 6px;
}

.footer-links a:hover {
    color: var(--accent);
}