/* ============================================================
   ACS Academy - display cards & detail views
   Loaded site-wide (see system/module/header.php).
   Brand colours: teal #0E3547, green #007831
   ============================================================ */

/* ---------- Article / news / event cards (.post-module) ---------- */
.post-module {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid rgba(14, 53, 71, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(14, 53, 71, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-module:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(14, 53, 71, 0.16);
}

.post-module .thumbnail {
    position: relative;
    height: 210px;
    padding: 0;
    overflow: hidden;
    background: #eef2f5;
}

.post-module .thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-module:hover .thumbnail img {
    transform: scale(1.06);
}

/* date badge */
.post-module .thumbnail .date {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #007831;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.post-module .thumbnail .date .day {
    font-size: 16px;
    line-height: 1;
}

.post-module .thumbnail .date .month {
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* card body */
.post-module .post-content {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px 22px 26px;
    background: #ffffff;
}

.post-module .post-content .category {
    position: static;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 12px;
    background: #0E3547;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
}

/* Hide the category label when no category is set */
.post-module .post-content .category:empty {
    display: none;
}

.post-module .post-content .news-title,
.post-module .post-content .title {
    margin: 0 0 2px;
    color: #0E3547;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.post-module .post-content .post-date {
    margin: 0 0 12px;
    color: #7b8b95;
    font-size: .82rem;
}

.post-module .post-content .description {
    display: block;
    margin: 0 0 18px;
    color: #5a6b75;
    font-size: 0.92rem;
    line-height: 1.6;
}

.post-module .post-content .btn {
    display: inline-block;
    width: auto;
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- Featured article card (full-width, image left / text right) ---------- */
.post-module.post-module-featured {
    flex-direction: row;
    margin-bottom: 34px;
}

.post-module.post-module-featured .thumbnail {
    flex: 0 0 45%;
    max-width: 45%;
    height: 240px;
}

.post-module.post-module-featured .post-content {
    flex: 1 1 55%;
    justify-content: center;
    padding: 24px 32px;
}

.post-module.post-module-featured .post-content .news-title {
    font-size: 1.5rem;
}

.post-module.post-module-featured .post-content .description {
    font-size: 1rem;
    max-width: 60ch;
}

/* Read-more button sits on the right-hand side of the featured card */
.post-module.post-module-featured .post-content .btn {
    align-self: flex-end;
    text-align: center;
}

@media (max-width: 768px) {
    .post-module.post-module-featured { flex-direction: column; }
    .post-module.post-module-featured .thumbnail {
        flex: none;
        max-width: none;
        height: 250px;
        min-height: 0;
    }
    .post-module.post-module-featured .post-content { padding: 24px; }
    .post-module.post-module-featured .post-content .news-title { font-size: 1.35rem; }
}

/* ---------- Articles breadcrumb + hero ---------- */
.arts-breadcrumb {
    background-color: #f5f5f5;
    padding: 12px 0;
    font-size: .85rem;
    color: #333;
}

.arts-breadcrumb a { color: #007831; text-decoration: none; }
.arts-breadcrumb a:hover { text-decoration: underline; }
.arts-breadcrumb .sep { margin: 0 .5rem; color: #999; }

.arts-hero {
    background-color: #0e3547;
    color: #ffffff;
    /* !important guards against the theme reset: body:not(.layout-admin) section { padding: 0 } */
    padding: 52px 0 !important;
    text-align: center;
}

.arts-hero .arts-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.arts-hero .arts-hero-sub {
    font-size: 1.05rem;
    font-weight: 500;
    opacity: .92;
    margin-bottom: 0;
}

.arts-hero .arts-hero-sub-line {
    line-height: 1.5;
}

@media (max-width: 768px) {
    .arts-hero { padding: 36px 0 !important; }
    .arts-hero .arts-hero-title { font-size: 1.8rem; }
}

/* ---------- Article detail view ---------- */
.article-detail {
    padding: 40px 0 20px;
    /* Bottom spacing matches the Articles list (section py-5 ~48px + trailing <br><br>) */
    padding-bottom: 72px !important;
}

.article-detail .article-detail-hero {
    max-width: 860px;
    margin: 0 auto 30px;
}

.article-detail .article-detail-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.article-detail .article-detail-text {
    max-width: 860px;
    margin: 0 auto;
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-detail .article-detail-text p {
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .article-detail { padding: 24px 0 10px; }
}
