:root {
  --primary-red: #8b0000;
  --text-gold: #d4af37;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  max-width: 100%;
  font-family: 'Playfair Display', serif;
  color: white; 
  overflow-x: hidden;
}

#bg-img {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1;
  display: block;
}

header {
  text-align: center;
  margin-bottom: 50px;
}

.logo {
  font-size: 3em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
  font-size: 1.2em;
  font-style: italic;
  color: #d4af37; 
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

/* --- KODE CSS NAVBAR EFEK KACA --- */
.transparent_navbar {
  display: flex;
  justify-content: space-between; /* Mendorong bagian kiri dan kanan agar saling menjauh ke ujung */
  align-items: center;
  padding: 10px 20px; /* Sesuaikan dengan padding bawaan template */
  width: 100%;
  position: relative; 
  
  background-color: rgba(20, 20, 20, 0.4); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px); 
  border-bottom: 1px solid #ffffff; 
  
  z-index: 1000; 
  box-sizing: border-box; 
  transition: all 0.5s;
}


/* --- TAMBAHAN CLASS UNTUK WRAPPER TAG A --- */
.nav_brand_wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 5px; /* Mengatur jarak antara logo dan teks */
}

/* --- BAGIAN KIRI (Logo & Teks) --- */
.nav_left_section {
  display: flex;
  align-items: center;
  gap: 15px; /* Jarak antara logo dan teks */
}

.nav_logo_image {
  object-fit: cover; /* Mencegah gambar gepeng */
  border-radius: 8px; /* Opsional: memberi sedikit lengkungan di sudut logo */
}

.nav_brand_container {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left; /* Teks sekarang rata kiri mengikuti logo */
}

.nav_main_title {
  font-family: 'Playfair Display', serif;
  font-size: 37px; /* Sedikit dikecilkan agar proporsional dengan logo */
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
  margin-bottom: -12px; /* Merapatkan jarak ke subtitle */
}

.nav_sub_title {
  font-family: 'Great Vibes', cursive;
  font-size: 20px; 
  color: #d68c28; 
  font-weight: 400;
  margin: 0;
}

/* --- BAGIAN KANAN (Menu Navigasi) --- */
.nav_menu_list {
  display: flex;
  list-style: none; /* Menghilangkan titik bulat pada list */
  gap: 20px; /* Jarak antar menu */
  margin: 0;
  padding: 0;
}

.nav_menu_list li a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Playfair Display', serif; /* Menyerasikan font menu dengan judul */
  font-size: 15px;
  transition: color 0.3s ease;
  font-weight: bold;
}

.nav_menu_list li a:hover {
  color: #d68c28; /* Warna teks menu berubah emas saat di-hover */
}

/* Styling Ikon Hamburger agar Muncul Visualnya */
.nav_hamburger_button {
  display: none; /* Sembunyikan di Desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

/* 1. Pastikan elemen induk (li.dropdown) memiliki posisi relatif 
      agar menu anak (ul.dropdown-menu) tidak lari posisinya */
.nav_menu_list .dropdown {
    position: relative;
}

/* 2. Sembunyikan menu anak secara default dan atur desainnya */
.nav_menu_list .dropdown-menu {
    display: none; /* Disembunyikan awalnya */
    position: absolute;
    top: 100%; /* Muncul tepat di bawah menu induk */
    left: 0;
    min-width: 200px;
    background-color: #121212; /* Warna latar gelap sesuai tema card sebelumnya */
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Memastikan menu selalu berada di depan elemen lain */
    list-style: none; /* Menghilangkan titik (bullet) pada list */
}

/* 3. INTI HOVER: Munculkan menu anak saat menu induk di-hover */
.nav_menu_list .dropdown:hover .dropdown-menu {
    display: block; /* Mengubah display menjadi block agar terlihat */
}

/* =========================================
   Styling Tambahan untuk Item di dalam Dropdown
   ========================================= */

.nav_menu_list .dropdown-menu li {
    display: block;
    width: 100%;
}

.nav_menu_list .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff; /* Warna teks putih */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Efek saat item di dalam dropdown itu sendiri di-hover */
.nav_menu_list .dropdown-menu li a:hover {
    background-color: #2a2a2a; /* Latar sedikit lebih terang saat di-hover */
    color: #d68c28; /* Teks berubah menjadi biru aksen */
}

.hamburger_line {
  width: 30px;
  height: 3px;
  background-color: #ffffff; /* Ubah warna sesuai kebutuhan tema */
  border-radius: 10px;
  transition: all 0.3s linear;
}

/* ---------------------------------------------------
   TAMPILAN DESKTOP (Lebar layar di atas 1024px)
--------------------------------------------------- */
@media (min-width: 1100px) {
  .nav_brand_wrapper {
      order: 1; /* Tag A (Logo + Teks) menjadi elemen pertama di kiri */
  }
  .nav_hamburger_button {
      display: none; /* Sembunyikan hamburger di desktop */
  }
  .nav_right_section {
      order: 2; /* Menu Navbar di Kanan */
      margin-left: auto; /* Mendorong menu mentok ke kanan */
      display: flex !important;
  }
  .nav_menu_list {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
  }
  .nav_menu_list li {
      margin-left: 16px;
  }
}

/* ---------------------------------------------------
  TAMPILAN TABLET & MOBILE (Lebar layar 1024px ke bawah)
--------------------------------------------------- */
@media (max-width: 1100px) {
  .transparent_navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    min-height: 95px; /* PENYELAMAT: Memaksa navbar punya tinggi minimum agar logo tidak tumpah ke bawah */
    position: relative; 
    box-sizing: border-box;
  }

  .nav_hamburger_button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 99; /* Harus lebih tinggi dari wrapper agar bisa di-klik */
  }

  .hamburger_line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s linear;
  }

  .nav_brand_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Memaksa teks BENAR-BENAR presisi di tengah absolut */
    z-index: 10;
    text-decoration: none;
  }

  .nav_brand_container {
    text-align: center;
    padding: 0 65px; /* Zona aman (safe area) agar teks panjang tidak menabrak hamburger / logo */
  }

  /* Sedikit dikecilkan agar proporsional dan nafas layout lebih lega di HP */
  .nav_main_title {
    font-size: 35px; 
    margin-bottom: -4px;
  }

  .nav_sub_title {
    font-size: 18px; 
  }

  .nav_logo_image {
    position: absolute;
    right: 20px; /* Jarak aman di pojok kanan layar */
    top: 50%;
    transform: translateY(-50%);
    width: 55px; /* Diselaraskan dengan min-height navbar */
    height: auto;
    margin: 0;
    border-radius: 8px; /* Opsional, agar sudut tidak terlalu tajam */
  }

  /* --- MENU DROPDOWN MOBILE (TETAP SAMA) --- */
  .nav_right_section {
    visibility: hidden; 
    opacity: 0;         
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    z-index: 999;
    transform: translateY(-20px); 
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s; 
  }

  .nav_right_section.is_active {
    visibility: visible; 
    opacity: 1;          
    transform: translateY(0); 
  }

  .nav_menu_list {
    display: flex; 
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav_menu_list li {
    margin: 15px 0;
    text-align: center;
  }
}

@media screen and (min-width: 1300px) and (max-width: 1900px) {
  /* CSS Anda di sini */
  .nav_main_title {
    font-size: 39px;
  }

  .nav_sub_title {
    font-size: 21;
  }
}


/* --- CSS TAMBAHAN AGAR CARD MUNCUL & RAPI --- */
    
/* 1. Container utama untuk mendorong konten ke bawah agar tidak tertutup navbar absolute */
.event_container {
  padding-top: 150px; 
  position: relative; /* Memastikan konten berada di atas background z-index: -1 */
  z-index: 10;
}

/* --- REDESAIN CARD KE VERSI MINIMALIS (POSTER & TOMBOL MERAH) --- */

/* Menghilangkan box/background pada card agar fokus ke gambar */
.member {
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.3s ease;
}

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

/* Penyesuaian gambar poster */
.member .pic {
    width: 100%;
    height: 550px; 
    object-fit: cover;
    overflow: hidden;
    background-position: center top; /* Memastikan fokus ke atas/tengah gambar */
    background-repeat: no-repeat;
    border-radius: 0; /* Pinggiran tajam sesuai referensi gambar */
    margin-bottom: 20px; /* Jarak antara poster dan tombol merah */
}

/* Mengatur area informasi */
.member-info {
    padding: 0;
}

/* Styling Judul menjadi tombol kapsul merah */
.event_title_btn {
    display: block;
    background-color: #8b0000; /* Warna merah gelap */
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    border-radius: 40px; /* Membentuk pil/kapsul */
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 1px solid #7a0000; /* Sedikit outline agar lebih hidup */
}

.event_title_btn:hover {
    background-color: #a80000;
    color: #ffffff;
}

/* Teks di dalam tombol */
.event_title_btn h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    font-family: sans-serif; /* Menggunakan sans-serif agar mirip tombol di gambar */
    color: inherit;
}

/* CLASS PENYELAMAT: Menyembunyikan info tambahan tanpa merusak logika bawaan (Aturan 6) */
.extra_info_hidden {
    display: none;
}

/* --- CLASS TAMBAHAN UNTUK MENDORONG KONTEN KE BAWAH NAVBAR --- */
.content_wrapper {
  padding-top: 150px; /* Sesuaikan angka ini dengan tinggi navbar Anda */
  position: relative; /* Memastikan konten selalu berada di atas background */
  z-index: 10;
}

.wrap_logo_bottom {
  display: flex;
}

.logo_bottom {
  height: 75px; /* Membuat logo menjadi kotak */
  object-fit: cover; /* Mencegah gambar gepeng */
}

/* ==========================================================================
   FOOTER STYLING - KOISHOW DARK THEME (CARD EFFECT)
   ========================================================================== */

#footer {
  background: #080808; /* Latar belakang utama tetap gelap sesuai instruksi */
  color: #ffffff;
  font-size: 14px;
}

#footer .footer-top {
  padding: 60px 0 30px 0;
}

/* --- EFEK CARD DIMULAI DI SINI --- */
#footer .footer-info {
  background: #121212; /* Warna background card (sedikit lebih terang dari #080808) */
  padding: 40px; /* Jarak ruang di dalam card */
  text-align: center; /* Memaksa semua konten (teks & sebarisnya) ke tengah */
  border-top: 4px solid #c5a059; /* Garis emas dipindah ke atas card */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); /* Efek bayangan agar terlihat seperti card timbul */
  border-radius: 4px; /* Sudut sedikit melengkung agar lebih halus */
}

#footer .footer-info h3 {
  font-size: 28px;
  margin: 0 0 10px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
  color: #ffffff; /* Di gambar referensi, judul menggunakan warna putih */
  font-family: serif; 
}

#footer .footer-info p {
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 0;
  color: #cccccc;
}

#footer .footer-info p em {
  font-style: italic;
  display: block;
}

/* Social Links - Disesuaikan dengan gambar referensi (tanpa background kotak) */
#footer .social-links {
  display: flex;
  justify-content: center; /* Memastikan icon sosial media ke tengah */
  gap: 15px; /* Jarak antar icon */
}

#footer .social-links a {
  font-size: 22px;
  display: inline-block;
  background: transparent; /* Menghilangkan kotak latar belakang */
  color: #ffffff; /* Warna icon putih sesuai gambar referensi */
  line-height: 1;
  padding: 8px 0;
  transition: all 0.3s ease-in-out;
}

#footer .social-links a:hover {
  color: #c5a059; /* Efek hover menjadi warna emas */
  transform: translateY(-3px); /* Efek melayang sedikit saat di-hover */
}

/* Copyright Area */
#footer .copyright {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  color: #cccccc;
  border-top: 1px solid #1a1a1a;
}

#footer .copyright strong span {
  color: #c5a059; 
}

.custom-dark-card {
  background-color: #121212;
  color: #ffffff; 
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.custom-dark-card h1, 
.custom-dark-card h3,
.custom-dark-card .text,
.custom-dark-card .text span {
  color: #ffffff;
}

.custom-dark-card .text-muted {
  color: #b3b3b3; 
}

.custom-dark-card a {
  color: #ffffff; 
}

.custom-dark-card .panel {
  background-color: #1e1e1e; 
  border-color: #333333;
}

.custom-dark-card .panel-heading {
  background-color: #2a2a2a;
  border-color: #333333;
  color: #ffffff;
  padding: 3px;
}

.custom-dark-card .form-control {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444444;
}

.custom-dark-card .pager {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px; 
    padding: 0;
    margin-top: 30px;
    margin-bottom: 10px;
    list-style: none;
}

.custom-dark-card .pager li {
    flex: 1; 
    max-width: 150px; 
    display: flex;
}

.custom-grey-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; 
    width: 100%; 
    background-color: #2a2a2a; 
    color: #ffffff !important; 
    border: 1px solid #444444; 
    border-radius: 6px; 
    padding: 10px 15px; 
    transition: all 0.3s ease; 
    text-decoration: none !important; 
}

.custom-grey-btn:hover,
.custom-grey-btn:focus {
    background-color: #5f5f5f; 
    color: #121212 !important; 
    border-color: #5f5f5f; 
    text-decoration: none !important;
}

.custom-grey-btn b,
.custom-grey-btn span {
    margin: 0;
    line-height: 1;
}

.custom-dark-card .section-title h2 {
  color: #ffffff;
}

.custom-dark-card .section-title p {
  color: #b3b3b3;
}

.custom-orange-header {
  background-color: #FF6600;
  border-bottom: 1px solid #e65c00;
  padding: 12px 15px;
}

.header-link {
  color: #ffffff;
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
}

.header-link:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
}

.custom-orange-header h5 {
  font-weight: 700;
  margin: 0;
}

.custom-inner-dark-card table {
  width: 100%;
  color: #ffffff;
  margin-bottom: 0;
  background-color: transparent;
}

.custom-inner-dark-card th,
.custom-inner-dark-card td {
  border: 1px solid #444444;
  padding: 10px 15px;
  white-space: nowrap; 
}

.custom-inner-dark-card thead th {
  background-color: #2a2a2a;
  color: #ffffff; 
  border-bottom: 2px solid #000000;
  font-weight: bold;
}

.custom-inner-dark-card tbody tr {
  transition: background-color 0.2s ease;
}

.custom-inner-dark-card tbody tr:hover {
  background-color: #2a2a2a;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #1e1e1e; 
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #444444; 
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #FF6600; 
}

/* =========================================
     TEAM MEMBER / CONTESTANT CARD
     ========================================= */
  .pic.special {
    background-size: cover;
    background-repeat: no-repeat;
  }

  .custom-dark-team-member .pic.contestant {
    background-position: center;
    background-size: cover;
    height: 300px; /* Disesuaikan agar card tidak terlalu raksasa, bisa dikembalikan ke 400px jika diperlukan */
    border-bottom: 1px solid #333333;
  }

  .custom-dark-team-member {
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
  }

  .custom-dark-team-member:hover {
    transform: translateY(-5px);
    border-color: #FF6600; /* Border oranye saat hover */
  }

  .custom-dark-team-member .member-info {
    padding: 15px;
    text-align: center;
  }

  .custom-dark-team-member .member-info h4 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 18px;
  }

  /* =========================================
     MODAL POPUP DARK MODE
     ========================================= */
  .custom-dark-modal {
    background-color: #1a1a1a;
    border: 1px solid #444444;
    color: #ffffff;
  }

  .custom-dark-modal .border-dark {
    border-bottom: 1px solid #333333 !important;
  }

  /* Filter membalikkan warna SVG X hitam bawaan Bootstrap menjadi putih */
  .custom-btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
  }

  /* =========================================
     PAGINATION DARK MODE
     ========================================= */
  .custom-dark-pagination {
    list-style: none;
    padding: 0;
    display: flex;
  }

  .custom-dark-pagination li {
    border: 1px solid #444444;
    border-radius: 4px;
    background-color: #2a2a2a;
    transition: all 0.3s ease;
  }

  .custom-dark-pagination li a {
    display: block;
    padding: 6px 14px;
    color: #ffffff;
    text-decoration: none;
  }

  .custom-dark-pagination li:hover {
    background-color: #FF6600;
    border-color: #FF6600;
  }

  .custom-dark-pagination li:hover a {
    color: #ffffff;
  }

  .custom-dark-pagination li.active {
    background-color: #FF6600;
    border-color: #FF6600;
  }

  .custom-dark-pagination li.active a {
    color: white !important;
    font-weight: bold;
  }

  /* =========================================
     FORM PENCARIAN DARK MODE & FULL WIDTH (DENGAN GAP)
     ========================================= */
  
  .custom-dark-search {
    width: 100%;
    display: block;
  }

  .custom-dark-search form {
    width: 100%;
    display: flex;
  }

  .custom-dark-search .input-group {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .custom-dark-search .input-group-btn,
  .custom-dark-search .input-group-append {
    display: flex;
    gap: 5px;
  }

  .custom-dark-search input[type="text"],
  .custom-dark-search .form-control {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #cccccc !important;
    width: 100% !important;
    flex: 1;
    border-radius: 6px !important;
  }

  .custom-dark-search input[type="text"]:focus,
  .custom-dark-search .form-control:focus {
    border-color: #FF6600 !important;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5) !important;
  }

  .custom-dark-search .btn,
  .custom-dark-search button,
  .custom-dark-search .input-group-text,
  .custom-dark-search .input-group-btn .btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 6px !important;
    margin-left: 0 !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
  }

  .custom-dark-search .btn:hover,
  .custom-dark-search button:hover {
    background-color: #f1f1f1 !important;
    color: #FF6600 !important;
    border-color: #FF6600 !important;
  }
  
  .form-inline {
    gap: 10px;
  }

    /* =========================================
     STYLING TABEL DALAM DARK MODE
     ========================================= */
  .custom-inner-dark-card table {
    width: 100%;
    color: #ffffff;
    margin-bottom: 0;
    background-color: transparent;
  }

  .custom-inner-dark-card th,
  .custom-inner-dark-card td {
    border: 1px solid #444444;
    padding: 12px 15px;
    white-space: nowrap; 
  }

  .custom-inner-dark-card thead th {
    background-color: #2a2a2a;
    color: #ffffff; 
    border-bottom: 2px solid #ffffff;
  }

  .custom-inner-dark-card tbody tr {
    transition: background-color 0.2s ease;
  }

  .custom-inner-dark-card tbody tr:hover {
    background-color: #2a2a2a;
  }

  /* Styling Tombol Putih */
.custom-white-btn {
  background-color: #000000 !important;
  color: #ffffff !important; /* Teks warna gelap agar terbaca di background putih */
  border: 1px solid #cccccc;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.custom-white-btn:hover {
  background-color: #f1f1f1 !important; /* Sedikit abu-abu saat di-hover */
  color: #FF6600 !important; /* Teks berubah oranye sesuai tema */
  border-color: #FF6600 !important;
}

/* =========================================
    DROPDOWN MENU JADI GELAP
    ========================================= */

/* Memaksa kotak menu menjadi hitam keabuan */
.custom-dark-dropdown {
  background-color: #1a1a1a !important;
  border: 1px solid #333333 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7) !important;
  border-radius: 8px !important;
  padding: 8px 0 !important;
}

/* Memaksa warna teks di dalam menu menjadi putih */
.custom-dark-dropdown li a.dropdown-item {
  color: #ffffff !important;
  padding: 8px 20px !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Efek saat opsi menu disorot (hover) */
.custom-dark-dropdown li a.dropdown-item:hover,
.custom-dark-dropdown li a.dropdown-item:focus {
  background-color: #2a2a2a !important; /* Sedikit lebih terang dari background */
  color: #FF6600 !important; /* Teks berubah oranye aksen kita */
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #8b0000 !important;
  background-image: linear-gradient(135deg, #8b0000 0%, #c5a059 100%) !important;
  color: #ffffff !important;
  border: 2px solid #d4af37 !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  line-height: 50px !important;
  text-align: center !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  z-index: 99999 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background-attachment: scroll !important;
}

.back-to-top.show {
  display: inline-flex !important;
  opacity: 1 !important;
}

.back-to-top:hover {
  background-color: #c5a059 !important;
  background-image: linear-gradient(135deg, #c5a059 0%, #8b0000 100%) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
}

.back-to-top:active,
.back-to-top:focus {
  transform: translateY(-2px) !important;
  outline: none !important;
}

.back-to-top i {
  color: #ffffff !important;
  font-size: 20px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Responsive Back to Top Button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    font-size: 18px !important;
  }
  
  .back-to-top i {
    font-size: 18px !important;
  }
}