/* =========================================================
   CONTINUOUS DENTAL EDUCATION
   MAIN CONTENT ONLY
   ========================================================= */


/* =========================================================
   PAGE VARIABLES
   ========================================================= */

.cde-page {
    --cde-yellow: #C9A227;
    --cde-gold-light: #E7CB6B;

    --cde-ink: #12213F;
    --cde-dark: #0C172D;

    --cde-muted: #697080;

    --cde-soft: #FAF7F0;
    --cde-pale: #F5EBC8;

    --cde-white: #FFFFFF;

    --cde-line: #E4E1D8;

    width: 100%;
    overflow: hidden;

    background: var(--cde-soft);
    color: var(--cde-ink);

    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.5;
}


/* =========================================================
   RESET ONLY INSIDE PAGE
   ========================================================= */

.cde-page *,
.cde-page *::before,
.cde-page *::after {
    box-sizing: border-box;
}

.cde-page img {
    display: block;
    max-width: 100%;
}

.cde-page a {
    color: inherit;
}

.cde-page h1,
.cde-page h2,
.cde-page h3,
.cde-page p {
    margin-top: 0;
}


/* =========================================================
   COMMON ELEMENTS
   ========================================================= */

.cde-eyebrow {
    display: block;

    color: var(--cde-ink);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.8px;
    text-transform: uppercase;

    margin-bottom: 9px;
}

.cde-line {
    width: 48px;
    height: 3px;

    background: var(--cde-yellow);

    margin: 8px 0 18px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.cde-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    width: fit-content;

    padding: 13px 20px;

    border-radius: 9px;

    background: var(--cde-yellow);
    color: var(--cde-dark);

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 6px 18px rgba(18, 33, 63, 0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.cde-btn span {
    font-size: 19px;
    line-height: 1;
}

.cde-btn:hover {
    background: var(--cde-gold-light);

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(18, 33, 63, 0.16);
}


/* =========================================================
   HERO
   ========================================================= */

.cde-hero {
    display: grid;

    grid-template-columns: 44% 56%;

    min-height: 420px;

    background: var(--cde-soft);
}


/* HERO CONTENT */

.cde-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 55px clamp(30px, 8vw, 110px);
}

.cde-hero h1 {
    max-width: 600px;

    margin: 0 0 14px;

    color: var(--cde-ink);

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;

    letter-spacing: -2px;

    font-weight: 700;
}

.cde-hero h2 {
    margin: 0 0 14px;

    color: var(--cde-ink);

    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.25;

    font-weight: 500;
}

.cde-hero p {
    max-width: 570px;

    margin: 0 0 24px;

    color: var(--cde-muted);

    font-size: 14px;
    line-height: 1.7;
}


/* HERO IMAGE */

.cde-hero-photo {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    /* background: var(--cde-dark); */
}

.cde-hero-photo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    transition: transform 0.7s ease;
}

/* .cde-hero-photo:hover img {
    transform: scale(1.025);
} */


/* HERO HANDWRITTEN NOTE */

.cde-scribble {
    position: absolute;

    right: 5%;
    top: 20%;

    z-index: 2;

    padding: 8px;

    color: var(--cde-white);

    font-family: Georgia, serif;

    font-size: clamp(18px, 2vw, 25px);
    font-style: italic;

    line-height: 1.05;

    text-align: center;

    transform: rotate(-5deg);

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.28);
}

.cde-scribble b {
    color: var(--cde-gold-light);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.cde-section {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 1.05fr)
        minmax(250px, 0.9fr);

    gap: clamp(18px, 2.2vw, 30px);

    align-items: center;

    padding:
        32px
        clamp(5%, 3vw, 7%);
}


/* =========================================================
   PHOTO CARDS
   ========================================================= */

.cde-photo-card {
    width: 100%;

    height: 200px;

    overflow: hidden;

    border-radius: 12px;

    background: #e9e7df;

    box-shadow:
        0 8px 25px rgba(18, 33, 63, 0.08);
}

.cde-photo-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition: transform 0.6s ease;
}

.cde-photo-card:hover img {
    transform: scale(1.04);
}

.cde-photo-large {
    height: 230px;
}


/* =========================================================
   TEXT BLOCK
   ========================================================= */

.cde-text-block {
    min-width: 0;
}

.cde-text-block h2 {
    margin: 0;

    color: var(--cde-ink);

    font-size: clamp(24px, 2.4vw, 31px);

    line-height: 1.12;

    letter-spacing: -0.5px;
}

.cde-text-block p {
    max-width: 560px;

    margin: 0;

    color: var(--cde-muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   GOLD HIGHLIGHT CARD
   ========================================================= */

.cde-highlight-card {
    min-height: 185px;

    padding: 25px;

    border-radius: 13px;

    background: var(--cde-pale);

    border: 1px solid rgba(201, 162, 39, 0.16);
}

.cde-big-icon {
    float: left;

    margin: 0 14px 6px 0;

    color: var(--cde-yellow);

    font-size: 38px;

    line-height: 0.9;
}

.cde-highlight-card h3 {
    margin: 0 0 11px;

    color: var(--cde-ink);

    font-size: 17px;

    line-height: 1.25;
}

.cde-highlight-card p {
    clear: both;

    margin: 0;

    color: var(--cde-muted);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   PRACTICE SECTION
   ========================================================= */

.cde-practice {
    padding-top: 10px;
    padding-bottom: 42px;
}


/* =========================================================
   LEARNING JOURNEY
   ========================================================= */

.cde-journey {
    width: 100%;

    padding:
        40px
        clamp(5%, 4vw, 7%)
        45px;

    background: var(--cde-white);

    border-top: 1px solid var(--cde-line);
    border-bottom: 1px solid var(--cde-line);
}

.cde-section-heading {
    margin-bottom: 25px;
}

.cde-section-heading h2 {
    margin: 0;

    color: var(--cde-ink);

    font-size: clamp(25px, 2.5vw, 32px);

    line-height: 1.15;
}


/* =========================================================
   JOURNEY STEPS
   ========================================================= */

.cde-steps {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 18px;

    align-items: start;

    width: 100%;
}

.cde-step {
    position: relative;

    min-width: 0;
}


/* =========================================================
   STEP IMAGE
   ========================================================= */

.cde-step-image {
    position: relative;

    width: 100%;

    margin-bottom: 9px;
}

.cde-step-image img {
    display: block;

    width: 100%;
    height: 105px;

    object-fit: cover;
    object-position: center;

    border-radius: 9px;

    transition: transform 0.5s ease;
}

.cde-step:hover .cde-step-image img {
    transform: scale(1.025);
}


/* =========================================================
   STEP NUMBER
   ========================================================= */

.cde-step-number {
    position: absolute;

    left: 9px;
    bottom: -8px;

    display: grid;
    place-items: center;

    width: 29px;
    height: 29px;

    border-radius: 50%;

    background: var(--cde-yellow);
    color: var(--cde-dark);

    border: 3px solid var(--cde-white);

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 3px 10px rgba(18, 33, 63, 0.12);
}


/* =========================================================
   STEP TEXT
   ========================================================= */

.cde-step h3 {
    margin: 13px 0 3px;

    color: var(--cde-ink);

    font-size: 13px;
    line-height: 1.25;
}

.cde-step p {
    margin: 0;

    color: var(--cde-muted);

    font-size: 11.5px;
    line-height: 1.45;
}

/* =========================================================
   BOTTOM INFORMATION
   ========================================================= */

.cde-bottom {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, 1fr);

    gap: clamp(30px, 5vw, 70px);

    padding:
        50px
        clamp(5%, 4vw, 7%);
}


/* BENEFITS */

.cde-benefits-section h2,
.cde-commitment h2 {
    margin: 0;

    color: var(--cde-ink);

    font-size: clamp(25px, 2.5vw, 32px);

    line-height: 1.15;
}


/* BENEFIT CARDS */

.cde-benefit-cards {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 10px;

    margin-top: 20px;
}

.cde-benefit-card {
    min-height: 120px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 13px 7px;

    text-align: center;

    border: 1px solid var(--cde-line);

    border-radius: 9px;

    background: var(--cde-white);

    box-shadow:
        0 3px 12px rgba(18, 33, 63, 0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.cde-benefit-card:hover {
    transform: translateY(-4px);

    border-color: rgba(201, 162, 39, 0.5);

    box-shadow:
        0 9px 22px rgba(18, 33, 63, 0.09);
}

.cde-benefit-icon {
    display: block;

    margin-bottom: 8px;

    color: var(--cde-yellow);

    font-size: 29px;

    line-height: 1;
}

.cde-benefit-card b {
    color: var(--cde-ink);

    font-size: 10.5px;

    font-weight: 600;

    line-height: 1.4;
}


/* =========================================================
   COMMITMENT
   ========================================================= */

.cde-commitment {
    position: relative;

    min-width: 0;

    padding-left: 35px;

    border-left: 1px solid var(--cde-line);
}

.cde-commitment ul {
    padding: 0;
    margin: 17px 0 0;

    list-style: none;
}

.cde-commitment li {
    position: relative;

    padding:
        6px
        0
        6px
        28px;

    color: var(--cde-muted);

    font-size: 13px;

    line-height: 1.5;
}

.cde-commitment li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 7px;

    display: grid;
    place-items: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--cde-yellow);
    color: var(--cde-dark);

    font-size: 10px;
    font-weight: 700;
}


/* SIDE HANDWRITTEN NOTE */

.cde-side-scribble {
    margin-top: 20px;

    width: fit-content;

    margin-left: auto;

    color: var(--cde-yellow);

    font-family: Georgia, serif;

    font-size: 18px;
    font-style: italic;

    line-height: 1.05;

    text-align: center;

    transform: rotate(-5deg);
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.cde-cta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding:
        36px
        clamp(5%, 8vw, 10%);

    background: var(--cde-dark);

    color: var(--cde-white);
}

.cde-cta .cde-eyebrow {
    color: var(--cde-gold-light);
}

.cde-cta-content {
    max-width: 700px;
}

.cde-cta h2 {
    margin: 0 0 7px;

    color: var(--cde-white);

    font-size: clamp(24px, 2.5vw, 32px);

    line-height: 1.15;
}

.cde-cta p {
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13.5px;

    line-height: 1.6;
}


/* LIGHT CTA BUTTON */

.cde-btn-light {
    flex-shrink: 0;

    background: var(--cde-yellow);

    color: var(--cde-dark);
}

.cde-btn-light:hover {
    background: var(--cde-gold-light);
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.cde-reveal {
    opacity: 0;

    transform: translateY(22px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.cde-reveal.cde-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   LARGE TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    .cde-hero-copy {
        padding-left: 6%;
        padding-right: 6%;
    }

    .cde-section {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        padding-left: 5%;
        padding-right: 5%;
    }

    .cde-highlight-card {
        grid-column: 1 / -1;

        min-height: auto;
    }

    .cde-practice .cde-highlight-card {
        grid-column: 1 / -1;
    }

    .cde-bottom {
        grid-template-columns: 1fr;

        padding-left: 5%;
        padding-right: 5%;
    }

    .cde-commitment {
        padding:
            30px
            0
            0;

        border-left: 0;

        border-top: 1px solid var(--cde-line);
    }

    .cde-benefit-cards {
        grid-template-columns: repeat(5, 1fr);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .cde-hero {
        grid-template-columns: 1fr;
    }

    .cde-hero-copy {
        min-height: auto;

        padding:
            55px
            7%;
    }

    .cde-hero-photo {
        min-height: 390px;

        max-height: 480px;
    }

    .cde-hero h1 {
        font-size: clamp(40px, 7vw, 54px);
    }


    /* JOURNEY */

    .cde-steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px 24px;
    }

    .cde-arrow {
        display: none;
    }

    .cde-step-image img {
        height: 145px;
    }


    /* BENEFITS */

    .cde-benefit-cards {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .cde-page {
        overflow-x: hidden;
    }


    /* HERO */

    .cde-hero-copy {
        padding:
            42px
            6%;
    }

    .cde-hero h1 {
        font-size: 39px;

        letter-spacing: -1.3px;
    }

    .cde-hero h2 {
        font-size: 20px;
    }

    .cde-hero p {
        font-size: 13.5px;

        line-height: 1.65;
    }

    .cde-hero-photo {
        min-height: 300px;

        max-height: none;
    }

    .cde-scribble {
        right: 5%;
        top: 16%;

        font-size: 18px;
    }


    /* GENERAL SECTIONS */

    .cde-section {
        grid-template-columns: 1fr;

        gap: 20px;

        padding:
            35px
            6%;
    }

    .cde-practice {
        padding-top: 10px;
        padding-bottom: 38px;
    }

    .cde-photo-card,
    .cde-photo-large {
        height: 230px;
    }

    .cde-text-block h2 {
        font-size: 26px;
    }

    .cde-text-block p {
        font-size: 13.5px;
    }

    .cde-highlight-card {
        grid-column: auto;

        padding: 22px;

        min-height: auto;
    }


    /* JOURNEY */

    .cde-journey {
        padding:
            38px
            6%
            40px;
    }

    .cde-steps {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .cde-step-image img {
        width: 100%;
        height: 190px;
    }

    .cde-step h3 {
        font-size: 15px;
    }

    .cde-step p {
        font-size: 12px;
    }

    /* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .cde-steps {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 24px 18px;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 760px) {

    .cde-steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px 16px;
    }

    .cde-step-image img {
        height: 125px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .cde-journey {
        padding:
            35px 6% 40px;
    }

    .cde-steps {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .cde-step-image img {
        height: 190px;
    }

    .cde-step h3 {
        font-size: 15px;
    }

    .cde-step p {
        font-size: 12px;
    }

}


    /* BOTTOM */

    .cde-bottom {
        grid-template-columns: 1fr;

        gap: 38px;

        padding:
            40px
            6%;
    }

    .cde-benefit-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .cde-benefit-card {
        min-height: 110px;
    }

    .cde-benefit-card b {
        font-size: 10.5px;
    }

    .cde-commitment {
        padding-top: 30px;
    }

    .cde-side-scribble {
        display: none;
    }


    /* CTA */

    .cde-cta {
        flex-direction: column;

        align-items: flex-start;

        gap: 22px;

        padding:
            35px
            6%;
    }

    .cde-cta h2 {
        font-size: 27px;
    }

    .cde-cta p {
        font-size: 13px;
    }

    .cde-btn {
        width: 100%;

        justify-content: center;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .cde-hero-copy {
        padding:
            35px
            5%;
    }

    .cde-hero h1 {
        font-size: 34px;
    }

    .cde-hero h2 {
        font-size: 18px;
    }

    .cde-hero-photo {
        min-height: 250px;
    }

    .cde-scribble {
        font-size: 15px;
    }


    .cde-section,
    .cde-bottom,
    .cde-journey {
        padding-left: 5%;
        padding-right: 5%;
    }


    .cde-photo-card,
    .cde-photo-large {
        height: 200px;
    }


    .cde-benefit-cards {
        grid-template-columns: 1fr 1fr;
    }

    .cde-benefit-card {
        min-height: 105px;
    }

    .cde-benefit-icon {
        font-size: 25px;
    }

    .cde-benefit-card b {
        font-size: 9.5px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cde-page *,
    .cde-page *::before,
    .cde-page *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .cde-reveal {
        opacity: 1;
        transform: none;
    }

}

/* =========================================================
   CONTINUOUS CERTIFICATE SLIDER
   ========================================================= */

.certificate-marquee-section {

    --certificate-gold: #C9A227;
    --certificate-ink: #12213F;
    --certificate-soft: #FAF7F0;
    --certificate-white: #FFFFFF;
    --certificate-line: #E4E1D8;

    width: 100%;

    padding: 35px 0;

    background: var(--certificate-soft);

    overflow: hidden;
}


/* =========================================================
   SLIDER WRAPPER
   ========================================================= */

.certificate-marquee {

    position: relative;

    width: 100%;

    overflow: hidden;

    /*
     * Adds a soft fade at the left and right edges.
     */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}


/* =========================================================
   MOVING TRACK
   ========================================================= */

.certificate-marquee-track {

    display: flex;

    align-items: center;

    width: max-content;

    gap: 22px;

    padding: 12px 0;

    /*
     * The animation moves exactly half of the
     * duplicated track for a seamless loop.
     */
    animation: certificateContinuousMove 42s linear infinite;

    will-change: transform;
}


/* =========================================================
   PAUSE WHEN MOUSE HOVERS OVER SLIDER
   ========================================================= */

.certificate-marquee:hover
.certificate-marquee-track {

    animation-play-state: paused;
}


/* =========================================================
   CERTIFICATE CARD
   ========================================================= */

.certificate-card {

    position: relative;

    flex: 0 0 auto;

    width: 245px;

    height: 165px;

    padding: 8px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--certificate-white);

    border: 1px solid var(--certificate-line);

    border-radius: 8px;

    box-shadow:
        0 5px 18px rgba(18, 33, 63, 0.08);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    transform-origin: center center;
}


/* =========================================================
   CERTIFICATE IMAGE
   ========================================================= */

.certificate-card img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    border-radius: 4px;

    transition:
        transform 0.4s ease;

    transform-origin: center center;
}


/* =========================================================
   HOVER ZOOM
   ========================================================= */

.certificate-card:hover {

    z-index: 5;

    border-color: var(--certificate-gold);

    transform: scale(1.12);

    box-shadow:
        0 12px 35px rgba(18, 33, 63, 0.20);

}


/*
 * Zoom the image slightly inside the card.
 */

.certificate-card:hover img {

    transform: scale(1.035);

}


/* =========================================================
   CONTINUOUS ANIMATION
   ========================================================= */

@keyframes certificateContinuousMove {

    from {

        transform: translateX(0);

    }

    to {

        /*
         * Six cards × 245px width
         * Five gaps × 22px
         *
         * Total movement:
         * 6 × 245 + 6 × 22 = 1602px
         *
         * The exact value is adjusted below
         * through the CSS variable.
         */

        transform: translateX(-1602px);

    }

}


/* =========================================================
   TABLET RESPONSIVENESS
   ========================================================= */

@media (max-width: 900px) {

    .certificate-marquee-section {

        padding: 30px 0;

    }

    .certificate-marquee-track {

        gap: 18px;

        animation-duration: 38s;

    }

    .certificate-card {

        width: 215px;

        height: 145px;

        padding: 7px;

    }

    @keyframes certificateContinuousMove {

        from {

            transform: translateX(0);

        }

        to {

            transform: translateX(-1398px);

        }

    }

}


/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 600px) {

    .certificate-marquee-section {

        padding: 24px 0;

    }

    .certificate-marquee-track {

        gap: 14px;

        padding: 10px 0;

        animation-duration: 32s;

    }

    .certificate-card {

        width: 175px;

        height: 120px;

        padding: 6px;

        border-radius: 6px;

    }

    .certificate-card:hover {

        transform: scale(1.08);

    }

    @keyframes certificateContinuousMove {

        from {

            transform: translateX(0);

        }

        to {

            transform: translateX(-1134px);

        }

    }

}


/* =========================================================
   SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 400px) {

    .certificate-card {

        width: 155px;

        height: 108px;

    }

    .certificate-marquee-track {

        gap: 12px;

        animation-duration: 28s;

    }

    @keyframes certificateContinuousMove {

        from {

            transform: translateX(0);

        }

        to {

            transform: translateX(-1002px);

        }

    }

}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .certificate-marquee-track {

        animation-play-state: paused;

    }

}