:root {
    --primary: #E10A09;
    --secondary: #FB8101;
    /* --medium-pink: #EA3C8B; */
    /* --light-pink: #F0D9EB; */
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-light: #E2E8F0;
    --footer-bg: var(--primary);
    --footer-accent: var(--secondary);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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






/* Hero Section */
.hero {
    background:linear-gradient(135deg, rgba(233, 143, 59, 0.55), rgba(233, 143, 59, 0.55)),
        url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1400&h=400&fit=crop');
    color: #fff;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    opacity: 0.7;
}

/* Oral Care Section */
.oral-care-section {
    padding: 80px 0;
    background: var(white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: orange !important;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, red, red);
    border-radius: 2px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}

.tip-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 0, 0, 0.507);
    width: 300px;
    max-width: 100%;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.tip-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tip-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 180px;
}

.tip-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.tip-card p {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.learn-more-btn {
    background: linear-gradient(135deg, orange, orange);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.3);
    align-self: flex-start;
}

.learn-more-btn:hover {
    background: red;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 59, 139, 0.4);
}

.learn-more-btn i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.learn-more-btn:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .learn-more-btn {
        margin: 0 auto;
        display: block;
        align-self: center;
    }
}

/* Detail Modal/Overlay Styles */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.detail-overlay.active {
    opacity: 1;
    visibility: visible;
}

.detail-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.detail-overlay.active .detail-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    color: #E53E3E;
}

.detail-header {
    position: relative;
    margin-bottom: 30px;
}

.detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.detail-title-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 30px;
    border-radius: 0 0 0 0;
}

.detail-title-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.detail-title-section h3 {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.detail-body {
    padding: 0 30px 30px;
}

.detail-section h3 {
    font-size: 24px;
    color: var(--primary);
    margin: 25px 0 15px;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.detail-section p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.detail-section ul,
.detail-section ol {
    margin: 20px 0;
    padding-left: 25px;
}

.detail-section li {
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

.detail-section li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.tip-highlight {
    background: linear-gradient(135deg, #FDE2ED, #FCE8F2);
    border: 1px solid var(--medium-pink);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tip-highlight i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-highlight p {
    margin: 0;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
}

.tip-highlight strong {
    color: var(--primary);
    font-weight: 600;
}




/* ========== BACK TO TOP & FLOATING ACTION BUTTONS ========== */
.back-to-top-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
}

#backToTopBtn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E88E5;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#backToTopBtn:hover {
    filter: brightness(0.95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

#backToTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-social-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    left: auto;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.floating-social-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

/* Individual Social Buttons */
.floating-social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: scale(1);
}

/* Individual Button Colors */
.btn-call {
    background: #1E88E5;
}

.btn-whatsapp {
    background: #25D366;
}

.floating-social-btn[aria-label="instagram"],
.floating-social-btn[data-tooltip="instagram"] {
    background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
    color: #ffffff;
}

.btn-facebook {
    background: #1877F2;
}

.btn-youtube {
    background: #FF0000;
}

/* Hover Effects */
.floating-social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.floating-social-btn i {
    transition: transform 0.3s ease;
}

.floating-social-btn:hover i {
    transform: rotate(360deg);
}







/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(233, 143, 59, 0.55), rgba(233, 143, 59, 0.55)),
        url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1400&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    opacity: 0.7;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-pink);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-30 { margin-top: 30px; }
.bg-primary { background: linear-gradient(135deg, var(--primary), var(--medium-pink)); }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }























/* When JS adds .active, show the menu (same as your responsive rules) */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    /* keep column on mobile */
}

/* Make sure the hamburger animation uses `.active` too */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #2b6cb0;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #2b6cb0;
}

/* Optional: keep nav above other content and avoid weird layout jumps */
.nav-menu {
    z-index: 1200;
}

/* Debug override (temporary): if you still see menu stuck open, uncomment to force control */
/* .nav-menu { display: none !important; } */
/* .nav-menu.active { display: flex !important; } */


@media(max-width:991px){
    .nav-menu{
        display: none !important;
        
    }
        .nav-menu.active {
            display: flex !important;
        }

}


@media(max-width:486px){
    .nav-content{
        gap: 0;
    }
    .appointment-btn{
        padding: 10px 20px;
        font-size: 12px;
    }
}


.floating-social-btn .fa-brands{
    color: white;
}




.footer-about p{
        margin: 18px 0 18px;
}