.pageBannerWrapper .bannerContent h2 {
    font-family: var(--font-Header);
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 400;
}

.courseDetailsContainer {
    display: flex;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
}
.courseDetailsSection {
    position: relative;
}

.courseDetailsContainer .sideMenu {
    background-color: #f3f3f3;
    width: 20%;
    padding: clamp(20px, 5vw, 50px)  clamp(16px, 2vw, 30px) ;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Sticky behavior handled by courseScroll.js via GSAP */
    top: 0;
}

.courseDetailsContainer .sideMenu h1 {
    font-size: 16px;
    font-weight: 700;
    color: #4d4d4d;
}

.courseDetailsContainer .sideMenu .header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.courseDetailsContainer .sideMenu .circle {
    width: 7px;
    height: 7px;
    border-radius: 10px;
    background-color: var(--color-secondary);
}

.courseDetailsContainer .sideMenu a {
    text-decoration: none;
    color: #4d4d4d;
    width: fit-content;
    margin-left: calc(1rem + 7px);
}
.courseDetailsContainer .sideMenu a:hover {
    color: var(--color-secondary);
}

.courseDetailsContainer .menuSection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.courseDetailsContainer .courseDetails {
    width: 50%;
}

.courseDetailsContainer .otherCourseContainer {
    width: 30%;
    transition: none !important;
}
.courseDetailsContainer {
    display: flex;
    align-items: flex-start; /* VERY IMPORTANT */
    gap: clamp(20px, 4vw, 60px);
}

.courseDetailsWrapper .courseHeaderWrapper {
    margin-bottom: 2rem;
}
.courseDetailsWrapper .courseHeaderWrapper h1 {
    font-size: clamp(20px, 4vw, 48px);
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.courseDetailsWrapper p {
    line-height: 150%;
}
.courseDetailsWrapper {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.courseDetailContent {
    border: 1px solid #cecece;
    border-radius: 10px;
    padding: 1rem;
}

.courseDetailContent p, .courseDetailContent ul {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    font-weight: 400;
}
.courseDetailContent ul li{
    font-weight: 400;
}

 ul , ol{
    /* list-style-position: outside; */
    padding-left: 1.2rem;
}

 li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.courseDetailContent h1 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d4d4d400;
    align-items: center;
}
.courseDetailContent span {
    transform: rotate(90deg);
}

.courseDetailContent:hover {
    cursor: pointer;
}

.courseDetailContent input {
    display: none;
}

#structure:checked ~ p,
#career:checked ~ p,
#learn:checked ~ p,
#whyProgram:checked ~ p,
#structure:checked ~ ul,
#career:checked ~ ul,
#learn:checked ~ ul,
#whyProgram:checked ~ ul {
    height: fit-content;
    opacity: 1;
    transform: translateY(0);
}

#structure:checked ~ label h1,
#career:checked ~ label h1,
#learn:checked ~ label h1,
#whyProgram:checked ~ label h1 {
    padding-bottom: 1rem;
    border-bottom: 1px solid #d4d4d4;
    margin-bottom: 1rem;
}

.mt-3 .courseHeaderWrapper h1 {
    font-size: clamp(20px, 4vw, 40px);
}

.courseDetailContent input:checked ~ p {
    height: fit-content;
    opacity: 1;
    transform: translateY(0);
}

.course-module-table th:nth-child(1),
.course-module-table td:nth-child(1) {
    width: 85%;
}

.course-module-table th:nth-child(2),
.course-module-table td:nth-child(2) {
    width: 15%;
    text-align: center;
}
.courseDetailContent input:checked ~ label h1 {
    padding-bottom: 1rem;
    border-bottom: 1px solid #d4d4d4;
    margin-bottom: 1rem;
}
.section {
    overflow: visible;
}
.otherCourseContainer {
    /* Sticky behavior handled by courseScroll.js via GSAP */
    top: 0;
    height: 50vh;
    width: 320px;
}
.otherCourseContainer .header h1 {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    min-width: 50%;
    width: fit-content;
    color: #4d4d4d;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #4d4d4d;
}

.otherCourseContainer .otherContent h1 {
    font-size: clamp(16px, 2vw, 18px);
    color: #585858;
    font-weight: 500;
}

.otherContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.otherContent a {
    text-decoration: none;
    font-weight: 300;
    color: #585858;
}
.otherContent a:hover {
    color: var(--color-secondary);
}
.admissionImg {
    width: 100%;
    height: 400px;
    margin: 1rem 0;
    object-fit: cover;
}
.courseMenuBtn {
    display: none;
    position: fixed;
    top: 30%;
    left: 0;
    z-index: 1100;
    background: #C2C2C2;
    padding: 0.6rem 0
}

.menuHeader {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid grey;
    padding-top: 0;
    margin-bottom: 1rem;
}

.menuHeader label {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 
.sideMenu a.active {
    color: #F48423; 
    font-weight: 600;
} */
/* 
[id] {
    scroll-margin-top: 170px;
} */

.courseDetailContent
    input[type="checkbox"]
    + label
    h1
    span.material-symbols-outlined {
    display: inline-block;
    transition: transform 0.25s ease-in-out;
}

/* When accordion is open */
.courseDetailContent
    input[type="checkbox"]:checked
    + label
    h1
    span.material-symbols-outlined {
    transform: rotate(270deg); /* rotate UP */
}
.courseDetailsContainer {
    position: relative; /* REQUIRED */
}

@media (min-width: 1025px) {
    .courseDetailsContainer {
        position: relative;
        align-items: flex-start;
        padding: 0 var(--padding-sides)
    }

    .courseDetailsContainer .sideMenu {
        /* position: relative; JS controls this */
        width: fit-content; 
        transition: unset;
        flex-shrink: 0;
    }

    .sideMenuSpacer {
        width: 260px;
        flex-shrink: 0;
    }
}

@media screen and (max-width: 480px) {
    .otherCourseContainer .header h1 {
        width: 60%;
    }

   
}

@media screen and (max-width: 1024px) {
    .courseDetailsContainer {
        flex-direction: column;
    }

    .courseDetailsContainer .courseDetails {
        width: 100%;
    }
    .courseDetailsSection {
        position: relative;
    }
   
    .courseMenuBtn {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        height: 50px;
        justify-content: center;
        width: 20px;
    }
    .courseMenuBtn span{
        width: 20px;
        font-weight: 600;
        display: flex;
        justify-content: center;
        color: #707070;
    }
    .menuHeader {
        display: flex;
    }
    .courseDetailsContainer .sideMenu {
        position: fixed;
        top: 50%;
        left: 0;
        height: fit-content;
        max-height: 70vh;
        width: fit-content;
        z-index: 10000;
        padding-right: 2rem;
        transform: translate(-100%, -50%);
        transition: transform 0.3s ease;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        overflow-y: auto;
    }

    #courseMenuToggle:checked ~ .section .sideMenu {
        transform: translate(0, -50%);
    }
     .courseDetailsContainer .otherCourseContainer {
        position: static;
        width: 100%;
        margin-top: 3rem;
    }
}

@media screen and (min-width: 768px) {
    .otherCourseContainer .header h1 {
        min-width: 30%;
    }
     .courseContentBanner {
        padding-top: 7px !important;
    }
    .courseDetailsContainer .sideMenu{
        transition: none !important; /* Prevent jitter from global transition */
    }

}

.orange {
    color: var(--color-primary) !important;
}
/* TABLE STYLES FOR COURSE MODULES */
.course-module-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-family: var(--font-Body);
}

.course-module-table th {
    background-color: #F48423; /* Secondary Orange */
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #F48423;
}

.course-module-table td {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
    color: #4d4d4d;
}

.course-module-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.course-module-table .semester-row td {
    background-color: #f0f4f8;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.module-table-wrapper {
    overflow-x: auto;
}

.courseDetailContent p {
    /* Override default p hiding for table inside */
    display: block; /* We use the wrapper div for hiding now, or stick to the p? 
       Wait, the previous CSS hides `p`. Since table is NOT a `p`, it won't be hidden by default 
       unless we wrap it in `p` or change the selector.
       
       Current selector: `.courseDetailContent p` { height: 0; opacity: 0; ... }
       
       I should wrap the table in a div that gets toggled, or update the CSS selector to toggle a div instead of p.
    */
}

/* Update Toggle Logic for Generic Content Div */
.courseDetailContent .toggle-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.courseDetailContent input:checked ~ .toggle-content {
    height: fit-content;
    opacity: 1;
    transform: translateY(0);
}
