/*
 * Dental ED homepage
 *
 * Shared public header foundation and homepage sections. The shared footer
 * lives in public-footer.css, while destination page layouts live in
 * public-premium.css. Routes and backend behaviour stay outside these files.
 */

.dentaled-home-page {
    --de-home-navy: #0c2f4a;
    --de-home-navy-deep: #071f33;
    --de-home-blue: #155b86;
    --de-home-ink: #102b45;
    --de-home-muted: #5d6d79;
    --de-home-line: #dfe6ea;
    --de-home-soft: #f4f6f7;
    --de-home-white: #fff;
    --de-home-heading: "Raleway", sans-serif;
    --de-home-sans: "Roboto", sans-serif;
    --de-home-page-gutter: clamp(24px, 4.2vw, 96px);
    --de-home-content-width: 1760px;
    --de-home-column-gap: clamp(32px, 4vw, 72px);
    min-width: 320px;
    color: var(--de-home-ink);
    background: var(--de-home-white);
    font-family: var(--de-home-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dentaled-home-page .page-wrapper {
    overflow: clip;
    background: var(--de-home-white);
}

.dentaled-home-page .scrollToTop {
    right: 24px;
    bottom: 86px;
    color: #fff;
    border: 0;
    background: var(--de-home-navy);
    box-shadow: 0 10px 25px rgba(7, 31, 51, 0.2);
}

.de-home-skip-link {
    position: fixed;
    z-index: 2000;
    top: 12px;
    left: 16px;
    padding: 11px 16px;
    color: #fff;
    border-radius: 6px;
    background: var(--de-home-navy-deep);
    font-size: 14px;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.de-home-skip-link:focus {
    color: #fff;
    outline: 3px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
    transform: translateY(0);
}

.de-home-shell {
    width: min(1180px, calc(100% - 64px));
    margin-right: auto;
    margin-left: auto;
}

/* Homepage header ----------------------------------------------------- */

.de-home-header {
    position: sticky;
    z-index: 1035;
    top: 0;
    min-height: 78px;
    color: var(--de-home-ink);
    border-bottom: 1px solid #e9edef;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(14, 41, 62, 0.045);
    font-family: var(--de-home-sans);
    font-weight: 400;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.de-home-header-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    width: min(1280px, calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;
}

.de-home-brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.de-home-brand img {
    display: block;
    width: 138px;
    height: auto;
}

.de-home-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.45vw, 24px);
    min-width: 0;
}

.de-home-primary-nav a {
    position: relative;
    padding: 30px 0 28px;
    color: #294154;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.de-home-primary-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 21px;
    left: 50%;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--de-home-blue);
    transition: right 160ms ease, left 160ms ease;
}

.de-home-primary-nav a:hover,
.de-home-primary-nav a:focus,
.de-home-primary-nav a.is-current {
    color: var(--de-home-navy);
    outline: 0;
}

.de-home-primary-nav a.is-current::after {
    right: 0;
    left: 0;
}

.de-home-primary-nav a:hover::after,
.de-home-primary-nav a:focus::after {
    right: 0;
    left: 0;
}

.de-home-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: max-content;
}

.de-home-language {
    display: flex;
    align-items: center;
    width: 138px;
    height: 40px;
    margin-right: 2px;
    color: #526675;
    border: 1px solid #e3e8eb;
    border-radius: 999px;
    background: #fafbfc;
}

.de-home-language > i {
    width: 14px;
    margin-left: 12px;
    margin-right: 3px;
    flex: 0 0 14px;
    font-size: 13px;
}

.de-home-language #google_translate_element {
    min-width: 0;
    flex: 1;
}

.de-home-language .goog-te-gadget {
    width: 100%;
    color: transparent;
    font-size: 0;
}

.de-home-language .goog-te-combo {
    width: 98px;
    height: 36px;
    margin: 0 !important;
    padding: 0 2px;
    overflow: hidden;
    color: #42596a;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--de-home-sans);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
}

.de-home-language .goog-logo-link,
.de-home-language .goog-te-gadget > span {
    display: none;
}

.de-home-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #294154;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 15px;
    text-decoration: none;
}

.de-home-header-icon:hover,
.de-home-header-icon:focus {
    color: var(--de-home-blue);
    outline: 0;
    background: #eef4f7;
    text-decoration: none;
}

.de-home-cart-count {
    position: absolute;
    top: 5px;
    right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--de-home-blue);
    font-size: 9px;
    font-weight: 800;
}

.de-home-login-link,
.de-home-signup-link,
.de-home-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.de-home-login-link {
    color: var(--de-home-navy);
    border: 1px solid transparent;
}

.de-home-login-link:hover,
.de-home-login-link:focus {
    color: var(--de-home-blue);
    border-color: #dbe4e9;
    background: #f8fafb;
    text-decoration: none;
}

.de-home-signup-link {
    color: #fff;
    border: 1px solid var(--de-home-navy);
    background: var(--de-home-navy);
    box-shadow: 0 7px 18px rgba(12, 47, 74, 0.14);
}

.de-home-signup-link:hover,
.de-home-signup-link:focus {
    color: #fff;
    border-color: #174866;
    outline: 0;
    background: #174866;
    text-decoration: none;
}

.de-home-alerts > .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    color: #294154 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
}

.de-home-alerts > .btn:hover,
.de-home-alerts > .btn:focus,
.de-home-alerts.open > .btn {
    color: var(--de-home-blue) !important;
    outline: 0;
    background: #eef4f7 !important;
}

.de-home-alerts > .btn > i {
    padding-right: 0 !important;
    font-size: 15px;
}

.de-home-alerts > .btn > .hidden-xs {
    display: none !important;
}

.de-home-alerts .notification-count {
    position: absolute;
    top: 4px;
    right: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--de-home-blue);
    font-size: 9px;
    font-weight: 800;
}

.de-home-alerts .dropdown-menu {
    top: calc(100% + 11px);
    overflow: hidden;
    border: 1px solid var(--de-home-line);
    border-radius: 10px !important;
    box-shadow: 0 18px 45px rgba(7, 31, 51, 0.16);
}

.de-home-account-button {
    gap: 8px;
    color: var(--de-home-navy);
    border: 1px solid #dfe6ea;
    background: #fff;
}

.de-home-account-button:hover,
.de-home-account-button:focus,
.de-home-account.open .de-home-account-button {
    color: var(--de-home-blue);
    border-color: #cbd8df;
    outline: 0;
    background: #f8fafb;
}

.de-home-account .dropdown-menu {
    top: calc(100% + 10px);
    min-width: 210px;
    padding: 7px;
    border: 1px solid var(--de-home-line);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(7, 31, 51, 0.16);
}

.de-home-account .dropdown-menu > li > a,
.de-home-logout button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    color: #344e61;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.de-home-account .dropdown-menu > li > a:hover,
.de-home-account .dropdown-menu > li > a:focus,
.de-home-logout button:hover,
.de-home-logout button:focus {
    color: var(--de-home-blue);
    outline: 0;
    background: #eef4f7;
}

.de-home-account .dropdown-menu i {
    width: 16px;
    color: #718492;
    text-align: center;
}

.de-home-account .divider {
    margin: 6px 4px;
    background: #e7ecef;
}

.de-home-logout {
    margin: 0;
}

/* Homepage typography and composition ---------------------------------- */

.de-home {
    --de-section-space: clamp(48px, 5vw, 80px);
    --de-page-gutter: var(--de-home-page-gutter);
    color: var(--de-home-ink);
    background: #fff;
    font-weight: 400;
}
.de-home *, .de-home *::before, .de-home *::after { box-sizing: border-box; }
.de-home .de-home-shell { width: min(var(--de-home-content-width), calc(100% - 2 * var(--de-page-gutter))); margin-inline: auto; }
.dentaled-home-page .de-home-header-shell,
.dentaled-home-page .de-home-footer-shell { width: min(var(--de-home-content-width), calc(100% - 2 * var(--de-home-page-gutter))); }
.dentaled-home-page .de-home-header-actions { font-family: var(--de-home-sans); }
.de-home img { display: block; max-width: 100%; }
.de-home h1, .de-home h2, .de-home h3 {
    margin-top: 0;
    color: var(--de-home-ink);
    font-family: var(--de-home-heading);
    font-weight: 500;
    text-transform: none;
    text-wrap: balance;
}
.de-home h2 {
    margin-bottom: 20px;
    font-size: clamp(30px, 3vw, 48px);
    letter-spacing: normal;
    line-height: 1.16;
}
.de-home p { margin-top: 0; }
.de-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--de-home-blue);
    font-family: var(--de-home-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}
.de-home-eyebrow::before { width: 32px; height: 1px; content: ""; background: currentColor; }
.de-home-eyebrow-light { color: #c5d9e5; }
.de-home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.de-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-family: var(--de-home-sans);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.de-home-button i, .de-home-card-link i, .de-home-text-link i, .de-home-speaker-copy small i { font-size: 12px; transition: transform 200ms ease; }
.de-home-button:hover, .de-home-button:focus { text-decoration: none; transform: translateY(-2px); }
.de-home-button:hover i, .de-home-service-card:hover .de-home-card-link i, .de-home-text-link:hover i { transform: translateX(4px); }
.de-home-button-light { color: var(--de-home-navy); border-color: #fff; background: #fff; }
.de-home-button-light:hover, .de-home-button-light:focus { color: var(--de-home-navy); background: #e8f0f5; border-color: #e8f0f5; }
.de-home-button-outline-light { color: #fff; border-color: #92acbb; background: transparent; }
.de-home-button-outline-light:hover, .de-home-button-outline-light:focus { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.de-home-button-dark { color: #fff; border-color: var(--de-home-navy); background: var(--de-home-navy); }
.de-home-button-dark:hover, .de-home-button-dark:focus { color: #fff; background: #155b86; border-color: #155b86; }
.de-home-button-secondary { color: var(--de-home-navy); border-color: #bdcdd6; background: transparent; }
.de-home-button-secondary:hover, .de-home-button-secondary:focus { color: var(--de-home-navy); border-color: var(--de-home-navy); background: #f2f6f8; }
.de-home a:focus-visible, .de-home button:focus-visible,
.de-home-header a:focus-visible, .de-home-header button:focus-visible {
    outline: 2px solid #3186b4;
    outline-offset: 5px;
}
.de-home-hero a:focus-visible, .de-home-hero button:focus-visible, .de-home-contact a:focus-visible { outline-color: #c5d9e5; }

/* Course carousel: native horizontal scrolling remains usable without JS. */
.de-home-hero { position: relative; background: var(--de-home-navy-deep); color: #fff; }
.de-home-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.de-home-slides:focus-visible { outline: 2px solid #c5d9e5; outline-offset: -6px; }
.de-home-slide {
    position: relative;
    isolation: isolate;
    flex: 0 0 100%;
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--de-home-navy-deep);
}
.de-home-hero-image, .de-home-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.de-home-hero-image { z-index: -2; object-fit: cover; object-position: right center; }
.de-home-hero-overlay {
    z-index: -1;
    background: linear-gradient(90deg, rgba(7,31,51,.97) 0%, rgba(7,31,51,.86) 25%, rgba(7,31,51,.58) 46%, rgba(7,31,51,.08) 78%, transparent 100%), linear-gradient(0deg, rgba(7,31,51,.35), transparent 45%);
}
.de-home-hero-inner { display: flex; align-items: center; min-height: clamp(520px, 68vh, 700px); min-height: clamp(520px, 68svh, 700px); padding-block: 64px; }
.de-home-hero-copy { width: 52%; max-width: 780px; }
.de-home-hero-copy h2 { margin-bottom: 22px; color: #fff; font-size: clamp(40px, 4.5vw, 72px); font-weight: 400; letter-spacing: normal; line-height: 1.08; }
.de-home-brand-slide .de-home-hero-copy { width: 65%; max-width: 850px; }
.de-home-hero-copy h1 { margin-bottom: 24px; color: #fff; font-size: clamp(44px, 4.7vw, 76px); font-weight: 400; letter-spacing: normal; line-height: 1.08; text-transform: none; text-wrap: balance; }
.de-home-brand-slide .de-home-hero-image { object-position: center 42%; }
.de-home-brand-slide .de-home-hero-copy > p { max-width: 43ch; font-size: clamp(16px, 1.2vw, 20px); }
.de-home-hero-copy > p { max-width: 34em; margin-bottom: 24px; color: #e0e9ee; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.5; text-wrap: pretty; }
.de-home-course-details { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 30px; color: #c5d9e5; font-size: 13px; line-height: 1.5; }
.de-home-course-details span { display: inline-flex; gap: 8px; align-items: baseline; }
.de-home-slides.is-enhanced { display: grid; overflow: hidden; touch-action: pan-y pinch-zoom; }
.de-home-slides.is-enhanced .de-home-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 500ms ease, visibility 500ms;
}
.de-home-slides.is-enhanced .de-home-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.de-home-slide:is(.is-active, .is-leaving) .de-home-hero-copy > * {
    animation: de-home-hero-enter 500ms cubic-bezier(.333333,.666667,.666667,1) both;
    animation-delay: var(--de-hero-copy-delay, 1000ms);
}
/* Production's sfb/easeOutQuad caption sequence; enhancement must not restart it. */
.de-home-hero-copy > :is(h1, h2) { --de-hero-copy-delay: 1000ms; }
.de-home-hero-copy > :is(p, .de-home-course-details) { --de-hero-copy-delay: 1300ms; }
.de-home-hero-copy > :is(a, .de-home-actions) { --de-hero-copy-delay: 1600ms; }
/* Production-style arrows and dots; photos stay still between slides. */
.de-home-slide-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 54px;
    padding: 0;
    border: 0;
    color: #fff;
    background: rgba(7,31,51,.45);
    font-size: 32px;
    transform: translateY(-50%);
}
.de-home-slide-previous { left: 0; }
.de-home-slide-next { right: 0; }
.de-home-slide-arrow:hover { background: rgba(7,31,51,.8); }
.de-home-slide-pagination { position: absolute; z-index: 3; bottom: 14px; left: 50%; display: flex; transform: translateX(-50%); }
.de-home-slide-arrow, .de-home-slide-pagination {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .de-home-hero:hover :is(.de-home-slide-arrow, .de-home-slide-pagination) {
        opacity: 1;
        pointer-events: auto;
    }
}
.de-home-hero:has(:focus-visible) :is(.de-home-slide-arrow, .de-home-slide-pagination) {
    opacity: 1;
    pointer-events: auto;
}
@media (hover: none) {
    .de-home-hero:active :is(.de-home-slide-arrow, .de-home-slide-pagination) {
        opacity: 1;
        pointer-events: auto;
    }
}
.de-home-slide-dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; }
.de-home-slide-dot::before { width: 10px; height: 10px; content: ""; border: 1px solid #fff; border-radius: 50%; background: rgba(7,31,51,.4); }
.de-home-slide-dot[aria-current="true"]::before { background: #fff; }
.de-home-slide-arrow[hidden], .de-home-slide-pagination[hidden] { display: none; }
@keyframes de-home-hero-enter {
    /* Production scales its 50px entrance against a 1140px stage width. */
    from { opacity: 0; transform: translate3d(0,min(50px,4.385965vw),0); }
    to { opacity: 1; transform: translate3d(0,0,0); }
}

/* Content below the banner shares one readable rhythm and page edge. */
.de-home > section:not(.de-home-hero) {
    --de-section-space: clamp(56px, 5vw, 88px);
    font-weight: 400;
    scroll-margin-top: 80px;
}
.de-home > section:not(.de-home-hero) h2 { font-size: clamp(30px, 2.7vw, 42px); line-height: 1.2; }
.de-home > section:not(.de-home-hero) .de-home-eyebrow { margin-bottom: 14px; }

/* Full introduction: comfortable reading width balanced with the film. */
.de-home-about { padding-block: var(--de-section-space); }
.de-home-about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--de-home-column-gap); }
.de-home-about-copy { min-width: 0; }
.de-home-rich-copy { max-width: 82ch; margin-bottom: 24px; color: #405767; font-size: clamp(16px, 1vw, 18px); line-height: 1.75; }
.de-home-rich-copy p { margin-bottom: 22px; }
.de-home-rich-copy p:first-child { color: #294759; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6; }
.de-home-rich-copy > :last-child { margin-bottom: 0; }
.de-home-rich-copy .de-home-about-motto { padding-left: 18px; border-left: 2px solid #7ba7bf; color: var(--de-home-navy); font-weight: 500; line-height: 1.65; }
.de-home-text-link { display: inline-flex; align-items: center; gap: 18px; padding-block: 6px 8px; color: var(--de-home-navy); border-bottom: 1px solid #a5bbc8; font-size: 15px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.de-home-text-link:hover, .de-home-text-link:focus { color: var(--de-home-blue); border-color: currentColor; text-decoration: none; }
.de-home-about-media { min-width: 0; width: 100%; max-width: 760px; justify-self: end; }
.de-home-about-visual { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--de-home-line); border-radius: 6px; background: #071f33; }
.de-home-about-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #071f33; }

/* Services: a left-aligned introduction and four complete, distinct entries. */
.de-home-services { padding-block: var(--de-section-space); border-block: 1px solid var(--de-home-line); background: #f6f8f9; }
.de-home-section-heading { max-width: 720px; margin: 0 0 28px; }
.de-home-section-heading h2 { margin-bottom: 14px; }
.de-home-section-heading > p { max-width: 60ch; margin: 0; color: #536675; font-size: 16px; line-height: 1.7; }
.de-home-services .de-home-section-heading { max-width: 900px; margin-bottom: 36px; }
.de-home-services .de-home-section-heading > p { max-width: 82ch; color: #405767; font-size: clamp(16px, 1vw, 18px); }
.de-home-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.de-home-service-card { display: grid; grid-template-columns: minmax(0, 1fr) 40px; grid-template-rows: auto 1fr auto; align-content: start; gap: 18px 24px; min-width: 0; padding: clamp(24px, 2vw, 36px); border: 1px solid #dce5eb; border-radius: 10px; background: #fff; color: var(--de-home-ink); text-decoration: none; }
.de-home-service-icon { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 40px; height: 40px; color: var(--de-home-blue); border: 1px solid #dce6eb; border-radius: 8px; background: #f6f9fb; font-size: 17px; }
.de-home-service-card h3 { grid-column: 1; grid-row: 1; align-self: center; margin: 0; font-size: clamp(21px, 1.65vw, 25px); line-height: 1.3; letter-spacing: normal; text-wrap: pretty; }
.de-home-service-card p { grid-column: 1 / -1; grid-row: 2; max-width: 82ch; margin: 0 0 4px; color: #405767; font-size: clamp(16px, 1vw, 18px); line-height: 1.75; }
.de-home-card-link { grid-column: 1 / -1; grid-row: 3; display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: var(--de-home-blue); font-size: 15px; font-weight: 500; line-height: 1.5; }
/* Keep descriptions and links aligned when neighbouring titles wrap. */
@supports (grid-template-rows: subgrid) {
    .de-home-service-card { grid-row: span 3; grid-template-rows: subgrid; }
}
.de-home-service-card:focus-visible { border-color: var(--de-home-blue); outline-offset: 5px; text-decoration: none; }
.de-home-service-card:focus-visible .de-home-card-link { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
    .de-home-service-card:hover { color: var(--de-home-ink); text-decoration: none; }
    .de-home-service-card:hover .de-home-card-link { text-decoration: underline; text-underline-offset: 4px; }
    .de-home-service-card:hover .de-home-service-icon { color: #fff; background: var(--de-home-blue); border-color: var(--de-home-blue); }
}

/* Study clubs: keep the photograph and next step in one balanced panel. */
.de-home-study { padding-block: var(--de-section-space); }
.de-home-study-grid { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); align-items: center; gap: 22px var(--de-home-column-gap); padding: clamp(24px, 3vw, 44px); border: 1px solid var(--de-home-line); border-radius: 12px; background: #f6f8f9; }
.de-home-study-image { grid-row: 1 / 3; }
.de-home-study-copy { min-width: 0; }
.de-home .de-home-study-copy h2#de-home-study-title { max-width: 30ch; font-size: clamp(28px, 2.1vw, 34px); line-height: 1.25; }
.de-home-study-copy > p { max-width: 66ch; margin-bottom: 0; color: #405767; font-size: 17px; line-height: 1.75; }
.de-home-study-image { width: 100%; max-width: 360px; overflow: hidden; border-radius: 8px; }
.de-home-study-image img { display: block; width: 100%; height: auto; }
.de-home-study-actions { grid-column: 2; justify-content: flex-start; }
.de-home-study-actions .de-home-button { white-space: nowrap; }

/* Use the same square portraits as the speaker directory at a modest size. */
.de-home-speakers { padding-block: var(--de-section-space); border-top: 1px solid var(--de-home-line); }
.de-home-speakers-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.de-home-speakers-heading .de-home-section-heading { margin: 0; }
.de-home-speakers-heading h2 { margin-bottom: 0; }
.de-home-speaker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px); }
.de-home-speaker { display: flex; align-items: flex-start; flex-direction: column; min-width: 0; color: var(--de-home-ink); text-align: left; text-decoration: none; }
.de-home-speaker:hover, .de-home-speaker:focus { color: var(--de-home-blue); text-decoration: none; }
.de-home-speaker-image { display: block; width: min(100%, 220px); aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #f1f4f5; }
.de-home-speaker-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.de-home-speaker-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #687f8d; font-size: 44px; }
.de-home-speaker-copy { display: grid; justify-items: start; gap: 8px; width: 100%; padding-top: 16px; }
.de-home-speaker-copy strong { font: 500 clamp(18px, 1.35vw, 22px)/1.4 var(--de-home-heading); }
.de-home-speaker-copy small { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--de-home-blue); font-size: 15px; font-weight: 500; line-height: 1.5; }
.de-home-speaker:focus-visible .de-home-speaker-copy small { color: var(--de-home-blue); text-decoration: underline; text-underline-offset: 4px; }
.de-home-speakers-action { display: flex; justify-content: center; margin-top: 30px; }
.de-home-speakers-action .de-home-button { min-height: 44px; padding: 10px 22px; }
@media (hover: hover) and (pointer: fine) {
    .de-home-speaker:hover .de-home-speaker-copy small { color: var(--de-home-blue); text-decoration: underline; text-underline-offset: 4px; }
    .de-home-speaker:hover .de-home-speaker-copy small i { transform: translateX(4px); }
}

/* A compact contact strip closes the content. */
.de-home-contact { padding-block: var(--de-section-space); color: #fff; background: var(--de-home-navy-deep); }
.de-home-contact-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--de-home-column-gap); }
.de-home-contact h2 { color: #fff; }
.de-home-contact-copy > p { max-width: 58ch; margin-bottom: 24px; color: #c7d8e3; font-size: 16px; line-height: 1.7; }
.de-home-contact-details { display: grid; }
.de-home-contact-details a { position: relative; display: grid; gap: 8px; padding: 22px 36px 22px 0; border-bottom: 1px solid #456073; color: #fff; text-decoration: none; }
.de-home-contact-details a:first-child { border-top: 1px solid #456073; }
.de-home-contact-details span { color: #b8cdd9; font-size: 12px; letter-spacing: .06em; }
.de-home-contact-details strong { font-family: var(--de-home-sans); font-size: clamp(21px, 1.7vw, 28px); font-weight: 400; line-height: 1.4; }
.de-home-contact-details i { position: absolute; top: 50%; right: 0; font-size: 14px; transition: transform 180ms ease; }
.de-home-contact-details a:hover i { transform: translateX(4px); }

/* Motion never hides content when JavaScript is unavailable. */
@keyframes de-home-enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
.de-home [data-editorial-reveal].is-visible, .de-public [data-editorial-reveal].is-visible { animation: de-home-enter 550ms ease both; }

@media (max-width: 1199px) {
    .de-home-hero-copy { width: 58%; }
    .de-home-about-grid { gap: 40px; }
    .de-home-study-grid { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 20px 32px; }
    .de-home-study-image { grid-row: 1 / 3; }
    .de-home-study-actions { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 991px) {
    .de-home-about-grid { grid-template-columns: 1fr; gap: 28px; }
    .de-home-about-copy { max-width: 82ch; }
    .de-home-about-media { max-width: 680px; justify-self: start; }
    .de-home-speaker-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
    .de-home-study-grid, .de-home-contact-inner { gap: 28px; }
    .de-home-service-grid { gap: 20px; }
    .de-home-service-card { grid-template-columns: minmax(0, 1fr) 32px; column-gap: 12px; }
    .de-home-service-icon { width: 32px; height: 32px; font-size: 15px; }
}
@media (max-width: 767px) {
    .de-home-hero-inner { min-height: clamp(500px, 72vh, 640px); min-height: clamp(500px, 72svh, 640px); padding-block: 56px; align-items: flex-end; }
    .de-home-hero-copy, .de-home-brand-slide .de-home-hero-copy { width: 100%; max-width: 570px; }
    .de-home-hero-copy h2 { max-width: 14ch; font-size: clamp(39px,8.5vw,58px); }
    .de-home-hero-copy h1 { font-size: clamp(36px,8.7vw,54px); }
    .de-home-hero-copy > p { max-width: 34ch; font-size: 18px; }
    .de-home-hero-image { object-position: 78% center; }
    .de-home-hero-overlay { background: linear-gradient(90deg,rgba(7,31,51,.78),rgba(7,31,51,.18)),linear-gradient(0deg,#071f33 0%,rgba(7,31,51,.88) 37%,rgba(7,31,51,.06) 100%); }
    /* Wide course artwork places its portrait on the right. Keep the whole
     * face above the copy instead of stretching empty artwork across mobile. */
    .de-home-course-slide .de-home-hero-image {
        height: 62%;
        max-height: 430px;
        object-position: right top;
    }
    .de-home-course-slide .de-home-hero-overlay {
        background: linear-gradient(180deg, transparent 25%, rgba(7,31,51,.08) 38%, rgba(7,31,51,.88) 60%, #071f33 70%);
    }
    .de-home-course-slide .de-home-hero-inner { padding-top: clamp(280px,80vw,360px); padding-bottom: 76px; }
    .de-home-slide-arrow { top: auto; bottom: 14px; height: 44px; transform: none; background: transparent; }
    .de-home-slide-previous { left: var(--de-page-gutter); }
    .de-home-slide-next { right: var(--de-page-gutter); }
    .de-home-course-slide .de-home-hero-copy h2 { max-width: none; margin-bottom: 16px; font-size: clamp(30px,8vw,38px); }
    .de-home-course-slide .de-home-hero-copy > p { margin-bottom: 18px; font-size: 16px; line-height: 1.5; }
    .de-home-course-slide .de-home-eyebrow { margin-bottom: 14px; }
    .de-home-course-details { margin-bottom: 24px; gap: 8px 16px; }
    .de-home-eyebrow { margin-bottom: 18px; font-size: 10px; }
    .de-home-section-heading { margin-bottom: 32px; }
    .de-home-about-grid, .de-home-study-grid { grid-template-columns: 1fr; gap: 28px; }
    .de-home-about-copy, .de-home-about-media { max-width: none; }
    .de-home-service-grid { grid-template-columns: 1fr; }
    .de-home-service-card { padding: 24px; }
    .de-home-service-card p { font-size: 16px; }
    .de-home-study-copy { order: 1; }
    .de-home-study-image { grid-row: auto; order: 0; max-width: none; }
    .de-home-study-image img { max-height: 280px; aspect-ratio: 3 / 2; object-fit: cover; }
    .de-home-study-actions { grid-column: auto; order: 2; }
    .de-home-speaker-grid { gap: 24px 16px; }
    .de-home-speaker-copy strong { font-size: 18px; }
    .de-home-contact-inner { grid-template-columns: 1fr; gap: 28px; }
    .de-home-contact-details { max-width: none; width: 100%; }
}
@media (max-width: 480px) {
    .de-home-actions { gap: 10px; }
    .de-home-actions .de-home-button { padding-inline: 19px; gap: 12px; font-size: 14px; }
    .de-home-speaker-copy small { font-size: 14px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .de-home *, .de-home *::before, .de-home *::after, .de-public [data-editorial-reveal] {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* Established header responsive positioning ---------------------------- */
@media (min-width: 1200px) {
    .de-home-header-shell { width: calc(100% - clamp(40px,3vw,64px)); }
    .de-home-header-shell { gap: clamp(20px,1.8vw,34px); }
}
@media (max-width: 1199px) {
    .de-home-header-shell { gap: 19px; width: calc(100% - 32px); }
    .de-home-brand img { width: 124px; }
    .de-home-primary-nav { gap: 13px; }
    .de-home-language { display: none; }
    .de-home-login-link, .de-home-signup-link, .de-home-account-button { padding-inline: 12px; }
}
/* Leave room for account names without reducing navigation text size. */
@media (min-width: 992px) and (max-width: 1279px) {
    .dentaled-home-page .de-home-header-shell { width: calc(100% - 48px); }
    .de-home-header-shell { column-gap: 12px; }
    .de-home-primary-nav { gap: 12px; }
}
@media (max-width: 991px) {
    .dentaled-home-page .public-mobile-header {
        --public-mobile-accent: var(--de-home-blue);
        --public-mobile-accent-soft: #eef4f7;
        --public-mobile-border: #e1e7ea;
        --public-mobile-ink: var(--de-home-ink);
        --public-mobile-muted: var(--de-home-muted);
    }
}
@media (max-width: 767px) {
    .dentaled-home-page .scrollToTop { right: 14px; bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) {
    .de-home-skip-link, .de-home-primary-nav a::after { transition: none; }
}
