/* Shared styles for all course detail pages */
.course-logo {
    max-height: 50px;
}

.course-header {
    background: linear-gradient(135deg, var(--ocean-blue), var(--primary-blue));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 76px;
}

.course-header.course-header-red {
    background: linear-gradient(135deg, var(--coral-red), #d62828);
}

.course-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.course-content {
    padding: 3rem 2rem;
}

.course-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-image {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

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

.course-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
}

.course-details h3 {
    color: var(--ocean-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-item .value {
    color: var(--deep-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.price {
    color: var(--coral-red);
}

.btn-book {
    background: var(--coral-red);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background: #d62828;
    transform: translateY(-2px);
}

.btn-prices {
    background: white;
    color: var(--coral-red);
    border: 2px solid var(--coral-red);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-prices:hover {
    background: var(--coral-red);
    color: white;
}

.course-overview {
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.overview-section {
    margin-bottom: 2.5rem;
}

/* Keep legacy/plain overview markup visually aligned with class-based markup. */
.overview-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--ocean-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.overview-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.overview-section ul {
    list-style: none;
    padding: 0;
}

.overview-section ul li:not(.overview-list-item) {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.overview-section ul li:not(.overview-list-item)::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--coral-red);
}

.overview-title {
    font-family: 'Playfair Display', serif;
    color: var(--ocean-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.overview-title-red {
    font-family: 'Playfair Display', serif;
    color: var(--coral-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.overview-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.overview-list {
    list-style: none;
    padding: 0;
}

.overview-list-item {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.overview-check {
    position: absolute;
    left: 0;
    color: var(--coral-red);
}

.prerequisites-box {
    padding: 1.5rem;
    border-radius: 10px;
}

.prerequisites-box-blue {
    background: #f0f8ff;
    border-left: 4px solid var(--ocean-blue);
}

.prerequisites-box-red {
    background: #ffe8e8;
    border-left: 4px solid var(--coral-red);
}

.ready-to-start {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.ready-title {
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.btn-enroll {
    background: var(--coral-red);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-enroll:hover {
    background: #d62828;
    transform: translateY(-2px);
}

.course-footer-simple {
    margin-top: 4rem;
    background: var(--deep-blue);
    color: white;
    padding: 2rem;
    text-align: center;
}

.course-footer-extended {
    margin-top: 4rem;
    background: var(--deep-blue);
    color: white;
    padding: 3rem 2rem;
}

.footer-link-muted {
    color: #ccc;
    text-decoration: none;
}

.course-footer-offset {
    margin-top: 4rem;
}

.course-copyright-center {
    text-align: center;
}

.course-copyright-divider {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

.u-text-666 {
    color: #666;
}

.u-text-ccc {
    color: #ccc;
}

.u-list-none {
    list-style: none;
}

@media (max-width: 768px) {
    .course-main {
        grid-template-columns: 1fr;
    }

    .course-header h1 {
        font-size: 1.8rem;
    }
}
