
/* Breadcrumb - Matching reference format */
.breadcrumb {
    margin-top: 135px;
    padding: 1rem 0;
    background: transparent;
}

.breadcrumb nav ol {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb nav ol li {
    display: flex;
    align-items: center;
}

.breadcrumb nav ol li::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--text-gray);
}

.breadcrumb nav ol li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .active {
    color: var(--text-dark);
    font-weight: normal;
}

/* Course Header Section */
.course-header {
    padding: 1.5rem 0 1rem;
}

.course-level-text {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.course-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.course-desc {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 1rem 0;
}

/* Instructor Avatars */
.instructor-avatars {
    display: inline-block;
    margin-right: 1rem;
    vertical-align: middle;
}

/* .week-hidden {
    display: none;
} */


.instructor-avatars .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-right: -1rem;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.instructor-avatars .avatar:first-child {
    z-index: 0;
}

.instructor-names {
    display: inline-block;
    font-size: 1rem;
    color: var(--text-dark);
    margin-left: 1rem;
}

.instructor-link {
    color: var(--primary-color);
    text-decoration: none;
}

.instructor-link:hover {
    text-decoration: underline;
}

/* Course Info Bar */
.course-info-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0 1.5rem;
    margin: 1.5rem 0 3rem;
    width: 100%;
}

.info-grid {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    width: 100%;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-lighter);
    font-weight: normal;
}

/* Learning Outcomes Section */
.learning-section {
    padding: 0;
    background: transparent;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.outcomes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -0.5rem;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    flex-basis: calc(50% - 1rem);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.outcome-icon {
    flex-shrink: 0;
    flex-basis: 7%;
    color: var(--text-dark);
}

.outcome-icon i {
    font-size: 1rem;
}

.outcome-text {
    flex-basis: 93%;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Course Structure Section */
.structure-section {
    padding: 0;
    background: transparent;
    margin-bottom: 2rem;
}

.structure-desc {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: none;
}

/* Syllabus Table */
.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.syllabus-table tbody tr {
    border-bottom: 1px solid var(--border-light);
}

.syllabus-table tbody tr:last-child {
    border-bottom: 1px solid var(--border-light);
}

.syllabus-table td {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    vertical-align: top;
}

.week-col {
    width: auto;
    font-weight: normal;
}

.topic-col {
    line-height: 1.5;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin: 1.5rem 0;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* Books Section */
.books-section {
    padding: 1.5rem 0;
    background: transparent;
    margin-bottom: 2rem;
}

.books-intro {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.book-item {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Instructors Detail Section */
.instructors-section {
    padding: 2rem 0;
    background: var(--gray-bg-light);
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.instructors-section .container {
    max-width: 65%;
    margin: 0 auto;
    padding: 0 20px;
}

.instructor-detail {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.instructor-photo {
    flex-shrink: 0;
}

.instructor-photo img {
    width: 115px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-content {
    flex: 1;
}

.instructor-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: left;
}

.instructor-position {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-weight: normal;
}

.instructor-bio {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    display: inline;
}

/* View All Section */
.view-all-section {
    padding: 2rem 0 0;
    text-align: right;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: none;
}

.view-all-link i {
    margin-left: 0.25rem;
}

/* Footer */
.footer-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 16px 0;
    font-size: 14px;
}

.overall {
    max-width: 65%;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info h2 {
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
}

.contact-row i {
    font-size: 18px;
    margin-right: 16px;
    margin-top: 5px;
    min-width: 20px;
    color: var(--white);
}

.footer-section hr {
    margin: 25px 0 15px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    background: var(--primary-color-dark);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
}

.social-icons a:hover {
    background: #1e1629;
}

.honour-code {
    font-size: 15px;
    color: var(--white);
}

.copyright-row {
    text-align: right;
    font-size: 14px;
    margin: 15px 0 5px 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 25px;
    font-weight: 700;
    background-color: var(--primary-color-dark);
    color: var(--white);
    width: 40px;
    height: 45px;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: transform 0.3s ease;

}

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* FORCE course info bar to be single-column */
.course-info-bar .info-grid {
    display: flex;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.course-info-bar .info-item {
    width: 100% !important;
    display: flex;
    justify-content: flex-start !important;
    text-align: left !important;
}



/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .course-level-text {
        font-size: 1.25rem;
    }
    
    .course-title {
        font-size: 1.5rem;
    }
    
    .outcomes-grid {
        flex-direction: column;
    }
    
    .outcome-item {
        flex-basis: 100%;
    }
    
    .info-item {
        margin-bottom: 0.5rem;
    }
    
    .instructor-detail {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .instructor-photo img {
        width: 100px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .copyright-row {
        text-align: left;
    }
    
    .overall {
        max-width: 95%;
    }
    
    .view-all-section {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .course-header {
        padding: 1rem 0 0.75rem;
    }
    
    .course-level-text {
        font-size: 1rem;
    }
    
    .course-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .syllabus-table td {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    .instructor-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .instructor-name {
        text-align: center;
    }
}
