/* ========================================
   HERO
   ======================================== */

.hero-dekstop {
    padding: 40px 0;
    margin-bottom: 40px;
    overflow: hidden;
    min-height: 360px;
    background-image: url('/img/csr-detail/bg-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-dekstop-content {
    padding-right: 90px;
}

.hero-dekstop-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
    font-size: 12px;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.hero-dekstop-content .breadcrumb-item {
    flex-shrink: 0;
    white-space: nowrap;
}

.hero-dekstop-content .breadcrumb-item:last-child {
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.hero-dekstop-content .breadcrumb-item a {
    color: #F07126;
    font-weight: 700;
    text-decoration: none;
}

.hero-dekstop-content .breadcrumb-item.active {
    color: #66788A;
    font-weight: 400;
}

.hero-dekstop-content .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #66788A;
    padding: 0 6px;
    flex-shrink: 0;
}

.hero-dekstop-content .hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: #03213E;
    margin-bottom: 12px;
}

.hero-dekstop-content .hero-meta {
    font-size: 14px;
    line-height: 20px;
    color: #66788A;
    font-weight: 400;
}

.hero-dekstop-image {
    top: 0;
    right: 0;
    width: 770px;
    height: 100%;
}

.hero-dekstop-image .img-fluid {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1440px) and (max-width: 1550px) {
    .hero-dekstop-image {
        width: 520px;
    }
}

@media (max-width: 1024px) {
    .hero-dekstop-image {
        margin-top: 0;
        width: 380px;
    }

    .hero-dekstop-content .hero-title {
        font-size: 24px;
        line-height: 34px;
    }

    .card-csr-title {
        -webkit-line-clamp: 1 !important;
        line-clamp: 1 !important;
    }
}

@media (min-width: 992px) {
    .hero-dekstop {
        background-color: #F8F9FA;
        padding: 80px 0;
        margin-bottom: 60px;
    }

    .hero-dekstop-content .breadcrumb {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .hero-dekstop-image .img-fluid {
        border-radius: 0;
        mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
    }
}


/* LATEST CSR SECTION */
.latest-csr-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.latest-csr-list h1 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.card-csr-item {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.card-csr-item:hover {
    scale: 1.01;
    transition: all;
    transition-duration: 300ms;
}

.card-csr-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    flex: 0 0 80px;
}

.card-csr-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.card-csr-title {
    margin-bottom: 8px;
    color: #03213E;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-clamp: 2;
}

.card-csr-date {
    color: #66788A;
    line-height: 24px;
    margin-bottom: 0;
}

/* ========================================
   SHARE COMPONENT
   ======================================== */

.share-component-wrapper {
    position: relative;
    display: inline-block;
}

.btn-share {
    background-color: #F07126;
    color: #FFFFFF;
    border: none;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-share .ui-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
    width: 20px;
    height: 20px;
}

.share-popup {
    position: absolute;
    bottom: calc(100% - 13rem);
    right: 0;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 100;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.share-popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.share-popup-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.share-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #F5F5F5;
    border-radius: 50%;
    color: #03213E;
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.share-icon-btn .ui-icon {
    border-color: transparent;
}

.share-icon-btn:hover {
    background-color: #E0E0E0;
    color: #03213E;
}

.btn-copy-link {
    width: 100%;
    background-color: #FEF2EA;
    color: #F07126;
    border-radius: 50px;
    padding: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: background-color 0.3s ease;
}

.btn-copy-link:hover {
    color: #F07126 !important;
}

.btn-copy-link img {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
    width: 20px;
    height: 20px;
}

.article-content span {
    color: #03213E !important;
    font-size: 18px !important;
    line-height: 26px !important;
    font-family: inherit !important;
}

.article-content p > span {
    color: #03213E !important;
    font-size: 18px !important;
    line-height: 26px !important;
    font-family: inherit !important;
}

.article-content strong {
    color: #03213E;
    font-size: 18px !important;
    line-height: 26px !important;
    font-family: inherit !important;
}

.article-content p > strong {
    color: #03213E;
    font-size: 18px !important;
    line-height: 26px !important;
    font-family: inherit !important;
}

.article-content p > img {
    overflow: hidden;
    max-height: 475px;
    width: 100% !important;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 40px;
    margin-bottom: 40px;;
}

.hero-mobile-image {
    max-height: 475px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 991px) {
    .hero-mobile-image {
       max-height: 340px;
       border-radius: 16px;
       overflow: hidden;
       margin-bottom: 24px;
    }

    .hero-mobile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 767px) {
    .share-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        box-shadow: 0px -8px 24px rgba(0, 0, 0, 0.1);
    }

    .share-popup.active {
        transform: translateY(0);
    }

    .hero-mobile-image {
       max-height: 240px;
       border-radius: 16px;
       overflow: hidden;
       margin-bottom: 24px;
    }

    .hero-mobile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-dekstop-content .breadcrumb {
        font-size: 11px;
    }

    .hero-dekstop-content .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .hero-dekstop {
        min-height: 400px;
        display: flex;
        align-items: center;
    }

    .hero-dekstop-content {
        padding-right: 0px;
    }

    .article-content p {
        font-size: 16px;
        color: #03213E;
        line-height: 26px;
    }
}