/* ============================================================
   Dentopia — Premium Polish  (loaded last; refines the theme)
   Cohesive, professional depth / motion / rhythm refinements.
   ============================================================ */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---- Course cards: softer depth, smoother lift ---- */
.course-card {
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .045);
    transition: transform .34s cubic-bezier(.2,.7,.2,1),
                box-shadow .34s cubic-bezier(.2,.7,.2,1),
                border-color .34s ease;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(15, 23, 42, .12), 0 8px 16px rgba(15, 23, 42, .05);
    border-color: rgba(62, 100, 222, .35);
}
.course-card .ds-thumb img,
.course-card .card-thumb img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.course-card:hover .ds-thumb img,
.course-card:hover .card-thumb img { transform: scale(1.05); }

/* ---- Category cards ---- */
.category-card {
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .09);
    border-color: rgba(62, 100, 222, .4);
}

/* ---- Section eyebrow as refined pill ---- */
.section-header .badge-label,
.badge-label {
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 11px;
    border-radius: 999px;
    padding: 6px 16px;
}

/* ---- Buttons: refined depth + motion ---- */
.btn-grad, .modern-btn {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(62, 100, 222, .28);
    transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease, filter .18s ease;
}
.btn-grad:hover, .modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(62, 100, 222, .38);
    filter: saturate(1.05);
}

/* ---- "View all" links -> pill buttons ---- */
.view-all-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--c-primary, #3e64de); text-decoration: none;
    padding: 11px 28px; border: 1.5px solid rgba(62, 100, 222, .32);
    border-radius: 999px;
    transition: all .24s cubic-bezier(.2,.7,.2,1);
}
.view-all-link:hover {
    background: var(--c-primary, #3e64de); color: #fff; border-color: transparent;
    box-shadow: 0 12px 26px rgba(62, 100, 222, .3); transform: translateY(-2px);
}

/* ---- Blog cards align with course cards ---- */
.blog-card {
    border: 1px solid rgba(15, 23, 42, .07) !important;
    border-radius: 20px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .045);
    transition: transform .34s cubic-bezier(.2,.7,.2,1), box-shadow .34s;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(15, 23, 42, .12); }

/* ---- Links + accessible focus ---- */
a { transition: color .18s ease; }
:focus-visible {
    outline: 2px solid var(--c-primary, #3e64de);
    outline-offset: 2px; border-radius: 4px;
}

/* ---- Selection ---- */
::selection { background: rgba(62, 100, 222, .18); }
