/* ============================================================
   Pediatric Dentistry Page
   ============================================================ */

/* Page-level overrides */
.page-template-pediatric-dentistry .min-80 {
    min-height: 0;
    padding: 0;
    background-color: #fff;
}
.page-template-pediatric-dentistry .contentarea {
    padding: 0;
}
.page-template-pediatric-dentistry .contentarea .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.ped-hero {
    height: 532px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #3d4970;
}
.loaded .ped-hero {
    background-image: url('../images/hero-banner2.webp');
}

/* ============================================================
   INTRO
   ============================================================ */
.ped-intro {
    padding: 75px 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: #fff;
}
.ped-intro h1 {
    color: var(--cdg-red);
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.ped-intro p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    margin: 0;
}

/* ============================================================
   WHAT IS PEDIATRIC DENTISTRY (bordered tour box)
   ============================================================ */
.ped-what-is {
    position: relative;
    min-height: 721px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ped-what-is-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
}
.loaded .ped-what-is-bg {
    background-image: url('../images/ped-what-is-bg.jpg');
}
.ped-what-is-border {
    position: absolute;
    top: 76px;
    left: 229px;
    right: 229px;
    bottom: 76px;
    border: 5px solid #6077a0;
    pointer-events: none;
}
.ped-what-is-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
    padding: 120px 350px;
}
.ped-what-is-content h2 {
    color: var(--cdg-blue);
    font-family: var(--font-family-main);
    font-size: 45px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}
.ped-what-is-content p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #2a2727;
    margin: 0;
    max-width: 1220px;
}

/* ============================================================
   WHEN IS PEDIATRIC DENTISTRY RECOMMENDED?
   ============================================================ */
.ped-when {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    padding: 75px 220px;
    background-color: #fff;
}
.ped-when-left {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.ped-when-left h2 {
    color: var(--cdg-red);
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.ped-when-left p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    margin: 0;
}
.ped-when-right {
    flex-shrink: 0;
}
.ped-when-image {
    width: 475px;
    height: auto;
    display: block;
}

/* ============================================================
   OUR PEDIATRIC DENTAL SERVICES
   ============================================================ */
.ped-services {
    background-color: var(--tertiary-color);
    padding: 50px 110px;
    display: flex;
    flex-direction: column;
    gap: 70px;
    align-items: center;
    overflow: hidden;
}
.ped-services-header {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
}
.ped-services-header h2 {
    color: var(--cdg-blue);
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.ped-services-header p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    max-width: 960px;
    margin: 0;
}
.ped-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}
.ped-service-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    width: 275px;
}
.ped-service-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ped-service-icon img {
    height: 120px;
    width: auto;
}
.ped-service-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    width: 100%;
}
.ped-service-divider {
    width: 263px;
    height: 2px;
    background-color: #313a3c;
}
.ped-service-label h3 {
    font-family: var(--font-family-main);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cdg-red);
    text-align: center;
    margin: 0;
    min-height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ped-service-desc {
    background-color: rgba(0, 84, 186, 0.5);
    border-radius: 10px;
    min-height: 175px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
}
.ped-service-desc p {
    font-family: var(--font-family-secondary);
    font-size: clamp(14px, 1.5vw, 20px);
    line-height: 1.5;
    color: #2a2727;
    text-align: center;
    margin: 0;
}

/* ============================================================
   PEDIATRIC DENTAL VISITS
   ============================================================ */
.ped-visits {
    background-color: var(--tertiary-color);
    padding: 58px 0 100px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    overflow: hidden;
}
.ped-visits-title {
    text-align: center;
    padding: 0 110px;
}
.ped-visits-title h2 {
    color: var(--cdg-blue);
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.ped-visits-rows {
    display: flex;
    flex-direction: column;
    gap: 75px;
    width: 100%;
    padding: 0 110px;
}
.ped-visits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 75px;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.ped-visits-row.reverse {
    flex-direction: row-reverse;
}
.ped-visits-text {
    flex: 1 0 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 720px;
    position: relative;
    border-left: 3px solid var(--cdg-red);
    border-bottom: 3px solid var(--cdg-red);
    border-right: 3px solid var(--cdg-red);
    padding: 0 clamp(15px, 3vw, 50px) 25px clamp(15px, 3vw, 50px);
}
.ped-visits-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 3px;
    background-color: var(--cdg-red);
}
.ped-visits-text h3 {
    font-family: var(--font-family-main);
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    color: #3d4970;
    margin: 0;
    line-height: 1.4;
}
.ped-visits-text p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #2a2727;
    margin: 0;
}
.ped-visits-photo {
    flex: 0 0 600px;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
}
.ped-visits-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   PEDIATRIC DENTISTRY & LONG-TERM ORAL HEALTH (tour box 2)
   ============================================================ */
.ped-longterm {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}
.ped-longterm-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
}
.loaded .ped-longterm-bg {
    background-image: url('../images/ped-longterm-bg.jpg');
}
.ped-longterm-border {
    position: absolute;
    top: 70px;
    left: 229px;
    right: 229px;
    bottom: 70px;
    border: 5px solid #6077a0;
    pointer-events: none;
}
.ped-longterm-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
    padding: 110px 350px;
}
.ped-longterm-content h2 {
    color: var(--cdg-red);
    font-family: var(--font-family-main);
    font-size: 45px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}
.ped-longterm-content p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #2a2727;
    margin: 0;
    max-width: 1220px;
}

/* ============================================================
   ORTHODONTIC CARE
   ============================================================ */
.ped-ortho {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    padding: 75px 220px;
    background-color: #fff;
}
.ped-ortho-images {
    position: relative;
    flex-shrink: 0;
    width: 520px;
    height: 490px;
}
.ped-ortho-doctor {
    position: absolute;
}
.ped-ortho-doctor:first-child {
    top: 0;
    left: 0;
}
.ped-ortho-doctor:last-child {
    bottom: 0;
    right: 0;
}
.ped-ortho-photo {
    width: 320px;
    height: auto;
    display: block;
}
.ped-ortho-doctor h3 {
    position: absolute;
    top: 40px;
    left: 260px;
    font-family: var(--font-family-main);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    color: var(--cdg-red);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
}
.ped-ortho-right {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.ped-ortho-right h2 {
    color: var(--cdg-red);
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.ped-ortho-right p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    margin: 0;
}

/* ============================================================
   SUPPORT YOUR CHILD'S SMILE (cream CTA)
   ============================================================ */
.ped-support {
    background-color: var(--tertiary-color);
    padding: 75px 220px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}
.ped-support h2 {
    color: var(--cdg-blue);
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
    text-align: center;
}
.ped-support p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    text-align: center;
    max-width: 1076px;
    margin: 0;
}

/* ============================================================
   FAQs
   ============================================================ */
.ped-faqs {
    padding: 75px 132px;
    background-color: #fff;
}
.faq-section {
    flex-direction: column !important;
    align-items: center;
    gap: 40px;
    padding: clamp(50px, 6vw, 100px) clamp(40px, 8vw, 132px);
}
.faq-header {
    width: 100%;
    max-width: 1115px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-header h2,
.faq-section .faq-left h2 {
    color: var(--cdg-blue);
    font-family: var(--font-family-main);
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.faq-header p,
.faq-section .faq-left p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    margin: 0;
}
.faq-section .faq-right {
    width: 100%;
    max-width: 1115px;
}
.faq-section .accordion-item {
    border-bottom: 2px solid var(--cdg-blue) !important;
}
.faq-section .accordion-item-header h3 {
    color: var(--cdg-red);
}
.faq-section .accordion-item-icon {
    color: var(--cdg-red);
}
.faq-section .accordion-item-body p {
    font-family: var(--font-family-secondary);
    font-size: 18px;
    line-height: 1.5;
    color: #313a3c;
}
.ped-faqs-inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.ped-faqs h2 {
    color: var(--cdg-blue);
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.ped-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1115px;
}
.ped-faq-item {
    border-bottom: 2px solid #ccc;
    padding: 20px 0;
}
.ped-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 20px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0;
}
.ped-faq-question h3 {
    font-family: var(--font-family-main);
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    color: var(--cdg-red);
    margin: 0;
    line-height: 1.4;
}
.ped-faq-toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #313a3c;
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}
.ped-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}
.ped-faq-answer p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    margin: 0;
    padding-top: 15px;
}
.ped-faq-item.open .ped-faq-answer {
    max-height: 500px;
}

/* ============================================================
   SHARED BUTTON
   ============================================================ */
a.ped-btn {
    display: inline-block;
    background-color: var(--cdg-red);
    color: #fff;
    font-family: var(--font-family-secondary);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    padding: 10px 20px;
    text-decoration: none;
    line-height: 1.6;
    transition: background-color 0.2s ease;
}
a.ped-btn:hover,
a.ped-btn:focus {
    background-color: #c71c1c;
    color: #fff;
    text-decoration: none;
}
a.ped-btn-blue {
    background-color: var(--cdg-blue);
}
a.ped-btn-blue:hover,
a.ped-btn-blue:focus {
    background-color: #003d8a;
    color: #fff;
}

/* ============================================================
   MEMBERSHIP (blue CTA)
   ============================================================ */
.ped-membership {
    position: relative;
    min-height: 472px;
    overflow: hidden;
    background-color: var(--cdg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ped-membership-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
}
.loaded .ped-membership-bg {
    background-image: url('../images/ped-membership-bg.png');
}
.ped-membership-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    padding: 80px 100px;
}
.ped-membership-content h2 {
    color: #fff;
    font-family: var(--font-family-main);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin: 0;
}
.ped-membership-content p {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #fff;
    max-width: 660px;
    margin: 0;
}
.cta_welcome_1 .container {
    align-items: center !important;
    text-align: center !important;
}
.cta_welcome_1 .welcome-top-title,
.cta_welcome_1 .welcome-content,
.cta_welcome_1 .welcome-button {
    width: 100%;
    text-align: center;
}
.cta_welcome_1 .welcome-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.cta_welcome_1 .welcome-button {
    display: flex;
    justify-content: center;
}
.cta_welcome_1 .welcome-button a,
.cta_welcome_1 .welcome-button a:visited {
    background-color: var(--cdg-red) !important;
    border-color: var(--cdg-red) !important;
    color: #fff !important;
}
.cta_welcome_1 .welcome-button a:hover {
    background-color: #c71c1c !important;
    border-color: #c71c1c !important;
    color: #fff !important;
}

/* ============================================================
   CONTACT US
   ============================================================ */
.contact-us {
    padding: clamp(50px, 6vw, 95px) clamp(30px, 5vw, 80px);
    background: #fff;
}
.contact-wrap {
    max-width: 1224px;
    margin: 0 auto;
}
h2.contact-title {
    color: var(--cdg-blue);
    font-family: var(--font-family-main);
    font-size: 45px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 40px;
}
.contact-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.contact-map {
    flex: 0 0 602px;
    margin-top: 0;
}
.contact-map iframe {
    width: 100%;
    height: 346px;
    display: block;
}
.contact-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}
.contact-subheading {
    font-family: var(--font-family-main);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    color: #6077a0;
    margin: 0;
    line-height: 1.4;
}
.contact-body {
    font-family: var(--font-family-secondary);
    font-size: 20px;
    line-height: 1.5;
    color: #313a3c;
    margin: 0;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-detail-item svg {
    flex-shrink: 0;
    fill: var(--cdg-blue);
}
.contact-detail-item svg path {
    fill: var(--cdg-blue);
}
.contact-detail-item a {
    font-family: var(--font-family-secondary);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    color: #e36428;
    text-decoration: none;
    line-height: 1.6;
}
.contact-detail-item a:hover {
    color: #c74d1e;
    text-decoration: none;
}

/* ============================================================
   AFFILIATES STRIP
   ============================================================ */
.aff {
    background: var(--cdg-red) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 1400px) {
    .ped-intro,
    .ped-when,
    .ped-ortho,
    .ped-support {
        padding-left: 80px;
        padding-right: 80px;
    }
    .ped-what-is-content,
    .ped-longterm-content {
        padding-left: 160px;
        padding-right: 160px;
    }
    .ped-faqs {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media only screen and (max-width: 1200px) {
    .ped-intro,
    .ped-when,
    .ped-ortho,
    .ped-support {
        padding-left: 40px;
        padding-right: 40px;
    }
    .ped-services {
        padding-left: 40px;
        padding-right: 40px;
    }
    .ped-services-grid {
        gap: 50px;
    }
    .ped-what-is-content {
        padding: 80px 80px;
    }
    .ped-what-is-border,
    .ped-longterm-border {
        left: 40px;
        right: 40px;
    }
    .ped-longterm-content {
        padding: 80px 80px;
    }
    .ped-visits-rows {
        padding: 0 40px;
    }
    .ped-faqs {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media only screen and (max-width: 991px) {
    .ped-when {
        flex-wrap: wrap;
        justify-content: center;
    }
    .ped-ortho {
        flex-direction: column;
        align-items: center;
    }
    .ped-when-right {
        order: -1;
    }
    .ped-when-image {
        width: 300px;
        height: auto;
        margin: 0 auto;
    }
    .ped-what-is-border,
    .ped-longterm-border {
        display: none;
    }
    .ped-what-is-content,
    .ped-longterm-content {
        padding: 60px 40px;
    }
    .ped-visits-row,
    .ped-visits-row.reverse {
        flex-direction: column;
    }
    .ped-visits-photo {
        flex: none;
        width: 100%;
        height: 300px;
    }
    .ped-visits-text {
        flex: none;
        max-width: 100%;
        padding: 0 15px 20px 15px;
    }
    .ped-ortho-images {
        width: 360px;
        height: 340px;
    }
    .ped-ortho-photo {
        width: 220px;
    }
    .ped-ortho-doctor h3 {
        top: 28px;
        left: 178px;
        font-size: 13px;
    }
    .ped-ortho-right {
        width: 100%;
        max-width: 600px;
    }
}

@media only screen and (max-width: 768px) {
    .ped-hero {
        height: 300px;
    }
    .ped-intro h1,
    .ped-when-left h2,
    .ped-ortho-right h2,
    .ped-support h2,
    .ped-faqs h2,
    .ped-services-header h2,
    .ped-visits-title h2 {
        font-size: 40px;
    }
    .ped-what-is-content h2,
    .ped-longterm-content h2 {
        font-size: 32px;
    }
    .ped-service-card {
        width: 220px;
    }
    .ped-service-label h3 {
        font-size: 20px;
        min-height: 52px;
    }
    .ped-services-grid {
        gap: 40px;
    }
    .ped-support {
        padding: 50px 25px;
    }
    .ped-faqs {
        padding: 50px 25px;
    }
}
