:root {
  --inkom-red: #C31A2E;
  --inkom-dark: #222222;
  --inkom-grey: #F4F4F4;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--inkom-dark);
}

.text-red {
  color: var(--inkom-red);
}

.btn-red {
  background-color: var(--inkom-red);
  color: #ffffff;
  font-weight: 500;
  border-radius: 5px;
  padding: 10px 24px;
}

.btn-red:hover {
  background-color: #a01526;
  color: #ffffff;
}

.navbar-nav .nav-link.active {
  color: var(--inkom-red) !important; 
  font-weight: 700;
  border-bottom: 2px solid var(--inkom-red);
}

.hero-section h1 {
  color: var(--inkom-dark);
}

.divisi-section h4 {
  color: var(--inkom-dark);
}

.divisi-section p {
  line-height: 1.6;
}

.kegiatan-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  cursor: pointer;
}

.kegiatan-card img {
  transition: transform 0.4s ease;
}

.kegiatan-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%); 
  transition: transform 0.4s ease;
}

.kegiatan-card:hover .kegiatan-overlay {
  transform: translateY(0);
}

.kegiatan-card:hover img {
  transform: scale(1.05);
}

.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.news-img-container {
  position: relative;
  overflow: hidden;
}

.news-img-container .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.news-img-container:hover .play-icon {
  opacity: 1;
}

.news-img-container:hover img {
  filter: brightness(0.7);
}

.testimoni-card {
  border-radius: 8px;
}

.testimoni-card .d-flex {
  position: relative;
  padding-top: 1rem;
  border-top: 2px solid var(--inkom-grey);
}

.partner-logo {
  max-height: 50px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.footer-section a {
  transition: color 0.3s ease;
}
.footer-section a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.footer-section .list-unstyled a {
  text-decoration: none !important;
}

.page-header-cover {
  position: relative;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
    url('assets/images/k1.jpg');
  
  background-size: cover;
  background-position: center center;
  padding: 6rem 0;
  color: #ffffff;
}

.gallery-masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .gallery-masonry-grid {
    column-count: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  position: relative;
}

.category-card-link {
  text-decoration: none;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 350px;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
  .category-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto tidak gepeng */
    transition: all 0.3s ease;
  }
  
  .category-card:hover .category-img {
    filter: brightness(0.9);
  }
  
  .category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  }
  

/* Styling untuk Tabs di berita.php */
.daftar-berita-section .nav-tabs {
    border-bottom: 2px solid #dee2e6;
  }
  .daftar-berita-section .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--inkom-dark);
    font-weight: 500;
    font-size: 1.1rem;
  }
  .daftar-berita-section .nav-tabs .nav-link:hover {
    border-color: #ddd;
  }
  .daftar-berita-section .nav-tabs .nav-link.active {
    border-color: var(--inkom-red);
    color: var(--inkom-red);
    font-weight: bold;
  }
 
  .article-content {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  .article-content h2,
  .article-content h3 {
    color: var(--inkom-dark);
  }
  
  .sidebar-berita .list-group-item a {
    text-decoration: none;
    color: var(--inkom-dark);
    font-weight: 500;
  }
  .sidebar-berita .list-group-item a:hover {
    color: var(--inkom-red);
  }
  .sidebar-berita .list-group-item {
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #eee !important;
  }
  .sidebar-berita .list-group-item:last-child {
    border-bottom: 0 !important;
  }

/* ========================
   14. Pagination (Modern)
======================== */

.pagination {
 
    --bs-pagination-margin-x: 0.25rem; 
  }
  
  .pagination .page-link {
    border: none;  
    border-radius: 8px !important;  
    margin: 0 4px;  
    font-weight: 500;
    color: var(--inkom-dark);
    background-color: #f0f0f0;
    transition: all 0.3s ease;
  }
  
  .pagination .page-item:first-child .page-link,
  .pagination .page-item:last-child .page-link {
    font-weight: 700;
    background-color: transparent;
    color: var(--inkom-dark);
  }
  
  .pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #aaa;
  }
  
  .pagination .page-link:hover {
    background-color: #e0e0e0;
    color: var(--inkom-dark);
  }
  
  .pagination .page-item.active .page-link {
    background-color: var(--inkom-red);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(195, 26, 46, 0.3);
  }
  
  .pagination .page-link:focus {
    box-shadow: none;
  }
  
  .search-filter-section .form-control,
  .search-filter-section .form-select {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: none !important; 
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .search-filter-section .form-control:focus,
  .search-filter-section .form-select:focus {
    border-color: var(--inkom-red);
    box-shadow: 0 0 0 0.2rem rgba(195, 26, 46, 0.2) !important; 
  }
  
  :root {
    --inkom-red: #D20000;
    --inkom-dark: #212529;
    --inkom-light-gray: #F8F9FA;
    --inkom-gray: #6C757D;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    color: var(--inkom-dark);
  }
  
  .navbar-brand .text-red {
    color: var(--inkom-red) !important;
  }
  .nav-link.active {
    font-weight: bold;
    color: var(--inkom-red) !important;
  }
  
  .hero-section {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    position: relative;
    z-index: 1;
  }
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
  .hero-section .display-3 {
    font-weight: 800;
  }
  .hero-section .btn-primary {
    background-color: var(--inkom-red);
    border-color: var(--inkom-red);
    font-weight: bold;
  }
  .hero-section .btn-outline-light {
    color: white;
    border-color: white;
    font-weight: bold;
  }
  .hero-section .btn-outline-light:hover {
    background-color: white;
    color: var(--inkom-dark);
  }
  
  .kabinet-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .kabinet-img {
    width: 120px;
    height: 120px; 
    object-fit: cover;
    border: 3px solid var(--inkom-red);
  }
  
  footer {
    background-color: var(--inkom-dark);
    color: #f8f9fa;
    padding: 3rem 0;
  }
  footer h5 {
    color: var(--inkom-red);
  }
  footer a {
    color: #adb5bd;
    text-decoration: none;
  }
  footer a:hover {
    color: #ffffff;
  }
  .social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #adb5bd;
  }
  .social-icons a:hover {
    color: var(--inkom-red);
  }
  
  .sidebar {
    background-color: var(--inkom-dark);
  }
  .sidebar .nav-link.active {
    background-color: var(--inkom-red);
    color: white !important;
  }
  .text-red {
    color: var(--inkom-red) !important;
  }
  
  .kabinet-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 100%;
    text-align: center;
  }
  
  .kabinet-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--inkom-red);
    margin-bottom: 1rem;
  }
  
  .partner-logo {
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
  }
  
  .btn-red {
    background-color: var(--inkom-red);
    color: #ffffff;
    font-weight: 500;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .btn-red:hover {
    background-color: #a01526;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  