/* Custom Styles for Lina Dental Clinic */

:root {
    /* Đã chuyển đổi sang bảng màu chuẩn của Lina */
    --primary-color: #004f9e;
    /* Primary Brand */
    --secondary-color: #1c2b39;
    /* Text Primary */
    --accent-color: #f5f7fa;
    /* Light Alternate Background */
    --text-color: #5f6b7a;
    /* Text Secondary */
}

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

/* Prevent horizontal page overflow — applied to body, NOT html,
   so inner elements with overflow-x:auto can still scroll horizontally */
body {
    overflow-x: clip;
}

/* Line Clamp for Testimonials */
.line-clamp-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Jost', sans-serif;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: -0.02em;
}

/* Prevent long words (especially Russian) from overflowing containers */
p, li, td, th, a, span, div {
    overflow-wrap: break-word;
}

/* Clip AOS fade-left/fade-right initial transforms from causing overflow */
section, .section-spacer-lg {
    overflow-x: clip;
}

/* Stomatology Block Styles */
.block-cyan {
    background-color: var(--primary-color);
}

.block-dark {
    background-color: var(--secondary-color);
}

.block-gray {
    background-color: var(--accent-color);
}

.service-card-stomatology {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 2.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}

.service-card-stomatology .arrow-icon {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.service-card-stomatology:hover .arrow-icon {
    transform: translate(5px, -5px);
    opacity: 1;
}

/* Container for Block Style */
.container-stomatology {
    max-width: 1290px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Vertical Spacing between blocks */
.section-spacer {
    padding-top: 0;
    padding-bottom: 0;
}

.section-spacer-lg {
    padding-top: 140px;
    padding-bottom: 140px;
}

.about-section-overlap {
    padding-top: 8.7em;
    margin-top: -4.3em;
    /* Overlap effect */
    position: relative;
    z-index: 0;
}

.services-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Button Stomatology Style */
.btn-stomatology {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    border-radius: 6px;
    /* Adjusted corner */
    transition: background-color 0.3s ease;
}

.btn-stomatology:hover {
    background-color: #2c6fbe;
}

/* Block background colors */
.bg-light-gray {
    background-color: #f7f7f7;
}

/* Responsive navigation adjustments */
@media (max-width: 1024px) {
    .section-spacer-lg {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Accessibility: Focus Visible Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #004f9e;
    outline-offset: 2px;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Touch target minimum size (44px) for mobile */
@media (max-width: 768px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }

    .section-spacer-lg {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .service-card-stomatology {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
}