/*
    ------------------------------------------------------
    GLOBAL STYLES
    ------------------------------------------------------
*/
:root {
    /* Aturan awal untuk variabel yang tidak dinamis */
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --font-family: Arial, sans-serif;
    --heading-color: #212529;
    --link-color: #007bff;
    --text-color: #212529;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --card-bg: #fff;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

a {
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/*
    ------------------------------------------------------
    LAYOUT & COMPONENT STYLES
    ------------------------------------------------------
*/
.container-boxed {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card .text-muted {
    color: var(--text-color);
    opacity: 0.7;
}

/* --- Perbaikan: Navbar --- */
.navbar-custom {
    background-color: var(--primary-color) !important;
    transition: background-color 0.3s ease;
}
.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
    color: #fff !important; /* Menggunakan putih agar kontras dengan warna primary */
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active,
.navbar-custom .dropdown-menu .dropdown-item:hover {
    color: var(--secondary-color) !important; /* Menggunakan secondary untuk hover */
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color);
    filter: brightness(110%);
    border-color: var(--primary-color);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    filter: brightness(110%);
    border-color: var(--secondary-color);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(60%);
    transition: opacity 1s ease-in-out;
}

/* News & Gallery */
.card img.news-card-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover img.news-card-img {
    transform: scale(1.05);
}

.gallery img {
    height: 150px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery img:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    /* Mengatur latar belakang footer sesuai warna_primary */
    background-color: var(--primary-color) !important;
    color: #fff;
    padding: 40px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}
footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--secondary-color);
}

/* Scroll to top button */
.scroll-up {
    /* Mengatur latar belakang scroll-up sesuai warna_primary */
    background-color: var(--primary-color) !important;
    color: #fff; /* Menggunakan #fff untuk warna ikon agar selalu terlihat */
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}
.scroll-up.show {
    opacity: 1;
    visibility: visible;
}

/* Dark Mode Specific Styles */
body.dark-mode {
    color: #eee;
    background-color: #1a1a1a;
}
/* Dark Mode Specific Styles */
body.dark-mode {
    color: #eee;
    background-color: #1a1a1a;
}
body.dark-mode .card {
    background-color: #333;
    color: #eee;
}
body.dark-mode .map-container {
    filter: grayscale(80%) invert(92%) contrast(83%);
}
body.dark-mode .text-muted, body.dark-mode .text-muted a {
    color: #eee;
    opacity: 0.7;
}

/* --- Perbaikan: Dark Mode Footer --- */
body.dark-mode footer {
    /* Pastikan footer di mode gelap juga tetap menggunakan warna primary */
    background-color: var(--primary-color) !important;
    color: #fff;
}
body.dark-mode footer a {
    color: #fff;
}

/* HERO SLIDER */
#hero-carousel.carousel,
#hero-carousel .carousel-inner,
#hero-carousel .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.title-3d span {
  display: inline-block;
  color: #ffcc00;
  -webkit-text-stroke: 1px white;
  text-shadow: 
    2px 2px 0px #000,
    -2px -2px 0px #555,
    3px 3px 5px rgba(0,0,0,0.6);
  animation: glow 3s infinite ease-in-out;
}

/* animasi glow */
@keyframes glow {
  0%, 100% {
    text-shadow:
      2px 2px 0px #000,
      -2px -2px 0px #555,
      3px 3px 5px rgba(0,0,0,0.6),
      0 0 5px rgba(0,0,0,0.8),
      0 0 15px rgba(0,0,0,0.6);
  }
  50% {
    text-shadow:
      2px 2px 0px #000,
      -2px -2px 0px #555,
      3px 3px 5px rgba(0,0,0,0.6),
      0 0 20px rgba(0,0,0,0.9),
      0 0 40px rgba(0,0,0,0.7);
  }
}

.hero-content {
  position: relative;
  top: 0px;
  padding-bottom: 0px;
  text-align: center;
}