/**
 * Modern & Mobile-Responsive Stylesheet for BPPKAD Gresik
 * Developed to enhance CodeIgniter 3 Frontend with modern government design standards.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0b3b82;
  --primary-dark: #072658;
  --primary-light: #1555b5;
  --accent: #00a8cc;
  --accent-hover: #008fae;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(11, 59, 130, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden !important;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Hide legacy theme switcher widget */
.box-style, .color-btn, .box-style-inner {
  display: none !important;
}

/* Reset layout container background */
.box-layout {
  background: transparent !important;
  overflow-x: hidden !important;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-light);
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   MODERN HEADER TOP BAR
   ========================================================================== */
.bg-header-top {
  background: linear-gradient(90deg, #072658 0%, #0b3b82 50%, #0e4c9e 100%) !important;
  color: #e2e8f0;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
  margin-right: 20px;
}

.ticker-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-top-ticker marquee {
  margin: 0;
  color: #f1f5f9;
  font-weight: 500;
}

.header-top-links {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.header-top-links a {
  color: #e2e8f0 !important;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.header-top-links a:hover {
  color: #38bdf8 !important;
}

@media (max-width: 768px) {
  .header-top-links {
    display: none;
  }
  .header-top-ticker {
    margin-right: 0;
  }
}

/* ==========================================================================
   MODERN NAVBAR & MENU
   ========================================================================== */
.bg-main-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: var(--transition);
  padding: 4px 0;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand-modern {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  padding: 4px 0;
}

.navbar-brand-modern img {
  max-height: 58px;
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.navbar-brand-modern:hover img {
  transform: scale(1.02);
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.navbar-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.navbar-modern {
  margin-bottom: 0;
  border: none;
  background: transparent;
}

.navbar-modern .navbar-nav > li > a {
  font-size: 14px;
  font-weight: 600;
  color: #334155 !important;
  padding: 22px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-modern .navbar-nav > li > a:hover,
.navbar-modern .navbar-nav > li > a:focus,
.navbar-modern .navbar-nav > li.open > a {
  color: var(--primary) !important;
  background-color: rgba(11, 59, 130, 0.06) !important;
}

.navbar-modern .navbar-nav > li.active > a {
  color: var(--primary) !important;
  background-color: rgba(11, 59, 130, 0.08) !important;
  font-weight: 700;
}

/* Dropdown Menu */
.navbar-modern .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 230px;
  margin-top: 5px;
  background: #ffffff;
  animation: fadeInDown 0.25s ease-out;
}

.navbar-modern .dropdown-menu > li > a {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.navbar-modern .dropdown-menu > li > a:hover {
  background-color: #f1f5f9;
  color: var(--primary);
  transform: translateX(4px);
}

/* Mobile Toggle Button */
.navbar-modern .navbar-toggle {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.navbar-modern .navbar-toggle .icon-bar {
  background-color: var(--primary);
  height: 2.5px;
  border-radius: 2px;
}

@media (max-width: 991px) {
  .navbar-brand-sub {
    display: none;
  }
  .navbar-modern .navbar-collapse {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px 15px;
  }
  .navbar-modern .navbar-nav > li > a {
    padding: 12px 14px !important;
  }
}

/* Search Box Container */
.navbar-modern .navbar-nav > li.search-nav-item {
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .navbar-modern .navbar-nav {
    display: flex;
    align-items: center;
  }
  .navbar-modern .navbar-nav::before,
  .navbar-modern .navbar-nav::after {
    display: none;
  }
  .navbar-modern .navbar-nav > li.search-nav-item {
    margin-left: 8px;
  }
}

.search-form-modern {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.search-form-modern input {
  height: 38px;
  padding: 6px 14px 6px 36px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  background: #f8fafc;
  transition: var(--transition);
  width: 170px;
}

.search-form-modern input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 59, 130, 0.12);
  width: 220px;
}

.search-form-modern .search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

@media (max-width: 767px) {
  .navbar-modern .navbar-nav > li.search-nav-item {
    display: block;
  }
  .search-form-modern {
    margin: 12px 0 8px;
  }
  .search-form-modern input,
  .search-form-modern input:focus {
    width: 100%;
  }
}

/* ==========================================================================
   MODERN HERO BANNER
   ========================================================================== */
.hero-banner-modern {
  position: relative;
  background: linear-gradient(135deg, #072658 0%, #0b3b82 60%, #0284c7 100%);
  color: #ffffff;
  padding: 60px 0 70px;
  overflow: hidden;
}

.hero-banner-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #e0f2fe;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero-primary {
  background: #ffffff;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ffffff;
  transition: var(--transition);
}

.btn-hero-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
  background: transparent;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.hero-illustration-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-illustration {
  max-height: 380px;
  width: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
  animation: floatAnimation 4s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
  .hero-banner-modern {
    padding: 40px 0 50px;
    text-align: center;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    margin: 0 auto 25px;
    font-size: 14px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-illustration {
    max-height: 260px;
    margin-top: 30px;
  }
}

/* ==========================================================================
   MODERN ABOUT / SAMBUTAN SECTION
   ========================================================================== */
.section-sambutan {
  padding: 70px 0;
  background: #ffffff;
}

.card-sambutan {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.card-sambutan::before {
  content: "“";
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 160px;
  color: rgba(11, 59, 130, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.sambutan-content-col {
  padding-right: 30px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.sambutan-text {
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 25px;
  text-align: justify;
}

.sambutan-author-box {
  border-left: 4px solid var(--accent);
  padding-left: 15px;
  margin-top: 20px;
}

.author-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.author-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.pejabat-photo-wrapper {
  text-align: center;
  position: relative;
}

.pejabat-photo-wrapper img {
  max-height: 380px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.pejabat-photo-wrapper:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .section-sambutan {
    padding: 40px 0;
  }
  .card-sambutan {
    padding: 24px;
  }
  .sambutan-content-col {
    padding-right: 0;
    margin-bottom: 25px;
  }
  .section-title {
    font-size: 22px;
  }
  .pejabat-photo-wrapper img {
    max-height: 280px;
  }
}

/* ==========================================================================
   MODERN LAYANAN SECTION
   ========================================================================== */
.section-layanan {
  padding: 80px 0;
  background: #f1f5f9;
  position: relative;
}

.section-header-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.card-layanan-modern {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
  text-decoration: none !important;
}

.card-layanan-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(11, 59, 130, 0.3);
}

.layanan-img-box {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #e2e8f0;
}

.layanan-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-layanan-modern:hover .layanan-img-box img {
  transform: scale(1.08);
}

.layanan-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.layanan-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 10px;
  transition: var(--transition);
}

.card-layanan-modern:hover .layanan-title {
  color: var(--accent);
}

.layanan-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.layanan-btn-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-layanan-modern:hover .layanan-btn-link {
  color: var(--accent);
  gap: 10px;
}

/* ==========================================================================
   MODERN BERITA SECTION
   ========================================================================== */
.section-berita {
  padding: 80px 0;
  background: #ffffff;
}

.card-berita-modern {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 30px;
}

.card-berita-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 59, 130, 0.2);
}

.berita-thumb-box {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #f1f5f9;
}

.berita-thumb-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.berita-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
}

.card-berita-modern:hover .berita-thumb-box img {
  transform: scale(1.06);
}

.berita-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 59, 130, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.berita-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.berita-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.berita-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 12px;
  transition: var(--transition);
}

.berita-title a {
  color: var(--text-main);
}

.berita-title a:hover {
  color: var(--primary);
}

.berita-excerpt {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.berita-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-read-more:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* ==========================================================================
   MODERN FOOTER
   ========================================================================== */
.footer-modern {
  background: #071938;
  color: #94a3b8;
  padding-top: 70px;
  position: relative;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: -0.2px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-contact-list li i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 3px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list li a {
  color: #cbd5e1;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-list li a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.social-icons-modern {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 168, 204, 0.4);
}

.footer-bottom-bar {
  background: #040e22;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WHATSAPP & SCROLL TOP)
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #ffffff !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
}

.floating-wa-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.floating-scroll-top {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background: var(--primary);
  color: #ffffff !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 44px;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  z-index: 9998;
  cursor: pointer;
  transition: var(--transition);
}

.floating-scroll-top i {
  line-height: 1;
  margin: 0;
}

.floating-scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   MODERN SAKIP & CONTENT PAGES
   ========================================================================== */
.sakip-section-modern {
  padding: 50px 0 80px;
  background: #f8fafc;
}

.sakip-group-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
  overflow: hidden;
}

.sakip-group-header {
  background: linear-gradient(90deg, #0b3b82 0%, #1555b5 100%);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sakip-group-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-modern {
  margin-bottom: 0;
}

.table-modern th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  border-top: none !important;
  padding: 12px 16px !important;
}

.table-modern td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
  font-size: 14px;
  border-top: 1px solid #f1f5f9 !important;
}

.table-modern tr:hover td {
  background-color: #f8fafc;
}


/* ==========================================================================
   ENHANCEMENTS FOR SUB-PAGES (BERITA, DOWNLOAD, KONTAK, GALERI)
   ========================================================================== */
.bg-blog-style-2,
.bg-servicesstyle2-section,
.bg-single-blog {
  background: var(--bg-light) !important;
  padding: 40px 0 70px !important;
}

/* Blog / News Items */
.blog-items {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  overflow: hidden;
  transition: var(--transition);
}

.blog-items:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 59, 130, 0.2);
}

.blog-items .blog-img {
  height: 340px;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-items .blog-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.blog-items .blog-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  transition: transform 0.5s ease;
}

.bg-single-blog .blog-items .blog-img {
  height: auto;
  max-height: 600px;
}

.bg-single-blog .blog-items .blog-img img {
  max-height: 600px;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
}

.blog-items:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content-box {
  padding: 24px;
}

.blog-content h4 a {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  transition: var(--transition);
}

.blog-content h4 a:hover {
  color: var(--primary);
}

.meta-post {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 10px 0 15px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.meta-post li i {
  color: var(--primary-light);
  margin-right: 4px;
}

/* Sidebar Widgets */
.sidebar .widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 25px;
}

.sidebar-widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Pagination Styling */
.pagination > li > a,
.pagination > li > span {
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  color: var(--primary);
  border-color: var(--border-color);
  font-weight: 600;
  padding: 8px 14px;
}

.pagination > .active > a,
.pagination > .active > span {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* DataTables & Generic Tables Styling */
.dataTables_wrapper {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.table-bordered {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-bordered > thead > tr > th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  padding: 12px;
}

.table-bordered > tbody > tr > td {
  padding: 12px;
  vertical-align: middle;
  border-color: #f1f5f9;
}

.table-hover > tbody > tr:hover {
  background-color: #f8fafc;
}

/* Alert Boxes Modernization */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--success);
}

.alert-info {
  background-color: #f0f9ff;
  color: #0369a1;
  border-left: 4px solid var(--accent);
}

.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--warning);
}

/* Modern Form Controls */
.form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: none;
  padding: 10px 14px;
  height: auto;
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(11, 59, 130, 0.12);
}

/* Modern Button Primary */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

