:root {
    --primary: #4643c0;
    --light: #ececf6;
    --dark: #181d38;
    --pink: #ffadad;
}

.hero-section {
    position: relative;
    height: 25vw;
    background: url("/img/hero-background.png") center/cover no-repeat;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8.33vw;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0.8) 40%,
        rgba(255, 255, 255, 0.4) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 5;
}

.hero-section .content {
    position: relative;
    z-index: 4;
}

.hero-students {
    width: 40vw;
}

.hero-students img {
    position: absolute;
    z-index: 2;
    width: 42vw;
    right: 2vw;
    top: -7vw;
}

.hero-text {
    display: flex;
    flex-direction: column;
    width: 50vw;
    margin-top: -16px;
}

.hero-text h1,
p,
strong {
    font-family: "Open Sans", sans-serif;
    text-align: left;
}

.hero-text h1 {
    font-size: 30px;
    text-align: left;
    margin-bottom: 16px;
}

.hero-text h1,
strong {
    color: #14065b;
}

.hero-text p {
    color: black;
}

.hero-text strong {
    font-size: 18px;
    font-weight: 600;
}

.posh-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-family: "Open Sans" I !important;
}

.posh-subtitle {
    text-align: center;
    color: #181d38;
    font-size: 16px;
    margin-bottom: 8px;
}

.posh-title::before,
.posh-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--primary);
    margin: 0 16px;
}

.haro-card-container {
    background: #ffffff;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    margin: 60px auto;
}

.article-container {
    margin: auto !important;
    border-radius: 0 !important;
    padding: 12px;
}

.article-container > div:nth-child(2) {
    gap: 16px;
}

.article-container .article-card {
    background: #ececf6;
    border-radius: 12px;
    padding: 12px 12px 20px 12px;
}

.article-card img {
    height: 300px;
    object-fit: cover;
    object-position: center top;
}

.article-date {
    position: absolute;
    background: linear-gradient(84.86deg, #19057e 19.67%, #4643c0 97.42%);
    font-weight: 500;
    color: white;
    padding: 6px 8px;
    bottom: 0;
    left: 0;
}

.article-text {
    display: flex;
    flex-direction: column;
}

.article-text p {
    margin: 0 !important;
}

.article-text h3 {
    font-size: 18px;
    color: black !important;
}
.article-text h3 > p {
    margin-bottom: 4px !important;
}

.article-text > p {
    color: #19057e;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* maksimal 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-modal .modal-header {
    background: #19057e;
    padding: 16px;
}

.course-modal .modal-header h5 {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

.course-modal .modal-header .btn-close {
    display: none;
}
.course-modal .modal-header .btn-more-top {
    background: #1d7336;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
    font-size: 14px;
}
.course-modal .btn-more-bot {
    background: #1d7336 !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 14px;
    height: 40px;
}

.course-modal .modal-dialog {
    max-width: 500px;
    padding-left: 8px;
    padding-right: 8px;
}

.course-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-modal .modal-body img {
    margin-top: 16px !important;
    max-width: 55vw;
    margin: auto;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 581px) {
    .article-container .article-card {
        width: 90% !important;
    }
    .hero-section {
        height: 300px;
        justify-content: start !important;
        align-items: start !important;
        margin-top: -3px;
    }
    .hero-section > div {
        flex-direction: column;
    }
    .hero-text {
        margin-top: 20px;
        width: 100%;
        padding: 4px 16px;
    }
    .hero-text h1 {
        font-size: 16px;
    }
    .hero-text p {
        font-size: 14px;
    }
    .hero-text strong {
        font-size: 14px;
        font-weight: 600;
    }
    .hero-students {
        width: 100%;
    }
    .hero-students img {
        position: unset;
        width: 280px;
        margin-top: -10px;
    }
}

@media (min-width: 582px) and (max-width: 768px) {
    .article-container .article-card {
        width: 86% !important;
    }
    .hero-students img {
        top: 3vw;
    }
    .hero-section {
        height: 36vw;
    }
    .hero-section::after {
        height: 7vw;
    }
    .hero-text {
        width: 56vw;
        margin-left: 20px;
    }
    .hero-text h1 {
        font-size: 20px;
    }
    .hero-text p {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .course-modal .modal-header .btn-more-top {
        display: block;
    }
    .course-modal .btn-more-bot {
        display: none;
    }
    .course-modal .modal-header {
        padding: 16px 20px;
    }
    .course-modal .modal-body {
        flex-direction: row;
        gap: 20px;
    }
    .modal-card-desc {
        font-size: 14px;
    }
    .course-modal .modal-header h5 {
        max-width: 88%;
    }
    .course-modal .modal-body {
        padding: 20px 16px;
    }
}

@media (min-width: 992px) {
    .article-container > div:nth-child(2) {
        gap: 16px;
    }
    .course-modal .modal-header h5 {
        max-width: 100%;
    }
    .course-modal .modal-body img {
        max-width: 25vw;
        height: 34.86vw;
        margin: 0 !important;
    }
    .course-modal .modal-header,
    .course-modal .modal-body {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1299px) {
    .course-modal .modal-header h5 {
        font-size: 18px;
    }

    .course-modal .modal-dialog {
        min-width: 500px;
        max-width: 82vw;
    }
    .article-container {
        width: 94%;
        padding: 16px;
    }
    .article-container .article-card {
        width: 47% !important;
    }
    .hero-students img {
        right: 3vw;
        width: 42vw;
        top: -2vw;
    }
    .hero-section {
        height: 36vw;
    }
    .hero-section::after {
        height: 7vw;
    }
    .hero-text {
        width: 56vw;
        margin-left: 20px;
    }
    .hero-text h1 {
        font-size: 20px;
    }
    .hero-text p {
        font-size: 14px;
    }
}

@media (min-width: 1300px) {
    .course-modal .modal-header h5 {
        font-size: 20px;
    }
    .course-modal .modal-dialog {
        min-width: 500px;
        max-width: 57vw;
    }
    .hero-section .content {
        padding: 0 7.94vw;
        width: 100%;
    }
    .hero-students img {
        right: 6vw;
    }
    .posh-subtitle {
        font-size: 18px;
    }
    .article-container {
        width: 88%;
        padding: 20px;
    }
    .article-container .article-card {
        max-width: 30.33%;
    }
    .article-container > div:nth-child(2) {
        gap: 20px;
    }
}
