.postWrapper {
    display: flex;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
    align-items: flex-start;
    overflow: visible;
    position: relative;
    /* margin-top: 1rem; */
}
.postWrapper > .post > .sectionHeader {
    margin-bottom: 1rem;
}

/* For ordered lists (numbered) */
ol {
    list-style-position: outside !important;
    padding-left: 17px !important; /* Adjust as needed */
}

.post {
    width: 65%;
    min-width: 0;
}

.post img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 40px;
}

.post .btnWrapper {
    width: 100%;
    display: flex;
    margin-top: 3rem;
    align-items: center;
    justify-content: space-between;
}

.post p,
ol,
li {
    font-weight: 300;
}

li {
    list-style-position: outside;
    /* margin-bottom: 1rem; */
}

li ul {
    padding-left: 1.2rem; /* reduce indent */
}

li ul li {
    margin-left: 0; /* remove extra browser auto-offset */
}

figure.media > div {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

figure.media > div > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post .date{
    margin: 1.5rem 0;
}
.btnWrapper button {
    height: 50px;
    width: clamp(150px, 5vw, 200px);
    display: flex;
    font-weight: 600;
    align-items: center;
    border: none;
    gap: 1rem;
    justify-content: center;
    border-radius: 100px;
    color: white;
    background-color: var(--color-primary);
}

.btnWrapper .left span {
    transform: rotate(180deg);
}
.cardContent p.multi-truncate ~ p ~ p  {
  display: none !important;
}

.announcementContent > strong, .announcementContent > strong > i{
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 30px);
}

.otherCourseContainer{
    transition: unset !important;
}
.suggestionWrapper {
    display: flex;
    width: auto;
    position: relative; /* JS handles sticky via GSAP ScrollTrigger */
    top: 0;
    transition: none;
    flex-direction: column;
}

.suggestionWrapper > * {
    padding-bottom: 1rem;
 
}
.suggestionWrapper > *::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 95%;
    height: 1px;
    background-color: #e6e6e6;
    transform: translateX(-50%);
}

.suggestionWrapper > *:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.suggestionWrapper > *:last-child::after {
    width: 0;
}
.suggestion {
    width: 100%;
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
}
.suggestion > * {
    font-weight: 400;
    color: #606060;
}
.suggestion:hover {
    background-color: #fafafa;

    /* border-bottom: none; */
}
.suggestion h1 {
    font-size: 16px;
    font-weight: 500;
    padding: 1rem 0;
}

.suggestion a {
    text-decoration: none;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.suggestion a:hover {
    color: var(--color-primary);
}

.post figure.table {
    margin: 1.5rem 0;
    width: 100%;
    overflow-x: auto;
}

.post table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.post th,
.post td {
    padding: 0.6rem 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.post thead th {
    background: #f6f7f9;
    font-weight: 600;
}


.post li {
    margin: 0.4rem 0;
}

.post ul,
.post ol {
    margin: .5rem 0 1.5rem 0;
}

.post li {
    margin: 0.4rem 0;
}

.otherCourseContainer .header h1{
    width: 100% !important;
}

.post p[style] {
    transform: none !important;
    opacity: 1 !important;
    margin-bottom: 1.5rem;
}

.post .btnWrapper:has(> a > .right):not(:has(> a > .left)) {
    justify-content: flex-end;
}

/* Only PREVIOUS exists → align left */
.post .btnWrapper:has(> a > .left):not(:has(> a > .right)) {
    justify-content: flex-start;
}
@media (max-width: 1023px) {
    .postWrapper {
        flex-direction: column;
    }

    .suggestionWrapper {
        width: 100%;
        position: relative !important;
        top: auto !important;
        left: auto !important;
    }
}

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

    .post,
    .suggestionWrapper {
        width: 100%;
    }

    .suggestionWrapper {
        margin-top: 4rem;
    }
    .otherCourseContainer .header h1 {
    width: 30% !important;
    }
}

@media (max-width: 768px) {
    .post img {
        /* height: 260px; */
        margin-bottom: 1.5rem;
    }

    .post p,
    .post ol,
    .post li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .suggestionWrapper {
        gap: 1.5rem;
    }

    .suggestion h1 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .post img {
        /* height: 220px; */
    }

    .post p,
    .post li {
        font-size: 0.9rem;
    }

    .suggestion h1 {
        font-size: 1rem;
    }

    .suggestion a {
        font-size: 0.9rem;
    }
}
