/* News Card Styles */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.news-card-category a {
    background: linear-gradient(135deg, #edc356 0%, #d4a84b 100%);
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-category a:hover {
    background: linear-gradient(135deg, #d4a84b 0%, #c49a40 100%);
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6c757d;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-meta i {
    color: #edc356;
    font-size: 12px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #374774;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374774;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-card-link i {
    transition: transform 0.3s ease;
}

.news-card-link:hover {
    color: #edc356;
}

.news-card-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .news-card-image {
        height: 180px;
    }
    
    .news-card-body {
        padding: 18px;
    }
    
    .news-card-title {
        font-size: 16px;
    }
}

/* Modal Styles untuk Home Gallery */
.modal-fullscreen .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
}

.btn-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1000;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-navigation:hover {
    opacity: 1;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.image-container {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.image-counter {
    font-size: 14px;
    opacity: 0.8;
}

.agenda-table {
    padding: 0px 4px !important;
}

/* Basic styling untuk project-thumb tanpa hover effect */
.project-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Untuk tabel agenda */
.agenda-table .float-end {
    font-size: 12px;
    cursor: pointer;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Video Player Styles */
.video-container {
    background-color: #000;
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    max-height: 600px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .video-container {
        min-height: 300px;
        margin-top: 20px;
    }
}

.table {
    min-width: 600px;
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.table td {
    word-break: break-word;
    white-space: normal;
}

th.sort {
    white-space: nowrap;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-navigation {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}