@charset "UTF-8";

/* Homepage news and video section headings */
:is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-header {
    text-align: center;
}

:is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-header::before {
    display: block;
    margin-bottom: 2px;
    color: #b97900;
    font-family: "Noto Sans Khmer", "Battambang", "Khmer OS Battambang", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

html[lang^="km"] #sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536 .sppb-addon-header::before {
    content: "សកម្មភាពសាលា";
}

html[lang^="en"] #sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536 .sppb-addon-header::before {
    content: "SCHOOL ACTIVITIES";
    letter-spacing: .12em;
}

html[lang^="km"] #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc .sppb-addon-header::before {
    content: "ទស្សនា និងស្វែងយល់";
}

html[lang^="en"] #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc .sppb-addon-header::before {
    content: "WATCH & DISCOVER";
    letter-spacing: .12em;
}

:is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-title {
    display: block;
    margin: 0 !important;
    padding: 3px 12px 8px !important;
    color: #082b68;
    font-family: "Noto Sans Khmer", "Battambang", "Khmer OS Battambang", Arial, sans-serif;
    font-size: clamp(28px, 3vw, 38px) !important;
    font-weight: 700;
    line-height: 1.65 !important;
}

:is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-title::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    margin: 5px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #082b68 0 26%, #ffc62e 26% 74%, #082b68 74% 100%);
}

:is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-header::after {
    display: block;
    max-width: 680px;
    margin: 7px auto 0;
    padding: 0 16px;
    color: #667085;
    font-family: "Noto Sans Khmer", "Battambang", "Khmer OS Battambang", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}

html[lang^="km"] #sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536 .sppb-addon-header::after {
    content: "តាមដានព័ត៌មាន សកម្មភាព និងព្រឹត្តិការណ៍ថ្មីៗរបស់សាលា";
}

html[lang^="en"] #sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536 .sppb-addon-header::after {
    content: "Discover the latest school news, activities and events.";
}

html[lang^="km"] #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc .sppb-addon-header::after {
    content: "ទស្សនាសកម្មភាព កម្មវិធី និងព្រឹត្តិការណ៍សំខាន់ៗរបស់សាលា";
}

html[lang^="en"] #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc .sppb-addon-header::after {
    content: "Watch highlights from school activities, programs and special events.";
}

/* Keep the video grid edges aligned with the news grid above it. */
#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .sppb-addon-content {
    width: 100%;
    max-width: 1160px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-row {
    align-items: stretch;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-col {
    display: flex;
    align-items: stretch;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-col > .card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #edf0f4;
    box-shadow: 0 10px 28px rgba(8, 43, 104, .09);
    transition: box-shadow .2s ease, transform .2s ease;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-col > .card:hover {
    box-shadow: 0 15px 34px rgba(8, 43, 104, .15);
    transform: translateY(-3px);
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-col > .card > .card-body {
    flex: 1 1 auto;
    padding: 17px 24px 20px;
}

/* Match the homepage video typography to the news cards above it. */
#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-video-share {
    color: #082b68;
    font-family: "Noto Sans Khmer", "Battambang", "Khmer OS Battambang", "Khmer OS Siemreap", "Siemreap", sans-serif;
    word-break: normal;
    overflow-wrap: break-word;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-video-share-title {
    margin: 0 0 8px;
    padding: 5px 0 7px;
    color: #082b68;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 2;
    word-break: normal;
    overflow-wrap: break-word;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-video-share-title a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-video-share-title a:hover,
#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-video-share-title a:focus-visible {
    color: #b97900;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd :is(
    .yendif-video-share-meta,
    .yendif-video-share-category,
    .yendif-video-share-excerpt
) {
    color: #667085 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    word-break: normal;
    overflow-wrap: break-word;
}

#sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-video-share-category a {
    color: #082b68;
    text-decoration: none;
}

.rtc-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 22px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 12px;
}

.rtc-news-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #edf0f4;
    box-shadow: 0 10px 28px rgba(8, 43, 104, .09);
    transition: box-shadow .2s ease, transform .2s ease;
}

.rtc-news-card:hover {
    box-shadow: 0 15px 34px rgba(8, 43, 104, .15);
    transform: translateY(-3px);
}

.rtc-news-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e9eef5;
}

.rtc-news-card__media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform .35s ease;
}

.rtc-news-card:hover .rtc-news-card__media img {
    transform: scale(1.035);
}

.rtc-news-card__body {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    overflow: visible;
    padding: 17px 24px 16px;
}

.rtc-news-card__body h3 {
    display: block;
    overflow: visible;
    margin: 0;
    padding: 5px 0 7px;
    color: #082b68;
    font-family: "Noto Sans Khmer", "Battambang", "Khmer OS Battambang", "Khmer OS Siemreap", "Siemreap", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 2;
}

.rtc-news-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.rtc-news-card__body h3 a:hover,
.rtc-news-card__body h3 a:focus-visible {
    color: #b97900;
}

.rtc-news-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin: 0 24px 24px;
    padding: 10px 15px;
    color: #5f6877;
    background: #f5f6f8;
    font-family: "Noto Sans Khmer", "Battambang", "Khmer OS Battambang", sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.rtc-news-card__more > span:first-child {
    padding: 3px 0;
    line-height: 1.8;
}

.rtc-news-card__more:hover,
.rtc-news-card__more:focus-visible {
    color: #fff;
    background: #082b68;
}

.rtc-news-card__arrow {
    color: #082b68;
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
}

.rtc-news-card__more:hover .rtc-news-card__arrow,
.rtc-news-card__more:focus-visible .rtc-news-card__arrow {
    color: #ffc62e;
}

@media (max-width: 991.98px) {
    .rtc-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rtc-news-card__body h3,
    #sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-video-share-title {
        font-size: 15px !important;
        line-height: 1.9 !important;
    }

    #sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd :is(
        .yendif-video-share-meta,
        .yendif-video-share-category,
        .yendif-video-share-excerpt
    ) {
        font-size: 13px;
        line-height: 1.8;
    }
}

@media (max-width: 575.98px) {
    :is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-header::before {
        font-size: 13px;
    }

    :is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-title {
        font-size: 24px !important;
        line-height: 1.65 !important;
    }

    :is(#sppb-addon-db6c8256-e11f-4b63-88e1-04384d938536, #sppb-addon-820865bb-aa86-4ce3-9e00-2e69a969d4cc) .sppb-addon-header::after {
        font-size: 14px;
        line-height: 1.85;
    }

    .rtc-news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 8px;
    }

    .rtc-news-card__body {
        padding: 14px 16px 12px;
    }

    .rtc-news-card__more {
        min-height: 44px;
        margin: 0 16px 16px;
        padding: 8px 13px;
    }

    #sppb-addon-c283c7bb-2d85-481e-a95b-c8666f6bcbdd .yendif-col > .card > .card-body {
        padding: 14px 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rtc-news-card,
    .rtc-news-card__media img {
        transition: none;
    }
}
