/* Warna utama yang lebih soft dengan style Apple-like */
:root {
  /* Light mode (default) */
  --primary: #8B2323;
  --primary-soft: rgba(139, 35, 35, 0.7);
  --primary-lighter: rgba(139, 35, 35, 0.08);
  --primary-subtle: rgba(139, 35, 35, 0.04);
  --text-dark: #333;
  --text-medium: #555;
  --text-light: #777;
  --bg-light: #f8f8f8;
  --bg-white: #fff;
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.05);
  --apple-blue: #06c;
  --apple-blue-hover: #007aff;
  --card-bg: transparent;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.05);
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-border: rgba(139,35,35,0.1);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  --footer-bg: #f5f5f7;
  --footer-text: #555;
  --news-bubble-bg: #fff;
  --news-bubble-shadow: 0 4px 15px rgba(0,0,0,0.07);
  --news-bubble-hover-shadow: 0 8px 25px rgba(0,0,0,0.1);
  --body-bg: #f9f9f9;
  
  /* Sistem kelengkungan yang konsisten */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  --radius-circle: 50%;
  
  /* Transisi standar */
  --transition-standard: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark mode - diperbarui dengan warna khusus */
[data-theme="dark"] {
  --primary: #ff6b6b;
  --primary-soft: rgba(255, 107, 107, 0.7);
  --primary-lighter: rgba(255, 107, 107, 0.15);
  --primary-subtle: rgba(255, 107, 107, 0.08);
  --text-dark: #f0f0f0;
  --text-medium: #d1d7db;
  --text-light: #aebac1;
  --bg-light: #2c2c2c;
  --bg-white: #242424;
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.25);
  --border-light: rgba(255,255,255,0.1);
  --apple-blue: #53bdeb;
  --apple-blue-hover: #7dd3ff;
  --card-bg: transparent;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.15);
  --header-bg: rgba(32, 32, 32, 0.95); /* Updated header color: #202020 */
  --header-border: rgba(255, 107, 107, 0.2);
  --navbar-bg: rgba(32, 32, 32, 0.95); /* Updated navbar color to match header */
  --navbar-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  --footer-bg: #202020; /* Updated footer color to match header */
  --footer-text: #d1d7db;
  --news-bubble-bg: #242424;
  --news-bubble-shadow: 0 4px 15px rgba(0,0,0,0.2);
  --news-bubble-hover-shadow: 0 8px 25px rgba(0,0,0,0.3);
  --body-bg: #2c2c2c; /* Updated body color: #2c2c2c */
  --button-bg: #ff6b6b;
  --button-text: #111b21;
  --button-hover-bg: #ff8f8f;
}

/* Transisi smooth untuk perubahan tema */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html, body, *, *:before, *:after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Poppins', serif;
  background: var(--body-bg);
  color: var(--text-dark);
  line-height: 1.6;
}
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 90px;
  background: var(--header-bg);
  box-shadow: var(--shadow-soft);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* Meningkatkan z-index header agar selalu di atas tombol */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  transition: transform 0.3s ease;
}

.header.hidden {
  transform: translateY(-100%);
}

.theme-toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  background-color: transparent;
  border: none;
  z-index: 1000;
  transition: var(--transition-standard);
  cursor: pointer;
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #000;
}

.theme-toggle.header-hidden {
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #fff;
}

.theme-toggle i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(30deg);
}

.logo {
  max-width: 360px;
  width: auto;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 0;
}
.main-content {
  padding-top: 112px;
  margin-top: 24px;
  padding-bottom: 120px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  background: transparent;
}

.content-card {
  background-color: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* Ukuran responsif untuk desktop */
@media (min-width: 1024px) {
  .main-content {
    max-width: 960px;
  }
  
  .content-wrapper {
    max-width: 90%;
  }
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  animation: pageLoad 0.6s ease;
  max-width: 95%;
  position: relative;
  height: 100%;
}
.bg-ornamen {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  user-select: none;
}
.bg-ornamen-kanan {
  bottom: 0;
  right: 0;
  width: 120px;
  height: auto;
}
.main-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 24px 0 0 0;
  line-height: 1.1;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.main-title::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-soft), transparent);
  bottom: 0;
  left: 0;
}
.subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 18px;
  font-weight: 500;
}
.img-illustration {
  display: block;
  margin: 0 auto 18px auto;
  width: 180px;
  height: 180px;
  object-fit: contain;
}
.desc {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.7;
  text-align: left;
  background: rgba(255,255,255,0.6);
  padding: 15px 20px;
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 30px 0 10px 0;
  color: var(--primary);
  position: relative;
  padding-left: 15px;
  border-left: 3px solid var(--primary-soft);
}
.activities {
  padding-left: 0;
  margin: 15px 0 25px 0;
  list-style: none;
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius-large);
  padding: 20px 20px 10px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  border-left: 4px solid rgba(139,35,35,0.3);
}
.activities li {
  font-size: 0.97rem;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-left: 25px;
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--item-index, 1));
}
.activities li:before {
  content: "•";
  color: var(--primary);
  font-size: 1.4rem;
  position: absolute;
  left: 10px;
  top: -2px;
}

/* Navbar styling - Apple-inspired design */
.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--navbar-bg);
  box-shadow: var(--navbar-shadow);
  z-index: 1001; /* Meningkatkan z-index navbar agar tidak tertutup header */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  padding: 0 10px;
}

@media (min-width: 1024px) {
  .navbar {
    bottom: auto;
    top: 0;
    right: 100px;
    left: auto;
    transform: none;
    height: 60px;
    width: auto;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0;
    min-width: auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.3s ease;
  }
  
  .navbar.header-hidden {
    background: rgba(139, 35, 35, 0.07) !important;
    border-radius: 50px !important;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }
  
  .navbar .nav-btn {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  .navbar .nav-btn.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

.navbar .nav-btn {
  position: relative;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  height: 64px;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  transition: var(--transition-standard);
  box-shadow: none;
  z-index: 1;
  border-radius: 0;
  color: var(--text-medium);
  margin: 0 6px;
  text-decoration: none;
}

/* Mengubah cara tampilan icon pada navbar */
.navbar .nav-btn i {
  font-size: 1.6em;
  margin-bottom: 4px;
  display: block;
  line-height: 1;
  color: var(--text-medium);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Label di bawah ikon navbar */
.navbar .nav-btn .nav-label {
  font-size: 0.75em;
  font-weight: 500;
  margin-top: 1px;
  display: block;
  text-align: center;
  line-height: 1;
  color: var(--text-medium);
  transition: color 0.3s ease;
}

/* Aktif: style untuk button yang sedang aktif */
.navbar .nav-btn.active {
  color: var(--primary);
  transform: translateY(0);
  background-color: rgba(139, 35, 35, 0.03);
  box-shadow: 0 2px 8px rgba(139, 35, 35, 0.03);
  border-radius: 50px;
}

.navbar .nav-btn.active i {
  color: var(--primary);
  transform: translateY(0);
}

.navbar .nav-btn.active .nav-label {
  color: var(--primary);
  font-weight: 600;
}

/* Hover: efek seperti active (kecuali underline) */
@media (hover: hover) and (pointer: fine) {
  .navbar .nav-btn:not(.active):hover {
    transform: translateY(0);
    background-color: transparent;
    border-radius: 0;
  }
  
  .navbar .nav-btn:not(.active):hover i {
    color: var(--primary-soft);
    transform: translateY(0);
  }
  
  .navbar .nav-btn:not(.active):hover .nav-label {
    color: var(--primary-soft);
  }
}

/* Mobile: efek tap/active pakai :active, tanpa underline */
@media (hover: none) and (pointer: coarse) {
  .navbar .nav-btn:not(.active):active {
    transform: translateY(0);
    background-color: transparent;
    border-radius: 0;
  }
  
  .navbar .nav-btn:not(.active):active i {
    color: var(--primary-soft);
    transform: translateY(0);
  }
  
  .navbar .nav-btn:not(.active):active .nav-label {
    color: var(--primary-soft);
  }
}

.nav-tooltip {
  position: fixed;
  background: rgba(30,30,30,0.4);
  color: #fff;
  font-size: 1.1rem;
  padding: 6px 14px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  transition: opacity 0.15s;
  opacity: 1;
  text-align: center;
}
.mascot-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.mascot-img:hover {
  transform: scale(1.05);
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0;
}

.hero-action {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-action {
    justify-content: flex-start;
  }
}
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-light);
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  height: auto;
  padding: 60px 20px 40px 20px;
}

.footer-content {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 2rem;
  padding-bottom: 40px;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 160px;
  max-width: 60vw;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: none;
  background: none;
}

/* Kolom footer */
.footer-columns {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2rem;
  text-align: left;
  margin-bottom: 20px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-heading {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-text {
  color: var(--footer-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Navigasi footer */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--footer-text) !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: block;
  padding: 3px 0;
}

.footer-nav a:hover {
  color: var(--primary) !important;
  transform: translateX(5px);
  text-decoration: none !important;
}

/* Kontak footer */
.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contacts li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--footer-text);
}

.footer-contacts i {
  margin-right: 10px;
  margin-top: -1px;
  font-size: 1rem;
  color: var(--primary);
  min-width: 20px;
  text-align: center;
}

.footer-contacts a {
  color: var(--footer-text) !important;
  text-decoration: none;
}

.footer-contacts a:hover {
  color: var(--primary) !important;
  text-decoration: none !important;
}

/* Bagian bawah footer */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  gap: 15px;
}

#footer-info {
  color: var(--footer-text);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-lighter);
  color: var(--primary) !important;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.social-icon i {
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--primary) !important;
  transform: translateY(-3px);
  text-decoration: none !important;
}

[data-theme="dark"] .social-icon:hover {
  background-color: var(--primary);
  color: white !important;
}

@media (min-width: 768px) {
  .footer-columns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .footer-column {
    flex: 1;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 80px 40px 30px 40px;
  }
  
  .footer-content {
    padding-bottom: 20px;
  }
  
  .footer-columns {
    gap: 60px;
  }
  
  .footer-logo {
    width: 200px;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 40px 20px 20px 20px;
  }
  
  .footer-bottom {
    text-align: center;
  }
}

.footer-content a {
  color: var(--text-medium) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: var(--primary) !important;
  text-decoration: none;
}

.footer-content, .footer-social, .footer-content a, .footer-social a, #footer-info {
  color: var(--footer-text) !important;
  font-size: 0.97rem !important;
  font-family: 'Poppins', serif !important;
}

/* Responsive styles */
@media (max-width: 400px) {
  .header {
    height: 70px;
  }
  .logo { 
    max-width: 280px; 
    height: 65px; 
    width: auto; 
    margin: 0 auto; 
  }
  .main-content { padding-top: 56px; margin-top: 8px; padding-bottom: 80px; }
  .content-card { 
    margin: 0;
    padding: 0;
    background-color: transparent;
    transition: inherit;
    box-shadow: none;
    border-radius: 0;
  }
  .mascot-img, .hero-image .mascot-img { width: 90px; height: 90px; }
  .footer { font-size: 0.89rem; padding: 12px 8px 8px 8px; }
  
  .navbar {
    min-width: 0;
    max-width: 90%;
    width: 280px;
    height: 72px;
    padding: 0 20px;
    bottom: 15px;
    border-radius: 36px;
    gap: 5px;
  }
  
  .navbar .nav-btn {
    font-size: 0.9em;
    min-width: 55px;
    height: 55px;
    padding: 8px 0;
    margin: 0 4px;
  }
  
  .navbar .nav-btn i {
    font-size: 1.4em;
    margin-bottom: 3px;
  }
  
  .navbar .nav-btn .nav-label {
    font-size: 0.7em;
  }
}

@media (max-width: 600px) {
  img {
    max-width: 100% !important;
  }
  
  .navbar {
    min-width: auto;
    max-width: 90%;
    width: 300px;
    bottom: 16px;
    height: 72px;
    z-index: 1000;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 20px;
    border-radius: 36px;
    justify-content: space-around;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    gap: 5px;
  }
  
  .navbar .nav-btn {
    padding: 0;
    min-width: 65px;
    height: 62px;
    font-size: 0.9em;
    flex: 0 0 auto;
  }
  
  .navbar .nav-btn i {
    font-size: 1.5em;
    margin-bottom: 3px;
  }
  
  .navbar .nav-btn .nav-label {
    font-size: 0.7em;
  }
  
  .navbar .nav-btn.active {
    transform: translateY(0);
    border-radius: 40px;
    background-color: rgba(139, 35, 35, 0.03);
    box-shadow: 0 2px 8px rgba(139, 35, 35, 0.03);
  }
  
  .footer-content, .footer-social, .footer-content a, .footer-social a, #footer-info {
    font-size: 0.97rem !important;
  }
  
  .footer {
    padding-bottom: 3.5rem;
  }
  
  .content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .main-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 90px;
    margin-top: 15px;
    max-width: 100%;
    width: 100%;
  }
  
  .news-bubble, .prestasi-bubble {
    padding: 20px 15px;
  }
  
  .news-title, .news-meta, .news-body, .prestasi-title, .prestasi-meta, .prestasi-body, .prestasi-nama {
    max-width: 100%;
  }
  
  .tujuan-container {
    padding: 15px 15px 5px 30px;
  }
  
  .jlpt-level {
    padding: 15px 15px;
  }
  
  .activities {
    padding: 15px 15px 5px 15px;
  }
}

.navbar .bi {
  font-size: 1.125rem;
}

/* Sisanya dari CSS tetap sama */
.news-list, .prestasi-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Layout grid untuk desktop */
@media (min-width: 1024px) {
  .news-list, .prestasi-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .news-bubble.pinned {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(250px, 40%) 1fr;
    gap: 0;
  }
  
  .news-bubble.pinned img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: none;
    border-right: 3px solid var(--primary);
    grid-row: 1;
  }
  
  .news-bubble.pinned .news-content {
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .prestasi-bubble {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .prestasi-foto-geometris {
    width: 40%;
  }
  
  .prestasi-content-kanan {
    width: 60%;
    padding-left: 20px;
  }
  
  /* CSS untuk tampilan desktop sudah dipindahkan ke bagian baru di atas */
}

/* Tambahan untuk layar yang lebih besar */
@media (min-width: 1440px) {
  .main-content {
    max-width: 1200px;
  }
  
  .news-list, .prestasi-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .news-bubble.pinned {
    grid-column: 1 / -1;
    grid-template-columns: minmax(250px, 35%) 1fr;
  }
}

.news-bubble {
  width: 100%;
  height: 100%;
  background: var(--news-bubble-bg);
  border-radius: var(--radius-large);
  box-shadow: var(--news-bubble-shadow);
  overflow: visible;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-standard), opacity 0.8s ease;
}

.news-bubble:hover {
  transform: translateY(-5px);
  box-shadow: var(--news-bubble-hover-shadow);
}

.news-bubble.pinned {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(to bottom, #fff, #fafafa);
  position: relative;
}

.news-bubble.pinned::after {
  content: "📌";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  z-index: 1;
}

.news-bubble img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  border-bottom: 3px solid #8B2323;
}

.news-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  width: 100%;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
  position: relative;
  padding-bottom: 8px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.news-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 1px;
  background: var(--primary-lighter);
  bottom: 0;
  left: 0;
}

.news-meta {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.news-meta::before {
  content: "🗓️";
  margin-right: 5px;
  font-size: 0.9rem;
}

.news-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  flex: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.news-btn-container {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.news-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 12px rgba(139, 35, 35, 0.25);
  z-index: 1;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
  text-align: center;
  animation: elegantFloat 4s ease-in-out infinite;
}

/* Efek hover yang elegan dengan warna seperti semula */
.news-btn:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 16px rgba(139, 35, 35, 0.35);
  background: var(--primary-dark, #a82c2c);
  letter-spacing: 0.06em;
}

/* Efek goyang elegan */
@keyframes elegantFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Efek kelap-kelip teks yang elegan */
@keyframes textGlow {
  0% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  }
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

.news-btn span {
  animation: textGlow 3s ease-in-out infinite;
}

/* Button icon */
.news-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.news-btn-icon i {
  font-size: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-btn:hover .news-btn-icon i {
  transform: translateX(6px);
}

/* Tooltip */
.news-btn-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.news-btn-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(45deg);
  z-index: -1;
}

.news-btn-container:hover .news-btn-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dark mode style for the news button */
[data-theme="dark"] .news-btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25);
}

/* Dark theme hover menjadi light */
[data-theme="dark"] .news-btn:hover {
  background: var(--primary-dark, #a82c2c);
  color: white;
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.35);
}

.news-btn:hover::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.news-btn:hover::after {
  opacity: 1;
  transform: rotate(30deg) translateY(-60%);
  transition: transform 1.2s ease, opacity 0.5s ease;
}

.news-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 6px rgba(139, 35, 35, 0.3);
  transition: all 0.1s ease;
}

/* Button icon dengan animasi lebih menarik */
.news-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.news-btn-icon i {
  font-size: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-btn:hover .news-btn-icon i {
  transform: translateX(6px);
}

/* Animasi pulse yang lebih menarik */
@keyframes glowPulse {
  0% {
    box-shadow: 0 6px 12px rgba(139, 35, 35, 0.3),
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 0 0 rgba(139, 35, 35, 0);
  }
  50% {
    box-shadow: 0 6px 12px rgba(139, 35, 35, 0.3),
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 0 30px rgba(139, 35, 35, 0.5);
  }
  100% {
    box-shadow: 0 6px 12px rgba(139, 35, 35, 0.3),
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 0 0 rgba(139, 35, 35, 0);
  }
}

/* Animasi border shine */
@keyframes borderShine {
  0% {
    box-shadow: 0 6px 12px rgba(139, 35, 35, 0.3),
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 0 0 rgba(139, 35, 35, 0),
                inset 0 0 0 2px rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 6px 12px rgba(139, 35, 35, 0.3),
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(139, 35, 35, 0.4),
                inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 6px 12px rgba(139, 35, 35, 0.3),
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 0 0 rgba(139, 35, 35, 0),
                inset 0 0 0 2px rgba(255, 255, 255, 0);
  }
}

.news-btn {
  animation: borderShine 3s infinite, glowPulse 5s infinite;
  animation-delay: 0s, 2.5s;
}

/* Tooltip dengan animasi lebih menarik */
.news-btn-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.news-btn-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(45deg);
  z-index: -1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-btn-container:hover .news-btn-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dark mode style for the news button */
[data-theme="dark"] .news-btn {
  background: linear-gradient(135deg, var(--primary), #ff7a5a);
  color: white;
  box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25),
              0 4px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .news-btn::before {
  background: linear-gradient(135deg, #ff7a5a, var(--primary));
}

[data-theme="dark"] .news-btn:hover {
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.35),
              0 6px 10px rgba(0, 0, 0, 0.2),
              0 0 30px rgba(255, 107, 107, 0.4),
              inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Dark mode glow pulse animation */
@keyframes darkGlowPulse {
  0% {
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25),
                0 4px 6px rgba(0, 0, 0, 0.15),
                0 0 0 rgba(255, 107, 107, 0);
  }
  50% {
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25),
                0 4px 6px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(255, 107, 107, 0.4);
  }
  100% {
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25),
                0 4px 6px rgba(0, 0, 0, 0.15),
                0 0 0 rgba(255, 107, 107, 0);
  }
}

/* Dark mode border shine */
@keyframes darkBorderShine {
  0% {
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25),
                0 4px 6px rgba(0, 0, 0, 0.15),
                0 0 0 rgba(255, 107, 107, 0),
                inset 0 0 0 2px rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25),
                0 4px 6px rgba(0, 0, 0, 0.15),
                0 0 20px rgba(255, 107, 107, 0.4),
                inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25),
                0 4px 6px rgba(0, 0, 0, 0.15),
                0 0 0 rgba(255, 107, 107, 0),
                inset 0 0 0 2px rgba(255, 255, 255, 0);
  }
}

[data-theme="dark"] .news-btn {
  animation: darkBorderShine 3s infinite, darkGlowPulse 5s infinite;
  animation-delay: 0s, 2.5s;
}

.prestasi-bubble {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-light);
  padding: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-standard), opacity 0.8s ease;
  width: 100%;
}

.prestasi-bubble:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.prestasi-foto-geometris {
  width: 100%;
  height: auto;
  padding: 25px 0;
  margin: 0;
  position: relative;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  min-height: 160px;
}

.prestasi-foto-img {
  width: 140px;
  height: auto;
  max-height: 180px;
  min-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--bg-white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.prestasi-foto-img:hover {
  transform: scale(1.05);
}

.prestasi-content-kanan {
  padding: 20px;
  text-align: center;
  width: 100%;
  background: white;
  border-radius: 0 0 16px 16px;
  overflow: visible;
}

.prestasi-nama {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.prestasi-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 12px;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.prestasi-title::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.prestasi-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-medium);
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.prestasi-foto-miring {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%) rotate(-18deg) scale(1.08);
  z-index: 2;
  pointer-events: none;
}

.prestasi-foto-miring-img {
  width: 90px;
  height: 90px;
  border-radius: 50% 30% 60% 40%/40% 60% 30% 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px 0 rgba(139,35,35,0.18);
  border: 3px solid #fffbe7;
  background: #fffbe7;
}

@media (max-width: 768px) {
  .prestasi-foto-img {
    width: 120px;
    max-height: 160px;
    min-height: 100px;
  }
  
  .prestasi-foto-geometris {
    padding: 20px 0;
    min-height: 140px;
  }
  
  .prestasi-content-kanan {
    padding: 15px;
  }
  
  .prestasi-nama {
    font-size: 1rem;
  }
  
  .prestasi-title {
    font-size: 0.9rem;
  }
  
  .prestasi-body {
    font-size: 0.8rem;
  }
}

.prestasi-nama {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Styling untuk Tujuan */
.tujuan-intro {
  font-size: 1rem;
  color: var(--text-medium);
  margin: 15px 0;
  line-height: 1.6;
  font-weight: 500;
}

.tujuan-container {
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 20px 15px 10px 40px;
  margin: 15px 0 25px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-left: 4px solid rgba(139,35,35,0.3);
}

.tujuan-list {
  padding-left: 0;
  margin: 0;
  counter-reset: tujuan-counter;
}

.tujuan-list li {
  font-size: 0.97rem;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-dark);
  position: relative;
  padding-left: 5px;
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--item-index, 1));
}

/* Styling untuk JLPT */
.jlpt-intro {
  font-size: 1rem;
  color: var(--text-medium);
  margin: 15px 0;
  line-height: 1.6;
  font-weight: 500;
  font-style: italic;
}

.jlpt-level {
  background: rgba(255,251,231,0.8);
  border-radius: 16px;
  padding: 20px 25px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  border-left: 4px solid var(--primary);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.jlpt-level h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 0 12px 0;
  font-weight: 700;
  display: inline-block;
  position: relative;
}

.jlpt-level h3::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  bottom: -4px;
  left: 0;
}

.jlpt-level p {
  font-size: 0.97rem;
  color: var(--text-medium);
  margin: 12px 0;
  line-height: 1.6;
}

.jlpt-skills {
  padding-left: 25px;
  margin: 15px 0;
}

.jlpt-skills li {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-dark);
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--item-index, 1));
}

/* Responsif */
@media (max-width: 600px) {
  .tujuan-container {
    padding: 15px 15px 5px 30px;
  }
  
  .jlpt-level {
    padding: 15px 15px;
  }
  
  .jlpt-skills {
    padding-left: 20px;
  }
}

/* Animasi untuk elemen interaktif */
.nav-btn, .news-btn, .news-bubble, .prestasi-bubble {
  transition: all 0.3s ease;
}

/* Efek hover yang lebih halus */
.news-bubble:hover, .prestasi-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139,35,35,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

/* Efek animasi untuk gambar */
.mascot-img, .prestasi-foto-img {
  transition: transform 0.5s ease;
}

.mascot-img:hover, .prestasi-foto-img:hover {
  transform: scale(1.05);
}

/* Perbaikan scrolling */
html {
  scroll-behavior: smooth;
}

/* Efek untuk gambar */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Animasi scroll */
.news-bubble.active, .prestasi-bubble.active, .jlpt-level.active, .tujuan-container.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi staggered untuk daftar */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tambahkan animasi untuk halaman saat loading */
@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-wrapper {
  animation: pageLoad 0.6s ease;
}

/* Memastikan semua gambar tampil dengan benar */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.news-bubble img, .prestasi-bubble img {
  max-width: 100%;
  margin: 0 auto 15px auto;
  border-radius: 12px;
}

@media (max-width: 600px) {
  img {
    max-width: 100% !important;
  }
  
  .content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .main-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 60px;
    margin-top: 15px;
    max-width: 100%;
    width: 100%;
  }
  
  .news-bubble, .prestasi-bubble {
    padding: 20px 15px;
  }
  
  .news-title, .news-meta, .news-body, .prestasi-title, .prestasi-meta, .prestasi-body, .prestasi-nama {
    max-width: 100%;
  }
  
  .tujuan-container {
    padding: 15px 15px 5px 30px;
  }
  
  .jlpt-level {
    padding: 15px 15px;
  }
  
  .activities {
    padding: 15px 15px 5px 15px;
  }
}

/* Additional animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.main-title, .subtitle, .desc {
  animation: slideUp 0.8s ease forwards;
}

.section-title {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* Fix for news-list grid layout */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
  width: 100%;
}

@media (max-width: 768px) {
  .news-list, .prestasi-list {
    grid-template-columns: 1fr;
  }
  
  .news-bubble.pinned {
    display: flex;
    flex-direction: column;
  }
  
  .news-bubble.pinned img {
    width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 3px solid var(--primary);
  }
}

/* Fix for news-content div */
.news-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Make sure all images in news bubbles display properly */
.news-bubble img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  border-bottom: 3px solid #8B2323;
}

/* Fix for when there's no image */
.news-bubble:not(:has(img)) .news-content {
  padding-top: 25px;
}

/* Tombol navigasi ke news dengan style konsisten */
/* Styling untuk tombol navigasi sekarang menggunakan class global di bagian atas file */

/* Perbaikan overflow pada bubble news dan prestasi */
.news-bubble, .prestasi-bubble {
  overflow: visible;
}

.news-content, .prestasi-content-kanan {
  overflow: visible;
  width: 100%;
}

.news-title, .news-meta, .news-body, 
.prestasi-title, .prestasi-nama, .prestasi-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Redesign prestasi dengan style modern dan clean */
.prestasi-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 25px 0;
  width: 100%;
}

.prestasi-bubble {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
  height: 100%;
}

.prestasi-bubble:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
}

.prestasi-bubble.active {
  opacity: 1;
  transform: translateY(0);
}

.prestasi-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Judul prestasi yang lebih menonjol */
.prestasi-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: var(--primary);
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--primary-lighter);
  text-align: center;
  letter-spacing: normal;
}

/* Informasi pemenang di bawah foto - simplified */
.prestasi-winner-info {
  margin-top: 15px;
  padding: 0;
}

.prestasi-nama {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

/* Badge untuk tim */
.team-badge {
  display: inline-block;
  background-color: var(--primary-lighter);
  color: var(--primary);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-name {
  flex: 1;
}

/* Deskripsi prestasi */
.prestasi-body {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  padding: 0 5px;
}

/* Dark mode adjustments */
[data-theme="dark"] .prestasi-bubble {
  background-color: var(--card-dark);
  border-color: var(--border-dark);
}

[data-theme="dark"] .prestasi-title {
  color: var(--primary-light);
  border-bottom-color: var(--primary-darker);
}

[data-theme="dark"] .prestasi-nama {
  color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prestasi-title {
    font-size: 1.3rem;
    padding-bottom: 12px;
    margin-bottom: 15px;
  }
  
  .prestasi-nama {
    font-size: 1rem;
  }
  
  .prestasi-body {
    text-align: left;
    line-height: 1.6;
  }
  
  .prestasi-winner-info {
    padding: 10px 12px;
  }
}

/* Special styling for dual-winner bubbles */
.prestasi-bubble.dual-winners {
  grid-column: span 2;
}

/* Image container with better aspect ratio handling */
.prestasi-foto-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Maintain aspect ratio with padding trick */
.prestasi-foto-container::before {
  content: "";
  display: block;
  padding-top: 75%; /* 4:3 aspect ratio by default */
}

/* Portrait mode (6:7 ratio) */
.prestasi-foto-container.portrait::before {
  padding-top: 116.67%; /* 6:7 ratio */
}

/* Landscape mode (7:6 ratio) */
.prestasi-foto-container.landscape::before {
  padding-top: 85.71%; /* 7:6 ratio */
}

.prestasi-foto-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prestasi-foto-img:hover {
  transform: scale(1.05);
}

.prestasi-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Add these properties to enable vertical centering */
  justify-content: space-between;
}

.prestasi-header {
  margin-bottom: 12px;
}

.prestasi-nama {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.prestasi-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 12px;
}

.prestasi-title::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary-lighter);
  bottom: 0;
  left: 0;
}

.prestasi-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-medium);
  flex: 1;
  /* Add these properties to center the text vertically within the available space */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Team members styling */
.team-members {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--primary-lighter);
}

.team-members-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

.team-members-list {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-medium);
}

/* Team badge */
.team-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-lighter);
  color: var(--primary);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  font-weight: 600;
  vertical-align: middle;
}

/* Dual winners layout */
.dual-winners-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.winner-section {
  flex: 1 1 calc(50% - 10px);
  min-width: 280px;
}

.winner-section + .winner-section {
  position: relative;
}

.winner-section + .winner-section::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--primary-lighter);
}

.winner-rank {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prestasi-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .prestasi-bubble.dual-winners {
    grid-column: span 1;
  }
  
  .dual-winners-container {
    flex-direction: column;
  }
  
  .winner-section + .winner-section::before {
    left: 0;
    right: 0;
    top: -10px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  
  .prestasi-foto-container::before {
    padding-top: 66.67%; /* 3:2 aspect ratio for mobile */
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .prestasi-bubble {
  background: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .prestasi-foto-container {
  background: #1f1f1f;
}

[data-theme="dark"] .prestasi-title::after {
  background: var(--primary-lighter);
}

[data-theme="dark"] .team-members {
  border-color: rgba(255, 107, 107, 0.2);
}

[data-theme="dark"] .winner-section + .winner-section::before {
  background: rgba(255, 107, 107, 0.2);
}

/* Search Feature Styles */
.search-container {
  margin-bottom: 24px;
  width: 100%;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid #e0e0e0;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f8f8;
  transition: var(--transition-standard);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-input:focus {
  outline: none;
  border-color: #ff6b6b;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,107,0.15);
}

.search-button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-circle);
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
  box-shadow: 0 2px 8px rgba(139, 35, 35, 0.2);
  overflow: hidden;
}

.search-button:hover {
  transform: scale(1.05);
  background-color: var(--primary-soft);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 35, 35, 0.3);
}

/* Dark mode styling for search button */
[data-theme="dark"] .search-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

[data-theme="dark"] .search-button:hover {
  background: var(--primary-soft);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 8px;
}

.search-tag {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(255,107,107,0.2);
}

.search-tag-close {
  margin-left: 8px;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.search-tag-close:hover {
  opacity: 1;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: var(--radius-medium);
  margin: 20px 0;
}

.no-results i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.no-results-text {
  font-size: 18px;
  color: #666;
  margin-bottom: 16px;
}

/* Styling untuk search-reset-btn sekarang menggunakan class global di bagian atas file */

mark {
  background: rgba(255,107,107,0.2);
  color: #ff4757;
  padding: 0 2px;
  border-radius: var(--radius-small);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-input {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .search-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Animation for search results */
.news-bubble, .prestasi-bubble {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-bubble:hover, .prestasi-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: var(--radius-medium);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  margin-top: 5px;
  border: 1px solid #eee;
}

.search-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover,
.search-suggestion.active {
  background-color: #fff0f0;
}

.search-suggestion strong {
  color: #ff4757;
  font-weight: 600;
}

/* Search History */
.search-history {
  margin-top: 16px;
  background-color: #f9f9f9;
  border-radius: var(--radius-medium);
  padding: 12px;
}

.search-history-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.search-history-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-history-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #fff;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #eee;
}

.search-history-item:hover {
  background-color: #fff0f0;
  color: #ff4757;
  border-color: #ffcdd2;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(255,107,107,0.1);
}

.search-history-item i {
  margin-right: 6px;
  font-size: 12px;
  color: #999;
}

.search-history-item:hover i {
  color: #ff4757;
}

/* Enhanced animations for search results */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-bubble, .prestasi-bubble {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.news-bubble:nth-child(1), .prestasi-bubble:nth-child(1) {
  animation-delay: 0.1s;
}

.news-bubble:nth-child(2), .prestasi-bubble:nth-child(2) {
  animation-delay: 0.2s;
}

.news-bubble:nth-child(3), .prestasi-bubble:nth-child(3) {
  animation-delay: 0.3s;
}

.news-bubble:nth-child(4), .prestasi-bubble:nth-child(4) {
  animation-delay: 0.4s;
}

.news-bubble:nth-child(5), .prestasi-bubble:nth-child(5) {
  animation-delay: 0.5s;
}

/* Pulse animation for search button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,107,107,0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255,107,107,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,107,107,0);
  }
}

.search-button:focus {
  animation: pulse 1.5s infinite;
}

/* Penyesuaian header dan navbar untuk desktop */
@media (min-width: 1024px) {
  .header {
    height: 60px;
    padding: 0 40px;
    justify-content: flex-start;
  }
  
  .logo {
    max-width: 400px;
    height: 90px;
    margin: 0;
  }
  
  .navbar {
    bottom: auto;
    top: 0;
    right: 100px; /* Increased to add space between navbar and theme toggle */
    left: auto;
    transform: none;
    height: 60px;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: auto;
    display: flex;
    justify-content: space-between;
    width: auto;
    gap: 10px;
  }
  
  .navbar .nav-btn {
    margin: 0;
    height: 60px;
    color: var(--text-dark);
    width: 130px; /* Fixed width for each button */
    padding: 0;
    justify-content: center;
  }
  
  .navbar .nav-btn i {
    font-size: 1.2em;
    margin-right: 8px;
    margin-bottom: 0;
  }
  
  .navbar .nav-btn .nav-label {
    font-size: 0.9em;
    margin-top: 0;
  }
  
  .navbar .nav-btn {
    flex-direction: row;
    align-items: center;
  }
  
  /* Adjust active state for desktop */
  .navbar .nav-btn.active {
    border-radius: 28px;
    background-color: rgba(139, 35, 35, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .navbar .nav-btn:not(.active):hover {
    background-color: rgba(139, 35, 35, 0.04);
    border-radius: 28px;
  }
  
  /* Position theme toggle button with more spacing */
  .theme-toggle {
    position: fixed;
    top: 5px;
    right: 20px;
    width: 40px;
    height: 60px;
    border-radius: 0;
    border-bottom-left-radius: var(--radius-medium);
    border-bottom-right-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    background-color: transparent;
    border: none;
    z-index: 1000;
    transition: var(--transition-standard);
    cursor: pointer;
  }
  
  .footer {
    padding: 40px;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Desktop dark mode header adjustment */
@media (min-width: 1024px) {
  [data-theme="dark"] .header {
    background: var(--header-bg);
  }
  
  [data-theme="dark"] .navbar {
    background: transparent;
  }
}

/* Penyesuaian elemen konten untuk desktop */
@media (min-width: 1024px) {
  .main-title {
    font-size: 2.8rem;
    margin-top: 10px;
  }
  
  .subtitle {
    font-size: 1.4rem;
  }
  
  .desc {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 20px 25px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-top: 50px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-soft);
  }
  
  .tujuan-intro, .jlpt-intro {
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto 20px auto;
  }
  
  .tujuan-list li, .jlpt-skills li {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }
  
  .jlpt-level {
    padding: 25px;
  }
  
  .jlpt-level h3 {
    font-size: 1.6rem;
  }
  
  .activities {
    padding: 30px;
  }
  
  .activities li {
    font-size: 1.05rem;
    padding-left: 30px;
  }
  
  .search-container {
    max-width: 70%;
    margin: 0 auto 40px auto;
  }
  
  .search-input {
    padding: 15px 25px;
    font-size: 18px;
  }
  
  .search-button {
    width: 46px;
    height: 46px;
  }
}

/* Struktur halaman home */
.home-hero {
  margin-bottom: 40px;
  width: 100%;
}

.home-section {
  margin-bottom: 40px;
  width: 100%;
}

.hero-content {
  width: 100%;
  text-align: left;
}

.hero-content .main-title,
.hero-content .subtitle,
.hero-content .desc {
  text-align: left;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  width: 100%;
}

.tujuan-container, .jlpt-levels-container, .activities {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.tujuan-intro, .jlpt-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* Struktur untuk desktop */
@media (min-width: 1024px) {
  /* Hero section */
  .home-hero {
    margin-bottom: 60px;
  }
  
  .hero-content {
    width: 100%;
    position: relative;
    min-height: 350px; /* Memastikan ada cukup ruang untuk konten dan gambar */
  }
  
  .hero-content .main-title {
    padding-top: 20px; /* Memberikan sedikit ruang di atas judul */
  }
  
  .hero-content .main-title,
  .hero-content .subtitle {
    width: 60%;
    padding-right: 20px;
  }
  
  .hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  .home-hero .main-title {
    font-size: 2.8rem;
    margin-top: 0;
    text-align: left;
  }
  
  .home-hero .subtitle {
    font-size: 1.4rem;
    margin-top: 10px;
    text-align: left;
  }
  
  .home-hero .desc {
    font-size: 1.1rem;
    margin-top: 250px; /* Memberikan ruang untuk gambar */
    text-align: left;
    width: 100%;
    max-width: 100%;
    clear: both;
  }
  
  .home-hero .mascot-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin-top: 10px;
  }
  
  /* Tujuan section */
  .home-section .section-title {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .tujuan-intro, .jlpt-intro {
    font-size: 1.2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px 0;
    text-align: left;
  }
  
  .tujuan-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  /* JLPT section */
  .jlpt-levels-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
  }
  
  .jlpt-level {
    flex: 1;
    text-align: left;
  }
  
  /* Kegiatan section */
  .activities {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
  }
}

/* Penyesuaian untuk layar medium */
@media (min-width: 1024px) and (max-width: 1280px) {
  .hero-content .main-title,
  .hero-content .subtitle {
    width: 55%;
  }
  
  .hero-image {
    width: 45%;
  }
  
  .home-hero .desc {
    margin-top: 230px;
  }
}

/* Untuk layar yang lebih besar */
@media (min-width: 1440px) {
  .home-hero .main-title {
    font-size: 3.2rem;
  }
  
  .home-hero .subtitle {
    font-size: 1.6rem;
  }
  
  .home-hero .desc {
    font-size: 1.2rem;
  }
  
  .home-hero .mascot-img {
    width: 280px;
    height: 280px;
  }
  
  .home-hero .desc {
    margin-top: 300px;
  }
  
  .tujuan-container, .jlpt-levels-container, .activities {
    width: 100%;
    max-width: 100%;
  }
}

/* Transisi tampilan responsif */
@media (min-width: 768px) and (max-width: 1023px) {
  .home-hero {
    display: block;
    width: 100%;
  }
  
  .hero-content {
    width: 100%;
    text-align: left;
  }
  
  .hero-image {
    width: 100%;
    margin: 30px 0;
    text-align: center;
  }
  
  .home-hero .mascot-img {
    width: 180px;
    height: 180px;
  }
  
  .jlpt-levels-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  
  .main-title {
    font-size: 2.4rem;
    text-align: left;
  }
  
  .subtitle {
    font-size: 1.2rem;
    text-align: left;
  }
  
  .desc {
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  
  .tujuan-intro, .jlpt-intro {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  
  .tujuan-container, .activities {
    width: 100%;
    max-width: 100%;
  }
}

/* Penyesuaian untuk mobile */
@media (max-width: 767px) {
  .home-hero {
    display: block;
    width: 100%;
  }
  
  .hero-content {
    width: 100%;
    text-align: left;
  }
  
  .hero-image {
    width: 100%;
    margin: 20px 0;
    text-align: center;
  }
  
  .home-hero .main-title,
  .home-hero .subtitle,
  .home-hero .desc {
    text-align: left;
    width: 100%;
    max-width: 100%;
  }
  
  .tujuan-intro, .jlpt-intro {
    text-align: left;
    width: 100%;
    max-width: 100%;
  }
  
  .tujuan-container, .jlpt-levels-container, .activities {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .jlpt-levels-container {
    display: block;
  }
  
  .jlpt-level {
    margin-bottom: 30px;
  }
  
  .section-title {
    text-align: left;
  }
}

/* Dark mode toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  background-color: transparent;
  border: none;
  box-shadow: none;
  z-index: 1000;
  transition: var(--transition-standard);
  cursor: pointer;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-lighter);
  color: var(--primary);
}

.theme-toggle i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  /* Moon icon for light mode */
  background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.1));
  -webkit-background-clip: text;
  background-clip: text;
}

.theme-toggle:hover i {
  transform: rotate(30deg);
}

/* Dark mode styles untuk elemen UI */
/* Dark mode styling untuk news-nav-button sekarang menggunakan class global di bagian atas file */

[data-theme="dark"] .news-bubble,
[data-theme="dark"] .prestasi-bubble {
  background: var(--news-bubble-bg);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .news-title,
[data-theme="dark"] .prestasi-nama {
  color: var(--primary-light);
}

[data-theme="dark"] .news-meta,
[data-theme="dark"] .prestasi-title {
  color: var(--text-medium);
}

[data-theme="dark"] .news-body,
[data-theme="dark"] .prestasi-body {
  color: var(--text-light);
}

[data-theme="dark"] .prestasi-foto-geometris {
  background: var(--bg-light);
}

[data-theme="dark"] .prestasi-content-kanan {
  background: var(--news-bubble-bg);
}

[data-theme="dark"] .search-button {
  background: var(--button-bg);
  color: var(--button-text);
}

[data-theme="dark"] .search-button:hover {
  background: var(--button-hover-bg);
}

[data-theme="dark"] .search-input {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border-light);
}

[data-theme="dark"] .search-input::placeholder {
  color: var(--text-light);
}

[data-theme="dark"] .jlpt-level,
[data-theme="dark"] .tujuan-container {
  background: var(--news-bubble-bg);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .jlpt-level h3,
[data-theme="dark"] .section-title {
  color: var(--text-dark);
}

[data-theme="dark"] .jlpt-level p,
[data-theme="dark"] .tujuan-intro,
[data-theme="dark"] .jlpt-intro {
  color: var(--text-medium);
}

[data-theme="dark"] .jlpt-skills li,
[data-theme="dark"] .tujuan-list li,
[data-theme="dark"] .activities li {
  color: var(--text-light);
}

[data-theme="dark"] .search-tag {
  background: var(--bg-light);
  color: var(--text-dark);
}

[data-theme="dark"] .search-tag-close {
  color: var(--text-medium);
}

[data-theme="dark"] .search-tag-close:hover {
  color: var(--text-dark);
}

/* Dark mode styling untuk search-reset-btn sekarang menggunakan class global di bagian atas file */

[data-theme="dark"] .no-results {
  color: var(--text-medium);
  background-color: var(--news-bubble-bg);
}

[data-theme="dark"] mark {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--primary);
}

/* Dark mode untuk navbar */
[data-theme="dark"] .navbar {
  background-color: var(--navbar-bg);
}

@media (min-width: 1024px) {
  [data-theme="dark"] .navbar {
    background: transparent !important;
  }
  
  [data-theme="dark"] .navbar.header-hidden {
    background: rgba(255, 107, 107, 0.1) !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }
}

[data-theme="dark"] .navbar .nav-btn:not(.active) {
  color: var(--text-medium);
  background: transparent;
  border-radius: 0;
}

[data-theme="dark"] .navbar .nav-btn.active {
  background-color: var(--primary-lighter);
  color: var(--primary);
  box-shadow: none;
}

[data-theme="dark"] .navbar .nav-btn:not(.active):hover,
[data-theme="dark"] .navbar .nav-btn:not(.active):active {
  background-color: transparent;
  border-radius: 0;
}

/* Dark mode untuk content-card */
[data-theme="dark"] .content-card {
  background-color: transparent;
  box-shadow: none;
  border: none;
}

/* Dark mode untuk footer */
[data-theme="dark"] .footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

[data-theme="dark"] .footer-content a {
  color: var(--text-medium);
}

[data-theme="dark"] .footer-content a:hover {
  color: var(--primary);
}

/* Dark mode untuk activities */
[data-theme="dark"] .activities {
  background-color: var(--news-bubble-bg);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Dark mode untuk tooltip */
[data-theme="dark"] .nav-tooltip {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Dark mode untuk home hero */
[data-theme="dark"] .home-hero {
  background-color: transparent;
}

[data-theme="dark"] .home-section {
  background-color: transparent;
}

/* Dark mode untuk prestasi title after element */
[data-theme="dark"] .prestasi-title::after {
  background: rgba(255, 255, 255, 0.1);
}

/* Dark mode untuk news title after element */
[data-theme="dark"] .news-title::after {
  background: var(--primary);
}

/* Dark mode untuk main-title after element */
[data-theme="dark"] .main-title::after {
  background: var(--primary);
}

/* Dark mode untuk desc */
[data-theme="dark"] .desc {
  background: rgba(36, 36, 36, 0.6);
  color: var(--text-dark);
}

/* Dark mode untuk jlpt-level and tujuan-container */
[data-theme="dark"] .jlpt-level,
[data-theme="dark"] .tujuan-container {
  background: var(--news-bubble-bg);
  border-color: rgba(255, 107, 107, 0.2);
}

/* Dark mode untuk activities */
[data-theme="dark"] .activities {
  background-color: var(--news-bubble-bg);
  border-color: rgba(255, 107, 107, 0.2);
}

/* Dark mode untuk search and news components */
[data-theme="dark"] .no-results {
  color: var(--text-medium);
  background-color: var(--news-bubble-bg);
}

/* Update prestasi-foto-geometris background in dark mode */
[data-theme="dark"] .prestasi-foto-geometris {
  background: #1f1f1f;
}

[data-theme="dark"] .prestasi-foto-img {
  border-color: var(--bg-light);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Ensure news-bubble and prestasi-bubble use proper colors */
[data-theme="dark"] .news-bubble,
[data-theme="dark"] .prestasi-bubble {
  background: var(--news-bubble-bg);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .news-bubble:hover,
[data-theme="dark"] .prestasi-bubble:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-toggle {
  background-color: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .theme-toggle.header-hidden {
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #000;
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Dark mode untuk jlpt-level */
[data-theme="dark"] .jlpt-level {
  /* Warna yang lebih serasi dengan container lain tapi tetap berbeda */
  background: rgba(45, 42, 36, 0.8);
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.prestasi-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  margin: 15px 0;
  border-radius: var(--radius-medium);
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  text-align: center;
}

[data-theme="dark"] .prestasi-loader {
  background-color: rgba(36, 36, 36, 0.7);
}

.prestasi-loader:hover {
  opacity: 1;
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .prestasi-loader:hover {
  background-color: rgba(36, 36, 36, 0.9);
}

.prestasi-loader.active {
  opacity: 1;
  cursor: wait;
}

.loader-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.loader-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.7;
  animation: dot-pulse 1.4s infinite ease-in-out;
}

.loader-dots .dot:nth-child(1) {
  animation-delay: 0s;
}

.loader-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.loader-text {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
}

@keyframes dot-pulse {
  0%, 100% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}



/* Styles untuk prestasi tim */
.team-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
  vertical-align: middle;
}

.team-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 4px;
}

.team-members {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-color-soft);
}

.team-members-label {
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
}

.team-members-list {
  display: inline;
}

.team-member-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
}

.team-member-input {
  flex: 1;
}

.team-member-remove {
  color: var(--danger-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s;
}

.team-member-remove:hover {
  transform: scale(1.1);
}

/* Perbaikan tampilan foto prestasi */
.prestasi-bubble {
  display: flex;
  flex-direction: column;
  background-color: var(--news-bubble-bg);
  border-radius: var(--radius-large);
  box-shadow: var(--news-bubble-shadow);
  margin-bottom: 25px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-standard);
  border: 1px solid var(--border-light);
  height: 100%;
}

.prestasi-bubble.active {
  opacity: 1;
  transform: translateY(0);
}

/* Perbaikan container foto prestasi */
.prestasi-foto-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Default square 1:1 ratio */
  overflow: hidden;
  background-color: #f8f8f8;
}

/* Mengatur gambar di dalam container */
.prestasi-foto-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prestasi-bubble:hover .prestasi-foto-img {
  transform: scale(1.05);
}

.prestasi-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.prestasi-header {
  margin-bottom: 10px;
}

.prestasi-nama {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.prestasi-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--text-dark);
}

.prestasi-body {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Perbaikan khusus untuk dual winners */
.dual-winners .prestasi-content {
  padding: 20px;
}

.dual-winners-container {
  display: grid;
  gap: 20px;
  width: 100%;
}

.winner-section {
  display: flex;
  flex-direction: column;
  background-color: var(--news-bubble-bg);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.winner-rank {
  background-color: var(--primary);
  color: white;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin: 15px 15px 5px 15px;
  border-radius: var(--radius-pill);
}

/* Team info */
.team-name {
  display: inline-block;
}

.team-badge {
  display: inline-block;
  background-color: var(--primary-lighter);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-small);
  font-size: 0.8rem;
  margin-left: 8px;
  vertical-align: middle;
}

.team-members {
  background-color: var(--bg-light);
  padding: 10px;
  border-radius: var(--radius-small);
  margin-top: 10px;
  font-size: 0.9rem;
}

.team-members-label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-medium);
}

/* Perbaikan untuk desktop */
@media (min-width: 1024px) {
  .prestasi-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
  }
  
  /* Memperbaiki tampilan dual winners di desktop */
  .prestasi-bubble.dual-winners {
    grid-column: span 3;
    padding: 0;
  }
  
  .dual-winners .prestasi-content {
    padding: 25px;
  }
  
  .dual-winners .prestasi-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
  }
  
  .dual-winners-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .winner-section {
    border: 1px solid var(--border-light);
  }
  
  .winner-section .prestasi-foto-container {
    height: 0;
    padding-bottom: 100%; /* Perfect square 1:1 ratio */
  }
  
  /* Memastikan foto selalu 1:1 di desktop */
  .prestasi-foto-container {
    padding-bottom: 100%; /* Perfect square 1:1 ratio */
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
  }
  
  /* Membuat border yang lebih jelas untuk foto */
  .prestasi-foto-img {
    border: none;
    box-shadow: none;
  }
  
  /* Memperbaiki layout untuk prestasi bubble */
  .prestasi-bubble {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
  }
  
  /* Memperbaiki tampilan nama dan title */
  .prestasi-nama {
    font-size: 1.2rem;
    margin-bottom: 5px;
    line-height: 1.3;
  }
  
  .prestasi-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  
  /* Memperbaiki tampilan team members */
  .team-members {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius-small);
    background-color: var(--primary-subtle);
  }
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .prestasi-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .prestasi-bubble.dual-winners {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .prestasi-list {
    grid-template-columns: 1fr;
  }
  
  .prestasi-bubble.dual-winners {
    grid-column: span 1;
  }
  
  .dual-winners-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Perbaikan untuk dual winners title */
.dual-winners .prestasi-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--primary-lighter);
  padding-bottom: 15px;
}

/* Perbaikan untuk winner section pada desktop */
@media (min-width: 1024px) {
  .winner-section {
    border: 1px solid var(--border-light);
    margin: 0;
    padding: 0;
    /* Add display flex to enable vertical centering */
    display: flex;
    flex-direction: column;
  }
  
  .winner-section .prestasi-content {
    padding: 20px;
    /* Add flex properties for vertical centering */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .winner-section .prestasi-nama {
    font-size: 1.2rem;
  }
  
  .winner-section .prestasi-body {
    font-size: 0.9rem;
  }
}

/* Dual winners container */
.dual-winners-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .dual-winners-container {
    grid-template-columns: 1fr 1fr;
  }
}

.winner-rank {
  background-color: var(--primary);
  color: white;
  padding: 8px 15px;
  font-weight: 600;
  text-align: center;
}

/* New prestasi image display styles */
.prestasi-image-wrapper {
  margin: 0 0 20px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-shadow: none;
  border: none;
}

[data-theme="dark"] .prestasi-image-wrapper {
  background-color: transparent;
  box-shadow: none;
  border: none;
}

.prestasi-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Full-width landscape images */
.prestasi-image-wrapper.landscape {
  width: auto;
  max-width: 100%;
}

.prestasi-image-wrapper.landscape .prestasi-image {
  max-width: 100%;
  object-fit: contain;
}

/* Full-width portrait images */
.prestasi-image-wrapper.portrait {
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.prestasi-image-wrapper.portrait .prestasi-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
}

/* Hover effect */
.prestasi-image-wrapper:hover .prestasi-image {
  transform: none;
}

/* Image zoom effect on click */
.prestasi-image-wrapper.zoomed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  z-index: 1000;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: zoomIn 0.3s ease;
  border: none;
  box-shadow: none;
}

.prestasi-image-wrapper.zoomed .prestasi-image {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  margin: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: none;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close button for zoomed images */
.prestasi-image-wrapper.zoomed::after {
  content: "×";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

/* Style untuk daftar anggota tim - simplified */
.team-members {
  margin-top: 10px;
  background-color: var(--primary-subtle);
  border-radius: 8px;
  padding: 10px;
}

.team-members-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}

/* Background untuk nama individu */
.prestasi-bubble:not(.team) .prestasi-nama {
  background-color: var(--primary-subtle);
  border-radius: 8px;
  padding: 10px 15px;
  display: inline-block;
  margin-bottom: 5px;
}

.team-members-ul li {
  padding: 3px 0 3px 15px;
  position: relative;
  font-size: 1.05rem;
  color: var(--text-dark);
  position: relative;
  flex: 1 1 auto;
  min-width: calc(50% - 15px);
}

.team-members-ul li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 3px;
  top: 3px;
}

[data-theme="dark"] .team-members {
  background-color: rgba(255, 107, 107, 0.1);
}

[data-theme="dark"] .team-members-ul li:before {
  color: var(--primary-light);
  opacity: 0.7;
}

[data-theme="dark"] .prestasi-bubble:not(.team) .prestasi-nama {
  background-color: rgba(255, 107, 107, 0.1);
}

/* Informasi pemenang di bawah foto - simplified */
.prestasi-winner-info {
  margin-top: 15px;
  padding: 0;
}

/* Deskripsi prestasi - fix spacing */
.prestasi-body {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 0;
  letter-spacing: normal;
  word-spacing: normal;
}

/* Add styling for prestasi date */
.prestasi-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-style: italic;
}

.prestasi-date::before {
  content: "🗓️";
  margin-right: 5px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Dark mode adjustments - less contrast */
[data-theme="dark"] .prestasi-title {
  color: var(--primary-light);
  border-bottom-color: rgba(255, 107, 107, 0.3);
}

[data-theme="dark"] .prestasi-date {
  color: var(--text-light);
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* Full-width portrait images */
.prestasi-image-wrapper.portrait {
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.prestasi-image-wrapper.portrait .prestasi-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
}

/* Perbaikan untuk berita disematkan di desktop */
@media (min-width: 1024px) {
  .news-bubble.pinned {
    overflow: hidden;
    border-radius: var(--radius-large);
    min-height: 320px;
  }
  
  .news-bubble.pinned img {
    border-radius: var(--radius-large) 0 0 var(--radius-large);
    object-position: center;
    max-height: none;
    height: 100%;
  }
  
  .news-bubble.pinned .news-content {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 25px 30px;
  }
  
  .news-bubble.pinned .news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .news-bubble.pinned .news-meta {
    margin-bottom: 15px;
  }
  
  .news-bubble.pinned .news-body {
    display: block;
    overflow-y: visible;
    margin-bottom: 20px;
  }
  
  .news-bubble.pinned .news-btn-container {
    margin-top: auto;
    padding-top: 20px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--news-bubble-bg) 80%, transparent);
    padding-bottom: 5px;
  }
}

/* Dark mode penyesuaian untuk berita disematkan */
[data-theme="dark"] .news-bubble.pinned {
  background: var(--news-bubble-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .news-bubble.pinned img {
  border-right-color: var(--primary);
}

[data-theme="dark"] .news-bubble.pinned .news-btn-container {
  background: linear-gradient(to top, var(--news-bubble-bg) 80%, transparent);
}

/* Image zoom effect on click */
.prestasi-image-wrapper.zoomed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  z-index: 1000;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: zoomIn 0.3s ease;
  border: none;
  box-shadow: none;
}

.prestasi-image-wrapper.zoomed .prestasi-image {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  margin: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: none;
}

/* Tombol close untuk gambar yang dizoom */
.zoom-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zoom-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Dark mode adjustment */
[data-theme="dark"] .zoom-close-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .zoom-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Styling untuk link di berita */
.news-body a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--primary-soft);
  transition: all 0.2s ease;
}

.news-body a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Link di dark mode */
[data-theme="dark"] .news-body a {
  color: var(--primary-light);
  border-bottom-color: var(--primary-lighter);
}

[data-theme="dark"] .news-body a:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

[data-theme="dark"] .footer-heading {
  color: var(--primary-light);
}

[data-theme="dark"] .footer-heading::after {
  background: var(--primary-light);
}

[data-theme="dark"] .footer-contacts i {
  color: var(--primary-light);
}

[data-theme="dark"] .footer-nav a:hover,
[data-theme="dark"] .footer-contacts a:hover {
  color: var(--primary-light) !important;
}

[data-theme="dark"] .footer-bottom {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-icon {
  background-color: rgba(255, 107, 107, 0.2);
}

[data-theme="dark"] .social-icon:hover {
  background-color: var(--primary);
}

/* Footer responsif */
@media (max-width: 767px) {
  .footer {
    padding: 40px 20px 20px 20px;
  }
  
  .footer-columns {
    gap: 30px;
  }
  
  .footer-column {
    padding: 0 10px;
  }
  
  .footer-column:first-child {
    display: none; /* Sembunyikan kolom "Tentang Kami" di mobile */
  }
  
  .footer-text {
    font-size: 0.9rem;
    text-align: center;
  }
  
  .footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-contacts li {
    justify-content: center;
    text-align: center;
  }
  
  .footer-contacts i {
    display: none; /* Menyembunyikan icon pada tampilan mobile */
  }
  
  .footer-bottom {
    text-align: center;
    gap: 20px;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
}

.footer-map-link {
  color: var(--text-medium) !important;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.footer-map-link:hover {
  color: var(--primary) !important;
}

[data-theme="dark"] .footer-map-link {
  color: var(--text-light) !important;
}

[data-theme="dark"] .footer-map-link:hover {
  color: var(--primary-light) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 110px;
  width: 40px;
  height: 40px;
  background-color: var(--navbar-bg);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  border: 1px solid var(--border-light);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

[data-theme="dark"] .scroll-to-top {
  background-color: var(--navbar-bg);
  color: var(--primary-light);
  border-color: var(--border-light);
}

[data-theme="dark"] .scroll-to-top:hover {
  background-color: var(--primary);
  color: white;
}

@media (max-width: 600px) {
  .header {
    height: 70px;
  }
  
  .scroll-to-top {
    right: 15px;
    bottom: 100px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
  }
}

[data-theme="dark"] .theme-toggle i {
  /* Sun icon for dark mode */
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.theme-toggle.header-hidden i {
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .theme-toggle.header-hidden i {
  background: linear-gradient(135deg, #000, rgba(0, 0, 0, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Perbaikan styling tombol global untuk konsistensi */
.news-nav-button,
.search-reset-btn,
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(139, 35, 35, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  -webkit-font-smoothing: antialiased;
}

/* Efek gradient pada hover */
.news-nav-button::before,
.search-reset-btn::before,
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, var(--primary), #c04040);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s ease;
  border-radius: 50px;
}

/* Efek shimmer */
.news-nav-button::after,
.search-reset-btn::after,
.btn::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.03) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg) translateY(100%);
  opacity: 0;
  z-index: 2;
  transition: transform 1s ease, opacity 0.5s ease;
  pointer-events: none;
}

.news-nav-button:hover,
.search-reset-btn:hover,
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  color: white;
  box-shadow: 0 7px 14px rgba(139, 35, 35, 0.3),
              0 3px 6px rgba(0, 0, 0, 0.1),
              0 0 20px rgba(139, 35, 35, 0.2);
}

.news-nav-button:hover::before,
.search-reset-btn:hover::before,
.btn:hover::before {
  opacity: 1;
}

.news-nav-button:hover::after,
.search-reset-btn:hover::after,
.btn:hover::after {
  opacity: 1;
  transform: rotate(30deg) translateY(-20%);
}

.news-nav-button:active,
.search-reset-btn:active,
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 6px rgba(139, 35, 35, 0.2);
}

/* Untuk tombol dengan ikon */
.news-nav-button i,
.search-reset-btn i,
.btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.news-nav-button:hover i,
.search-reset-btn:hover i,
.btn:hover i {
  transform: translateX(4px);
}

/* Adaptasi warna untuk mode gelap */
[data-theme="dark"] .news-nav-button,
[data-theme="dark"] .search-reset-btn,
[data-theme="dark"] .btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25),
              0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .news-nav-button::before,
[data-theme="dark"] .search-reset-btn::before,
[data-theme="dark"] .btn::before {
  background: linear-gradient(120deg, var(--primary), #ff7a5a);
}

[data-theme="dark"] .news-nav-button:hover,
[data-theme="dark"] .search-reset-btn:hover,
[data-theme="dark"] .btn:hover {
  color: white;
  box-shadow: 0 7px 14px rgba(255, 107, 107, 0.35),
              0 3px 6px rgba(0, 0, 0, 0.2),
              0 0 20px rgba(255, 107, 107, 0.3);
}

/* Perbaikan khusus untuk tombol yang sudah ada */
.hero-action .news-nav-button {
  margin-top: 15px;
  font-size: 1rem;
  padding: 12px 24px;
}

/* Styling khusus untuk tombol di hero section paling atas */
.hero-action:first-child .news-nav-button {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary), #c04040);
  box-shadow: 0 8px 16px rgba(139, 35, 35, 0.4),
              0 4px 8px rgba(0, 0, 0, 0.15),
              0 0 20px rgba(139, 35, 35, 0.3);
  animation: heroButtonPulse 3s infinite;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.hero-action:first-child .news-nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #c04040, var(--primary));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-radius: 50px;
  transform: translateY(5px) scale(0.95);
}

.hero-action:first-child .news-nav-button::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg) translateY(100%);
  opacity: 0;
  z-index: 2;
  transition: transform 0.8s ease, opacity 0.5s ease;
  pointer-events: none;
}

.hero-action:first-child .news-nav-button:hover {
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 12px 24px rgba(139, 35, 35, 0.5),
              0 6px 12px rgba(0, 0, 0, 0.2),
              0 0 30px rgba(139, 35, 35, 0.4);
  letter-spacing: 0.06em;
}

.hero-action:first-child .news-nav-button:hover::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-action:first-child .news-nav-button:hover::after {
  opacity: 1;
  transform: rotate(30deg) translateY(-60%);
  transition: transform 1.2s ease, opacity 0.5s ease;
}

.hero-action:first-child .news-nav-button i {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-action:first-child .news-nav-button:hover i {
  transform: translateX(8px) scale(1.2);
}

@keyframes heroButtonPulse {
  0% {
    box-shadow: 0 8px 16px rgba(139, 35, 35, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15),
                0 0 0 rgba(139, 35, 35, 0);
  }
  50% {
    box-shadow: 0 8px 16px rgba(139, 35, 35, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(139, 35, 35, 0.5);
  }
  100% {
    box-shadow: 0 8px 16px rgba(139, 35, 35, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15),
                0 0 0 rgba(139, 35, 35, 0);
  }
}

/* Dark mode styling untuk tombol hero */
[data-theme="dark"] .hero-action:first-child .news-nav-button {
  background: linear-gradient(135deg, var(--primary), #ff7a5a);
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.35),
              0 4px 8px rgba(0, 0, 0, 0.2),
              0 0 20px rgba(255, 107, 107, 0.3);
  animation: darkHeroButtonPulse 3s infinite;
}

[data-theme="dark"] .hero-action:first-child .news-nav-button::before {
  background: linear-gradient(135deg, #ff7a5a, var(--primary));
}

[data-theme="dark"] .hero-action:first-child .news-nav-button:hover {
  box-shadow: 0 12px 24px rgba(255, 107, 107, 0.45),
              0 6px 12px rgba(0, 0, 0, 0.25),
              0 0 30px rgba(255, 107, 107, 0.5);
}

@keyframes darkHeroButtonPulse {
  0% {
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.35),
                0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 0 rgba(255, 107, 107, 0);
  }
  50% {
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.35),
                0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(255, 107, 107, 0.5);
  }
  100% {
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.35),
                0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 0 rgba(255, 107, 107, 0);
  }
}

/* Tombol navigasi dengan style Apple-like yang elegan dan minimalis */
.news-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transisi lebih halus */
  box-shadow: 0 4px 10px rgba(139, 35, 35, 0.2);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  -webkit-font-smoothing: antialiased;
  opacity: 1; /* Mulai terlihat */
}

.news-nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(139, 35, 35, 0.3);
  background: var(--primary-dark, #a82c2c);
}

.news-nav-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(139, 35, 35, 0.2);
}

.news-nav-button i {
  margin-left: 6px;
  margin-right: -2px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.news-nav-button:hover i {
  transform: translateX(4px);
}

/* Dark mode style for the navigation button */
[data-theme="dark"] .news-nav-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

[data-theme="dark"] .news-nav-button:hover {
  background: var(--primary-dark, #a82c2c);
  color: white;
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
}

/* Posisi tombol di halaman prestasi - kiri atas */
.prestasi-list + .news-nav-button,
div[style*="text-align: right"] .news-nav-button {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: 0;
}

/* Posisi tombol di halaman home - kanan atas */
.hero-action:first-child {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
}

/* Posisi tombol di halaman home dan prestasi */
.top-right, .top-left {
  position: absolute;
  top: 80px; /* Posisi lebih ke bawah agar tidak menutupi header */
  margin: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.top-right {
  right: 20px;
}

.top-left {
  left: 20px;
}

/* Pastikan content-wrapper memiliki padding atas yang cukup */
.content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 140px; /* Tambahkan padding lebih banyak untuk ruang tombol */
}

/* Tombol navigasi dengan style Apple-like yang elegan dan minimalis */
.news-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(139, 35, 35, 0.2);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  -webkit-font-smoothing: antialiased;
}

/* Membuat news-btn lebih mencolok dan spesial */
.news-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--primary), #c04040);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 16px rgba(139, 35, 35, 0.3), 
              0 4px 8px rgba(0, 0, 0, 0.15),
              0 0 0 2px rgba(255, 255, 255, 0.1) inset;
  z-index: 1;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
  text-align: center;
  animation: elegantFloat 4s ease-in-out infinite;
}

/* Efek hover yang elegan dengan warna seperti semula */
.news-btn:hover {
  transform: translateY(-5px) scale(1.03);
  color: white;
  box-shadow: 0 12px 20px rgba(139, 35, 35, 0.4), 
              0 6px 10px rgba(0, 0, 0, 0.2),
              0 0 0 3px rgba(255, 255, 255, 0.2) inset;
  background: linear-gradient(135deg, #c04040, var(--primary));
  letter-spacing: 0.08em;
}

/* Efek goyang elegan yang lebih dinamis */
@keyframes elegantFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-6px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-3px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-5px) rotate(0.3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Efek kelap-kelip teks yang lebih dramatis */
@keyframes textGlow {
  0% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  25% {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 200, 200, 0.4);
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 200, 200, 0.6);
  }
  75% {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 200, 200, 0.4);
  }
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

.news-btn span {
  animation: textGlow 4s ease-in-out infinite;
}

/* Button icon dengan animasi lebih menarik */
.news-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.news-btn-icon i {
  font-size: 1.2rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-btn:hover .news-btn-icon i {
  transform: translateX(8px) scale(1.2);
  animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
  0% {
    transform: translateX(6px) scale(1);
  }
  50% {
    transform: translateX(10px) scale(1.3);
  }
  100% {
    transform: translateX(6px) scale(1);
  }
}

/* Tooltip yang lebih menarik */
.news-btn-tooltip {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-btn-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.85);
  transform: rotate(45deg);
  z-index: -1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-btn-container:hover .news-btn-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dark mode style for the news button */
[data-theme="dark"] .news-btn {
  background: linear-gradient(135deg, var(--primary), #a82c2c);
  color: white;
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3),
              0 4px 8px rgba(0, 0, 0, 0.2),
              0 0 0 2px rgba(255, 255, 255, 0.05) inset;
}

/* Dark theme hover */
[data-theme="dark"] .news-btn:hover {
  background: linear-gradient(135deg, #a82c2c, var(--primary));
  color: white;
  box-shadow: 0 12px 20px rgba(255, 107, 107, 0.4),
              0 6px 10px rgba(0, 0, 0, 0.25),
              0 0 0 3px rgba(255, 255, 255, 0.1) inset;
}

/* Posisi tombol di halaman home dan prestasi */
.top-right, .top-left {
  position: absolute;
  top: 80px; /* Posisi lebih ke bawah agar tidak menutupi header */
  margin: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

/* Menyamakan ukuran dan posisi dengan toggle tema */
.theme-toggle, .news-toggle {
  position: fixed;
  width: 45px;
  height: 45px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: var(--transition-standard);
  cursor: pointer;
}

.theme-toggle {
  top: 10px;
  right: 20px;
  color: #222;
  background-color: transparent;
  z-index: 1000;
}

/* Tombol toggle untuk navigasi saat scroll */
.news-toggle {
  top: 65px; /* Posisi tepat di bawah toggle tema */
  right: 20px; /* Sejajar dengan toggle tema */
  color: white;
  background-color: var(--primary);
  border: none;
  z-index: 999;
  opacity: 0;
  transform: translateY(-20px) scale(0.8);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.news-toggle.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.news-toggle:hover {
  background-color: var(--primary-dark, #a82c2c);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.news-toggle i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.news-toggle:hover i {
  transform: scale(1.2);
}

[data-theme="dark"] .news-toggle {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .news-toggle:hover {
  background-color: var(--primary-dark, #a82c2c);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
  