/* ============================================
   COURSE PAGES - Shared Styles
   ============================================ */

/* Hero Banner Section */
.course-hero-section {
    position: relative;
    width: 100vw;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.course-hero-container {
    position: relative;
    height: 20rem; /* h-80 */
}

@media (min-width: 768px) {
    .course-hero-container {
        height: 24rem; /* md:h-96 */
    }
}

@media (min-width: 1024px) {
    .course-hero-container {
        height: 31.25rem; /* lg:h-[500px] */
    }
}

@media (min-width: 1280px) {
    .course-hero-container {
        height: 37.5rem; /* xl:h-[600px] */
    }
}

.course-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
}

/* About Section */
.course-about-section {
    background-color: white;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .course-about-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.course-about-container {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .course-about-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .course-about-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.course-about-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .course-about-heading {
        margin-bottom: 2rem;
    }
}

.course-about-title {
    font-weight: 700;
    display: inline-block;
    font-size: 20px;
}

.course-about-title-accent {
    color: #dc2626; /* text-red-600 */
    position: relative;
    display: inline-block;
    font-size: inherit;
}

.course-about-title-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem; /* h-2 */
    overflow: visible;
}

.course-about-title-underline path {
    stroke: #dc2626;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

/* Two Column Layout */
.course-about-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .course-about-layout {
        flex-direction: row;
        gap: 2rem;
    }
}

.course-about-image-column {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .course-about-image-column {
        width: 40%;
        justify-content: flex-start;
    }
}

.course-about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem; /* rounded-lg */
    object-fit: cover;
}

.course-about-content-column {
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .course-about-content-column {
        width: 60%;
    }
}

.course-about-paragraph {
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
}

.course-about-paragraph:last-of-type {
    margin-bottom: 1.25rem;
}

.course-about-button-container {
    text-align: left;
}

.course-about-button {
    display: inline-block;
    background-color: #dc2626; /* bg-red-600 */
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.5rem; /* px-6 py-2.5 */
    border-radius: 0.375rem; /* rounded-md */
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
}

.course-about-button:hover {
    background-color: #b91c1c; /* hover:bg-red-700 */
}

/* What You'll Learn Section */
.course-learn-section {
    background-color: white;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .course-learn-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.course-learn-container {
    max-width: 64rem; /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .course-learn-container {
        max-width: 72rem; /* lg:max-w-6xl */
    }
}

@media (min-width: 640px) {
    .course-learn-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .course-learn-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.course-learn-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .course-learn-header {
        margin-bottom: 2rem;
    }
}

.course-learn-title {
    font-weight: 700;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .course-learn-title {
        font-size: 1.875rem; /* md:text-3xl */
    }
}

.course-learn-title-accent {
    color: #dc2626; /* text-red-600 */
    position: relative;
    display: inline-block;
}

.course-learn-title-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem; /* h-2 */
    overflow: visible;
}

.course-learn-title-underline path {
    stroke: #dc2626;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

/* Course Section Spacing */
.course-section {
    background-color: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .course-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Download Syllabus Button */
.course-syllabus-button {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

/* Course FAQ Section Title */
.course-faq-section-title {
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .course-faq-section-title {
        font-size: 1.875rem; /* md:text-3xl */
        margin-bottom: 3rem; /* md:mb-12 */
    }
}

/* Course Subsection Title */
.course-subsection-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .course-subsection-title {
        font-size: 1.5rem; /* md:text-2xl */
        margin-bottom: 1.5rem; /* md:mb-6 */
    }
}

/* Course Subsection Title with Download Button */
.course-subsection-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .course-subsection-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .course-subsection-header {
        margin-bottom: 1.5rem; /* md:mb-6 */
    }
}

/* Students Doubts Section */
.course-doubts-section {
    background-color: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .course-doubts-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.course-doubts-container {
    max-width: 64rem; /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .course-doubts-container {
        max-width: 72rem; /* lg:max-w-6xl */
    }
}

@media (min-width: 640px) {
    .course-doubts-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .course-doubts-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.course-doubts-header {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .course-doubts-header {
        margin-bottom: 2.5rem; /* md:mb-10 */
    }
}

.course-doubts-title {
    font-weight: 700;
    display: inline-block;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .course-doubts-title {
        font-size: 1.875rem; /* md:text-3xl */
    }
}

.course-doubts-title-accent {
    color: #dc2626; /* text-red-600 */
    position: relative;
    display: inline-block;
}

.course-doubts-title-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem; /* h-2 */
    overflow: visible;
}

.course-doubts-title-underline path {
    stroke: #dc2626;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

