/* ============================================================
   pages.css — Treatment & service page enhancements
   Pro Estetik Dental Clinic — selimbilgin.com
   ============================================================ */

/* ---- Variables (mirroring main theme) -------------------- */
:root {
    --pe-blue:    #1F242F;
    --pe-teal:    #3fb6d6;
    --pe-dark:    #005cb9;
    --pe-green:   #2e7d32;
    --pe-light:   #f0f8ff;
    --pe-radius:  12px;
    --pe-shadow:  0 6px 28px rgba(0,0,0,0.10);
}

/* ============================================================
   1. IMAGES — fill container, rounded, shadow
   ============================================================ */
.department-overview-image img,
.department-details-area > .container img,
.dept-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--pe-radius);
    box-shadow: var(--pe-shadow);
    display: block;
    object-fit: cover;
}

.department-overview-image {
    border-radius: var(--pe-radius);
    overflow: hidden;
}

/* ============================================================
   2. SECTION HEADINGS — teal accent underline
   ============================================================ */
.department-details-area h1,
.department-details-area h2 {
    margin-bottom: 18px;
    padding-bottom: 14px;
    position: relative;
}

.department-details-area h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52px;
    height: 3px;
    background: var(--pe-teal);
    border-radius: 2px;
}

.department-details-area h3 {
    color: var(--pe-blue);
    margin-bottom: 12px;
}

/* ============================================================
   3. LIST — checkmark bullets replacing browser defaults
   ============================================================ */
.department-overview-content .list,
.department-details-area .list,
.department-details-area ul.list {
    padding: 0;
    margin: 18px 0 20px;
    list-style: none;
}

.department-overview-content .list li,
.department-details-area .list li,
.department-details-area ul.list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 11px;
    line-height: 1.65;
    color: #3d3d3d;
    font-size: 15px;
}

.department-overview-content .list li::before,
.department-details-area .list li::before,
.department-details-area ul.list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--pe-teal);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ============================================================
   4. HERO ROW — light card treatment
   ============================================================ */
.dept-hero-row {
    background: linear-gradient(135deg, #f5faff 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 40px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}

/* ============================================================
   5. STEP CARDS — treatment journey steps
   ============================================================ */
.step-card {
    background: var(--pe-light);
    border-radius: var(--pe-radius);
    padding: 28px 20px;
    text-align: center;
    border-top: 4px solid var(--pe-teal);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    margin-bottom: 24px;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(63,182,214,.18);
}

.step-card .step-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--pe-teal);
    line-height: 1;
    margin-bottom: 14px;
    font-family: 'Poppins', sans-serif;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--pe-blue);
}

.step-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   6. PRICE HIGHLIGHT BOX
   ============================================================ */
.price-highlight {
    background: linear-gradient(135deg, #1F242F 0%, #2d3a52 100%);
    color: #fff;
    border-radius: var(--pe-radius);
    padding: 28px;
    margin: 24px 0;
}

.price-highlight h3 {
    color: var(--pe-teal);
    margin-bottom: 16px;
    font-size: 20px;
}

.price-highlight .price-main {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.price-highlight .price-uk {
    color: #9e9e9e;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 8px;
}

.price-highlight .price-save {
    color: #66bb6a;
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-top: 6px;
}

/* ============================================================
   7. CTA BOX inside pages
   ============================================================ */
.dept-cta-box {
    background: linear-gradient(135deg, #1F242F, #253550);
    color: #fff;
    border-radius: var(--pe-radius);
    padding: 36px 32px;
    text-align: center;
    margin: 36px 0;
}

.dept-cta-box h3 {
    color: var(--pe-teal);
    font-size: 22px;
    margin-bottom: 12px;
}

.dept-cta-box p {
    color: rgba(255,255,255,.85);
    margin-bottom: 22px;
    font-size: 15px;
}

.dept-cta-box .btn-wa {
    background: #25D366;
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    font-size: 15px;
    transition: background .2s;
}

.dept-cta-box .btn-wa:hover {
    background: #1fba59;
    color: #fff;
}

.dept-cta-box .btn-outline {
    background: transparent;
    border: 2px solid var(--pe-teal);
    color: var(--pe-teal);
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    font-size: 15px;
    transition: all .2s;
}

.dept-cta-box .btn-outline:hover {
    background: var(--pe-teal);
    color: #fff;
}

/* ============================================================
   8. TABLE improvements
   ============================================================ */
.department-details-area .table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.department-details-area .table thead th {
    background: var(--pe-blue);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 16px;
    border: none;
    vertical-align: middle;
}

.department-details-area .table tbody td {
    padding: 13px 16px;
    font-size: 14px;
    vertical-align: middle;
    border-color: #eee;
}

.department-details-area .table tbody tr:hover {
    background: var(--pe-light);
}

/* savings column */
.department-details-area .table td[style*="color:green"],
.department-details-area .table td .save-badge {
    color: var(--pe-green) !important;
    font-weight: 700;
}

/* ============================================================
   9. FAQ ACCORDION
   ============================================================ */
.department-details-area .accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.department-details-area .accordion-button {
    font-weight: 600;
    font-size: 15px;
    color: var(--pe-blue);
    background: #fafafa;
}

.department-details-area .accordion-button:not(.collapsed) {
    background: var(--pe-teal);
    color: #fff;
    box-shadow: none;
}

.department-details-area .accordion-button::after {
    filter: none;
}

.department-details-area .accordion-button:not(.collapsed)::after {
    filter: brightness(10);
}

/* ============================================================
   10. SIDEBAR / aside box
   ============================================================ */
.aside-cta-box {
    background: var(--pe-blue);
    color: #fff;
    border-radius: var(--pe-radius);
    padding: 28px 24px;
    position: sticky;
    top: 100px;
}

.aside-cta-box h3 {
    color: var(--pe-teal);
    font-size: 18px;
    margin-bottom: 14px;
}

.aside-cta-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.aside-cta-box ul li {
    padding: 6px 0;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.aside-cta-box .aside-price {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* ============================================================
   11. SECTION DIVIDER
   ============================================================ */
.section-sep {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 20px 0 50px;
}

/* section alt background */
.bg-section-alt {
    background: #f8fbff;
    border-radius: 12px;
    padding: 40px 32px;
    margin-bottom: 40px;
}

/* ============================================================
   12. PAGE BANNER
   ============================================================ */
.page-title-area {
    padding: 28px 0;
}

.page-title-area .page-title-content ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-title-area .page-title-content ul li {
    font-size: 14px;
    color: #666;
}

.page-title-area .page-title-content ul li a {
    color: var(--pe-teal);
    text-decoration: none;
}

.page-title-area .page-title-content ul li + li::before {
    content: '›';
    margin-right: 6px;
    color: #aaa;
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .dept-hero-row {
        padding: 24px 16px;
    }

    .department-overview-image {
        margin-bottom: 28px;
    }

    .department-details-area h2 {
        font-size: 20px;
    }

    .department-details-area h1 {
        font-size: 24px;
    }

    .step-card {
        margin-bottom: 16px;
    }

    .dept-cta-box {
        padding: 24px 18px;
    }

    .dept-cta-box h3 {
        font-size: 18px;
    }

    .price-highlight {
        padding: 20px 18px;
    }

    .price-highlight .price-main {
        font-size: 30px;
    }

    .bg-section-alt {
        padding: 24px 16px;
    }

    .department-details-area .table thead th,
    .department-details-area .table tbody td {
        font-size: 13px;
        padding: 10px 10px;
    }

    .department-details-area h2::after {
        width: 40px;
    }

    .aside-cta-box {
        position: static;
        margin-top: 30px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .dept-hero-row {
        padding: 30px 20px;
    }

    .department-overview-image {
        margin-bottom: 20px;
    }
}
