/* ==========================================================================
   dentalia.css — Dentalia Care Academy home page sections, header menu
   additions and the "coming soon" pages.

   Colors come from ColorsVariable.css. Spacing uses logical properties
   (inline-start / inline-end) so the Arabic RTL layout mirrors itself.
   ========================================================================== */

:root {
    /* hover of the --beige-bold buttons and links: the same brown, a little darker */
    --beige-bold-hover: color-mix(in srgb, var(--beige-bold) 80%, var(--black));
}

/* Arabic homepage text is slightly smaller to balance the English typography. */
html[lang="ar"] .dc-home {
    --dc-text-scale: 0.92;
    font-size: calc(16px * var(--dc-text-scale));
}

html[lang="ar"] .dc-home .header-area .primary-menu li a,
html[lang="ar"] .dc-home .footer-widget ul:not(.f-socials) li a,
html[lang="ar"] .dc-home .footer-area .gradient-border-btn {
    font-size: calc(15px * var(--dc-text-scale));
}

html[lang="ar"] .dc-home .header-area .primary-end>.dc-link,
html[lang="ar"] .dc-home .header-area .dc-register-btn {
    font-size: calc(var(--dc-auth-fs, 16px) * var(--dc-text-scale));
}

html[lang="ar"] .dc-home .header-area .btn-off .eBtn {
    font-size: calc(16px * var(--dc-text-scale));
}

html[lang="ar"] .dc-home .header-area .offcanvas .text-16px {
    font-size: calc(16px * var(--dc-text-scale)) !important;
}

html[lang="ar"] .dc-home .footer-content p,
html[lang="ar"] .dc-home .copyright-text p,
html[lang="ar"] .dc-home .footer-policy li a {
    font-size: calc(13px * var(--dc-text-scale));
}

html[lang="ar"] .dc-home .footer-widget h4 {
    font-size: calc(18px * var(--dc-text-scale));
}

.dc-section {
    padding-block: 96px;
}

.dc-section--tint {
    background: var(--primary-light);
}

.dc-section--surface {
    background: var(--white);
}

.dc-section--beige {
    background: var(--beige);
}

.dc-section--beige .dc-lead {
    color: var(--text-dark);
}

.dc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: calc(28px * var(--dc-text-scale, 1));
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dc-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.dc-title {
    margin-bottom: 16px;
    color: var(--heading);
    font-size: calc(clamp(28px, 3.2vw, 40px) * var(--dc-text-scale, 1));
    font-weight: 700;
    line-height: 1.25;
}

.dc-lead {
    color: var(--text);
    font-size: calc(17px * var(--dc-text-scale, 1));
    line-height: 1.8;
}

.dc-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.dc-head .dc-eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

/* ---------- Buttons ---------- */
.dc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 2px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: calc(16px * var(--dc-text-scale, 1));
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.dc-btn:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white);
}

.dc-btn--ghost {
    background: transparent;
    color: var(--primary);
}

.dc-btn--ghost:hover {
    background: var(--primary);
    color: var(--white);
}

.dc-btn--light {
    border-color: var(--white);
    background: var(--white);
    color: var(--primary-dark);
}

.dc-btn--light:hover {
    border-color: var(--accent-light);
    background: var(--accent-light);
    color: var(--primary-dark);
}

/* "Register Now" buttons: same --beige-bold as the header/footer Registration buttons */
.dc-btn--register {
    border-color: var(--beige-bold);
    background: var(--beige-bold);
    color: var(--white);
}

.dc-btn--register:hover {
    border-color: var(--beige-bold-hover);
    background: var(--beige-bold-hover);
    color: var(--white);
}

[dir="rtl"] .dc-btn .fi-rr-arrow-right,
[dir="rtl"] .dc-link .fi-rr-arrow-right {
    transform: scaleX(-1);
}

.dc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.dc-link i {
    transition: transform 0.2s;
}

/* ---------- Hero ---------- */
/* light hero (hero_banner.blade.php): text on the inline-start side, hall photo on the inline-end side with a curved
   edge, then a strip of accreditation logos with a terracotta "Learn Today / Build Tomorrow" corner.
   Logical properties everywhere, so in Arabic the photo, the curve and the corner move to the left side. */
.dc-hero {
    --hero-paper: #f8f5f1;
    --hero-blue: #08467f;
    --hero-clay: #b85735;
    --hero-muted: #8b92a2;
    /* approximate header height (logo + its 12px padding), so the hero fills the rest of the first screen */
    --dc-hero-offset: calc(clamp(44px, 6vw - 16px, 80px) + 24px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* full screen under the header: min-height (not height) so it still grows instead of cutting content off
       on short or narrow screens; the stage takes the extra height and the logo strip stays at the bottom */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--dc-hero-offset));
    min-height: calc(100svh - var(--dc-hero-offset));
    background: var(--hero-paper);
    color: #111;
    font-family: "Lato", sans-serif;
}

.dc-hero-shapes {
    position: absolute;
    pointer-events: none;
}

.dc-hero .container {
    max-width: 1600px;
    padding-inline: clamp(24px, 3.3vw, 52px);
}

.dc-hero-content {
    width: 49%;
    text-align: start;
}

/* the part above the logo strip; min-height (not height) so it grows instead of cutting text off on short screens */
.dc-hero-stage {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    min-height: clamp(370px, 39vw, 610px);
    padding-block: clamp(30px, 3.2vw, 51px);
    background: radial-gradient(ellipse at 18% 35%, #fffaf7 0%, transparent 65%);
}

.dc-hero-stage::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset-block: 0;
    inset-inline-start: 0;
    width: 51%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 312' preserveAspectRatio='none'%3E%3Cpath fill='%23ead9c9' fill-opacity='.42' d='M330 0H480V312H388C411 265 430 231 424 182C420 124 438 72 330 0Z'/%3E%3Cpath fill='none' stroke='%23ead9c9' stroke-opacity='.55' stroke-width='12' d='M-24 70C36 108 2 171-8 205C-21 244 18 275 37 301C-9 324-40 279-5 277C13 275 30 292 37 301M-9 205C16 210-1 249-6 261'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    pointer-events: none;
}

.dc-hero-stage>.container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Preserve the original curved photo shape with proportional, centered framing. */
.dc-hero-media {
    position: absolute;
    z-index: 1;
    inset-block: 0;
    inset-inline-end: 0;
    overflow: hidden;
    width: 65%;
    clip-path: url("#dc-hero-photo-clip");
}

.dc-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 768px) {
    .dc-hero-media img {
        object-fit: cover;
    }
}

/* Mirror the photo and background decoration horizontally in Arabic. */
[dir="rtl"] .dc-hero-media,
[dir="rtl"] .dc-hero-stage::before {
    transform: scaleX(-1);
}

/* less space between the hero and the section under it (whichever section the page builder puts next) */
.dc-hero+section {
    padding-top: 48px;
}

.dc-hero h1 {
    margin-bottom: clamp(16px, 1.8vw, 28px);
    color: #111;
    font-size: calc(clamp(26px, 2.85vw, 44px) * var(--dc-text-scale, 1));
    font-weight: 800;
    line-height: 1.3;
}

/* highlighted words in the hero title and lead: terracotta, like the Register Now button */
.dc-hero .dc-highlight {
    color: var(--hero-clay);
}

.dc-hero .dc-lead {
    font-family: "Euclid Circular A", sans-serif;
    max-width: 90%;
    margin-bottom: clamp(26px, 3.3vw, 52px);
    font-size: calc(clamp(13px, 1.4vw, 21px) * var(--dc-text-scale, 1));
    font-weight: 700;
    line-height: 1.25;
    color: var(--hero-muted);
}

/* eyebrow: teal text with a short terracotta line on both sides */
.dc-hero .dc-eyebrow {
    font-family: Arial, sans-serif;
    gap: clamp(8px, 1vw, 16px);
    margin-bottom: clamp(18px, 2vw, 32px);
    color: var(--hero-blue);
    font-size: calc(clamp(12px, 1.4vw, 21px) * var(--dc-text-scale, 1));
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.3;
}

.dc-hero .dc-eyebrow::before,
.dc-hero .dc-eyebrow::after {
    content: "";
    flex: 0 0 clamp(20px, 2.7vw, 42px);
    width: clamp(20px, 2.7vw, 42px);
    height: 1px;
    background: var(--hero-clay);
}

.dc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dc-hero .dc-btn {
    justify-content: center;
    min-height: clamp(34px, 3.6vw, 52px);
    padding: clamp(10px, 1vw, 16px) clamp(20px, 2.3vw, 36px);
    border-width: 1px;
    font-size: calc(clamp(12px, 1.2vw, 18px) * var(--dc-text-scale, 1));
    font-weight: 600;
}

.dc-hero .dc-btn--register {
    border-color: var(--hero-clay);
    background: var(--hero-clay);
}

.dc-hero .dc-btn--register:hover {
    border-color: #944126;
    background: #944126;
}

.dc-hero .dc-btn:focus-visible {
    outline: 3px solid var(--hero-blue);
    outline-offset: 4px;
}

/* outline button: terracotta border with teal text, fills terracotta on hover */
.dc-hero .dc-btn--ghost {
    border-color: var(--hero-clay);
    background: transparent;
    color: var(--hero-blue);
}

.dc-hero .dc-btn--ghost i {
    color: var(--hero-clay);
}

.dc-hero .dc-btn--ghost:hover {
    border-color: var(--hero-clay);
    background: var(--hero-clay);
    color: var(--white);
}

.dc-hero .dc-btn--ghost:hover i {
    color: inherit;
}

/* accreditation strip: three logos with a title and a tagline, thin lines between them */
.dc-hero-accred {
    position: relative;
    padding-block: clamp(16px, 1.8vw, 28px);
    border-top: 1px solid #fff9;
    background: var(--hero-paper);
}

.dc-accred-list {
    display: grid;
    grid-template-columns: .85fr 1.05fr 1fr;
    margin: 0;
    /* keep the last item clear of the terracotta corner */
    padding: 0;
    padding-inline-end: 26%;
    list-style: none;
}

.dc-accred-list li {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
    padding-inline: clamp(16px, 2vw, 32px);
    min-width: 0;
}

.dc-accred-list li:first-child {
    padding-inline-start: 0;
}

.dc-accred-list li+li {
    border-inline-start: 1px solid var(--border);
}

.dc-accred-list img {
    flex: 0 0 auto;
    width: clamp(48px, 8vw, 120px);
    height: clamp(48px, 5.4vw, 84px);
    object-fit: contain;
    /* hug the inline-start edge so the first logo lines up with the hero text above */
    object-position: left center;
}

[dir="rtl"] .dc-accred-list img {
    object-position: right center;
}

.dc-accred-list strong {
    display: block;
    color: #15376c;
    font-size: calc(clamp(12px, 1.2vw, 18px) * var(--dc-text-scale, 1));
    font-weight: 600;
    line-height: 1.1;
}

.dc-accred-list li:first-child img {
    width: clamp(44px, 4.8vw, 76px);
}

.dc-accred-list span {
    display: block;
    margin-top: 4px;
    color: var(--hero-muted);
    font-size: calc(clamp(11px, 1.15vw, 17px) * var(--dc-text-scale, 1));
    line-height: 1.1;
}

/* Sweeping terracotta curve, with the slogan inset from the cropped leaf ornament. */
.dc-hero-corner {
    position: absolute;
    z-index: 2;
    bottom: 0;
    inset-inline-end: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 19%;
    height: calc(75% + clamp(36px, 4.7vw, 72px));
    padding: 0 clamp(16px, 2.4vw, 36px) clamp(10px, 1.2vw, 18px) 0;
    padding-inline-start: 0;
    padding-inline-end: clamp(16px, 2.4vw, 36px);
    overflow: hidden;
}

.dc-hero-corner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='clay' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop stop-color='%23ad5038'/%3E%3Cstop offset='1' stop-color='%23bd5a38'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 150C70 48 132 45 240 0V150Z' fill='url(%23clay)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

[dir="rtl"] .dc-hero-corner::before {
    transform: scaleX(-1);
}

.dc-hero-corner p {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-bottom: clamp(12px, 1.5vw, 22px);
    color: #f4e5d4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: calc(clamp(14px, 1.65vw, 25px) * var(--dc-text-scale, 1) * var(--dc-slogan-scale, 1));
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    text-align: end;
}

.dc-hero-corner p span {
    display: block;
}

/* short line under the slogan */
.dc-hero-corner p::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: clamp(24px, 2.7vw, 40px);
    height: 1px;
    background: currentColor;
}

.dc-hero-corner-flower {
    position: absolute;
    bottom: clamp(-58px, -4vw, -30px);
    inset-inline-end: clamp(-68px, -4.75vw, -36px);
    width: clamp(96px, 12.7vw, 192px);
    opacity: 0.28;
    pointer-events: none;
}

[dir="rtl"] .dc-hero-corner-flower {
    transform: scaleX(-1);
}

[dir="rtl"] .dc-hero {
    font-family: "Cairo", "Tajawal", sans-serif;
}

[dir="rtl"] .dc-hero .dc-eyebrow {
    letter-spacing: 0;
}

[dir="rtl"] .dc-hero .dc-lead {
    font-family: "Cairo", "Tajawal", sans-serif;
    line-height: 1.6;
}

[dir="rtl"] .dc-hero-corner p {
    font-family: inherit;
    font-style: normal;
}

/* the English slogan runs wider than the Arabic one, so shrink it a little */
[dir="ltr"] .dc-hero-corner p {
    --dc-slogan-scale: .85;
}

/* ---------- Icon badge ---------- */
.dc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
}

.dc-icon i {
    line-height: 1;
}

.dc-icon .dc-svg-icon {
    width: 30px;
    height: 30px;
}

/* ---------- Story / vision / mission ---------- */
.dc-story-media {
    position: relative;
}

.dc-story-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    object-fit: cover;
}

.dc-story-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block-start: 24px;
    inset-inline-start: -24px;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--accent-light);
}

.dc-story .dc-lead+.dc-lead {
    margin-top: 14px;
}

/* Home story: introduction, uncropped photo spanning the container, then vision and mission. */
.dc-story--wide {
    background: linear-gradient(180deg, var(--white), #f8f5f1);
}

.dc-story--wide .dc-story-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
    margin-bottom: clamp(32px, 4vw, 56px);
    text-align: start;
}

.dc-story--wide .dc-title,
.dc-story--wide .dc-lead {
    margin-bottom: 0;
}

.dc-story--wide .dc-story-media {
    width: 100%;
    margin: 0 auto;
}

.dc-story--wide .dc-story-media::after {
    content: none;
}

.dc-story--wide .dc-story-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 20px;
    object-fit: contain;
}

.dc-story--wide .dc-vm--creative {
    align-items: stretch;
    gap: clamp(20px, 3vw, 40px);
    margin-top: clamp(28px, 4vw, 56px);
}

.dc-story--wide .dc-vm--creative .dc-vm-card {
    margin-top: 0;
    padding: clamp(24px, 3vw, 40px);
}

@media (max-width: 767.98px) {
    .dc-story--wide .dc-story-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

.dc-vm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.dc-vm-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.dc-vm-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--heading);
    font-size: calc(20px * var(--dc-text-scale, 1));
    font-weight: 700;
}

.dc-vm-card h3 .dc-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
}

.dc-vm-card p {
    margin: 0;
    color: var(--text);
    font-size: calc(15px * var(--dc-text-scale, 1));
    line-height: 1.75;
}

/* Home "Our Story": vision as a deep-teal tile, mission as a warm beige tile set a little lower,
   each with its icon as a large faint watermark that turns on hover */
.dc-vm--creative {
    align-items: start;
    margin-top: 36px;
}

.dc-vm--creative .dc-vm-card {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 26px 26px 30px;
    border: 0;
    border-radius: 22px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dc-vm--creative .dc-vm-card--vision {
    background: linear-gradient(150deg, var(--primary), var(--accent));
    box-shadow: 0 24px 44px -28px color-mix(in srgb, var(--primary) 85%, transparent);
    color: var(--white);
}

.dc-vm--creative .dc-vm-card--mission {
    margin-top: 40px;
    background: color-mix(in srgb, var(--beige) 38%, var(--white));
    box-shadow: 0 24px 44px -30px color-mix(in srgb, var(--beige-bold) 55%, transparent);
    color: var(--orange);
}

.dc-vm--creative .dc-vm-card h3 {
    color: inherit;
    font-size: calc(21px * var(--dc-text-scale, 1));
}

.dc-vm--creative .dc-vm-card--mission h3 {
    color: var(--heading);
}

.dc-vm--creative .dc-vm-card--vision p {
    color: color-mix(in srgb, var(--white) 85%, transparent);
}

.dc-vm--creative .dc-vm-card--mission p {
    color: var(--text-dark);
}

.dc-vm-mark {
    position: absolute;
    z-index: -1;
    inset-block-end: -30px;
    inset-inline-end: -20px;
    font-size: 140px;
    line-height: 1;
    opacity: 0.1;
    transform: rotate(-14deg);
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .dc-vm--creative .dc-vm-card:hover {
        transform: translateY(-6px);
    }

    .dc-vm--creative .dc-vm-card:hover .dc-vm-mark {
        opacity: 0.16;
        transform: rotate(0deg) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {

    .dc-vm--creative .dc-vm-card,
    .dc-vm-mark {
        transition: none;
    }
}

/* ---------- Cards grid (services, accreditations) ---------- */
.dc-card {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dc-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--primary-dark) 45%, transparent);
    transform: translateY(-4px);
}

.dc-card h3 {
    margin: 20px 0 10px;
    color: var(--heading);
    font-size: calc(19px * var(--dc-text-scale, 1));
    font-weight: 700;
    line-height: 1.4;
}

.dc-card p {
    margin: 0;
    color: var(--text);
    font-size: calc(15px * var(--dc-text-scale, 1));
    line-height: 1.7;
}

/* ---------- Services mosaic (profile slide colors) ---------- */
/* services title on one line on desktop (Arabic only; the English title is too long and would overflow);
   the intro keeps the usual head width */
#dc-services .dc-head {
    max-width: none;
}

@media (min-width: 992px) {
    [dir="rtl"] #dc-services .dc-title {
        white-space: nowrap;
    }
}

[dir="ltr"] #dc-services .dc-title {
    max-width: 900px;
    margin-inline: auto;
    text-wrap: balance;
}

.dc-services-intro {
    max-width: 720px;
    margin: 0 auto;
}

.dc-services-intro+.dc-services-intro {
    margin-top: 8px;
}

.dc-services {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--dark-bg) 60%, transparent);
}

.dc-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
    padding: 36px 28px;
    background: var(--accent);
    color: var(--white);
    text-align: center;
    transition: background-color 0.2s;
}

.dc-service--green {
    background: var(--primary);
}

.dc-service--gray {
    background: var(--muted);
}

.dc-service--clay {
    background: var(--orange-light);
}

.dc-service--terracotta {
    background: var(--orange);
}

.dc-service--dark {
    background: var(--dark-bg);
}

.dc-service:hover {
    background-image: linear-gradient(color-mix(in srgb, var(--black) 12%, transparent), color-mix(in srgb, var(--black) 12%, transparent));
}

.dc-service-icon {
    display: inline-flex;
    color: var(--white);
    transition: transform 0.2s;
}

.dc-service-icon .dc-svg-icon {
    width: 64px;
    height: 64px;
}

.dc-service:hover .dc-service-icon {
    transform: translateY(-4px);
}

.dc-service h3 {
    margin: 20px 0 10px;
    color: var(--white);
    font-size: calc(20px * var(--dc-text-scale, 1));
    font-weight: 700;
    line-height: 1.4;
}

.dc-service p {
    margin: 0;
    color: color-mix(in srgb, var(--white) 88%, transparent);
    font-size: calc(15px * var(--dc-text-scale, 1));
    line-height: 1.7;
}

/* ---------- Training tracks ---------- */
/* Also applies to saved page-builder sections with older Bootstrap classes. */
#dc-training .row>.col-sm-6 {
    width: 100%;
}

@media (min-width: 576px) {
    #dc-training .row>.col-sm-6 {
        width: 50%;
    }
}

#dc-training,
#dc-training *,
#dc-training *::before,
#dc-training *::after {
    animation: none;
    transition: none;
}

.dc-track {
    display: block;
    height: 100%;
    color: var(--heading);
    text-decoration: none;
}

.dc-track:hover {
    color: var(--heading);
}

.dc-track:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 6px;
    border-radius: 12px;
}

.dc-track img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 5;
    object-fit: cover;
    border-radius: 12px;
}

.dc-track-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
}

.dc-track-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dc-track-text h3 {
    margin: 0;
    color: var(--heading);
    font-size: calc(18px * var(--dc-text-scale, 1));
    font-weight: 600;
    line-height: 1.5;
}

.dc-track-text p {
    margin: 6px 0 0;
    color: var(--text);
    font-size: calc(14px * var(--dc-text-scale, 1));
    line-height: 1.6;
}

.dc-track-arrow {
    flex: 0 0 24px;
    margin-top: 2px;
    color: var(--text);
}

[dir="rtl"] .dc-track-arrow {
    transform: scaleX(-1);
}

/* ---------- Funnel steps (how to enrol) ---------- */
.dc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: dc-step;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dc-steps li {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--white) 8%, transparent);
    color: var(--white);
}

.dc-steps li::before {
    counter-increment: dc-step;
    content: counter(dc-step, decimal-leading-zero);
    display: block;
    margin-bottom: 12px;
    color: var(--accent-light);
    font-size: calc(28px * var(--dc-text-scale, 1));
    font-weight: 700;
    line-height: 1;
}

.dc-steps h3 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: calc(18px * var(--dc-text-scale, 1));
    font-weight: 700;
}

.dc-steps p {
    margin: 0;
    color: color-mix(in srgb, var(--white) 80%, transparent);
    font-size: calc(15px * var(--dc-text-scale, 1));
    line-height: 1.7;
}

.dc-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.dc-band .dc-title,
.dc-band .dc-eyebrow {
    color: var(--white);
}

.dc-band .dc-lead {
    color: color-mix(in srgb, var(--white) 82%, transparent);
}

/* ---------- Accreditations ---------- */
.dc-accreditation {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
}

.dc-accreditation .dc-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
}

.dc-accreditation p {
    margin: 0;
    color: var(--heading);
    font-size: calc(16px * var(--dc-text-scale, 1));
    font-weight: 600;
    line-height: 1.55;
}

/* accrediting body: its logo above the accreditation name */
.dc-accreditation--logo {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 24px;
    text-align: center;
}

.dc-accreditation--logo img {
    width: 100%;
    max-width: 220px;
    height: 120px;
    object-fit: contain;
}

/* ---------- Facilities bento gallery ---------- */
.dc-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, clamp(150px, 14vw, 190px));
    grid-template-areas:
        "environment environment hall hall"
        "environment environment meeting support"
        "lab lab meeting support";
    gap: 16px;
}

.dc-gallery figure {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    border-radius: 18px;
    background: var(--black);
}

.dc-gallery figure:first-child {
    grid-area: environment;
}

.dc-gallery figure:nth-child(2) {
    grid-area: hall;
}

.dc-gallery figure:nth-child(3) {
    grid-area: meeting;
}

.dc-gallery figure:nth-child(4) {
    grid-area: support;
}

.dc-gallery figure:nth-child(5) {
    grid-area: lab;
}

.dc-gallery img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.dc-gallery figcaption {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    padding: 40px 18px 16px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--black) 70%, transparent));
    color: var(--white);
    font-size: calc(16px * var(--dc-text-scale, 1));
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .dc-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 280px 220px 220px;
        grid-template-areas:
            "environment environment"
            "hall meeting"
            "support lab";
    }
}

@media (max-width: 575.98px) {
    .dc-gallery {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-rows: clamp(220px, 70vw, 320px);
        grid-template-areas:
            "environment"
            "hall"
            "meeting"
            "support"
            "lab";
        gap: 12px;
    }
}

/* ---------- Location / contact ---------- */
.dc-contact {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--primary-dark) 50%, transparent);
}

.dc-contact-media {
    height: 100%;
    min-height: 320px;
}

.dc-contact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-contact-body {
    padding: 48px;
}

.dc-contact-list {
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
}

.dc-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.dc-contact-list .dc-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 17px;
}

.dc-contact-list strong {
    display: block;
    color: var(--heading);
    font-size: calc(15px * var(--dc-text-scale, 1));
}

.dc-contact-list span,
.dc-contact-list a {
    color: var(--text);
    font-size: calc(15px * var(--dc-text-scale, 1));
    line-height: 1.6;
}

.dc-contact-list a:hover {
    color: var(--primary);
}

.dc-ltr {
    direction: ltr;
    unicode-bidi: embed;
}

/* hover (desktop): the photo is uncovered across the whole card (no scaling) under a dark
   overlay, and the text slides to the other side in white. Its width never changes, so nothing reflows. */
@media (min-width: 992px) and (hover: hover) {
    .dc-contact {
        position: relative;
    }

    /* the photo always spans the card; clip-path shows only its own column until hover */
    .dc-contact-media {
        position: absolute;
        z-index: 0;
        inset: 0;
        min-height: 0;
        clip-path: inset(0 58.3333% 0 0);
        /* col-lg-5 visible on the left */
        transition: clip-path 0.5s ease;
    }

    [dir="rtl"] .dc-contact-media {
        clip-path: inset(0 0 0 58.3333%);
    }

    .dc-contact-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: color-mix(in srgb, var(--dark-bg) 72%, transparent);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .dc-contact>.row>.col-lg-7 {
        position: relative;
        z-index: 1;
        transition: transform 0.5s ease;
    }

    .dc-contact .dc-eyebrow,
    .dc-contact .dc-title,
    .dc-contact-list strong,
    .dc-contact-list span,
    .dc-contact-list a,
    .dc-contact-list .dc-icon {
        transition: color 0.3s, background-color 0.3s;
    }

    .dc-contact:hover .dc-contact-media,
    [dir="rtl"] .dc-contact:hover .dc-contact-media {
        clip-path: inset(0);
    }

    .dc-contact:hover .dc-contact-media::after {
        opacity: 1;
    }

    /* move by the photo column: 41.67% of the card = 71.43% of the text column */
    .dc-contact:hover>.row>.col-lg-7 {
        transform: translateX(-71.4286%);
    }

    [dir="rtl"] .dc-contact:hover>.row>.col-lg-7 {
        transform: translateX(71.4286%);
    }

    .dc-contact:hover .dc-eyebrow,
    .dc-contact:hover .dc-title,
    .dc-contact:hover .dc-contact-list strong {
        color: var(--white);
    }

    .dc-contact:hover .dc-contact-list span,
    .dc-contact:hover .dc-contact-list a {
        color: color-mix(in srgb, var(--white) 85%, transparent);
    }

    .dc-contact:hover .dc-contact-list a:hover {
        color: var(--white);
    }

    .dc-contact:hover .dc-contact-list .dc-icon {
        background: color-mix(in srgb, var(--white) 15%, transparent);
        color: var(--white);
    }

    .dc-contact:hover .dc-btn--ghost {
        border-color: var(--white);
        color: var(--white);
    }

    .dc-contact:hover .dc-btn--ghost:hover {
        background: var(--white);
        color: var(--primary-dark);
    }
}

/* ---------- Footer: logo, social icons under Contact Us ---------- */
.footer-content img {
    height: 100px;
}

/* footer column lists stack vertically; keep the social icons in one row */
.footer-widget .f-socials {
    flex-direction: row;
    margin-top: 8px;
}

.footer-widget .f-socials li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 0;
    color: var(--footer-heading);
}

/* ---------- Header: logo, register button and nested training menu ---------- */
/* Registration (التسجيل) buttons: --beige-bold with white text, darker brown on hover */
/* header auth links scale with the screen: 13px text / tight padding on small tablets up to 16px / 10x22 on desktop */
.header-area {
    --dc-auth-fs: clamp(13px, 10px + 0.4vw, 16px);
}

.header-area .primary-end>.dc-link,
.header-area .dc-register-btn {
    font-size: calc(var(--dc-auth-fs) * var(--dc-text-scale, 1));
    line-height: 1.4;
}

.header-area .primary-end>.dc-link {
    margin-inline-end: clamp(8px, 1vw, 16px) !important;
}

.dc-register-btn {
    padding: clamp(6px, 2px + 0.55vw, 10px) clamp(14px, 6px + 1.1vw, 22px) !important;
    border-radius: 999px;
    background: var(--beige-bold);
    color: var(--white) !important;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.dc-register-btn:hover {
    background: var(--beige-bold-hover);
    color: var(--white) !important;
}

.footer-area .gradient-border2 {
    background: var(--beige-bold);
}

.footer-area .gradient-border-btn {
    background: var(--beige-bold);
    color: var(--white);
}

.footer-area .gradient-border-btn:hover {
    background-color: var(--beige-bold-hover);
    color: var(--white);
}

.btn-off .eBtn.sign {
    background: var(--beige-bold);
    color: var(--white);
}

.btn-off .eBtn.sign:hover {
    background: var(--beige-bold-hover);
    color: var(--white);
}

/* Login: --beige-bold text in the header, --beige-bold outline in the mobile menu (Registration there is filled) */
.header-area .primary-end .dc-link {
    color: var(--beige-bold);
}

.header-area .primary-end .dc-link:hover {
    color: var(--beige-bold-hover);
}

.btn-off .eBtn:not(.sign) {
    border: 2px solid var(--beige-bold);
    background: transparent;
    color: var(--beige-bold);
}

.btn-off .eBtn:not(.sign):hover {
    background: var(--beige-bold);
    color: var(--white);
}

/* header cart: item-count badge in --beige-bold (the wishlist badge keeps its colour) */
.dc-cart-link .cart-top-number {
    background-color: var(--beige-bold);
}

/* "Accredited Training Academy": About Us banner subtitle (the hero eyebrow is --primary, set in the Hero block) */
.dc-page-banner .showing-text {
    color: var(--beige-bold);
}

.dc-menu-sub {
    margin: 2px 0 6px;
    padding-inline-start: 40px;
    list-style: none;
}

.dc-menu-sub a {
    display: block;
    padding: 6px 0;
    color: var(--text);
    font-size: calc(14px * var(--dc-text-scale, 1));
}

.dc-menu-sub a:hover {
    color: var(--primary);
}

.dc-offcanvas-sub {
    padding-inline-start: 16px;
    border-inline-start: 2px solid var(--primary-light);
}

/* Language switcher in the main header (header.blade.php): a globe icon button before the cart that opens the
   language list; the active language has the --beige background */
.header-area .dc-lang-switcher {
    display: flex;
    align-items: center;
}

.header-area .dc-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--heading);
    transition: color .2s, border-color .2s, background-color .2s;
}

.header-area .dc-lang-btn:hover,
.header-area .dc-lang-btn[aria-expanded="true"] {
    color: var(--primary);
    border-color: var(--beige);
    background-color: var(--body-bg);
}

.header-area .dc-lang-menu {
    min-width: 140px;
    margin-top: 6px !important;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--black) 12%, transparent);
}

.header-area .dc-lang-menu .dropdown-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: calc(14px * var(--dc-text-scale, 1));
    color: var(--heading);
    text-align: start;
}

.header-area .dc-lang-menu .dropdown-item:hover,
.header-area .dc-lang-menu .dropdown-item:focus {
    background-color: var(--body-bg);
    color: var(--heading);
}

.header-area .dc-lang-menu .dropdown-item.active {
    background-color: var(--beige);
    color: var(--heading);
    font-weight: 600;
}

/* One shared layout and navigation breakpoint for every public page. */
.header-area > .container {
    width: 100%;
    max-width: 1440px;
    padding-inline: clamp(12px, 2vw, 32px);
}

.header-area .dc-header-row {
    display: grid;
    grid-template-columns: clamp(150px, 13vw, 190px) minmax(0, 1fr) auto;
    gap: clamp(12px, 1.5vw, 24px);
    margin: 0;
}

.header-area .dc-header-row > div {
    width: auto;
    min-width: 0;
    padding: 0;
}

.header-area .dc-header-brand .logo-image a {
    display: block;
}

.header-area .dc-header-brand .logo-image img {
    display: block;
    width: clamp(150px, 13vw, 190px);
    max-width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain !important;
}

.header-area .main-menu-ul {
    justify-content: center;
    gap: clamp(16px, 2vw, 32px);
}

.header-area .main-menu-ul > li {
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.header-area .main-menu-ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    white-space: nowrap;
}

/* Top-level menu links grow with the screen: 15px where the desktop menu first shows (1200px), up to 18px on
   wide screens; the Arabic home page keeps its smaller text scale */
.header-area .main-menu-ul > li > a,
html[lang="ar"] .dc-home .header-area .main-menu-ul > li > a {
    font-size: calc(clamp(15px, 0.75vw + 6px, 18px) * var(--dc-text-scale, 1));
}

/* Keep dropdown arrows inside their links instead of overlapping the next link. */
.header-area .main-menu-ul > .have-mega-menu > .menu-parent-a::after {
    position: static;
    flex-shrink: 0;
    width: 10px;
}

.header-area .primary-end {
    gap: 12px;
}

.header-area .primary-end > .dc-link,
.header-area .primary-end .dc-lang-switcher,
.header-area .primary-end .dc-cart-link,
.header-area .primary-end .Userprofile {
    margin-inline: 0 !important;
}

.header-area .primary-end > .dc-link,
.header-area .primary-end > .dc-register-btn,
.header-area .dc-cart-link {
    align-items: center;
    justify-content: center;
    align-content: center;
    min-height: 44px;
}

.header-area .dc-cart-link {
    display: inline-flex;
    width: 40px;
    flex-shrink: 0;
}

.header-area .dc-cart-link .cart-top-number {
    top: -2px;
    inset-inline-end: -1px;
}

.header-area .toggle-bar {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    font-size: 24px;
}

.header-area :is(a, button):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.header-area .main-menu-ul > li > .main-mega-menu {
    top: calc(100% + 8px);
    inset-inline-start: 0;
    transform: none;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
}

.header-area .main-menu-ul > li:last-child > .main-mega-menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.header-area .mega_list li {
    padding: 0;
}

.header-area .mega_list a {
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Expand nested categories inside the scrollable menu, even on short screens. */
.header-area .dc-cat-subs {
    position: static;
    width: auto;
    margin-inline-start: 12px;
    padding: 0;
    border-inline-start: 2px solid var(--primary-light);
    border-radius: 0;
    box-shadow: none;
}

.header-area .offcanvas {
    --bs-offcanvas-width: min(400px, 100vw);
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.header-area .offcanvas-header {
    padding: 0;
}

.header-area .offcanvas-body {
    height: auto;
    min-height: 0;
    padding-block: 24px max(24px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}

.header-area .offcanvas .logo-image img {
    width: 180px;
    max-width: calc(100vw - 112px);
    height: auto;
}

.header-area .offcanvas .btn-close {
    position: static;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-inline-start: 12px;
}

.header-area .offcanvas :is(a, button, h3) {
    white-space: normal;
    overflow-wrap: anywhere;
}

.header-area .offcanvas .d-flex > div,
.header-area .Userprofile .figure_text {
    min-width: 0;
}

.header-area .Userprofile {
    position: relative;
}

/* a fixed-width card under the avatar (the template's width: 100% made it span the whole header) */
.header-area .Userprofile .dropdown-menu {
    width: 260px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
}

.header-area .Userprofile .figure_text h4 {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .header-area .dc-header-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .header-area .dc-header-nav {
        display: none;
    }

    .header-area .toggle-bar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .header-area .dc-header-row,
    .header-area .primary-end {
        gap: 4px;
    }

    .header-area .dc-header-brand .logo-image img {
        width: 130px;
    }
}

/* Categories menu (categories only): clicking a category opens its sub-categories beside the list (header.blade.php
   toggles .dc-cat-open); each nested level opens beside its own row, so any depth cascades the same way */
.dc-cat-item {
    position: relative;
}

.dc-cat-arrow {
    margin-inline-start: 8px;
    color: var(--muted);
    line-height: 1;
}

[dir="rtl"] .dc-cat-arrow i {
    display: inline-block;
    transform: scaleX(-1);
}

.dc-cat-item.dc-cat-open>.dc-cat-toggle {
    background-color: var(--body-bg);
    color: var(--primary) !important;
}

.dc-cat-subs {
    position: absolute;
    top: -8px;
    inset-inline-start: calc(100% + 8px);
    z-index: 1;
    display: none;
    width: 280px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 12px 20px color-mix(in srgb, var(--text-dark) 10%, transparent);
}

.dc-cat-item.dc-cat-open>.dc-cat-subs {
    display: block;
}

.dc-cat-all a,
.dc-cat-all-link {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* courses sidebar: sub-categories sit inside their parent's row, so only the selected row's own link is highlighted */
.entry-widget .category.active .category:not(.active)>a {
    color: var(--text-color);
}

/* footer Training column (category_footer_item.blade.php): only categories with sub-categories get the arrow,
   which expands them indented below */
.dc-footer-cat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dc-footer-cat-toggle {
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--footer-text);
    font-size: 12px;
    line-height: 1;
}

.dc-footer-cat-toggle:hover {
    color: var(--footer-link-hover);
}

.dc-footer-cat-toggle i {
    transition: transform 0.2s;
}

.dc-footer-cat-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.footer-widget ul.dc-footer-cat-subs {
    padding-inline-start: 14px;
    border-inline-start: 1px solid color-mix(in srgb, var(--footer-text) 30%, transparent);
}

/* phone menu: category rows are buttons that expand their sub-categories below */
.dc-offcanvas-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
}

.dc-offcanvas-cat i {
    transition: transform 0.2s;
}

.dc-offcanvas-cat:not(.collapsed) i {
    transform: rotate(180deg);
}

/* dropdowns open on click (header.blade.php toggles .dc-open); hover only changes the link style */
.main-menu-ul>li.have-mega-menu:not(.dc-open):hover .main-mega-menu {
    visibility: hidden;
    opacity: 0;
}

.main-menu-ul>li.have-mega-menu.dc-open .main-mega-menu {
    visibility: visible;
    opacity: 1;
}

/* the open item keeps its hover look */
.primary-menu li.dc-open>.menu-parent-a {
    color: var(--color-1);
}

.primary-menu li.dc-open>.menu-parent-a::after {
    border-top-color: var(--primary);
}

/* main header text is bold: menu links and the Login link */
.header-area .main-menu-ul>li>a,
.header-area .main-menu-ul>li>a.active,
.header-area .dc-link {
    font-weight: 700;
}

/* ---------- Page top banner (.breadcum-area on courses, blog, contact, ...): brand colours instead of the template's sky blue ---------- */
.breadcum-area {
    background: linear-gradient(90deg, var(--beige) 26%, var(--accent) 93%);
}

:where([dir="rtl"]) .breadcum-area {
    background: linear-gradient(-90deg, var(--beige) 26%, var(--accent) 93%);
}

/* Student dashboard banner (.profile-banner-area on my courses, wishlist, profile, ...): same brand colours as .breadcum-area */
.profile-banner-area {
    background: linear-gradient(90deg, var(--beige) 26%, var(--accent) 93%);
}

:where([dir="rtl"]) .profile-banner-area {
    background: linear-gradient(-90deg, var(--beige) 26%, var(--accent) 93%);
}

/* Course bundle card outline (course-bundle, bundle details, my course bundles): brand colours instead of the template's sky blue */
.course-bundle-item .bundle-details::before {
    background: linear-gradient(120deg, var(--beige) 0%, var(--accent) 100%);
}

:where([dir="rtl"]) .course-bundle-item .bundle-details::before {
    background: linear-gradient(-120deg, var(--beige) 0%, var(--accent) 100%);
}

/* Sign-up block backdrop ("Language" home template / Language Counter section): brand colours instead of the template's sky blue */
.signup-form-wrap::after {
    background: linear-gradient(89deg, var(--text-dark) 0%, var(--text-dark) 33.99%, var(--beige) 100%);
}

:where([dir="rtl"]) .signup-form-wrap::after {
    background: linear-gradient(-89deg, var(--text-dark) 0%, var(--text-dark) 33.99%, var(--beige) 100%);
}

/* ---------- About Us page (frontend/default/about_us/index.blade.php) ---------- */
/* the template banner leaves 200px below for overlapping content; this page has none */
.breadcum-area.dc-page-banner {
    padding-bottom: 56px;
}

.dc-vm--page {
    margin-top: 0;
}

.dc-vm--page .dc-vm-card {
    padding: 32px;
}

.dc-vm--page .dc-vm-card p {
    font-size: 16px;
}

.dc-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.dc-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 180px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.dc-partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---------- All Categories page (frontend/default/course/categories.blade.php) ---------- */
.dc-category {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dc-category:hover {
    border-color: var(--accent-light);
    box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--primary-dark) 45%, transparent);
    transform: translateY(-4px);
}

.dc-category-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.dc-category-body {
    flex: 1 1 auto;
    padding: 22px 24px 24px;
}

.dc-category-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.dc-category-body h3 a {
    color: var(--heading);
}

.dc-category-body h3 a:hover {
    color: var(--primary);
}

.dc-category-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.dc-category-count i {
    color: var(--accent);
    line-height: 1;
}

.dc-category-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.dc-category-subs a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
}

.dc-category-subs a:hover {
    border-color: var(--accent);
    color: var(--primary);
}

/* ---------- Login / sign-up / password pages: side photo (image/dentalia/Login.jpg, Signup.png) ---------- */
.login-img img {
    width: 100%;
    border-radius: 24px;
}

/* Arabic: the photo sits on the right, so mirror it to face the form like in English */
[dir="rtl"] .login-img img {
    transform: scaleX(-1);
}

/* space between the photo and the form while they sit side by side;
   the photo stays in view while a long form (sign-up) scrolls past it */
@media (min-width: 768px) {
    .login-area .login-form {
        padding-inline-start: 24px;
    }

    .login-area .login-img {
        position: sticky;
        top: 24px;
    }
}

/* phones: the form and photo stack, so the photo only pushes the form down; hide it */
@media (max-width: 767.98px) {
    .login-area .login-img {
        display: none;
    }

    /* the form starts near the header; the bottom space keeps the last button clear of the floating WhatsApp button */
    .login-area {
        margin-top: 24px;
        padding-bottom: 88px;
    }

    .login-area .login-form {
        margin-top: 0;
    }

    .login-area .global-form .g-title {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 8px;
    }

    .login-area .global-form .description {
        margin-bottom: 24px;
    }

    .login-area .form-group:not(.remember-me) {
        margin-bottom: 14px;
    }

    .login-area .form-label {
        margin-bottom: 6px;
        font-size: 15px;
        line-height: 22px;
    }

    /* 16px text: iOS zooms the page in on inputs with smaller text */
    .login-area .global-form .form-control {
        padding: 11px 16px;
        font-size: 16px;
        line-height: 26px;
    }

    .login-area .login-form .lms-md-select {
        height: 50px;
        padding-block: 11px;
        padding-inline: 16px 40px;
        line-height: 26px;
    }

    .login-area .global-form .dc-password-field .form-control {
        padding-inline-end: 52px;
    }

    .login-area .login-form .eBtn {
        padding-block: 13px;
    }

    /* "Remember me" and "Forget password?" wrap instead of squeezing on narrow phones */
    .login-area .remember-me {
        flex-wrap: wrap;
        gap: 10px;
    }

    .login-area .login-form > p.mt-20 {
        text-align: center;
    }

    /* sign-up steps: smaller dots and labels so the three fit side by side */
    .dc-stepper {
        margin-bottom: 24px;
    }

    .dc-stepper-dot {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .dc-stepper-item + .dc-stepper-item::before {
        top: 15px;
        inset-inline-end: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    .dc-stepper-label {
        font-size: 12px;
        line-height: 16px;
    }
}

@media (min-width: 992px) {
    .login-area .login-form {
        padding-inline-start: 48px;
    }
}

/* ---------- Password input with an eye button (login and sign-up) ---------- */
.dc-password-field {
    position: relative;
    margin-bottom: 8px;
}

.global-form .dc-password-field .form-control {
    margin-bottom: 0;
    padding-inline-end: 52px;
}

/* the browser's own eye would sit beside ours */
.dc-password-field input::-ms-reveal,
.dc-password-field input::-ms-clear {
    display: none;
}

.global-form .dc-password-toggle {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
}

.global-form .dc-password-toggle:hover,
.global-form .dc-password-toggle[aria-pressed="true"] {
    color: var(--primary);
}

/* ---------- Dropdowns on the sign-up and profile forms: the same size as the inputs beside them ---------- */
.login-form .lms-md-select,
.edit_profile .lms-md-select {
    width: 100%;
    height: 58px;
    margin-bottom: 8px;
    padding-block: 14px;
    padding-inline: 22px 40px;
    border-color: var(--border-dark);
    background-color: var(--white);
    font-size: 16px;
    line-height: 28px;
    text-align: start !important;
}

.login-form .lms-md-select .list,
.edit_profile .lms-md-select .list {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    z-index: 20;
}

.login-form .lms-md-select .option,
.edit_profile .lms-md-select .option {
    line-height: 20px;
    text-align: start;
    white-space: normal;
}

/* Arabic: nice-select.css pins the arrow to the right, on top of the text */
[dir="rtl"] .login-form .lms-md-select::after,
[dir="rtl"] .edit_profile .lms-md-select::after {
    right: auto;
    left: 18px;
}

.login-form .lms-md-select.disabled,
.edit_profile .lms-md-select.disabled {
    background-color: var(--surface-alt);
    cursor: not-allowed;
}

/* ---------- Sign-up steps ---------- */
/* progress bar under the intro: numbered dots joined by a line, labels underneath */
.dc-stepper {
    display: flex;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.dc-stepper-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* the line from this dot to the previous one */
.dc-stepper-item + .dc-stepper-item::before {
    content: "";
    position: absolute;
    top: 17px;
    inset-inline-end: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: var(--border-dark);
    transition: background .2s;
}

.dc-stepper-item.is-active::before,
.dc-stepper-item.is-done::before {
    background: var(--primary);
}

.dc-stepper-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-dark);
    border-radius: 50%;
    background: var(--white);
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: background .2s, border-color .2s, color .2s;
}

.dc-stepper-dot i {
    display: none;
    font-size: 14px;
    line-height: 1;
}

.dc-stepper-label {
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
}

.dc-stepper-item.is-active .dc-stepper-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.dc-stepper-item.is-active .dc-stepper-label {
    color: var(--heading);
    font-weight: 600;
}

.dc-stepper-item.is-done .dc-stepper-dot {
    border-color: var(--primary);
    color: var(--primary);
}

.dc-stepper-item.is-done .dc-stepper-num {
    display: none;
}

.dc-stepper-item.is-done .dc-stepper-dot i {
    display: block;
}

.dc-stepper-item.is-done .dc-stepper-label {
    color: var(--text);
}

.dc-otp-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.dc-otp-row .form-control {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.dc-otp-row .eBtn {
    flex-shrink: 0;
    min-width: 52px;
    padding-block: 0;
    padding-inline: 16px;
    font-size: 13px;
}

.dc-otp-row .eBtn i {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.dc-otp-row .eBtn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.dc-otp-message {
    margin-bottom: 20px;
    font-size: 14px;
}

.dc-step-actions {
    display: flex;
    gap: 8px;
    margin-top: 25px;
}

.dc-step-actions .eBtn {
    flex: 1;
}

.dc-step-back,
.dc-step-back:hover {
    background: var(--surface-alt);
    color: var(--heading);
}

/* Registration: keep a readable form width through tablet and desktop breakpoints. */
.dc-register-area {
    margin-top: clamp(24px, 4vw, 56px);
    padding-bottom: clamp(48px, 6vw, 88px);
}

.dc-register-area > .container {
    --bs-gutter-x: 32px;
}

.dc-register-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4vw, 64px);
}

.dc-register-visual,
.dc-register-content {
    min-width: 0;
}

.dc-register-visual {
    position: sticky;
    top: 24px;
}

.dc-register-area .login-img img {
    display: block;
    height: clamp(480px, 55vw, 680px);
    max-height: calc(100svh - 48px);
    object-fit: cover;
}

.dc-register-area .login-form {
    width: 100%;
    margin-top: 0;
    padding-inline: 0;
}

.dc-register-area .form-control,
.dc-register-area .lms-md-select {
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    font-size: 16px;
}

/* Nice Select floats by default, which lets the next field's label sit beside it. */
.dc-register-area .nice-select {
    float: none;
}

.dc-register-area .nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-register-area .nice-select .list {
    inset-inline: 0;
    max-width: 100%;
    max-height: min(260px, 40svh);
    overscroll-behavior: contain;
}

.dc-register-area .form-label,
.dc-register-area .form-group small,
.dc-register-area .nice-select .option,
.dc-register-area .login-form > p {
    overflow-wrap: anywhere;
}

.dc-register-area .dc-stepper-item {
    flex: 1 1 0;
    min-width: 0;
}

.dc-register-area .dc-stepper-label {
    max-width: 100%;
    padding-inline: 4px;
    overflow-wrap: anywhere;
}

.dc-register-area .dc-otp-row .eBtn {
    min-height: 50px;
    padding: 10px 16px;
}

.dc-register-area .dc-step-actions {
    flex-wrap: wrap;
}

.dc-register-area .dc-step-actions .eBtn {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .dc-register-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        margin-inline: auto;
    }

    .dc-register-visual {
        display: none;
    }

    .dc-register-area {
        padding-bottom: 88px;
    }
}

/* These follow the base stepper rules so the smaller sizes actually take effect. */
@media (max-width: 575.98px) {
    .dc-register-area .dc-stepper {
        margin-bottom: 24px;
    }

    .dc-register-area .dc-stepper-dot {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .dc-register-area .dc-stepper-item + .dc-stepper-item::before {
        top: 15px;
        inset-inline-end: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    .dc-register-area .dc-stepper-label {
        font-size: 12px;
        line-height: 18px;
    }
}

/* ---------- Coming soon pages ---------- */
.dc-soon {
    padding-block: 120px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--body-bg) 100%);
    text-align: center;
}

.dc-soon .dc-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: var(--white);
    font-size: 30px;
}

.dc-soon .dc-lead {
    max-width: 620px;
    margin: 0 auto 32px;
}

.dc-soon .dc-hero-actions {
    justify-content: center;
}

/* ---------- Consultations and space booking ---------- */
.dc-service-hero {
    padding-block: clamp(64px, 8vw, 112px);
    overflow: hidden;
    background: linear-gradient(115deg, var(--body-bg) 0%, var(--white) 58%, var(--primary-light) 100%);
}

.dc-service-hero--space {
    background: linear-gradient(245deg, var(--body-bg) 0%, var(--white) 55%, var(--beige) 100%);
}

.dc-service-hero .dc-title {
    max-width: 610px;
    font-size: clamp(34px, 3.5vw, 52px);
}

.dc-service-hero .dc-lead {
    max-width: 600px;
    margin-bottom: 28px;
}

.dc-service-media {
    position: relative;
    isolation: isolate;
    max-width: 620px;
    margin-inline: auto;
}

.dc-service-media::before {
    position: absolute;
    z-index: -1;
    inset: 24px -20px -20px 24px;
    border-radius: 32px;
    background: var(--beige);
    content: "";
}

.dc-service-media img,
.dc-space-types-image img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.dc-service-media img {
    aspect-ratio: 5 / 4;
    border-radius: 28px;
    box-shadow: 0 24px 48px -30px color-mix(in srgb, var(--primary-dark) 55%, transparent);
}

.dc-space-media::before {
    background: var(--accent-light);
}

.dc-service-media-note {
    position: absolute;
    inset-inline-start: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 44px);
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--white) 70%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--white) 92%, transparent);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.dc-service-media-note i {
    color: var(--accent);
    font-size: 20px;
}

.dc-service-card {
    height: 100%;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 36px -32px color-mix(in srgb, var(--primary-dark) 65%, transparent);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dc-service-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 22px 42px -28px color-mix(in srgb, var(--primary-dark) 45%, transparent);
    transform: translateY(-4px);
}

.dc-service-card .dc-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 23px;
}

.dc-service-card h3 {
    margin-bottom: 12px;
    color: var(--heading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.dc-service-card p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
}

.dc-service-card--compact {
    padding: 28px;
}

.dc-service-card--compact .dc-icon {
    margin-bottom: 20px;
}

.dc-service-card--compact h3 {
    font-size: 19px;
}

.dc-process-steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dc-process-steps li {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 24px;
    border-inline-start: 3px solid var(--beige-bold);
    border-radius: 0 16px 16px 0;
    background: var(--body-bg);
}

[dir="rtl"] .dc-process-steps li {
    border-radius: 16px 0 0 16px;
}

.dc-process-steps span {
    flex: 0 0 auto;
    color: var(--beige-bold);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .04em;
}

.dc-process-steps h3 {
    margin: 0 0 7px;
    color: var(--heading);
    font-size: 19px;
    font-weight: 700;
}

.dc-process-steps p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.dc-booking-panel-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.dc-booking-panel h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(25px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.3;
}

.dc-space-types-image {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 44px -32px color-mix(in srgb, var(--primary-dark) 60%, transparent);
}

.dc-space-types-image img {
    aspect-ratio: 4 / 3;
}

.dc-check-list {
    display: grid;
    gap: 14px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

.dc-check-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--heading);
    font-size: 16px;
    font-weight: 600;
}

.dc-check-list i {
    color: var(--beige-bold);
    font-size: 19px;
}

.dc-booking-panel {
    padding-bottom: 96px;
}

.dc-booking-panel-inner {
    padding: clamp(28px, 5vw, 56px);
    border-radius: 28px;
    background: var(--beige);
}

.dc-booking-panel .dc-eyebrow {
    margin-bottom: 10px;
    color: var(--beige-bold);
    font-size: 13px;
}

.dc-booking-panel .dc-eyebrow::before {
    display: none;
}

.dc-booking-panel p {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--text-dark);
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .dc-service-hero {
        padding-block: 52px 64px;
    }

    .dc-service-media::before {
        inset: 14px -10px -10px 14px;
        border-radius: 24px;
    }

    .dc-service-media img {
        border-radius: 20px;
    }

    .dc-service-card {
        padding: 26px;
    }

    .dc-booking-panel-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-booking-panel {
        padding-bottom: 64px;
    }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) and (max-width: 1399.98px) {

    /* Scale the desktop composition together; keep its curve, columns and corner. */
    .dc-hero-stage {
        min-height: 39vw;
        padding-block: 3.2vw;
    }

    .dc-hero h1 {
        margin-bottom: 1.8vw;
        font-size: calc(2.85vw * var(--dc-text-scale, 1));
    }

    .dc-hero .dc-eyebrow {
        gap: 1vw;
        margin-bottom: 2vw;
        font-size: calc(1.4vw * var(--dc-text-scale, 1));
    }

    .dc-hero .dc-eyebrow::before,
    .dc-hero .dc-eyebrow::after {
        flex-basis: 2.7vw;
        width: 2.7vw;
    }

    .dc-hero .dc-lead {
        margin-bottom: 3.3vw;
        font-size: calc(1.4vw * var(--dc-text-scale, 1));
    }

    .dc-hero-actions {
        gap: 0.9722vw;
    }

    .dc-hero .dc-btn {
        gap: 0.5556vw;
        min-height: 3.6vw;
        padding: 1vw 2.3vw;
        font-size: calc(1.2vw * var(--dc-text-scale, 1));
        line-height: 1.6667vw;
    }

    .dc-hero-accred {
        padding-block: 1.8vw;
    }

    .dc-accred-list li {
        gap: 1vw;
        padding-inline: 2vw;
    }

    .dc-accred-list img {
        width: 8vw;
        height: 5.4vw;
    }

    .dc-accred-list li:first-child img {
        width: 4.8vw;
    }

    .dc-accred-list strong {
        font-size: calc(1.2vw * var(--dc-text-scale, 1));
    }

    .dc-accred-list span {
        margin-top: 0.2778vw;
        font-size: calc(1.15vw * var(--dc-text-scale, 1));
    }

    .dc-hero-corner {
        height: calc(75% + 4.7vw);
        padding-inline-end: 2.4vw;
        padding-bottom: 1.2vw;
    }

    .dc-hero-corner p {
        padding-bottom: 1.5vw;
        font-size: calc(1.65vw * var(--dc-text-scale, 1) * var(--dc-slogan-scale, 1));
    }

    .dc-hero-corner p::after {
        width: 2.7vw;
    }

    .dc-hero-corner-flower {
        bottom: -4vw;
        inset-inline-end: -4.75vw;
        width: 12.7vw;
    }
}

@media (max-width: 767.98px) {
    .dc-hero-content {
        width: 100%;
        max-width: 540px;
    }

    .dc-hero .container {
        padding-inline: 24px;
    }

    .dc-hero-stage {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 36px;
        min-height: 0;
        padding-block: 48px 32px;
    }

    .dc-hero .dc-lead {
        max-width: 100%;
        font-size: calc(16px * var(--dc-text-scale, 1));
        line-height: 1.6;
    }

    .dc-hero .dc-eyebrow {
        font-size: calc(13px * var(--dc-text-scale, 1));
    }

    .dc-hero .dc-btn {
        min-height: 44px;
        font-size: calc(14px * var(--dc-text-scale, 1));
    }

    .dc-hero-stage::before {
        width: 100%;
    }

    .dc-hero-media {
        position: static;
        order: 1;
        width: auto;
        margin-inline: 16px;
        border-radius: 24px;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        clip-path: none;
    }

    .dc-hero-media,
    [dir="rtl"] .dc-hero-media {
        transform: none;
    }

    [dir="rtl"] .dc-hero-media img {
        transform: scaleX(-1);
    }

    /* logos stacked in one column, the corner becomes a rounded band under them */
    .dc-accred-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-inline-end: 0;
    }

    .dc-accred-list li,
    .dc-accred-list li:first-child {
        padding-inline: 0;
    }

    .dc-accred-list img,
    .dc-accred-list li:first-child img {
        width: 76px;
        height: 60px;
    }

    .dc-accred-list strong {
        font-size: calc(16px * var(--dc-text-scale, 1));
        line-height: 1.4;
    }

    .dc-accred-list span {
        font-size: calc(14px * var(--dc-text-scale, 1));
        line-height: 1.4;
    }

    .dc-accred-list li+li {
        padding-top: 16px;
        border-inline-start: 0;
        border-top: 1px solid var(--border);
    }

    .dc-hero-corner {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .dc-section {
        padding-block: 72px;
    }

    .dc-story-media {
        margin-bottom: 40px;
    }

    .dc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-contact-body {
        padding: 32px;
    }
}

@media (max-width: 575.98px) {
    .dc-hero+section {
        padding-top: 32px;
    }

    /* hero on phones: text one step smaller, buttons full width and stacked so they never squeeze side by side */
    .dc-hero h1 {
        font-size: calc(30px * var(--dc-text-scale, 1));
    }

    .dc-hero .dc-eyebrow {
        gap: 10px;
        font-size: calc(13px * var(--dc-text-scale, 1));
    }

    .dc-hero .dc-eyebrow::before,
    .dc-hero .dc-eyebrow::after {
        width: 24px;
    }

    .dc-hero .dc-lead {
        font-size: calc(16px * var(--dc-text-scale, 1));
        margin-bottom: 24px;
    }

    .dc-hero .dc-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dc-hero .dc-btn {
        justify-content: center;
        font-size: calc(16px * var(--dc-text-scale, 1));
    }

    .dc-accred-list img {
        width: 64px;
        height: 48px;
    }
}

@media (max-width: 767.98px) {

    .dc-vm,
    .dc-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .dc-vm--creative .dc-vm-card--mission {
        margin-top: 0;
    }

    .dc-story-media::after {
        inset-inline-start: -12px;
        inset-block-start: 12px;
    }

    .dc-contact-body {
        padding: 28px 20px;
    }
}

/* ---------- Floating WhatsApp button (frontend/default/whatsapp_button.blade.php) ---------- */
/* start side: bottom-left in LTR, bottom-right in RTL; the cookie banner takes the end side */
.dc-whatsapp {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--text-dark) 25%, transparent);
    transition: transform 0.2s, background 0.2s;
}

.dc-whatsapp:hover,
.dc-whatsapp:focus-visible {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.08);
}

@media (max-width: 575.98px) {
    .dc-whatsapp {
        bottom: 16px;
        inset-inline-start: 16px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* Consultation and space-booking small-screen refinements */
.dc-service-hero .dc-eyebrow,
.dc-consultation-process .dc-eyebrow,
.dc-space-types .dc-eyebrow,
.dc-consultation-services .dc-head .dc-eyebrow,
.dc-space-features .dc-head .dc-eyebrow {
    font-size: calc(14px * var(--dc-text-scale, 1));
    line-height: 1.4;
}

.dc-service-media::before {
    inset-block: 24px -20px;
    inset-inline: 24px -20px;
}

.dc-process-steps li>div {
    min-width: 0;
}

.dc-check-list li {
    align-items: flex-start;
    line-height: 1.55;
}

/* long lines must not squeeze the check icon */
.dc-check-list i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* while the CTA sits on one row (desktop), its button keeps its width and the heading wraps instead */
.dc-booking-panel-inner .dc-btn {
    flex-shrink: 0;
}

@media (max-width: 991.98px) {

    /* The CTA copy and action have ample room at tablet widths instead of competing on one row. */
    .dc-booking-panel-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .dc-service-hero .row {
        --bs-gutter-y: 3rem;
    }

    .dc-service-hero .dc-eyebrow,
    .dc-consultation-process .dc-eyebrow,
    .dc-space-types .dc-eyebrow,
    .dc-consultation-services .dc-head .dc-eyebrow,
    .dc-space-features .dc-head .dc-eyebrow {
        gap: 7px;
        margin-bottom: 10px;
        font-size: calc(12px * var(--dc-text-scale, 1));
        letter-spacing: .06em;
    }

    .dc-service-hero .dc-eyebrow::before,
    .dc-consultation-services .dc-head .dc-eyebrow::before,
    .dc-consultation-services .dc-head .dc-eyebrow::after,
    .dc-space-features .dc-head .dc-eyebrow::before,
    .dc-space-features .dc-head .dc-eyebrow::after,
    .dc-consultation-process .dc-eyebrow::before,
    .dc-space-types .dc-eyebrow::before {
        width: 20px;
    }

    .dc-service-hero .dc-title {
        font-size: calc(31px * var(--dc-text-scale, 1));
        line-height: 1.2;
    }

    .dc-service-hero .dc-lead,
    .dc-booking-panel p {
        font-size: calc(16px * var(--dc-text-scale, 1));
        line-height: 1.65;
    }

    .dc-service-hero .dc-hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .dc-service-hero .dc-hero-actions .dc-btn,
    .dc-booking-panel-inner .dc-btn {
        justify-content: center;
        width: 100%;
        min-height: 50px;
    }

    .dc-service-media::before {
        inset-block: 14px -10px;
        inset-inline: 14px -10px;
        border-radius: 22px;
    }

    .dc-service-media-note {
        inset-inline-start: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.35;
    }

    .dc-service-media-note i {
        flex: 0 0 auto;
        font-size: 18px;
    }

    .dc-service-card,
    .dc-service-card--compact {
        padding: 24px;
    }

    .dc-service-card .dc-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 18px;
        border-radius: 14px;
        font-size: 21px;
    }

    .dc-service-card h3 {
        font-size: 19px;
    }

    .dc-process-steps {
        gap: 12px;
    }

    .dc-process-steps li {
        gap: 14px;
        padding: 20px 16px;
    }

    .dc-process-steps h3 {
        font-size: 18px;
    }

    .dc-process-steps p {
        font-size: 15px;
        line-height: 1.55;
    }

    .dc-booking-panel h2 {
        font-size: 25px;
    }

    .dc-booking-panel-inner {
        gap: 22px;
        padding: 28px 22px;
        border-radius: 22px;
    }
}

@media (max-width: 374.98px) {
    .dc-service-hero .dc-title {
        font-size: calc(28px * var(--dc-text-scale, 1));
    }

    .dc-service-media-note span {
        overflow-wrap: anywhere;
    }

    .dc-process-steps li {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* ---------- Courses page: every grid thumbnail is a 16:9 box (cards line up), whole image shown, never cropped ---------- */
.dc-course-card .courses-img {
    background-color: var(--beige);
}

.dc-course-card .courses-img img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
}

/* ---------- Student sidebar (/my-courses …): long name / email must not overflow the card ---------- */
.profile-info {
    min-width: 0;
    max-width: 100%;
}

.profile-info .name {
    display: block;
    max-width: 100%;
    margin-inline: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    cursor: default;
}

.profile-info .email {
    cursor: default;
}

.profile-info .email {
    display: block;
    max-width: 100%;
    margin-inline: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-transform: none;
}

/* ---------- Course page share row: TikTok + copy-link buttons look like the other share icons ---------- */
.dc-share-btn {
    background: none;
    border: 0;
    line-height: 1;
    cursor: pointer;
}

.color-tiktok {
    color: #010101;
}

.color-instagram {
    color: #e1306c;
}

.color-copy-link {
    color: #6b7385;
}

.dc-share-btn:hover,
.dc-share-btn:focus-visible {
    opacity: .75;
}

/* ---------- Course card: نوع الدورة badge (حضوري / عن بعد), course/delivery_mode_badge.blade.php ---------- */
.courses-img .dc-delivery-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--primary-dark) 60%, transparent);
}

.courses-img .dc-delivery-badge--remote {
    color: var(--primary);
    background: var(--beige);
}

.courses-img .dc-delivery-badge i {
    display: inline-flex;
    font-size: 13px;
}

/* ---------- Course page: "Course is full" in place of Buy / Enroll when every seat (عدد المقاعد) is taken ---------- */
.eBtn.dc-course-full {
    cursor: not-allowed;
    opacity: .6;
    pointer-events: none;
}

/* ---------- Course page (course/course_details.blade.php): a slightly wider pricing card on large screens ---------- */
@media (min-width: 992px) {
    .dc-course-main {
        width: 63%;
    }

    .dc-course-aside {
        width: 37%;
    }
}

/* Course page price: discounted and old price on one line, on the same baseline (the theme pushed the old price 30px down) */
.dc-course-price {
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
}

.dc-course-price del {
    margin: 0;
}

/* Course page card: "عن بعد" opening the remote course's link (رابط الدورة) */
.ps-side-feature .dc-course-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ps-side-feature .dc-course-link:hover {
    color: var(--primary-dark);
}

/* Course page card: the preview video in place of the banner image (course/preview_player.blade.php) */
.dc-course-video {
    width: 100%;
    background: var(--text-dark);
}

.dc-course-video video,
.dc-course-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* ---------- Course page (Requirements tab): message when a course has no prerequisites ---------- */
.dc-no-requirements {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dc-no-requirements__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* same light tint as the ✓ icons of the requirement / outcome lists */
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 20px;
}

.dc-no-requirements__icon i {
    display: inline-flex;
}

.dc-no-requirements__title {
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--black);
}

.dc-no-requirements__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    /* own colour: the course page tab inherits white text otherwise */
    color: var(--black);
}

/* ---------- Course page (About the instructor tab): instructor bio ---------- */
.dc-instructor-bio {
    white-space: pre-line;
    line-height: 1.8;
}

.dc-instructor-bio--empty {
    color: var(--black);
}

/* ---------- Home testimonials: quote mark (replaces the missing quote.svg / quate-red.svg images) ---------- */
.dc-testimonial-quote {
    font-size: 32px;
    line-height: 1;
    color: var(--primary);
    opacity: .85;
}

.dc-testimonial-quote--red {
    color: #e53935;
}
