/* css/course-page.css */

.course-hero-section {
    background-color: #f8f1e8;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.background-pattern {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 L90 90 M90 10 L10 90" stroke="%23e88e07" stroke-width="2" fill="none" opacity="0.1"/></svg>');
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-text-content {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-text-content {
        text-align: left;
    }
}

.course-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ad5207;
    margin-bottom: 1rem;
}

.course-description {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .course-description {
        margin-left: 0;
    }
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

@media (max-width: 991px) {
    .course-features {
        align-items: center;
    }
}


.course-features li {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-features .fa-check-circle {
    color: #ad5207;
    font-size: 1.25rem;
}

.enroll-button {
    display: inline-block;
    background: linear-gradient(145deg, #f5b041, #e88e07);
    color: white;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(232, 142, 7, 0.3);
    transition: all 0.3s ease;
}

.enroll-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(232, 142, 7, 0.4);
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-content {
    background: white;
    padding: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 1rem;
}

/* --- Main Content Section Styles --- */
.course-content-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.content-block {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.content-block h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ad5207;
    margin-bottom: 1rem;
    text-align: center;
}

.content-block p, .content-block ul {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
}

.content-block ul {
    list-style: none;
    padding: 0;
}

.content-block ul li {
    background-color: #fffaf2;
    padding: 1rem 1.5rem;
    border-left: 4px solid #e88e07;
    margin-bottom: 0.75rem;
    border-radius: 0 8px 8px 0;
}

/* --- Unique Conditional Section Styles --- */
.content-block.unique-section {
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.content-block.unique-section h3 {
    font-size: 1.5rem;
    color: #ad5207;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e88e07;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-block.unique-section h3 .fas {
    margin-right: 0.75rem;
}

/* Prerequisites Section */
.prerequisites-section p {
    font-style: italic;
    color: #374151;
    font-size: 1.1rem;
}

/* Curriculum Table */
.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}
.curriculum-table th, .curriculum-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.curriculum-table th {
    background-color: #fffaf2;
    font-weight: 600;
}
.curriculum-table td:first-child {
    font-weight: 500;
    color: #ad5207;
}

/* Tutor Spotlight Section */
.tutor-spotlight-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}
.tutor-spotlight-content img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.tutor-spotlight-content h4 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: #374151;
}
.tutor-spotlight-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
@media (min-width: 768px) {
    .tutor-spotlight-content {
        flex-direction: row;
        text-align: left;
    }
}

/* Practical Application Section */
.application-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.application-item {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
}
.application-item h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}
.application-item p {
    margin: 0;
    line-height: 1.5;
}

@media(min-width: 768px) {
    .application-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --- FAQ Section Styles --- */
.faq-section {
    padding: 4rem 1rem;
    background-color: #fffaf2;
}
.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #ad5207;
    margin-bottom: 2.5rem;
}
.grid-container-faq { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: 1rem; 
    max-width: 800px;
    margin: 0 auto;
    text-align: left; 
}
.faq-item { 
    background-color: white; 
    border-radius: 0.5rem; 
    border: 1px solid #eee; 
    overflow: hidden;
}
.faq-question { 
    width: 100%; 
    padding: 1rem 1.5rem; 
    text-align: left; 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1.125rem; 
    font-weight: 600; 
    color: #ad5207; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 1rem; 
}
.faq-question:hover { 
    color: #e88e07; 
}
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-in-out; 
}
.faq-answer p { 
    padding: 0 1.5rem 1.5rem; 
    margin: 0; 
    line-height: 1.6;
    color: #374151; 
}

/* --- Related Courses Section Styles --- */
.related-courses-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
}
.related-courses-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #ad5207;
    margin-bottom: 2.5rem;
}
.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
/* Reusing card styles for consistency */
.course-card-link {
    text-decoration: none;
    color: inherit;
}
.course-card-link .teach-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card-link .teach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.course-card-link .teach-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.course-card-link .teach-card .teach-card-content {
    padding: 1.5rem;
    text-align: left;
}
.course-card-link .teach-card h3 {
    font-size: 1.25rem;
    color: #ad5207;
    margin-bottom: 0.5rem;
}
.course-card-link .teach-card p {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
}

/* --- Call to Action Section --- */
.cta-section {
    background-color: #ad5207;
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: white;
    color: #ad5207;
    padding: 0.75rem 2.5rem;
}

.cta-section .btn-primary:hover {
    background-color: #f3f4f6;
}