/* ========================================
   Inner Page Hero
======================================== */

.page-hero {
    min-height: 300px;

    display: flex;
    align-items: center;

    background: #f8cc73;
}

.page-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero__logo {
    width: min(470px, 72%);
    height: auto;
}


/* ========================================
   Breadcrumb
======================================== */

.breadcrumb-wrap {
    background: #f4f4f4;
}

.breadcrumb {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 6px;

    font-size: 1em;

    color: #555;
}

.breadcrumb a {
    transition: color var(--transition);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--color-primary);
}

.breadcrumb__separator {
    color: #999;
}

.breadcrumb [aria-current="page"] {
    color: #1976c9;
}
.breadcrumb .container{
    display: flex;
    gap: 4px;
}
.breadcrumb-icon img{
    width: 1.5em;
}
/* ========================================
   Inner Content
======================================== */

.inner-content {
    padding-block: 32px 80px;
}

.page-title {
    margin-bottom: 38px;
}

.page-title h1 {
    margin: 0 0 8px;
}

/* ========================================
   Page Title
======================================== */

.page-title {
    margin-bottom: 50px;

    border-bottom: 1px solid #79a8c3;
}

.page-title h1 {
    margin: 0 0 12px;

    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;

    line-height: 1.25;

    color: #176080;
}
/* ========================================
   Activity Page
======================================== */

.activity-page {
    padding-top: 32px;
    padding-bottom: 100px;
}

/* ========================================
   Activity Grid
======================================== */

.activity-grid {
    width: min(1020px, 100%);

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 42px 28px;
}


/* ========================================
   Activity Card
======================================== */

.activity-card {
    min-width: 0;
}

.activity-card__link {
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #fff;

    border: 1px solid #d5d5d5;
    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.activity-card__link:hover,
.activity-card__link:focus-visible {
    transform: translateY(-4px);

    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.16);
}


/* Image */

.activity-card__image {
    aspect-ratio: 4 / 2.6;

    overflow: hidden;

    background: #eee;
}

.activity-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.activity-card__link:hover
.activity-card__image img,
.activity-card__link:focus-visible
.activity-card__image img {
    transform: scale(1.03);
}


/* Content */

.activity-card__body {
    min-height: 170px;

    display: flex;
    flex-direction: column;

    padding: 16px 18px 14px;
}

.activity-card__date {
    display: block;

    margin-bottom: 2px;

    font-size: 13px;
    line-height: 1.5;

    color: #777;
}

.activity-card h2 {
    margin: 0;

    font-size: 19px;
    font-weight: 600;

    line-height: 1.45;

    color: #0872c7;
}


/* Button */

.activity-card__button {
    min-width: 86px;

    margin-top: auto;
    margin-left: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 20px;

    border-radius: 999px;

    background: #ffc928;

    font-size: 14px;
    font-weight: 500;

    color: #333;

    transition:
        background-color var(--transition);
}

.activity-card__link:hover
.activity-card__button,
.activity-card__link:focus-visible
.activity-card__button {
    background: #f2b900;
}


/* ========================================
   News Detail
======================================== */

.detail-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 100px;

    padding: 10px 22px;

    background: #20a6df;
    color: #fff;
}

.article-detail {
    max-width: 1180px;

    margin-inline: auto;
}

.detail-date {
    display: block;

    margin-bottom: 18px;

    color: #888;
}

.detail-title {
    margin: 0 0 28px;

    padding-bottom: 12px;

    border-bottom: 1px solid #49b6e8;

    font-size: 26px;
    font-weight: 500;

    line-height: 1.5;

    color: #168ecb;
}

.article-detail__cover {
    max-width: 760px;

    margin: 0 auto 32px;
}

.article-detail__cover img {
    display: block;

    width: 100%;
    height: auto;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
}
/* News-detail 2*/
.detail-title-row {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;

    padding-bottom: 12px;

    /* border-bottom: 1px solid #49b6e8; */
}

.detail-title {
    flex: 1;

    margin: 0;

    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 500;

    line-height: 1.5;

    color: #168ecb;
}

.detail-back {
    flex-shrink: 0;

    min-width: 100px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 22px;

    background: #20a6df;
    color: #fff;

    font-size: 15px;
}
.detail-back {
    transform: translateY(4px);
}

.detail-date {
    display: block;

    margin-bottom: 26px;

    font-size: 15px;

    color: #888;
}
/*  */
.activity-detail__back {
    border: 1px solid #006d9b;
    padding: 4px 15px;
    border-radius: 30px;
    color: #006d9b;
}
.activity-detail__back:hover{
    background-color:#006d9b;
    color:#fff;
}
/* ========================================
   News List
======================================== */

.news-list {
    /* border-top: 1px solid #d8d8d8; */
}

.news-item {
    border-bottom: 1px solid #e3e3e3;
}

.news-item__link {
    min-height: 82px;

    display: grid;
    grid-template-columns:
        130px
        minmax(0, 1fr)
        32px;

    align-items: center;

    gap: 24px;

    padding: 18px 16px;

    transition:
        background-color var(--transition);
}

.news-item__link:hover,
.news-item__link:focus-visible {
    background: #f7faf9;
}

.news-item__date {
    font-size: 14px;

    color: #888;
}

.news-item__title {
    margin: 0;

    font-size: 18px;
    font-weight: 500;

    line-height: 1.6;

    color: #176080;
}

.news-item__arrow {
    font-size: 20px;

    color: var(--color-primary);

    text-align: right;

    transition:
        transform var(--transition);
}

.news-item__link:hover
.news-item__arrow,
.news-item__link:focus-visible
.news-item__arrow {
    transform: translateX(4px);
}

/* ========================================
   Gallery Detail
======================================== */

.gallery-detail {
    width: min(1100px, 100%);

    margin-inline: auto;
}


/* Main Image */

.gallery-main {
    margin: 0 0 30px;

    padding: 14px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 12px;
}

.gallery-main img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 720px;

    object-fit: contain;
}


/* Thumbnail Grid */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.gallery-thumb {
    padding: 8px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    border-color: var(--color-primary);

    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10);
}

.gallery-thumb.is-active {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 1px var(--color-primary);
}

.gallery-thumb img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 6px;
}

/* ========================================
   Pagination
======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 48px;
}

.pagination a {
    min-width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding-inline: 12px;

    border: 1px solid #d2d2d2;
    border-radius: 6px;

    background: #fff;

    font-size: 14px;

    color: #555;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.pagination a:hover,
.pagination a:focus-visible {
    border-color: var(--color-primary);

    color: var(--color-primary);
}

.pagination__number.is-current {
    border-color: var(--color-primary);

    background: var(--color-primary);
    color: #fff;
}

.pagination__button {
    min-width: 82px;
}
/* Gallery */
@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

}


@media (max-width: 600px) {

    .gallery-main {
        padding: 8px;
        margin-bottom: 18px;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .gallery-thumb {
        padding: 5px;
    }

}
/* Gallery End */

@media (max-width: 768px) {

    .page-hero {
        min-height: 220px;
    }

    .page-hero__logo {
        width: min(360px, 80%);
    }

    .inner-content {
        padding-block: 32px 64px;
    }

    .page-title {
        margin-bottom: 36px;
    }

}
/* News-detail */
@media (max-width: 600px) {

    .detail-title-row {
        align-items: flex-start;
        gap: 14px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-back {
        min-width: 74px;

        padding: 8px 14px;

        font-size: 14px;
    }

}

@media (max-width: 480px) {

    .page-hero {
        min-height: 170px;
    }

    .page-hero__logo {
        width: 82%;
    }

    .breadcrumb {
        min-height: 46px;

        font-size: 13px;
    }

    .page-title h1 {
        font-size: 32px;
    }

}

/* @media (max-width: 900px) {

     .activity-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: min(720px, 100%);

        gap: 30px 22px;
    }

} */

@media (max-width: 900px) {

    .activity-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px 18px;

        padding-top:10px;
    }
    

}


@media (max-width: 600px) {

     .activity-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px 14px;
        padding: 20px;
    }

    .activity-card__body {
        min-height: 145px;
        padding: 14px;
    }

    .activity-card h2 {
        font-size: 16px;
    }

    .activity-card__date {
        font-size: 12px;
    }

    .activity-card__button {
        min-width: 72px;
        padding: 6px 14px;

        font-size: 13px;
    }
}

@media (max-width: 768px) {

    .activity-page {
        padding-bottom: 70px;
    }

}

@media (max-width: 480px) {

    .activity-page {
        padding-bottom: 20px;
    }

}

/* ========================================
   Pagination
======================================== */

@media (max-width: 600px) {

    .news-item__link {
        grid-template-columns:
            1fr
            24px;

        gap: 8px 12px;

        padding: 16px 12px;
    }

    .news-item__date {
        grid-column: 1 / 2;

        font-size: 13px;
    }

    .news-item__title {
        grid-column: 1 / 2;

        font-size: 16px;
    }

    .news-item__arrow {
        grid-column: 2 / 3;
        grid-row: 1 / 3;

        align-self: center;
    }

    .pagination {
        margin-top: 36px;

        gap: 6px;
    }

    .pagination a {
        min-width: 38px;
        height: 38px;

        padding-inline: 10px;

        font-size: 13px;
    }

    .pagination__button {
        min-width: 70px;
    }

}