:root {
    --primary-color: #7AA2E3;
    /* Soft Blue */
    --secondary-color: #6AD4DD;
    /* Soft Cyan */
    --accent-color: #97E7E1;
    /* Light Cyan */
    --background-color: #F8F6E3;
    /* Cream/Off-white */
    --text-color: #333333;
    /* Dark Grey */
    --light-text: #666666;
    --white: #ffffff;
    --success: #6BCB77;
    --error: #FF6B6B;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* Add top/bottom padding */
    min-height: 90px;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    /* Subtle logo interaction */
}

/* Nav Menu */
.nav-links {
    display: flex;
    gap: 35px;
    /* More breathing room */
    align-items: center;
    /* Critical for vertical centering mixed items */
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

/* Hover effect for text links (excluding buttons) */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links li.current-menu-item a:not(.btn)::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    /* Use inline-flex for better centering inside */
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    /* Pillow shape */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: none;
    line-height: 1;
    /* Fix height issues */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5D8AC2 100%);
    /* Gradient background */
    color: var(--white) !important;
    /* Force white text */
    box-shadow: 0 4px 15px rgba(122, 162, 227, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(122, 162, 227, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Dropdown Sub-menus (basic support) */
.nav-links .menu-item-has-children {
    position: relative;
}

.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block;
    /* Override default if needed */
}

.nav-links .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.nav-links .sub-menu li a:hover {
    background-color: #f9f9f9;
}

.nav-links .sub-menu li a::after {
    display: none;
    /* No underline for dropdowns */
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.hero p.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Blog Preview Home */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Related Posts Section */
.related-posts-section {
    max-width: 1200px;
    margin: 60px auto;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.related-post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.related-post-content h4 a:hover {
    color: var(--secondary-color);
}

.related-post-excerpt {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer & Floating Buttons */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    background-color: var(--white);
    font-size: 24px;
}

.float-btn.whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.float-btn.appointment {
    background-color: var(--primary-color);
    color: var(--white);
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 90px;
        /* Matches navbar min-height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 1.2rem;
    }

    .nav-links .btn-primary {
        width: 100%;
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p.subtitle {
        font-size: 1.2rem;
    }
}

/* Comments Section */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-title,
.comment-reply-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.comments-title::after,
.comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img.avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #eee;
}

.fn {
    font-weight: 700;
    font-style: normal;
    color: var(--text-color);
    font-size: 1.1rem;
}

.comment-metadata {
    margin-left: auto;
    font-size: 0.85rem;
    color: #999;
}

.comment-metadata a {
    color: #999;
}

.comment-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.reply {
    text-align: right;
}

.comment-reply-link {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.comment-reply-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Threaded comments indentation */
.children {
    list-style: none;
    padding-left: 20px;
    margin-left: 20px;
    border-left: 1px solid #eee;
}

/* Comment Form */
.comment-respond {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.comment-form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.comment-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-form-field.comment-form-comment {
    width: 100%;
    flex: 100%;
}

.comment-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.required {
    color: var(--error);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(122, 162, 227, 0.1);
}

.form-submit {
    margin-top: 10px;
    width: 100%;
}

@media (max-width: 768px) {
    .comment-form-row {
        flex-direction: column;
        gap: 0;
    }

    .comment-form-field {
        margin-bottom: 15px;
    }

    .children {
        padding-left: 10px;
        margin-left: 10px;
    }
}