/* ================================================================
   DETAIL PAGES — Course / Webinar / Classroom
   Design language matches the Online Courses (online-classes) page
   ================================================================ */

/* ── Page wrapper ─────────────────────────────────────────────── */
.dp-page {
    background: #f4f7fb;
    min-height: 60vh;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.dp-hero {
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    padding: 56px 0 46px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.dp-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.dp-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.dp-hero-inner {
    position: relative;
    z-index: 1;
}

.dp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.dp-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 14px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.01em;
}

.dp-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.dp-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.dp-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dp-breadcrumb li {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-breadcrumb li::after {
    content: '›';
    color: #bbb;
}

.dp-breadcrumb li:last-child::after {
    display: none;
}

.dp-breadcrumb a {
    color: #29ab9f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.dp-breadcrumb a:hover {
    color: #1a8f85;
}

/* ── Main content area ────────────────────────────────────────── */
.dp-main {
    padding: 48px 0 64px;
    background: #f4f7fb;
}

/* ── Description card ────────────────────────────────────────── */
.dp-content-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    border: 1.5px solid #f0f0f0;
    padding: 36px 40px;
    margin-bottom: 26px;
}

.dp-content-card > h2:first-child {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d1f30;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8f5f4;
}

.dp-content-card .dp-state-tag {
    display: inline-flex;
    align-items: center;
    background: #004e6d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    gap: 6px;
}

/* ── Schedule card ────────────────────────────────────────────── */
.dp-schedule-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    border: 1.5px solid #f0f0f0;
    overflow: hidden;
    margin-bottom: 26px;
}

.dp-schedule-header {
    background: linear-gradient(135deg, #004e6d 0%, #1a6f88 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.dp-schedule-header .dp-sch-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.dp-schedule-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.dp-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.dp-schedule-table thead th {
    background: #f4f7fb;
    color: #004e6d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 13px 20px;
    border: none;
    border-bottom: 2px solid #e9ecef;
}

.dp-schedule-table tbody td {
    padding: 14px 20px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.dp-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.dp-schedule-table tbody tr:hover {
    background: #f8fffe;
}

.dp-schedule-date {
    font-weight: 700;
    color: #004e6d;
}

.dp-schedule-day {
    display: inline-flex;
    padding: 3px 10px;
    background: #e8f5f4;
    color: #1a7a72;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Info sidebar card ────────────────────────────────────────── */
.dp-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
    border: 1.5px solid #f0f0f0;
    overflow: hidden;
    margin-bottom: 16px;
    position: sticky;
    top: 80px;
}

.dp-info-header {
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    padding: 26px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dp-info-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -12%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.dp-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.dp-info-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.dp-info-price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 6px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.dp-info-body {
    padding: 0;
}

.dp-info-section-label {
    padding: 10px 24px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    border-top: 1px solid #f3f4f6;
}

.dp-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px 24px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
    transition: background 0.15s;
}

.dp-info-row:last-child {
    border-bottom: none;
}

.dp-info-row:hover {
    background: #f8fffe;
}

.dp-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 1px;
}

.dp-info-label i {
    color: #29ab9f;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.dp-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.dp-info-value a {
    color: #29ab9f;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dp-info-value a:hover {
    color: #1a8f85;
    text-decoration: underline;
}

/* Seats badges */
.dp-seats-ok {
    display: inline-block;
    padding: 3px 10px;
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
}

.dp-seats-low {
    display: inline-block;
    padding: 3px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
}

.dp-seats-none {
    display: inline-block;
    padding: 3px 10px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
}

/* ── CTA Buttons ──────────────────────────────────────────────── */
.dp-cta-wrap {
    padding: 16px 20px 20px;
    border-top: 1px solid #f3f4f6;
}

.dp-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    color: #fff !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(41, 171, 159, 0.35);
    margin-bottom: 10px;
    text-align: center;
}

.dp-btn-cart:hover {
    background: linear-gradient(135deg, #003a52 0%, #1a8f85 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(41, 171, 159, 0.5);
    transform: translateY(-2px);
}

.dp-btn-cart i {
    font-size: 16px;
    transition: transform 0.3s;
}

.dp-btn-cart:hover i {
    transform: scale(1.15);
}

.dp-btn-outofstock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: #fef2f2;
    color: #dc2626 !important;
    border: 2px solid #fecaca;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    cursor: not-allowed;
    margin-bottom: 10px;
}

.dp-btn-expired {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: #fffbeb;
    color: #92400e !important;
    border: 2px solid #fde68a;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    margin-bottom: 10px;
}

.dp-btn-registered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: #ecfdf5;
    color: #065f46 !important;
    border: 2px solid #a7f3d0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    margin-bottom: 10px;
}

.dp-guarantee-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #6b7280;
    justify-content: center;
    padding: 0 4px;
    line-height: 1.5;
}

.dp-guarantee-note i {
    color: #29ab9f;
    font-size: 13px;
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {
    .dp-info-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .dp-hero {
        padding: 40px 0 32px;
    }

    .dp-hero h1 {
        font-size: 1.75rem;
    }

    .dp-content-card {
        padding: 24px 18px;
    }

    .dp-content-card > h2:first-child {
        font-size: 1.25rem;
    }

    .dp-schedule-table thead th,
    .dp-schedule-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dp-info-price {
        font-size: 2rem;
    }

    .dp-cta-wrap {
        padding: 14px 16px 18px;
    }

    .dp-btn-cart {
        font-size: 15px;
        padding: 13px 16px;
    }
}
