﻿body {
    font-family: "Plus Jakarta Sans", sans-serif;
}
:root {
    --dc-btn-radius: 0.72rem;
}

.dc-site-logo img {
    max-height: 44px;
    width: auto;
}

.dc-entry-content p,
.dc-entry-content ul,
.dc-entry-content ol {
    margin-bottom: 1rem;
}

.dc-entry-content h2,
.dc-entry-content h3,
.dc-entry-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.dc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-mega-wrap {
    position: relative;
}

.dc-mega-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}

.dc-mega-menu {
    display: none;
    z-index: 30;
}

.dc-mega-wrap.is-open .dc-mega-menu,
.dc-mega-wrap:focus-within .dc-mega-menu {
    display: block;
}

.dc-catalog-trigger {
    min-height: 2.2rem;
}

.dc-grid-icon {
    width: 18px;
    height: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.dc-grid-icon i {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
    box-sizing: border-box;
}

.dc-header-nav .menu {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
}

.dc-header-nav .menu li a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.dc-header-nav .menu li a .material-icons {
    font-size: 1rem;
    color: #64748b;
}

.dc-header-nav .menu li a:hover {
    color: #e51b24;
}

.dc-header .bg-primary.text-white.px-5.py-2.rounded,
.dc-header .text-primary.border.border-primary.px-5.py-2.rounded,
.dc-filter-btn,
.dc-catalog-filter-toggle,
.dc-mobile-auth-login,
.dc-mobile-auth-register,
.dc-profile-public-link,
.dc-woo-page .wc-block-components-button,
.dc-woo-page .wc-block-components-checkout-place-order-button,
.dc-woo-page .wp-element-button.wc-block-components-button {
    border-radius: var(--dc-btn-radius) !important;
}

.dc-header-main {
    min-width: 0;
}

.dc-search-wrap {
    width: clamp(210px, 24vw, 320px);
}

@media (min-width: 1024px) and (max-width: 1240px) {
    .dc-header-nav .menu {
        gap: 0.45rem;
    }

    .dc-header-nav .menu li a {
        font-size: 0.84rem;
    }

    .dc-header-nav .menu li a .material-icons {
        display: none;
    }

    .dc-search-wrap {
        width: clamp(170px, 20vw, 240px);
    }
}

.dc-mega-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    border: 1px solid #f0f0f0;
    border-radius: 0.75rem;
    padding: 0.7rem;
    transition: all 0.2s ease;
}

.dc-mega-item:hover {
    border-color: #e51b24;
    background: #fff3f3;
}

.dc-mega-item span {
    display: block;
}

.dc-mega-item small {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.dc-mega-term-image {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    flex: 0 0 auto;
}

.dc-search-wrap {
    position: relative;
}

.dc-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    max-height: 380px;
    overflow: auto;
    z-index: 40;
}

.dc-search-results.hidden {
    display: none;
}

.dc-search-item {
    display: block;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.dc-search-item:last-child {
    border-bottom: 0;
}

.dc-search-item:hover {
    background: #f8fafc;
}

.dc-search-item strong {
    display: block;
    font-size: 0.9rem;
}

.dc-search-item span {
    display: flex;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 0.76rem;
    margin-top: 0.15rem;
}

.dc-home-cat {
    position: relative;
}

.dc-home-cat-track {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.dc-home-cat-item {
    min-height: 128px;
}

.dc-home-cat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.dc-home-cat-nav.is-prev {
    left: -14px;
}

.dc-home-cat-nav.is-next {
    right: -14px;
}

.dc-home-cat.is-carousel-desktop .dc-home-cat-track {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 2px 6px;
}

.dc-home-cat.is-carousel-desktop .dc-home-cat-track::-webkit-scrollbar {
    display: none;
}

.dc-home-cat.is-carousel-desktop .dc-home-cat-item {
    flex: 0 0 calc((100% - 5 * 14px) / 6);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (max-width: 1023px) {
    .dc-home-cat-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .dc-home-cat-item {
        min-height: 104px;
    }

    .dc-home-cat.is-carousel-mobile .dc-home-cat-track {
        display: flex !important;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: 0 2px 6px;
    }

    .dc-home-cat.is-carousel-mobile .dc-home-cat-track::-webkit-scrollbar {
        display: none;
    }

    .dc-home-cat.is-carousel-mobile .dc-home-cat-item {
        flex-basis: calc((100% - 2 * 10px) / 3);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .dc-home-cat-nav {
        display: none;
    }
}

.dc-mobile-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #fff;
}

.dc-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
}

.dc-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.25s ease;
    border: 0;
    width: 100%;
}

.dc-mobile-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: min(86vw, 350px);
    height: 100%;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.2);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
}

.dc-mobile-drawer.is-open {
    pointer-events: auto;
}

.dc-mobile-drawer.is-open .dc-mobile-backdrop {
    opacity: 1;
}

.dc-mobile-drawer.is-open .dc-mobile-panel {
    transform: translateX(0);
}

.dc-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
}

.dc-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-mobile-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.dc-mobile-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b75cff 0%, #7c3aed 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-mobile-brand-text strong {
    display: block;
    color: #7c3aed;
    font-size: 1.05rem;
    line-height: 1.05;
}

.dc-mobile-brand-text small {
    display: block;
    color: #8b5cf6;
    font-size: 0.82rem;
    line-height: 1.25;
    margin-top: 2px;
    max-width: 130px;
}

.dc-mobile-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-mobile-nav {
    padding: 8px 14px 10px;
    display: grid;
    gap: 2px;
}

.dc-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    border-radius: 12px;
    padding: 0 12px;
    color: #475569;
    font-weight: 700;
    font-size: 1.05rem;
}

.dc-mobile-nav a:hover {
    background: #f8fafc;
}

.dc-mobile-nav a .material-icons {
    font-size: 21px;
    color: #64748b;
}

.dc-mobile-footer {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding: 16px 16px 24px;
}

.dc-mobile-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dc-mobile-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.dc-mobile-user strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.1;
}

.dc-mobile-user small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.84rem;
}

.dc-mobile-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-weight: 700;
}

.dc-mobile-auth {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.dc-mobile-auth-login,
.dc-mobile-auth-register {
    min-height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
}

.dc-mobile-auth-login {
    background: #0f172a;
    color: #fff;
}

.dc-mobile-auth-register {
    border: 1px solid #e51b24;
    color: #e51b24;
}

body.dc-lock-scroll {
    overflow: hidden;
}

.dc-auth-page {
    background: radial-gradient(circle at 15% 15%, #ffe7e8 0, #f8fafc 38%, #f8fafc 100%);
    padding: 3.25rem 1rem;
}

.dc-auth-shell {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: 1.25rem;
    align-items: stretch;
}

.dc-auth-hero {
    border-radius: 1.2rem;
    border: 1px solid #e5e7eb;
    background:
        radial-gradient(circle at 85% 12%, rgba(229, 27, 36, 0.11) 0, transparent 38%),
        linear-gradient(145deg, #ffffff 0%, #fff6f6 100%);
    padding: 2rem;
}

.dc-auth-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #ffd5d8;
    color: #e51b24;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.38rem 0.72rem;
    margin-bottom: 1rem;
}

.dc-auth-hero h1 {
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.dc-auth-hero p {
    margin-top: 0.85rem;
    margin-bottom: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 560px;
}

.dc-auth-card {
    border-radius: 1.2rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.dc-auth-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.dc-auth-card > p {
    color: #64748b;
    margin-top: 0.6rem;
    margin-bottom: 1rem;
}

.dc-auth-form {
    margin-top: 0.2rem;
}

.dc-auth-field {
    margin-bottom: 0.82rem;
}

.dc-auth-field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.34rem;
}

.dc-auth-field input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.68rem;
    min-height: 2.8rem;
    padding: 0.64rem 0.84rem;
    outline: none;
    font-size: 0.95rem;
}

.dc-auth-field input:focus {
    border-color: #e51b24;
    box-shadow: 0 0 0 3px rgba(229, 27, 36, 0.14);
}

.dc-auth-row {
    margin-top: -0.15rem;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    font-size: 0.9rem;
}

.dc-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #475569;
}

.dc-auth-check input {
    accent-color: #e51b24;
}

.dc-auth-row a,
.dc-auth-footnote a {
    color: #e51b24;
    font-weight: 700;
}

.dc-auth-row a:hover,
.dc-auth-footnote a:hover {
    color: #c1141c;
}

.dc-auth-btn {
    width: 100%;
    border: 0;
    border-radius: 0.74rem;
    background: linear-gradient(135deg, #f11f2a 0%, #d90f18 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.dc-auth-btn:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(229, 27, 36, 0.22);
}

.dc-auth-footnote {
    margin: 0.95rem 0 0;
    font-size: 0.92rem;
    color: #64748b;
    text-align: center;
}

.dc-auth-msg {
    border-radius: 0.6rem;
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.dc-auth-msg.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.dc-auth-msg.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

@media (max-width: 991px) {
    .dc-auth-page {
        padding: 2rem 0.9rem;
    }

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

    .dc-auth-hero,
    .dc-auth-card {
        padding: 1.2rem;
    }

    .dc-auth-hero h1 {
        font-size: 1.85rem;
    }
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    margin: 0 0.15rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.page-numbers.current,
.page-numbers:hover {
    background: #e51b24;
    color: #fff;
    border-color: #e51b24;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list .comment {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.dc-user-menu summary::-webkit-details-marker {
    display: none;
}

.dc-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.34rem 0.5rem 0.34rem 0.34rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    min-width: 180px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dc-user-menu[open] .dc-user-chip,
.dc-user-chip:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

.dc-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.dc-user-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #111827;
    max-width: 128px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-user-chevron {
    font-size: 1.05rem;
    color: #6b7280;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.dc-user-menu[open] .dc-user-chevron {
    transform: rotate(180deg);
}

.dc-user-dropdown {
    width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    padding: 0.45rem;
    z-index: 60;
}

.dc-user-dropdown-item {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    border-radius: 0.66rem;
    padding: 0.58rem 0.65rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dc-user-dropdown-item:hover {
    background: #f3f4f6;
}

.dc-user-dropdown-item-danger {
    color: #b91c1c;
}

.dc-user-dropdown-item-danger:hover {
    background: #fef2f2;
}

.dc-user-mobile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.2rem;
}

/* Fallback grid layouts for home sections in case utility classes are cached/missing. */
.dc-featured-grid,
.dc-instructor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: stretch;
    align-items: stretch;
    justify-content: start;
}

@media (min-width: 640px) {
    .dc-instructor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .dc-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dc-featured-grid,
    .dc-instructor-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dc-featured-grid > article,
.dc-instructor-grid > article {
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
}

.dc-featured-grid > *,
.dc-instructor-grid > * {
    width: 100%;
    margin: 0;
    justify-self: stretch;
}

.dc-catalog-page {
    min-height: 70vh;
}

.dc-catalog-header {
    margin-bottom: 1.25rem;
}

.dc-catalog-title {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.dc-catalog-subtitle {
    margin-top: 0.45rem;
    color: #6b7280;
    max-width: 48rem;
}

.dc-catalog-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    color: #6b7280;
    margin-bottom: 0.55rem;
}

.dc-catalog-breadcrumb a:hover {
    color: #e51b24;
}

.dc-catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.dc-catalog-sidebar {
    order: 2;
}

.dc-catalog-main {
    order: 1;
}

.dc-catalog-mobile-actions {
    margin-bottom: 0.8rem;
}

.dc-catalog-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.35rem;
    border-radius: 0.65rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0 0.8rem;
}

.dc-catalog-filter-toggle .material-icons {
    font-size: 1rem;
}

.dc-catalog-filter-backdrop {
    display: none;
}

.dc-filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.dc-filter-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.dc-filter-close {
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.55rem;
    background: #fff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.dc-filter-reset {
    font-size: 0.8rem;
    color: #e51b24;
    font-weight: 600;
}

.dc-filter-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #374151;
    margin: 0.85rem 0 0.4rem;
}

.dc-filter-input,
.dc-filter-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.7rem;
    background: #fff;
    font-size: 0.88rem;
    padding: 0.62rem 0.72rem;
    outline: none;
}

.dc-filter-input:focus,
.dc-filter-select:focus {
    border-color: #e51b24;
    box-shadow: 0 0 0 3px rgba(229, 27, 36, 0.12);
}

.dc-filter-radio-wrap {
    display: grid;
    gap: 0.45rem;
}

.dc-filter-radio {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #374151;
}

.dc-filter-btn {
    margin-top: 1rem;
    width: 100%;
    border: 0;
    border-radius: 0.7rem;
    background: #e51b24;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.72rem 0.9rem;
    cursor: pointer;
}

.dc-filter-btn:hover {
    background: #c1141c;
}

.dc-term-lock {
    border: 1px dashed #fca5a5;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 0.65rem;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.55rem 0.6rem;
}

.dc-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dc-category-link {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
}

.dc-category-link:hover,
.dc-category-link.is-active {
    border-color: #e51b24;
    color: #e51b24;
    background: #fef2f2;
}

.dc-catalog-toolbar {
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.dc-catalog-count {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
}

.dc-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-sort-wrap label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #374151;
}

.dc-sort-select {
    border: 1px solid #d1d5db;
    border-radius: 0.6rem;
    background: #fff;
    min-width: 170px;
    padding: 0.5rem 0.65rem;
    font-size: 0.84rem;
    outline: none;
}

.dc-sort-select:focus {
    border-color: #e51b24;
    box-shadow: 0 0 0 3px rgba(229, 27, 36, 0.12);
}

.dc-catalog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dc-catalog-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 0.76rem;
    color: #4b5563;
}

.dc-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dc-catalog-grid > * {
    width: 100%;
    margin: 0;
}

.dc-catalog-main .page-numbers {
    background: #fff;
}

.dc-catalog-main .page-numbers.current,
.dc-catalog-main .page-numbers:hover {
    background: #e51b24;
}

.dc-catalog-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dc-page-link {
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
}

.dc-page-link:hover,
.dc-page-link.is-current {
    background: #e51b24;
    border-color: #e51b24;
    color: #fff;
}

.dc-course-card {
    height: 100%;
}

.dc-course-card-udemy {
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dc-course-card-udemy:hover {
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
    transform: translateY(-2px);
}

.dc-course-thumb {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.dc-course-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 170px;
}

.dc-course-title {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem;
}

.dc-course-instructor {
    margin: 0;
    font-size: 0.84rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dc-course-duration {
    margin: 0;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dc-course-duration .material-icons {
    font-size: 1rem;
    color: #6b7280;
}

.dc-course-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    color: #4b5563;
    font-size: 0.8rem;
}

.dc-course-rating,
.dc-course-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.dc-course-rating .material-icons {
    font-size: 1rem;
    color: #f59e0b;
}

.dc-course-rating-value {
    font-weight: 700;
    color: #111827;
}

.dc-course-rating-count {
    color: #6b7280;
}

.dc-course-stat .material-icons {
    font-size: 1rem;
    color: #6b7280;
}

.dc-course-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dc-course-footer.is-enrolled {
    justify-content: flex-end;
}

.dc-course-price {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 800;
    color: #111827;
}

.dc-course-price-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    line-height: 1.1;
}

.dc-course-price-original {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1;
}

.dc-course-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #e51b24;
    background: #fff;
    color: #e51b24;
    transition: all 0.2s ease;
}

.dc-course-cart-btn:hover {
    background: #e51b24;
    color: #fff;
}

.dc-course-cart-btn .material-icons {
    font-size: 1rem;
}

.dc-course-cart-btn.is-enrolled {
    border-color: #111827;
    color: #111827;
    width: 100%;
    min-width: 6.4rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    padding: 0 0.7rem;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.dc-course-cart-btn.is-enrolled:hover {
    background: #111827;
    color: #fff;
}

@media (max-width: 767px) {
    .dc-course-body {
        min-height: 0;
    }
}

@media (max-width: 1023px) {
    .dc-catalog-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: min(88vw, 360px);
        height: 100dvh;
        z-index: 98;
        transform: translateX(104%);
        transition: transform 0.24s ease;
        margin: 0;
        order: 0;
    }

    .dc-catalog-sidebar .dc-filter-card {
        height: 100%;
        margin: 0;
        border-radius: 0;
        border: 0;
        padding: 1rem;
        box-shadow: none;
        overflow: auto;
    }

    .dc-catalog-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 97;
        border: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        display: block;
    }

    .dc-catalog-page.is-filter-open .dc-catalog-filter-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .dc-catalog-page.is-filter-open .dc-catalog-sidebar {
        transform: translateX(0);
    }
}

@media (min-width: 768px) {
    .dc-catalog-layout {
        grid-template-columns: minmax(260px, 0.85fr) minmax(0, 2fr);
        gap: 1.35rem;
        align-items: start;
    }

    .dc-catalog-sidebar {
        order: 1;
        position: sticky;
        top: 88px;
    }

    .dc-catalog-main {
        order: 2;
    }

    .dc-catalog-mobile-actions {
        display: none;
    }

    .dc-filter-close {
        display: none;
    }

    .dc-filter-card {
        padding: 1.15rem;
    }

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

@media (min-width: 1280px) {
    .dc-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }
}

.dc-catalog-page.is-loading .dc-catalog-main {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* WooCommerce: Cart / Checkout / Account */
.dc-woo-page .woocommerce-notices-wrapper > * {
    border-radius: 0.75rem;
}

.dc-woo-page .woocommerce-info,
.dc-woo-page .woocommerce-message {
    border-top-color: #e51b24;
}

.dc-woo-page .woocommerce-error {
    border-top-color: #dc2626;
}

.dc-woo-page .woocommerce table.shop_table {
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.dc-woo-page .woocommerce table.shop_table th,
.dc-woo-page .woocommerce table.shop_table td {
    border-color: #eef2f7;
    padding: 0.9rem 0.85rem;
}

.dc-woo-page .woocommerce table.shop_table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #4b5563;
    background: #f9fafb;
}

.dc-woo-page .woocommerce table.shop_table td.product-name a {
    color: #111827;
    font-weight: 600;
}

.dc-woo-page .woocommerce table.shop_table td.product-name a:hover {
    color: #e51b24;
}

.dc-woo-page .woocommerce .quantity .qty {
    border: 1px solid #d1d5db;
    border-radius: 0.55rem;
    min-height: 2.15rem;
}

.dc-woo-page .woocommerce .actions .coupon {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.dc-woo-page .woocommerce .actions .coupon .input-text {
    border: 1px solid #d1d5db;
    border-radius: 0.6rem;
    padding: 0.6rem 0.75rem;
    min-width: 210px;
}

.dc-woo-page .woocommerce a.button,
.dc-woo-page .woocommerce button.button,
.dc-woo-page .woocommerce input.button,
.dc-woo-page .woocommerce #payment #place_order {
    background: #e51b24;
    color: #fff;
    border-radius: 0.6rem;
    font-weight: 700;
    border: 0;
    padding: 0.68rem 1rem;
}

.dc-woo-page .woocommerce a.button:hover,
.dc-woo-page .woocommerce button.button:hover,
.dc-woo-page .woocommerce input.button:hover,
.dc-woo-page .woocommerce #payment #place_order:hover {
    background: #c1141c;
    color: #fff;
}

.dc-woo-page .woocommerce .cart-collaterals .cart_totals,
.dc-woo-page .woocommerce .checkout_coupon,
.dc-woo-page .woocommerce form.woocommerce-checkout .woocommerce-billing-fields,
.dc-woo-page .woocommerce form.woocommerce-checkout .woocommerce-shipping-fields,
.dc-woo-page .woocommerce form.woocommerce-checkout .woocommerce-additional-fields,
.dc-woo-page .woocommerce form.woocommerce-checkout #order_review {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
}

.dc-woo-page .woocommerce .cart-collaterals .cart_totals h2,
.dc-woo-page .woocommerce form.woocommerce-checkout h3,
.dc-woo-page .woocommerce form.woocommerce-checkout h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.9rem;
}

.dc-woo-page .woocommerce form .form-row input.input-text,
.dc-woo-page .woocommerce form .form-row textarea,
.dc-woo-page .woocommerce form .form-row select {
    border: 1px solid #d1d5db;
    border-radius: 0.65rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.75rem;
}

.dc-woo-page .woocommerce form .form-row input.input-text:focus,
.dc-woo-page .woocommerce form .form-row textarea:focus,
.dc-woo-page .woocommerce form .form-row select:focus {
    border-color: #e51b24;
    box-shadow: 0 0 0 3px rgba(229, 27, 36, 0.14);
    outline: none;
}

.dc-woo-page .woocommerce-checkout #payment {
    border-radius: 0.85rem;
}

.dc-woo-page .woocommerce-checkout #payment div.payment_box {
    border-radius: 0.75rem;
}

.dc-woo-page .woocommerce form.woocommerce-checkout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 992px) {
    .dc-woo-page .woocommerce form.woocommerce-checkout {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
        align-items: start;
    }

    .dc-woo-page .woocommerce form.woocommerce-checkout > .col2-set {
        grid-column: 1;
    }

    .dc-woo-page .woocommerce form.woocommerce-checkout > h3,
    .dc-woo-page .woocommerce form.woocommerce-checkout > #order_review {
        grid-column: 2;
    }
}

/* WooCommerce Blocks (Cart / Checkout Blocks) */
.dc-woo-page .wp-block-woocommerce-cart,
.dc-woo-page .wp-block-woocommerce-checkout {
    --wp--preset--color--accent: #e51b24;
}

.dc-woo-page .wc-block-components-notice-banner,
.dc-woo-page .wc-block-components-notice-banner.is-info,
.dc-woo-page .wc-block-components-notice-banner.is-success {
    border-radius: 0.75rem;
    border-color: #e51b24;
}

.dc-woo-page .wc-block-components-product-name,
.dc-woo-page .wc-block-components-product-name a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.dc-woo-page .wc-block-components-product-name a:hover {
    color: #e51b24;
}

.dc-woo-page .wc-block-cart-items,
.dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-main,
.dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.dc-woo-page .wc-block-components-order-summary,
.dc-woo-page .wc-block-checkout__form,
.dc-woo-page .wc-block-cart__submit-container {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}

.dc-woo-page .wc-block-components-order-summary {
    padding: 0.8rem;
}

.dc-woo-page .wc-block-cart-items {
    overflow: hidden;
}

.dc-woo-page .wc-block-cart-item__wrap,
.dc-woo-page .wc-block-components-order-summary-item {
    padding: 0.85rem;
}

.dc-woo-page .wc-block-components-text-input input,
.dc-woo-page .wc-block-components-form .wc-block-components-text-input input,
.dc-woo-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.dc-woo-page .wc-block-components-form .wc-block-components-textarea textarea,
.dc-woo-page .wc-block-components-select select {
    border: 1px solid #d1d5db;
    border-radius: 0.65rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.75rem;
    box-shadow: none;
}

.dc-woo-page .wc-block-components-text-input input:focus,
.dc-woo-page .wc-block-components-form .wc-block-components-text-input input:focus,
.dc-woo-page .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.dc-woo-page .wc-block-components-form .wc-block-components-textarea textarea:focus,
.dc-woo-page .wc-block-components-select select:focus {
    border-color: #e51b24;
    box-shadow: 0 0 0 3px rgba(229, 27, 36, 0.14);
    outline: none;
}

.dc-woo-page .wc-block-components-button,
.dc-woo-page .wc-block-components-checkout-place-order-button,
.dc-woo-page .wp-element-button.wc-block-components-button {
    border-radius: 0.65rem;
    background: #e51b24;
    color: #fff;
    font-weight: 700;
    border: 0;
}

.dc-woo-page .wc-block-components-button:hover,
.dc-woo-page .wc-block-components-checkout-place-order-button:hover,
.dc-woo-page .wp-element-button.wc-block-components-button:hover {
    background: #c1141c;
    color: #fff;
}

.dc-woo-page .wc-block-components-totals-wrapper,
.dc-woo-page .wc-block-components-totals-item,
.dc-woo-page .wc-block-components-order-summary-item {
    border-color: #eef2f7;
}

/* Woo Blocks polishing overrides */
.dc-woo-page {
    background: #f8fafc;
}

.dc-woo-page .dc-woo-shell {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.dc-woo-page .wp-block-woocommerce-cart,
.dc-woo-page .wp-block-woocommerce-checkout {
    margin: 0;
}

.dc-woo-page .wc-block-components-sidebar-layout {
    gap: 1.1rem;
    align-items: start;
}

.dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-main,
.dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .dc-woo-page .wc-block-components-sidebar-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
        gap: 1.1rem;
        align-items: start;
    }

    .dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-main {
        width: auto !important;
        min-width: 0 !important;
    }

    .dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        position: sticky;
        top: 96px;
    }
}

.dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-main {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.dc-woo-page .wc-block-components-title,
.dc-woo-page .wc-block-components-checkout-step__heading h2,
.dc-woo-page .wc-block-components-checkout-order-summary__title {
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.dc-woo-page .wc-block-cart-item__image img,
.dc-woo-page .wc-block-components-order-summary-item__image img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 0.65rem;
    border: 1px solid #e5e7eb;
}

.dc-woo-page .wc-block-cart-item__product .wc-block-components-product-name,
.dc-woo-page .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
}

.dc-woo-page .wc-block-components-order-summary-item__image {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
}

.dc-woo-page .wc-block-components-order-summary-item__image > img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
}

/* Chỉ giữ 1 giá ở cột phải trong block "Tóm tắt đơn hàng" */
.dc-woo-page .wc-block-components-order-summary-item__description .wc-block-components-product-price,
.dc-woo-page .wc-block-components-order-summary-item__description del {
    display: none !important;
}

.dc-woo-page .wc-block-cart-item__prices,
.dc-woo-page .wc-block-components-product-price {
    font-size: 0.95rem;
}

.dc-woo-page .wc-block-components-quantity-selector {
    border: 1px solid #d1d5db;
    border-radius: 0.55rem;
    overflow: hidden;
}

.dc-woo-page .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    min-height: 2.2rem;
    border: 0;
}

.dc-woo-page .wc-block-components-text-input,
.dc-woo-page .wc-block-components-combobox,
.dc-woo-page .wc-block-components-textarea {
    margin-bottom: 0.85rem;
}

.dc-woo-page .wc-block-components-shipping-rates-control,
.dc-woo-page .wc-block-components-shipping-address {
    margin-bottom: 0.8rem;
}

.dc-woo-page .wc-block-components-checkout-step {
    margin-bottom: 1rem;
    border: 1px solid #eef2f7;
    border-radius: 0.9rem;
    padding: 0.8rem;
}

.dc-woo-page .wc-block-components-checkout-step:last-child {
    margin-bottom: 0;
}

.dc-woo-page .wc-block-components-totals-coupon,
.dc-woo-page .wc-block-components-order-summary-item,
.dc-woo-page .wc-block-components-totals-item {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.dc-woo-page .wc-block-components-checkout-place-order-button,
.dc-woo-page .wc-block-cart__submit-button {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

@media (max-width: 991px) {
    .dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-main,
    .dc-woo-page .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        padding: 0.85rem;
    }

    .dc-woo-page .wc-block-components-title,
    .dc-woo-page .wc-block-components-checkout-step__heading h2,
    .dc-woo-page .wc-block-components-checkout-order-summary__title {
        font-size: 1.35rem;
    }
}

.dc-mobile-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.dc-mobile-toolbar-item {
    min-height: 48px;
    border: 0;
    background: transparent;
    color: #475569;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.72rem;
    font-weight: 600;
}

.dc-mobile-toolbar-item .material-icons {
    font-size: 1.25rem;
    line-height: 1;
}

.dc-mobile-cats {
    position: fixed;
    inset: 0;
    z-index: 95;
    pointer-events: none;
}

.dc-mobile-cats-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dc-mobile-cats-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 72vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.2);
    transform: translateY(102%);
    transition: transform 0.25s ease;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

.dc-mobile-cats.is-open {
    pointer-events: auto;
}

.dc-mobile-cats.is-open .dc-mobile-cats-backdrop {
    opacity: 1;
}

.dc-mobile-cats.is-open .dc-mobile-cats-panel {
    transform: translateY(0);
}

.dc-mobile-cats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dc-mobile-cats-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.dc-mobile-cats-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 0;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-mobile-cats-list {
    overflow: auto;
    display: grid;
    gap: 8px;
}

.dc-mobile-cats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    color: #0f172a;
    font-weight: 600;
    background: #fff;
}

.dc-mobile-cats-item img {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    object-fit: cover;
}

.dc-mobile-cats-item .material-icons {
    font-size: 20px;
    color: #e51b24;
}

.dc-instructors-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.dc-instructors-title {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    line-height: 1.18;
    font-weight: 800;
    color: #0f172a;
}

.dc-instructors-subtitle {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 1rem;
}

.dc-instructors-search-wrap {
    width: min(320px, 100%);
    min-height: 2.9rem;
    border: 1px solid #dbe2ea;
    border-radius: 0.82rem;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.8rem;
}

.dc-instructors-search-wrap .material-icons {
    font-size: 1.1rem;
    color: #94a3b8;
}

.dc-instructors-search-wrap input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    color: #334155;
}

.dc-instructors-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.dc-instructor-card-v2 {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.dc-instructor-card-link {
    display: block;
    padding: 1.35rem 1rem 1rem;
    text-align: center;
}

.dc-instructor-avatar-ring {
    width: 118px;
    height: 118px;
    border-radius: 9999px;
    border: 4px solid #e8dcfb;
    padding: 4px;
    margin: 0 auto 0.85rem;
    overflow: hidden;
}

.dc-instructor-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
}

.dc-instructor-name {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
}

.dc-instructor-role {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
    min-height: 1.4rem;
}

.dc-instructor-stats {
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dc-instructor-stats > div {
    padding: 0 0.2rem;
    border-right: 1px solid #e2e8f0;
}

.dc-instructor-stats > div:last-child {
    border-right: 0;
}

.dc-instructor-stats strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.dc-instructor-stats span {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
}

@media (min-width: 640px) {
    .dc-instructors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dc-instructors-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dc-instructors-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dc-instructors-search-wrap {
        width: 100%;
    }
}

.dc-profile-page {
    display: grid;
    gap: 1.2rem;
}

.dc-profile-hero {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dc-profile-cover {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.dc-profile-head {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0 1.1rem;
    margin-top: -52px;
}

.dc-profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 9999px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
}

.dc-profile-main h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    font-weight: 800;
}

.dc-profile-main p {
    margin: 0.25rem 0 0;
    color: #64748b;
}

.dc-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.45rem;
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 600;
}

.dc-profile-public-link {
    min-height: 2.35rem;
    border-radius: 0.7rem;
    border: 1px solid #d1d5db;
    padding: 0 0.8rem;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}

.dc-profile-bio {
    padding: 1rem 1.1rem 1.15rem;
}

.dc-profile-bio h3 {
    margin: 0 0 0.2rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
}

.dc-profile-bio p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.dc-profile-edit {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

.dc-profile-edit-form {
    display: grid;
    gap: 0.85rem;
}

.dc-profile-courses {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

.dc-profile-courses-head h2 {
    margin: 0 0 0.9rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}

@media (max-width: 1023px) {
    .dc-profile-head {
        grid-template-columns: 86px minmax(0, 1fr);
        grid-template-areas:
            "avatar main"
            "link link";
        margin-top: -40px;
    }

    .dc-profile-avatar {
        width: 82px;
        height: 82px;
    }

    .dc-profile-main {
        grid-area: main;
    }

    .dc-profile-public-link {
        grid-area: link;
        justify-self: start;
    }
}

@media (max-width: 1023px) {
    body {
        padding-bottom: 74px;
    }
}


