/* Dental Page Specific Styles */

/* COMPLETE BORDER AND OUTLINE RESET FOR DENTAL PAGE */

/* ULTRA AGGRESSIVE RESET - REMOVE ALL BORDERS AND OUTLINES */
* {
    border: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-style: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
    outline: none !important;
    outline-style: none !important;
    outline-width: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Reset all pseudo-elements */
*::before, *::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* SPECIFIC TEXT ELEMENT RESET */
h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th, 
blockquote, code, pre, strong, em, b, i, u, small,
mark, time, address, cite, abbr, acronym, font,
big, center, dl, dt, dd, ol, ul {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Remove dotted borders on ALL interaction states */
*:focus, *:active, *:hover, *:visited, *:link,
input:focus, input:active, input:hover, input:visited,
button:focus, button:active, button:hover,
a:focus, a:active, a:hover, a:visited,
textarea:focus, textarea:active, textarea:hover,
select:focus, select:active, select:hover {
    outline: none !important;
    outline-offset: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

/* Remove dotted underlines from links */
a {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

a:hover, a:focus, a:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* Force browser defaults off */
html, body {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Specific reset for form elements */
input, textarea, select, button {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Remove any focus rings or dotted outlines */
:focus {
    outline: none !important;
    outline-offset: 0 !important;
}

/* Remove dotted borders from tables */
table, tr, td, th, thead, tbody, tfoot {
    border: none !important;
    outline: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Remove dotted borders from lists */
ul, ol, li {
    list-style: none !important;
    border: none !important;
    outline: none !important;
}

/* Additional aggressive reset for accessibility features */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow text selection for content areas */
p, span, div, h1, h2, h3, h4, h5, h6, li, td, th, blockquote, code, pre {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Remove dotted focus indicators */
*:focus {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* Force remove any dotted borders that might appear */
::selection {
    background: transparent !important;
    color: inherit !important;
}

::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* Remove any default browser styling */
img, picture, video, canvas, svg {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Specific resets for all HTML elements */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Interactive elements */
button, input, select, textarea, a, 
input:focus, input:active, input:hover,
button:focus, button:active, button:hover,
select:focus, select:active, select:hover,
textarea:focus, textarea:active, textarea:hover,
a:focus, a:active, a:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Remove any dotted or dashed effects */
*:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Images and media */
img, picture, video, canvas, svg {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Lists */
ul, ol, li {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Tables */
table, tr, td, th, thead, tbody, tfoot {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6, p, span, div {
    border: none !important;
    outline: none !important;
}

/* Dental Hero Section */
.dental-hero {
    background: 
        linear-gradient(135deg, rgba(46, 49, 146, 0.9) 0%, rgba(0, 166, 80, 0.8) 50%, rgba(46, 49, 146, 0.9) 100%),
        url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dental-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dental-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dental-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

.dental-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.dental-hero .stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 150px;
    transition: transform 0.3s ease;
}

.dental-hero .stat:hover {
    transform: translateY(-5px);
}

.dental-hero .stat i {
    font-size: 2.5rem;
    color: #f07c00;
    margin-bottom: 15px;
    display: block;
}

.dental-hero .stat h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dental-hero .stat p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Oral Hygiene Basics Section */
.oral-basics {
    padding: 100px 0;
    background: #f9fafb;
}

.basics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.basic-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.basic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.basic-card:hover::before {
    transform: scaleX(1);
}

.basic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.basic-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.basic-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.basic-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
}

.basic-tips {
    list-style: none;
    text-align: left;
}

.basic-tips li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

.basic-tips li::before {
    content: '✓';
    color: #006e2a;
    font-weight: bold;
    margin-right: 10px;
    width: 16px;
}

/* Dental Tips Section */
.dental-tips {
    padding: 100px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.tip-category {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tip-category:hover {
    transform: translateY(-5px);
}

.tip-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tip-category h3 i {
    color: #2e3192;
    font-size: 1.3rem;
}

.tip-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tip-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-item i {
    color: #006e2a;
    font-size: 1.2rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.tip-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.tip-item p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Common Dental Problems Section */
.common-problems {
    padding: 100px 0;
    background: #f9fafb;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.problem-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.problem-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.problem-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.problem-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.problem-card ul {
    list-style: none;
    padding-left: 0;
}

.problem-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

.problem-card ul li::before {
    content: '•';
    color: #f07c00;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Age-Specific Care Section */
.age-specific-care {
    padding: 100px 0;
}

.age-care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.age-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.age-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
}

.age-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.age-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.age-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.age-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.age-content ul {
    list-style: none;
    padding-left: 0;
}

.age-content ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.age-content ul li::before {
    content: '✓';
    color: #006e2a;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Dental Emergency Section */
.dental-emergency {
    padding: 100px 0;
    background: #f9fafb;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.emergency-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.emergency-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.emergency-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.emergency-steps ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.emergency-steps li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    padding-left: 35px;
    position: relative;
}

.emergency-steps li::before {
    content: counter(step-counter);
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0;
}

/* Products Usage Guide Section */
.products-guide {
    padding: 100px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-guide-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-guide-card:hover {
    transform: translateY(-5px);
}

.guide-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.product-guide-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 25px;
    text-align: center;
}

.guide-steps {
    margin-bottom: 25px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    background: linear-gradient(135deg, #2e3192 0%, #00a650 50%, #2e3192 100%);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step p {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0;
}

.guide-tips {
    background: #f9fafb;
    padding: 20px;
    border-radius: 15px;
}

.guide-tips h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.guide-tips ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.guide-tips li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #4b5563;
}

.guide-tips li::before {
    content: '→';
    color: #006e2a;
    font-weight: bold;
    margin-right: 8px;
}

/* Dental CTA Section */
.dental-cta {
    background: 
        linear-gradient(135deg, rgba(46, 49, 146, 0.9) 0%, rgba(0, 166, 80, 0.8) 50%, rgba(46, 49, 146, 0.9) 100%),
        url('images/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.dental-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.dental-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Active Navigation Link */
.nav-link.active {
    color: #2e3192;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .dental-hero {
        padding: 120px 0 60px;
    }

    .dental-hero h1 {
        font-size: 2.5rem;
    }

    .dental-hero-subtitle {
        font-size: 1.2rem;
    }

    .dental-hero-stats {
        gap: 30px;
    }

    .dental-hero .stat {
        min-width: 120px;
        padding: 15px;
    }

    .basics-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .age-care-grid {
        grid-template-columns: 1fr;
    }

    .emergency-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .dental-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .dental-hero h1 {
        font-size: 2rem;
    }

    .dental-hero-subtitle {
        font-size: 1rem;
    }

    .dental-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .basic-card,
    .tip-category,
    .problem-card,
    .age-card,
    .emergency-card,
    .product-guide-card {
        padding: 30px 20px;
    }

    .guide-icon,
    .basic-icon,
    .age-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .emergency-steps li {
        padding-left: 35px;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

/* Smooth scrolling improvements */
.dental-hero,
.dental-cta {
    background-attachment: scroll;
}

@media screen and (min-width: 769px) {
    .dental-hero,
    .dental-cta {
        background-attachment: fixed;
    }
}

/* Print styles for dental emergency info */
@media print {
    .dental-hero,
    .dental-cta,
    .nav-toggle {
        display: none !important;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .emergency-card {
        break-inside: avoid;
        box-shadow: none !important;
        
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}