/* Activity Cards (Home Page) */
.activity-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    transition: background 0.4s ease;
}

.activity-card:hover .activity-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.activity-card-content {
    padding: 30px;
    width: 100%;
    position: relative;
}

.activity-card-title {
    color: #fff;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 3px solid #fff;
    padding-bottom: 10px;
    display: inline-block;
}

.activity-card-description {
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.activity-card:hover .activity-card-description {
    max-height: 300px;
    transform: translateY(0);
    opacity: 1;
}

.activity-card-description p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.btn-activity {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.btn-activity:hover {
    background-color: #fff;
    color: #333;
    text-decoration: none;
}

.btn-activity i {
    transition: transform 0.3s ease;
}

.btn-activity:hover i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .activity-card {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .activity-card {
        height: 300px;
    }

    .activity-card-title {
        font-size: 20px;
    }
}

/* News Section (Home Page) */
.news-large-card {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.news-large-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-large-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 40px 30px;
}

.news-large-content {
    color: #fff;
}

.news-large-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.news-large-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.news-large-date i {
    margin-right: 8px;
}

.news-large-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-news-large {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-news-large:hover {
    background-color: #fff;
    color: #333;
    text-decoration: none;
}

.btn-news-large i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-news-large:hover i {
    transform: translateX(5px);
}

.news-small-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-small-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-small-img {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}

.news-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-small-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-small-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-small-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.news-small-date i {
    margin-right: 6px;
}

.news-small-link {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.news-small-link:hover {
    color: #000;
    text-decoration: none;
}

.news-small-link i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.news-small-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .news-large-card {
        height: 400px;
    }

    .news-large-title {
        font-size: 24px;
    }

    .news-small-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .news-large-card {
        height: 350px;
        margin-bottom: 20px;
    }

    .news-large-title {
        font-size: 20px;
    }

    .news-large-overlay {
        padding: 25px 20px;
    }

    .news-small-img {
        width: 120px;
        height: 120px;
    }

    .news-small-content {
        padding: 15px;
    }

    .news-small-title {
        font-size: 14px;
    }
}

/* Galeri Section Styles */

.galeri-area {
    padding-top: 80px;
    padding-bottom: 50px;
}

/* Filter Styles */
.site-filters.center {
    text-align: center;
}

.filters {
    display: inline-block;
    padding: 0;
    margin-bottom: 30px;
    list-style: none;
}

.filters li {
    display: inline-block;
}

.filters li.btn {
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000000;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filters li.btn:after {
    content: "/";
    margin-left: 15px;
    color: #CED4DA;
    font-weight: 300;
}

.filters li.btn:last-child:after {
    display: none;
}

.filters li.btn.active,
.filters li.btn:hover {
    color: #009142;
    /* Reference green */
}

.filters li.btn a {
    color: inherit;
    text-decoration: none !important;
}

.filters li.btn a:hover {
    color: inherit;
    text-decoration: none !important;
}

.filters li.btn span {
    text-decoration: none !important;
}

.filters li input {
    display: none;
}

/* Gallery Box Styles */
.galeri-box {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.galeri-box:hover {
    transform: translateY(-5px);
}

.galeri-info {
    padding: 20px;
}

.galeri-info .title {
    margin: 0 0 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #333333;
}

.galeri-info .description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* Overlay Icon Styles */
.overlay-icon {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.overlay-icon .check-km {
    width: 60px;
    height: 60px;
    background: #FFFFFF !important;
    color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.overlay-icon .check-km:hover {
    background: #f8f9fa !important;
    transform: scale(1.1);
}

.dlab-img-overlay1:before {
    background: rgba(0, 145, 66, 1) !important;
    /* Adjusted green overlay */
}

/* Masonry Overrides */
.card-container {
    transition: all 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .filters li.btn {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* Rabu Ceria Section */
.section-head .dlab-separator-outer {
    margin-top: 15px;
}

.dlab-box {
    transition: all 0.3s ease;
}

.dlab-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dlab-title a {
    color: #333;
    text-decoration: none;
}

.dlab-title a:hover {
    color: #009142;
}

/* Detail Page Styles */
.green-bullets {
    list-style: none;
    padding-left: 0;
}

.green-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.green-bullets li:before {
    content: "•";
    color: #009142;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.green-quote-box blockquote {
    background-color: #009142 !important;
    /* Green background */
    border-left: none;
    color: #fff;
}

.green-quote-box .blockquote-footer {
    color: rgba(255, 255, 255, 0.8) !important;
}

.event-meta ul li i {
    color: #009142;
    /* Green icons */
}

.event-meta ul li {
    font-size: 14px;
    font-weight: 500;
}

/* Utility & Section Styles */
.section-title-accent {
    border-left: 5px solid #009142;
    padding-left: 10px;
}

.section-title-underline {
    border-bottom: 2px solid #ccc;
    margin-top: 10px;
    width: 100px;
}

.ekskul-title-custom {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    margin-bottom: 5px !important;
    text-transform: none !important;
}

.ekskul-separator-custom {
    position: relative;
    height: 3px;
    background: #e9ecef;
    width: 100%;
    margin-top: 5px;
}

.ekskul-separator-custom::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #009142;
    z-index: 2;
}

.ekskul-separator-custom::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    width: 150px;
    height: 3px;
    background: #009142;
    z-index: 1;
}

.rounded-box-10 {
    border-radius: 10px !important;
}

.img-cover-200 {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.img-cover-300 {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

/* Card Equal Height Fixes */
.card-container-flex {
    display: flex;
    flex-wrap: wrap;
}

.card-h-100 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-h-100 .dlab-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-h-100 .dlab-media {
    flex-shrink: 0;
}

/* Pengumuman Detail Styles */
.content-box {
    word-wrap: break-word;
    /* Versi lama untuk kompatibilitas */
    overflow-wrap: break-word;
    /* Standar modern */
    word-break: break-word;
    /* Memastikan kata yang sangat panjang terpotong */
    hyphens: auto;
    /* Opsional: Menambahkan tanda strip pada pemotongan kata */
}

.post-title {
    word-wrap: break-word;
    /* Versi lama untuk kompatibilitas */
    overflow-wrap: break-word;
    /* Standar modern */
    word-break: break-word;
    /* Memastikan kata yang sangat panjang terpotong */
    hyphens: auto;
    /* Opsional: Menambahkan tanda strip pada pemotongan kata */
}

.dlab-post-text {
    word-wrap: break-word;
    /* Versi lama untuk kompatibilitas */
    overflow-wrap: break-word;
    /* Standar modern */
    word-break: break-word;
    /* Memastikan kata yang sangat panjang terpotong */
    hyphens: auto;
    /* Opsional: Menambahkan tanda strip pada pemotongan kata */
}


.pengumuman-title {
    color: #333 !important;
    text-align: center !important;
}

.pengumuman-meta-item,
.pengumuman-meta-item i,
.pengumuman-meta-item a,
.pengumuman-content-list,
.pengumuman-content-list li,
.pengumuman-content-list span {
    color: #009142 !important;
}

.pengumuman-section-title {
    color: #333 !important;
    font-weight: 600;
}

.carousel-control-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-thumbnail-container {
    gap: 15px;
    flex: 1;
}

.carousel-thumbnail-item {
    min-width: 150px;
    height: 100px;
    cursor: pointer;
}

.carousel-thumbnail-img {
    object-fit: cover;
}


.widget-title-custom {
    position: relative;
    border-bottom: 1px solid #e1e1e1;
    /* The gray line spanning full width */
    margin-bottom: 20px;
    padding-bottom: 0;
}

.widget-title-custom span {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    /* Spacing text from line */
    border-bottom: 3px solid #009142;
    /* The green line under text */
    margin-bottom: -2px;
    /* Pull down to cover gray line */
    color: #333;
    font-weight: 700;
    font-size: 18px;
    padding-left: 20px;
    /* Space for the square */
}

/* Green Square Bullet */
.widget-title-custom span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    /* Adjust for vertical centering relative to text cap height */
    width: 10px;
    height: 10px;
    background-color: #009142;
}

.search-input-custom {
    height: 50px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    /* Slight rounding for input */
    padding-left: 15px;
}

.search-btn-custom {
    background-color: #009142;
    height: 48px;
    /* Slightly smaller to fit inside input group if needed, or match */
    width: 50px;
    border-radius: 4px;
    margin-left: 5px;
    /* Spacing from input */
    color: white;
}


.widget-gallery-list {
    gap: 10px;
    padding: 0;
    list-style: none;
}

.widget-gallery-item {
    width: calc(33.333% - 7px);
    margin: 0;
}

.widget-gallery-img {
    height: 80px;
    object-fit: cover;
}

.widget-recent-post-container {
    border-bottom: 1px solid #dee2e6;
    /* Using standard border color */
    padding-bottom: 1rem;
}

.widget-recent-post-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.widget-recent-post-date {
    color: #009142;
}


.widget-recent-post-title {
    color: #333;
}

/* Metadata Centering */
.pengumuman-meta-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Text Truncation with Fade */
.text-fade-truncate {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.dlab-post-info {
    flex: 1;
    min-width: 0;
    /* Important for flex child truncation */
}

.img-wrapper-slider {
    position: relative;
    display: block;
    width: 100%;
}

.img-slider {
    position: relative;
    overflow: hidden;
    background-color: #f7fafc;
    width: 100%;
    /* No default height or aspect-ratio here, set it on HTML inline or classes so all images fill it */
}

.img-slider img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0;
    animation: fadeCycle 9s infinite;
}

/* Animation Delays */
.img-slider img:nth-child(1) {
    animation-delay: 0s;
}

.img-slider img:nth-child(2) {
    animation-delay: 3s;
}

.img-slider img:nth-child(3) {
    animation-delay: 6s;
}

@keyframes fadeCycle {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* --- Detail Pages Common Styles --- */
.border-left-green {
    border-left: 4px solid #009142;
}

.text-primary {
    color: #009142 !important;
}

.bg-primary {
    background-color: #009142 !important;
}

.btn-primary {
    background-color: #009142;
    border-color: #009142;
}

.object-cover {
    object-fit: cover;
}

.widget-title-custom {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.post-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}