/* Course Container */
.course-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.course-hero {
    position: relative;
    background: linear-gradient(135deg, #77cbfc 0%, #5ba8c7 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.course-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(118, 216, 255, 0.308), rgba(90, 148, 255, 0.301));
}

.course-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: white;
}

.course-hero:not(:has(.course-hero-image)) .course-hero-content {
    background: linear-gradient(135deg, #77cbfc 0%, #5ba8c7 100%);
}

.course-meta-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-status {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-default {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-programming {
    background: rgba(198, 156, 50, 0.41);
    color: #f09c0c;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.status-ongoing {
    background: rgba(34, 105, 197, 0.2);
    color: #223bc5;
    border: 2px solid rgba(34, 59, 197, 0.3);
}

.status-starting {
    background: rgba(73, 201, 73, 0.349);
    color: #038509;
    border: 2px solid rgba(99, 241, 99, 0.3);
}

.status-finished {
    background: rgba(236, 97, 97, 0.2);
    color: #c21c1c;
    border: 2px solid rgba(192, 127, 127, 0.3);
}

.course-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 8px 0;
}

.course-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Info Cards Grid */
.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.info-card .info-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.info-content {
    display: flex;
    flex-direction: column;
}

/* Definizione lista: griglia 2 colonne */
.info-definition-list {
    display: grid;
    grid-template-columns: 40% 60%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.info-item-dt {
    background-color: #f8fafc;
    padding: 12px 16px;
    font-weight: 600;
    color: #1f2937;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    white-space: normal;
    word-break: break-word;
}

.info-item-dd {
    padding: 12px 16px;
    margin: 0;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    white-space: normal;
    word-break: break-word;
}

/* Course Body */
.course-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.course-main-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

/* Course Content Styling */
.course-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.course-content h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem 0;
    color: #1a2530;
    border-bottom: 3px solid #77cbfc;
    padding-bottom: 0.5rem;
}

.course-content h2 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem 0;
    color: #2d3f52;
    position: relative;
}

.course-content h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #77cbfc;
    border-radius: 2px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #415d5f;
}

.course-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.course-content a {
    color: #e8491d;
}

.course-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-content ol,
.course-content ul {
    margin-left: 30px;
    margin-bottom: 1.2rem;
}

.course-content li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.course-content blockquote {
    margin: 2em 0;
    padding: 2rem;
    border-left: 5px solid #77cbfc;
    background: linear-gradient(135deg, #f8faff, #f0f4ff);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.course-content blockquote::before {
    content: "";
    font-size: 4rem;
    color: #77cbfc;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.course-content blockquote p {
    font-size: 1.2rem;
    margin: 0;
}

/* Tables */
.course-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-content table th,
.course-content table td {
    border: none;
    padding: 15px;
    text-align: left;
}

.course-content table thead th {
    background: linear-gradient(135deg, #77cbfc, #5ba8c7);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-content table tbody tr:nth-child(even) {
    background: #f8faff;
}

.course-content table tbody tr:hover {
    background: #f0f4ff;
    transition: background 0.3s ease;
}

/* Media Embeds */
.media-embed,
.responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 2rem 0;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.media-embed iframe,
.responsive-video iframe,
.responsive-video object,
.responsive-video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Sidebar */
.course-sidebar {
    position: sticky;
    top: 100px;
}

.info-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.info-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a2530;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.info-section-title .info-icon {
    font-size: 1.2rem;
}

.info-section-content {
    line-height: 1.6;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .course-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-sidebar {
        position: static;
        order: -1;
    }
    
    .info-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .course-container {
        margin-top: 80px;
        padding: 0 15px;
    }
    
    .course-hero-content {
        padding: 30px 20px;
    }
    
    .course-title {
        font-size: 2.5rem;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-definition-list {
        grid-template-columns: 1fr;
    }

    .info-item-dt {
        border-right: none;
    }
    
    .course-main-content {
        padding: 25px 20px;
    }
    
    .course-content {
        font-size: 1rem;
    }
    
    .course-content h1 {
        font-size: 2rem;
    }
    
    .course-content h2 {
        font-size: 1.75rem;
    }
    
    .course-content h3 {
        font-size: 1.3rem;
    }
    
    .course-meta-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .course-title {
        font-size: 2rem;
    }
    
    .course-hero-content {
        padding: 20px 15px;
    }
    
    .course-main-content {
        padding: 20px 15px;
    }
    
    .course-content blockquote {
        padding: 1.5rem 1rem;
    }
    
    .course-content table th,
    .course-content table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}