/* Nithya Dental Clinic - Chandran Dental Clinic Inspired Theme */
:root {
    --primary-blue: #0b3c5d;
    --primary-dark: #072a42;
    --accent-teal: #00a896;
    --accent-teal-hover: #028090;
    --bg-light: #f4f7f6;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c7a89;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Top Info Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--accent-teal);
    margin-right: 6px;
}

.top-social a {
    color: #e2e8f0;
    margin-left: 12px;
    font-size: 0.9rem;
}

.top-social a:hover {
    color: var(--accent-teal);
}

/* Header & Nav */
.main-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--accent-teal);
}

.main-header .container {
    max-width: 100%;
    padding: 0 20px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0;
}

img.site-logo {
    height: 120px !important;        
    max-height: 120px !important;
    width: auto !important;
    max-width: 500px !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: 0 !important;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    padding: 12px 18px;
    font-weight: 600;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.nav-links a:hover, .dropdown-menu a:hover {
    color: var(--accent-teal);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-top: 3px solid var(--accent-teal);
    z-index: 1001;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: capitalize;
    color: var(--text-dark);
}

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

.btn-nav-book {
    background-color: var(--accent-teal);
    color: #ffffff !important;
    border-radius: 4px;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    margin-left: 10px;
}

.btn-nav-book:hover {
    background-color: var(--accent-teal-hover);
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, rgba(7, 42, 66, 0.90) 0%, rgba(11, 60, 93, 0.88) 100%), url('../images/inner-hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 70px 0 65px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-teal);
    animation: bannerBgShift 12s ease-in-out infinite alternate;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 150, 0.20) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 45px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 168, 150, 0.2);
    border: 1px solid var(--accent-teal);
    color: #5eead4;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    animation: badgeFloat 3.5s ease-in-out infinite alternate, badgeGlow 2.5s infinite;
}

@keyframes badgeFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@keyframes badgeGlow {
    0%, 100% { border-color: var(--accent-teal); box-shadow: 0 0 5px rgba(0, 168, 150, 0.3); }
    50% { border-color: #5eead4; box-shadow: 0 0 14px rgba(94, 234, 212, 0.6); }
}

.hero-banner h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease-out;
    text-align: left;
}

.hero-banner h1 span {
    color: var(--accent-teal);
    position: relative;
    display: inline-block;
}

.hero-banner p {
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 0 25px 0;
    color: #e2e8f0;
    line-height: 1.7;
    animation: fadeInUp 0.9s ease-out;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-primary.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-primary.btn-outline:hover {
    background: #ffffff;
    color: var(--primary-blue);
    border-color: #ffffff;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-features i {
    color: var(--accent-teal);
}

/* Attitude Image Styling */
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    border-radius: 18px;
    overflow: visible;
}

.hero-attitude-img {
    width: 100%;
    max-width: 480px;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.15);
    display: block;
    transition: transform 0.4s ease;
}

.hero-attitude-img:hover {
    transform: scale(1.02);
}

.hero-floating-tag {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: #ffffff;
    color: var(--primary-dark);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    border-left: 4px solid var(--accent-teal);
    animation: floatBadge 3.2s ease-in-out infinite alternate;
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes floatBadge {
    0% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: translateY(-12px) rotate(-1deg);
        box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    }
    100% {
        transform: translateY(-6px) rotate(1deg);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
    }
}

.hero-floating-tag:hover {
    animation-play-state: paused;
    transform: translateY(-14px) scale(1.05);
}

.hero-floating-tag i {
    font-size: 1.8rem;
    color: var(--accent-teal);
    animation: iconBounce 2s infinite ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.hero-floating-tag strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.hero-floating-tag p {
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-banner h1, .hero-banner p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions, .hero-features {
        justify-content: center;
    }
    .hero-floating-tag {
        left: 20px;
        bottom: 10px;
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-teal);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-teal-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 168, 150, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Stats Badges with Entrance & Hover Effects */
.stats-section {
    background-color: #ffffff;
    padding: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-card {
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: gentleFloat 4s ease-in-out infinite alternate;
}

.stat-card:nth-child(2) { animation-delay: 0.6s; }
.stat-card:nth-child(3) { animation-delay: 1.2s; }
.stat-card:nth-child(4) { animation-delay: 1.8s; }

.stat-card:hover {
    transform: translateY(-8px);
    background-color: #f8fafc;
    animation-play-state: paused;
}

.stat-card h2 {
    font-size: 2.3rem;
    color: var(--accent-teal);
    transition: transform 0.3s ease;
}

.stat-card:hover h2 {
    transform: scale(1.08);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Two Column Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 35px;
    margin: 40px auto;
}

.full-width-layout {
    display: block;
    max-width: 1200px;
    margin: 40px auto;
}

.content-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 8px 25px rgba(11, 60, 93, 0.06);
}

.content-box img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.content-box img:hover {
    transform: scale(1.02);
}

.content-box h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 8px;
}

/* Services Grid with Card Animation */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: autoCardDrift 5s ease-in-out infinite alternate;
}

.service-card:nth-child(even) {
    animation-delay: 1.5s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(11, 60, 93, 0.12);
    border-color: var(--accent-teal);
    animation-play-state: paused;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-teal);
    margin-bottom: 15px;
    display: inline-block;
    animation: gentlePulse 3.5s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.18) rotate(6deg);
    color: var(--primary-blue);
    animation-play-state: paused;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #e6f7f5;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.card-link {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Sidebar */
.clinic-sidebar {
    position: sticky;
    top: 135px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(11, 60, 93, 0.05);
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 8px 24px rgba(11, 60, 93, 0.1);
    border-color: var(--accent-teal);
}

.sidebar-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card p {
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.sidebar-card p:last-child {
    margin-bottom: 0;
}

.sidebar-card a {
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.2s ease;
}

.sidebar-card a:hover {
    color: var(--accent-teal);
}

.sidebar-form input, .sidebar-form select, .sidebar-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* Page Title Hero Banner (For All Inner Pages: About, Services, Treatments, Contact, Booking) */
.page-title-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(7, 42, 66, 0.90) 0%, rgba(11, 60, 93, 0.88) 100%), url('../images/inner-hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 75px 0 70px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--accent-teal);
    animation: bannerBgShift 12s ease-in-out infinite alternate;
}

@keyframes bannerBgShift {
    0% {
        background-position: center 48%;
    }
    100% {
        background-position: center 54%;
    }
}

.page-title-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 168, 150, 0.22) 0%, transparent 70%);
    animation: heroGlow 6s ease-in-out infinite alternate;
    pointer-events: none;
}

.page-title-banner .container {
    position: relative;
    z-index: 2;
}

.page-title-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 0.7s ease-out;
}

.page-title-banner p {
    font-size: 1.15rem;
    color: #5eead4;
    font-weight: 500;
    max-width: 750px;
    margin: 0 auto;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out;
}

/* Pricing Section */
.pricing-section {
    margin: 50px 0;
}

.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}

.pricing-info .sub-heading {
    color: var(--accent-teal);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing-info .sub-heading::after {
    content: '';
    display: inline-block;
    width: 35px;
    height: 3px;
    background: var(--accent-teal);
    border-radius: 2px;
}

.pricing-info h2 {
    font-size: 2.3rem;
    color: var(--primary-blue);
    line-height: 1.25;
    margin: 15px 0 20px;
    font-weight: 800;
}

.pricing-info p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.pricing-call-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-teal);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.pricing-call-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
}

.pricing-call-number:hover {
    color: var(--accent-teal);
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pricing-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s;
    animation: gentleFloat 4.5s ease-in-out infinite alternate;
}

.pricing-card:nth-child(2) { animation-delay: 1.1s; }
.pricing-card:nth-child(3) { animation-delay: 2.2s; }
.pricing-card:nth-child(4) { animation-delay: 3.3s; }

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(11, 60, 93, 0.12);
    animation-play-state: paused;
}

.pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.pricing-card-header h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
}

.pricing-badge {
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    animation: gentlePulse 3s ease-in-out infinite;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-list li {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 10px;
    position: relative;
    padding-left: 14px;
}

.pricing-list li::before {
    content: '•';
    color: var(--accent-teal);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Emergency Highlight Card */
.pricing-card.card-featured {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.pricing-card.card-featured .pricing-card-header h3 {
    color: #ffffff;
}

.pricing-card.card-featured .pricing-badge {
    background: var(--accent-teal);
    color: #ffffff;
}

.pricing-card.card-featured .pricing-list li {
    color: #f1f5f9;
}

.pricing-card.card-featured .pricing-list li::before {
    color: var(--accent-teal);
}

@media (max-width: 900px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Accordion Dropdown Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.faq-item {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item[open] {
    background-color: #ffffff;
    border-color: var(--accent-teal);
    box-shadow: 0 4px 14px rgba(0, 168, 150, 0.08);
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    color: var(--accent-teal);
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--primary-blue);
    font-size: 0.85rem;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    background-color: var(--accent-teal);
    color: #ffffff;
}

.faq-content {
    padding: 0 20px 18px 20px;
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #e2e8f0;
    padding-top: 50px;
    margin-top: 50px;
}

.footer-logo {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 300px !important;
    object-fit: contain !important;
    display: block !important;
    margin-bottom: 15px;
    border-radius: 4px;
    background: #ffffff;
    padding: 4px 8px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--accent-teal);
}

/* Follow Us Social Square Buttons */
.footer-social-boxes {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.footer-social-boxes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color:#0b3c5d;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.footer-social-boxes a:hover {
    background-color: #028090;  
    transform: translateY(-2px);
    color: #ffffff !important;
}

.footer-bottom {
    background-color: #020f18;
    padding: 18px 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 600px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Floating WhatsApp Corner Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 34px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
    color: #ffffff;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.6;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
}

/* Global Animation Library */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 150, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 168, 150, 0);
    }
}

/* Interactive Navigation Hover Animation */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--accent-teal);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Subtle Automatic Motion Library */
@keyframes gentleFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-5px);
    }
}

@keyframes autoCardDrift {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-4px);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

/* Automatic subtle pulse on Main Action Button */
.btn-primary:not(.btn-outline) {
    animation: btnGlow 3.5s infinite;
}

@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25);
    }
    50% {
        box-shadow: 0 4px 18px rgba(0, 168, 150, 0.55);
    }
}

/* Page-Wide Micro-Motion & Animations for ALL Pages */
/* 1. Content Boxes & Section Cards Motion */
.content-box {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 2. Treatment & Content Images Gentle Hover & Auto-Breathing */
.content-box img {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(11, 60, 93, 0.08);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.content-box img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 36px rgba(11, 60, 93, 0.16);
}

/* 3. Sidebar Cards subtle animation */
.sidebar-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11, 60, 93, 0.09);
    border-color: var(--accent-teal);
}

/* 4. Feature Badges and Quick-Highlights on all treatment pages */
.content-box div[style*="border-left"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.content-box div[style*="border-left"]:hover {
    transform: translateY(-3px) translateX(3px);
    box-shadow: 0 6px 18px rgba(0, 168, 150, 0.12);
    background-color: #f1fbf9 !important;
}

/* 5. Icons in all pages micro-animation */
.content-box i.fa, .content-box i.fas, .content-box i.far {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.content-box i.fa-check-circle {
    animation: gentlePulse 4s ease-in-out infinite;
}

.content-box:hover i.fa-tooth,
.content-box:hover i.fa-teeth-open,
.content-box:hover i.fa-user-md,
.content-box:hover i.fa-magic,
.content-box:hover i.fa-sparkles,
.content-box:hover i.fa-smile,
.content-box:hover i.fa-child {
    transform: scale(1.15) rotate(5deg);
}

/* 6. Form inputs focus animation across booking & contact */
.sidebar-form input:focus,
.sidebar-form select:focus,
.sidebar-form textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
    transform: translateY(-1px);
    transition: all 0.25s ease;
}

/* 7. Buttons hover movement on all pages */
.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i.fa-arrow-right {
    transform: translateX(4px);
}

.btn-primary:hover i.fa-calendar-check {
    transform: scale(1.15);
}

/* Treatment Page Step-by-Step Procedure Process */
.procedure-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}

.procedure-step-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.procedure-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
    box-shadow: 0 10px 24px rgba(0, 168, 150, 0.12);
    background: #ffffff;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 168, 150, 0.3);
}

.procedure-step-card h4 {
    font-size: 1.05rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.procedure-step-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Treatment Quick Consultation Banner */
.treatment-cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    border-radius: 10px;
    padding: 30px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
    box-shadow: 0 8px 25px rgba(11, 60, 93, 0.15);
}

.treatment-cta-banner h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.treatment-cta-banner p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .treatment-cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (NITHYA DENTAL CLINIC)
   ========================================================================== */

/* Mobile Hamburger Toggle Button */
.mobile-toggle {
    display: none;
    background: #ffffff;
    border: 2px solid var(--accent-teal);
    color: var(--primary-blue);
    font-size: 1.25rem;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
}

.mobile-toggle:hover,
.mobile-toggle:focus {
    background: var(--accent-teal);
    color: #ffffff;
}

/* Responsive Breakpoint: 991px (Tablets & Mobile Devices) */
@media (max-width: 991px) {
    /* Header Container relative for dropdown anchoring */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .main-header .header-flex {
        position: relative;
        padding: 10px 0;
    }

    /* Top Bar */
    .top-bar {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    .top-flex {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .top-info span {
        margin-right: 0;
        display: block;
    }

    .top-social {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .top-social a {
        margin: 0;
    }

    /* Logo */
    img.site-logo {
        height: 65px !important;
        max-height: 65px !important;
        max-width: 240px !important;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    /* Classic Top Dropdown Menu (Directly Below Header) */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff !important;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px 0;
        border-top: 2px solid var(--accent-teal);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
        z-index: 999;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.25s ease-out;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        list-style: none;
    }

    .nav-links a {
        display: block;
        padding: 13px 20px;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--primary-blue);
        background: #ffffff;
    }

    .nav-links a:hover {
        color: var(--accent-teal);
        background-color: #f8fafc;
        padding-left: 26px;
    }

    /* Submenu Services Dropdown in Mobile */
    .dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--accent-teal);
        background-color: #f8fafc;
        padding: 4px 0 4px 12px;
        margin: 0;
    }

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

    .dropdown-menu a {
        padding: 10px 16px;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-dark);
        border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
        background: transparent;
    }

    .dropdown-menu a:hover {
        color: var(--accent-teal);
        padding-left: 22px;
    }

    /* Book Appointment Action in Mobile */
    .nav-book-item {
        border-bottom: none !important;
        padding: 14px 20px 6px !important;
    }

    .btn-nav-book {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin: 0 !important;
        text-align: center;
        padding: 12px 18px !important;
        background-color: var(--accent-teal) !important;
        color: #ffffff !important;
        border-radius: 6px;
        font-size: 0.95rem !important;
        box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25);
    }

    /* Main Layout Grid & Sidebar */
    .main-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 25px auto;
    }

    .clinic-sidebar {
        position: static;
        top: auto;
    }

    .hero-banner {
        padding: 45px 0 50px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-banner h1 {
        font-size: 2.3rem;
        text-align: center;
    }

    .hero-banner p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image-wrap {
        margin-top: 10px;
    }

    .hero-attitude-img {
        max-width: 100%;
        height: auto;
        max-height: 340px;
    }

    .hero-floating-tag {
        bottom: -10px;
        left: 10px;
        padding: 10px 14px;
    }

    /* Pricing Layout */
    .pricing-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Breakpoint: 600px (Smartphones) */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    /* Top Bar Mobile */
    .top-bar {
        font-size: 0.75rem;
    }

    .top-social {
        flex-direction: column;
        gap: 4px;
    }

    /* Logo scaling on compact screens */
    img.site-logo {
        height: 55px !important;
        max-height: 55px !important;
        max-width: 210px !important;
    }

    /* Hero section */
    .hero-banner {
        padding: 35px 0 40px;
    }

    .hero-banner h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero-banner p {
        font-size: 0.92rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn-primary {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }

    .hero-features {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .hero-floating-tag {
        position: static;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    /* Page title banners for inner pages */
    .page-title-banner {
        padding: 45px 0 40px;
    }

    .page-title-banner h1 {
        font-size: 1.9rem;
    }

    .page-title-banner p {
        font-size: 0.95rem;
    }

    /* Stats Grid */
    .stats-section {
        padding: 20px 0;
        margin-bottom: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card h2 {
        font-size: 1.75rem;
    }

    .stat-card p {
        font-size: 0.82rem;
    }

    /* Content Box */
    .content-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .content-box h2 {
        font-size: 1.5rem;
    }

    /* Forms */
    .sidebar-form input,
    .sidebar-form select,
    .sidebar-form textarea,
    form input,
    form select,
    form textarea {
        font-size: 16px !important; /* Prevents iOS auto-zoom on input focus */
        padding: 11px;
    }

    /* Buttons */
    .btn-primary {
        padding: 11px 22px;
        font-size: 0.92rem;
    }

    /* Procedure Steps Grid */
    .procedure-steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 25px;
    }

    .footer-social-boxes {
        justify-content: flex-start;
    }

    /* WhatsApp floating button on compact phones */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}