/* 
    version: 2.0
*/

/* Other page related styles */
#page-wrapper {
    height: 0% !important;
}

#page-footer {
    margin: 0 0px !important;
}


/* Modern CSS with CSS Custom Properties */
:root {
    --primary-blue: #00448a;
    --light-blue: #4278ac;
    --success-green: #28a745;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-radius: 8px;
    --shadow-subtle: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-elevated: 0 4px 12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

.course-preview-container {
    max-width: 1200px;
    margin: 70px auto 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section 1: Title and Image (80% - 20%) */
.section-1-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #cce4e3d9;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
}

.title-section {
    flex: 0 0 80%;
}

.course-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    color: #004545;
    line-height: 1.2;
}

.header-image-section {
    flex: 0 0 20%;
    padding: 1rem;
}

.header-course-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
}

/* Section 2: Image - Description - Icon (20% - 65% - 15%) */
.section-2-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    /* background: white; */
    /* border-radius: var(--border-radius); */
    /* box-shadow: var(--shadow-subtle); */
}

.content-image {
    flex: 0 0 20%;
}

.content-course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
}

.course-description {
    flex: 0 0 65%;
}

.course-description h2 {
    color: #004545;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #004545;
    padding-bottom: 1rem;
}

.description-text {
    line-height: 1.6;
    color: var(--text-dark);
}

.icon-section {
    flex: 0 0 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-icon {
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon img {
    width: 100%;
    height: auto;
}

.section-icon {
    width: 40px;
    height: 40px;
}

/* Section 3: What You Will Learn (100%) */
.section-3-learning, .section-2-5-units {
    /* background: white; */
    /* border-radius: var(--border-radius); */
    /* padding: 1rem; */
    /* box-shadow: var(--shadow-subtle); */
}

.learning-title, .units-title {
    color: #004545;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: 3px solid #004545;
    padding-bottom: 1rem;
}



.learning-content, .units-content{
    line-height: 1.6;
    line-color: #004545;

    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Section 4: Duration and Enroll Button */
.section-4-enroll {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #004545, #2a7e7e);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-elevated);
    color: white;
}

.duration-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.duration-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.duration-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.enroll-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.enrol-button {
    background: white;
    color: #004545;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
    box-shadow: var(--shadow-subtle);
}

.enrol-button:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.enrol-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.enrol-button:active {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-preview-container {
        padding: 10px;
        gap: 1rem;
    }
    
    /* Section 1 - Stack vertically on mobile */
    .section-1-header {
        flex-direction: column;
        text-align: center;
    }
    
    .title-section, .header-image-section {
        flex: 1 1 100%;
    }
    
    .header-image-section {
        padding: 0;
        max-width: 200px;
    }
    
    /* Section 2 - Stack vertically on mobile */
    .section-2-content {
        flex-direction: column;
        text-align: center;
    }
    
    .content-image, .course-description, .icon-section {
        flex: 1 1 100%;
    }
    
    .content-course-image {
        height: 150px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Section 4 - Stack vertically on mobile */
    .section-4-enroll {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .enroll-action {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .section-1-header,
    .section-2-content, 
    .section-2-5-units,
    .section-3-learning,
    .section-4-enroll {
        padding: 1rem;
    }
    
    .course-title {
        font-size: 1.5rem;
    }
    
    .learning-title, .units-title {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
