/* ===================================
   SPECIALIZED DENTISTRY PAGE STYLES
   =================================== */

:root {
    --logo-gray: #183D4A;
    --beige: #F0EFE7;
    --logo-blue: #13C2CF;
    --nav-bar-gold: #ECD8B6;
}

/* Page Background */
body {
    background: var(--beige);
}

/* Hero Section Customizations */
.specialized-hero {
    position: relative;
    height: 583px;
    background: #D9D9D9;
    overflow: hidden;
}

.specialized-hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--logo-gray);
    opacity: 0.7;
    z-index: 2;
}

.specialized-hero-bg {
    position: absolute;
    width: 100%;
    height: 853px;
    top: -270px;
    left: 0;
    background: url('../../assets/facilities/patient_care/patient_care.JPG') no-repeat center center / cover;
    z-index: 1;
}

.specialized-hero .content-wrapper {
    position: relative;
    z-index: 3;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-text-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.specialized-hero .page-title {
    position: absolute;
    width: 591px;
    height: 220px;
    left: 75px;
    top: 175px;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 110px;
    color: var(--beige);
    margin: 0;
}

.hero-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 38px;
    line-height: 49px;
    text-align: center;
    color: var(--logo-gray);
    margin: 0;
}

/* Tagline Section Styling */
.tagline-section {
    padding: 60px 0;
    background: var(--beige);
}

/* Specialty Grid Section */
.specialty-grid-section {
    padding: 100px 0;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Specialty Card Styling */
.specialty-card {
    position: relative;
    width: 375px;
    height: 550px;
    background: #FFFFFF;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-10px);
}

.specialty-card-center-title {
    position: absolute;
    width: 300px;
    height: 75px;
    left: 37px;
    top: 237px;
    background: #ECD8B6;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.specialty-card-center-title h3 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #002147;
    text-align: center;
    padding: 0 10px;
    margin: 0;
}

.specialty-card:hover .specialty-card-center-title {
    opacity: 0;
    transform: scale(1.1);
}

.specialty-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialty-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 61, 74, 0.05) 0%, #3991B0 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px 15px 35px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialty-card:hover .specialty-card-overlay {
    opacity: 1;
}

.specialty-card-title {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 41px;
    color: var(--nav-bar-gold);
    margin-bottom: 5px;
    text-align: center;
}

.specialty-card-desc {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: var(--beige);
    margin-bottom: 20px;
    text-align: left;
}

.learn-more-btn {
    display: inline-block;
    width: 135px;
    height: 35px;
    background: var(--beige);
    color: var(--logo-gray);
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 35px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.learn-more-btn:hover {
    background: var(--nav-bar-gold);
}

/* NABH Accreditation Section */
.nabh-section {
    padding: 100px 0 200px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.nabh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 482px;
}

.nabh-link {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 24px;
    line-height: 50px;
    color: var(--logo-gray);
    text-decoration: underline;
    display: block;
    margin-bottom: 28px;
    text-align: center;
}

.nabh-btn {
    display: inline-block;
    width: 166.5px;
    height: 56px;
    background: var(--logo-blue);
    color: var(--logo-gray);
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 56px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.3s ease;
    letter-spacing: 0.1em;
}

.nabh-btn:hover {
    opacity: 0.9;
}

.nabh-logo {
    width: 179px;
    height: 178px;
    object-fit: contain;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .specialized-hero .page-title {
        font-size: 60px;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    .specialty-grid {
        grid-template-columns: 1fr;
    }

    .specialized-hero .page-title {
        font-size: 40px;
        text-align: center;
    }

    .nabh-item {
        margin: 20px 0;
        display: block;
    }
}