.course-detail-shell {
    background: linear-gradient(180deg, #ffffff, #fbf5f0);
    border-radius: 24px;
    border: 1px solid rgba(161, 44, 47, 0.08);
    box-shadow: 0 22px 54px rgba(24, 32, 56, 0.08);
    overflow: hidden;
}

.course-thumb {
    position: relative;
}

.course-thumb img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.course-thumb .price span,
.course-thumb .date h6 {
    box-shadow: 0 12px 28px rgba(24, 32, 56, 0.18);
}

.course-detail-body {
    padding: 34px 32px 30px;
}

.course-detail-title {
    margin-bottom: 18px;
    color: #1d1d1d;
}

.course-content-shell {
    background: #fff;
    border-radius: 20px;
    padding: 26px 24px;
    border: 1px solid rgba(161, 44, 47, 0.07);
    box-shadow: 0 16px 38px rgba(24, 32, 56, 0.05);
}

.course-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #343434;
}

.course-intro > *:last-child,
.course-description > *:last-child {
    margin-bottom: 0;
}

.course-divider {
    margin: 24px 0;
    border-top: 1px solid #f0e5e0;
    opacity: 1;
}

.course-description {
    color: #444;
    line-height: 1.85;
}

.course-description h1,
.course-description h2,
.course-description h3,
.course-description h4 {
    color: #1d1d1d;
    margin-top: 1.5rem;
    margin-bottom: 0.85rem;
}

.course-description ul,
.course-description ol {
    padding-left: 1.25rem;
}

.course-meta-grid {
    margin-top: 28px;
    row-gap: 20px;
}

.course-meta-card {
    height: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 24px 22px;
    border: 1px solid rgba(161, 44, 47, 0.08);
    box-shadow: 0 16px 36px rgba(24, 32, 56, 0.06);
}

.course-meta-card h5 {
    margin-bottom: 12px;
    color: #1d1d1d;
}

.course-meta-card p {
    margin-bottom: 0;
    color: #4a4a4a;
    line-height: 1.75;
}

.course-actions {
    margin-top: 28px;
    background: linear-gradient(135deg, rgba(161, 44, 47, 0.07), rgba(255, 255, 255, 0.98));
    border-radius: 22px;
    padding: 22px 24px;
    border: 1px solid rgba(161, 44, 47, 0.08);
}

.share-label {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1d;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(161, 44, 47, 0.12);
    color: #a12c2f;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.share-links a:hover {
    background: #a12c2f;
    color: #fff;
}

.enroll-btn {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.enroll-btn a {
    background: linear-gradient(135deg, #a12c2f, #cf5b4a);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(161, 44, 47, 0.22);
    display: inline-block;
    transition: all 0.3s ease;
}

.enroll-btn a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(24, 32, 56, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, rgba(161, 44, 47, 0.1), rgba(248, 185, 73, 0.15));
    border-bottom: 1px solid rgba(161, 44, 47, 0.08);
}

.modal-body {
    padding: 24px;
}

.modal-body .form-control {
    min-height: 46px;
    border-radius: 12px;
    border-color: #e6d7d3;
}

.modal-body .btn-primary {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #a12c2f, #cf5b4a);
    box-shadow: 0 16px 30px rgba(161, 44, 47, 0.22);
}

@media (max-width: 768px) {
    .course-thumb img {
        height: 240px;
    }

    .course-detail-body {
        padding: 24px 18px 22px;
    }

    .course-content-shell,
    .course-meta-card,
    .course-actions {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .course-detail-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .course-intro,
    .course-description {
        font-size: 15px;
        line-height: 1.75;
    }

    .share-links {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-start;
        gap: 12px;
    }

    .share-links li {
        width: calc(50% - 6px);
    }

    .share-links a {
        width: 100%;
        min-height: 46px;
        padding: 10px 14px;
    }

    .share .share-label {
        display: block;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }

    .enroll-btn {
        width: 100%;
        justify-content: stretch;
        margin-top: 20px;
    }
}
