﻿#about-hero {
    background-image: linear-gradient(328.26deg, rgba(17, 17, 17, 0) 41.97%, #111111 104.09%), url('../images/Activities/banner-hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 520px;
    background-position: center;
    width: 100%;
    border-bottom-right-radius: 140px;
    border-bottom-left-radius: 140px;
    clear: both;
    /* Put hero back into normal flow but lift it under the nav */
    position: relative;
    margin-top: -102px;
    /* same offset pattern as #home-top-banner */
    z-index: 1;
    /* allow later content to stack above if needed */
}

#activities-list {
    padding-bottom: 80px;
    padding-top: 20px;
}

.al-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
}

.hac-detail {
    position: relative;
    padding-left: 16px;
    overflow: hidden;
}

.hac-item {
    padding: 16px;
    background: #FAF5F1;
    border-radius: 16px;
    display: grid !important;
    grid-template-columns: 40% auto;
    min-height:290px;
}

.hac-detail-top {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.hac-detail-group {
    margin-right: 15px;
}

.hac-detail-group span {
    border-radius: 100px;
    padding: 8px 16px;
    color: #A378B5;
    font-size: 12px;
    font-family: 'IBMPlexSansThai-SemiBold';
    background: #E7DDE7;
    display: flex;
    width: fit-content;
    line-height: 18px;
    align-items: center;
}

.hac-top-line {
    background: #b5b5b5;
    padding: 15px 0.5px;
}

.hac-detail-date {
    margin-left: 16px;
}

.hac-detail-date span {
    color: #A378B5;
    font-size: 12px;
    line-height: 18px;
}

.hac-detail-title h3 {
    font-family: 'IBMPlexSansThai-Medium';
    color: #212121;
    font-size: 20px;
    line-height: 28px;
}

.hac-detail-text {
    font-size: 12px;
    line-height: 18px;
}

.hac-detail-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #11111117;
}

.hac-detail-viewmore a {
    padding-top: 16px;
    display: flex;
    align-items: center;
    color: #B567AC;
    text-decoration: unset;
    font-size: 14px;
    line-height: 20px;
}

.hac-img img {
    border-radius: 16px;
}

.hac-detail-viewmore a img {
    display: flex;
    align-items: center;
    margin-left: 4px;
    width: 10px;
}

.hac-detail-viewmore a:hover img {
    margin-left: 6px;
}

#gallery-photo {
    padding-bottom: 40px;
}

.gp-wrapper {
    padding: 0;
    margin-top: 30px;
}

#publish-date {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

/* Herb Detail - Slick Gallery */
.gp-item {
    margin: 0px 6px;
}

.gp-wrapper {
    position: relative
}

.gp-slider-for .slick-slide img {
    max-height: 545px;
    object-fit: cover;
}

.gp-slider-for img {
    border-radius: 16px
}

.gp-slider-nav {
    position: relative;
    margin-top: 16px;
    width: 90%;
    margin-left: auto;
    margin-right: auto
}

.gp-slider-nav .slick-list {
    margin: 0 3%
}

.gp-item {
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent
}

.gp-item img {
    object-fit: cover;
    height: 150px;
    border-radius: 12px
}

.gp-slider-nav .slick-current .gp-item {
    border-color: #A66BC4;
    box-shadow: 0 0 0 4px rgba(166, 107, 196, 0.15)
}

/* Arrows */
.slick-arrow {
    display: flex;
    align-items: center;
    justify-content: center
}

.slick-arrow.slick-disabled {
    opacity: .4;
    cursor: not-allowed
}

.slick-prev:before {
    left: -15px;
}

.slick-next:before {
    right: -15px;
}
.sbc-content h4 {
    font-size: 18px;
    line-height: 22px;
    font-family: 'IBMPlexSansThai-SemiBold';
    margin-bottom: 0px;
}

/* Responsive tweaks */

@media (max-width: 1024px) {
    #about-hero {
        background-image: url('../images/Activities/banner-hero.jpg');
        margin-top: 25px;
        border-bottom-right-radius: 120px;
        border-bottom-left-radius: 120px;
        min-height: 420px;
        height: 420px;
    }

    .al-list {
        display: block;
    }

    .hac-item {
        max-width: 100%;
        margin-bottom: 40px;
        grid-template-columns: 30% auto;
        margin-left: 0px;
        margin-right: 0px;
    }

    .af-box {
        width: 100%;
    }

    .af-box .row {
        margin: 0;
        --bs-gutter-x: 1rem;
    }

    .af-box .row>.col {
        padding: 0px 5px;
    }

    .form-label,
    .form-control,
    .form-floating,
    .form-select {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    #about-title h1 {
        text-align: center;
    }

    .af-box-keyword {
        flex: unset;
        min-width: 120px;
    }

    .form-label {
        min-width: 100px;
    }

    #section-detail-content .container {
        padding-bottom: 10px;
    }

    .gp-wrapper {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width:767px) {
    #about-hero {
        border-bottom-left-radius: 80px;
        border-bottom-right-radius: 80px;
        min-height: 340px;
        height: 340px;
    }

    .af-box {
        margin-bottom: 20px;
    }

    .af-box .row>.col {
        flex: unset;
        padding: 0px;
    }

    #activities-list {
        padding-top: 10px;
    }

    .hac-item {
        display: block !important;
        padding: 20px;
    }

    .hac-img img {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
    }

    .hac-detail {
        margin-top: 20px;
        padding-left: 0px;
    }

    .hac-detail-body {
        padding-bottom: 20px;
    }

    .hac-detail-footer {
        position: unset;
    }

    #section-detail-top h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .slick-prev:before,
    .slick-next:before {
        height: 35px;
        width: 35px;
    }

    .gp-wrapper {
        width: 100%;
        margin: 0 auto;
    }

    .slick-next {
        right: 0;
    }

    .gp-slider-nav {
        width: 100%;
    }

    .slick-prev,
    .slick-prev:before {
        left: 0;
    }

    .slick-next:before {
        right: 0px;
    }

    .hp-item img {
        max-height: 100%;
    }

    .gp-item img {
        width: auto !important;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hac-img img {
        max-height: 300px;
    }
}

@media (max-width: 390px) {
    .hac-img img {
        max-height: 250px;
    }
}