/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* ========== BASE ========== */
:root {
  --primary: #5a50c0;
  --primary-dark: #292476;
  --primary-light: #858ff7;
  --secondary: #9ed768;
  --background: #dbdaf9;
  --background-bg: #d7c8f3;
  --card-bg: #2b2084;
  --sidebar-bg: #dbdaf9;
  --text: #2b2084;
  --text-muted: #5a50c0;
  --border: #858ff7;
  --hover: #5a50c0;
  --accent: #cde656;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Figtree', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0.5rem;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(43, 32, 132, 0.3);
  transition: transform 0.3s ease;
}

.logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.logo .chip {
  color: var(--secondary);
}

.logo img {
  max-width: 140px;
  height: auto;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  margin-bottom: 2rem;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.menu a:hover {
  background-color: var(--hover);
  transform: translateX(5px);
  color: white;
}

.menu a.active {
  background-color: var(--primary);
  color: white;
}

.icon {
  font-size: 1.2rem;
}

/* Sidebar Bottom Section */
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  position: absolute;
  bottom: 1.5rem;
  left: 1.25rem;
  right: 1.25rem;
}

        /* Language Switcher */
        .language-switcher {
          position: relative;
          display: inline-block;
        }

        .lang-current {
          display: flex;
          align-items: center;
          justify-content: space-between;
          background-color: var(--background-bg);
          border-radius: 0.5rem;
          color: var(--text);
          cursor: pointer;
          font-size: 0.85rem;
          transition: background 0.2s ease;
          height: 45px;
          width: 120px;
          padding: 0 12px;
          border: 1px solid transparent;
        }

        .lang-current:hover {
          background-color: var(--hover);
          color: white;
        }

        .flag-icon {
          width: 18px;
          height: 13px;
          border-radius: 2px;
          object-fit: cover;
          margin-right: 8px;
        }

        .dropdown-arrow {
          font-size: 8px;
          transition: transform 0.3s ease;
          margin-left: 8px;
        }

        /* Dropdown menu */
        .lang-dropdown {
          position: absolute;
          bottom: 100%;
          left: 0;
          right: 0;
          background-color: var(--card-bg);
          border-radius: 0.5rem;
          box-shadow: 0 -4px 20px rgba(43, 32, 132, 0.4);
          overflow: hidden;
          opacity: 0;
          visibility: hidden;
          transform: translateY(10px);
          transition: all 0.3s ease;
          z-index: 1001;
          margin-bottom: 5px;
          border: 1px solid var(--border);
        }

        /* Show dropdown when active */
        .language-switcher.active .lang-dropdown {
          opacity: 1;
          visibility: visible;
          transform: translateY(0);
        }

        /* Rotate arrow when active */
        .language-switcher.active .dropdown-arrow {
          transform: rotate(180deg);
        }

        .lang-option {
          display: flex;
          align-items: center;
          padding: 0.75rem 1rem;
          color: var(--accent);
          text-decoration: none;
          transition: background 0.2s;
          font-size: 0.85rem;
        }

        .lang-option:hover {
          background-color: var(--hover);
          color: white;
        }

        .lang-option .flag-icon {
          margin-right: 8px;
        }

/* Support Button */
.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  grid-column: 2 / 3;
  height: 45px;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
}

.support-btn:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(43, 32, 132, 0.2);
  border-radius: 50%;
  margin-right: 5px;
  font-size: 10px;
  font-weight: bold;
}

/* Mobile and tablet sidebar behavior */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.sidebar-open {
    transform: translateX(0);
  }
  
  /* Add overlay for mobile sidebar */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 32, 132, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ========== BURGER ========== */
.burger {
  display: none;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.burger:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .burger {
    display: block;
  }
}

/* ========== HEADER / TOPBAR ========== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 0.75rem 1.5rem;
  height: 70px;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(43, 32, 132, 0.2);
}

/* ====== BURGER (mobile/tablet topbar integration) ====== */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subnav-toggle {
  display: none !important;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ====== SUBNAV (left menu) ====== */
.subnav {
  display: flex;
  margin-left: 260px;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .subnav {
    margin-left: 0;
  }
}

/* Styles for links inside subnav */
.subnav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

/* hover/focus effect */
.subnav a:hover,
.subnav a:focus {
  background-color: var(--hover);
  color: white;
  transform: translateY(-2px);
}

/* wrapper for right buttons */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-right .btn {
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Background and text for Register */
.topbar-right .btn-register {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--text);
  border: 1px solid transparent;
  font-weight: 700;
}

.topbar-right .btn-register:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(158, 215, 104, 0.4);
}

/* Outline for Log In */
.topbar-right .btn-login {
  background-color: transparent;
  color: var(--background-bg);
  border: 1px solid var(--primary);
}

.topbar-right .btn-login:hover {
  background-color: rgba(90, 80, 192, 0.1);
  transform: translateY(-2px);
}

/* ====== ADAPTIVE TOPBAR STYLES ====== */
@media (max-width: 1024px) {
  .topbar {
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
  
  .topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Hide subnav on tablets and show burger */
  .subnav {
    display: none;
  }
  
  /* Show burger in topbar left */
  .burger {
    display: block;
    order: 0;
  }
  
  /* Ensure right buttons are compact */
  .topbar-right .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ====== MOBILE STYLES ====== */
@media (max-width: 768px) {
  .topbar {
    padding: 0.75rem 0.75rem;
  }
  
  /* show subnav toggle */
  .subnav-toggle {
    display: block;
    order: 1;
  }
  
  /* show subnav dropdown on mobile */
  .subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    margin-left: 0;
    box-shadow: 0 2px 10px rgba(43, 32, 132, 0.4);
  }
  
  /* show menu when active */
  .subnav.active {
    display: flex;
  }
  
  /* remove gap for mobile menu */
  .subnav.active {
    gap: 0;
  }
  
  /* styles for links in mobile menu */
  .subnav a {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  
  .subnav a:last-child {
    border-bottom: none;
  }
  
  /* More compact buttons on mobile */
  .topbar-right .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ========== MAIN ========== */
.main {
  padding: 2.5rem 2rem;
  margin-top: 70px;
  margin-left: 240px;
  width: calc(100% - 240px);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .main {
    margin-left: 0;
    width: 100%; 
    padding: 1.5rem 1rem;
  }
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--background) 100%);
  border-radius: 1rem;
  margin-bottom: 3rem;
  margin-left: 15px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color:  rgb(255, 255, 255);
  text-shadow: 2px 2px 2px #000,
  2px 2px 2px #000,
  2px 2px 2px #000,
  3px 3px 3px #000;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 2px #000,
  2px 2px 2px #000,
  2px 2px 2px #000,
  3px 3px 3px #000;
  color: #ffffff;
}

.hero-btn {
  display: inline-block;
  padding: 0.85em 2.5em;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--text);
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(158, 215, 104, 0.4);
}

.hero-btn:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(158, 215, 104, 0.5);
}

@media (max-width: 600px) {
  .hero-section { padding: 2rem 0; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
}
/* ========== GAME NAVIGATION ========== */
.game-nav {
  margin-bottom: 2rem;
}

.game-nav-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-nav-tab {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-nav-tab:hover,
.game-nav-tab.active {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--text);
  border-color: var(--primary-light);

}

/* ========== GAME SECTIONS ========== */
.game-section {
  margin-bottom: 3rem;
}

.game-section.hidden {
  display: none;
}

.game-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.game-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.game-section-controls {
  display: flex;
  gap: 0.5rem;
}

.game-nav-prev,
.game-nav-next {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--background-bg);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-nav-prev:hover,
.game-nav-next:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: scale(1.1);
}

/* ========== DESKTOP GRID ========== */
.games-grid.desktop-games {
  display: grid;
  gap: 1.5rem;
  padding: 0 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--background-bg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(43, 32, 132, 0.3);
  border-color: var(--primary-light);
}

.game-image-wrapper {
  position: relative;
  width: 100%;
  height: 70%;
  border-radius: 0.75rem;
  overflow: hidden;
}

.game-image {
  border-radius: 0.75rem;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.game-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(41, 36, 118, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  gap: 0.5rem;
}

.game-card:hover .game-actions {
  opacity: 1;
}

.game-actions a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  min-width: 80px;
}

.game-actions a:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(158, 215, 104, 0.4);
}

.btn-play-single {
  width: 90%;
  max-width: 120px;
}

/* Game badges */
.jackpot-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.exclusive-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.game-title {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  font-weight: 600;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* ========== MOBILE CAROUSEL ========== */
.games-carousel.mobile-games {
  display: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.games-carousel.mobile-games::-webkit-scrollbar {
  display: none;
}

.games-carousel .game-card {
  flex: 0 0 auto;
  width: 60%;
  max-width: 200px;
  scroll-snap-align: start;
  aspect-ratio: 3/4;
}

/* ========== RESPONSIVE BEHAVIOR ========== */
@media (max-width: 768px) {
  .games-grid.desktop-games {
    display: none !important;
  }
  
  .games-carousel.mobile-games {
    display: flex !important;
  }
  
  .game-section-header {
    padding: 0 1rem;
  }
  
  .game-section-title {
    font-size: 1.5rem;
  }
  
  .game-nav-container {
    padding: 0 1rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 30px;
  }
  
  .game-nav-container::-webkit-scrollbar {
    display: none;
  }
  
  .game-nav-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (min-width: 769px) {
  .games-carousel.mobile-games {
    display: none !important;
  }
  
  .games-grid.desktop-games {
    display: grid !important;
  }
}

/* ========== PROSE ========== */
.prose {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5em 0 0.75em;
}

.prose p {
  margin-bottom: 1.5em;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--primary-light);
}

/* ========== BONUS TILES ========== */
.bonus-tiles {
  display: grid;
  gap: 1.75rem;
  margin: 3rem 0;
  padding: 0 1.5rem;
  grid-auto-rows: 1fr;
}

@media (max-width: 768px) {
  .bonus-tiles { grid-template-columns: 1fr; padding: 0 1rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .bonus-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .bonus-tiles { grid-template-columns: repeat(3, 1fr); }
}

.bonus-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--card-bg);
  padding: 1.75rem;
  border-radius: 1rem;
  color: white;
  box-shadow: 0 4px 10px rgba(43, 32, 132, 0.2);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.bonus-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(43, 32, 132, 0.25);
  border-color: var(--primary-light);
}

.bonus-tile .image-wrapper {
  height: 180px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
}

.bonus-tile .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bonus-tile:hover .image-wrapper img {
  transform: scale(1.05);
}

.bonus-tile h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.bonus-tile p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  color: var(--primary-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bonus-tile a {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--text);
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(158, 215, 104, 0.3);
}

.bonus-tile a:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(158, 215, 104, 0.4);
}

/* ========== TABLE OF CONTENTS ========== */
#TableOfContents {
  background-color: var(--background-bg);
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  font-size: 1rem;
  margin: 2.5rem 0;
  color: var(--text);
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#TableOfContents li {
  margin-bottom: 1rem;
}

#TableOfContents a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

#TableOfContents a:hover {
  color: var(--primary-dark);
  background-color: var(--hover);
  transform: translateX(5px);
}

/* ========== TABLE STYLES ========== */
.table-container {
  background-color: var(--background-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin: 2.5rem 0;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--text);
  background-color: transparent;
}

thead {
  background-color: rgba(102, 96, 173, 0.6);
}

th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

tbody tr:hover {
  background-color: var(--hover);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Links in table */
table a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

table a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ========== MOBILE ADAPTATION ========== */
@media (max-width: 768px) {
  .table-container {
    margin: 1.5rem -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.75rem 0.5rem;
  }
  
  /* First column fixed when scrolling */
  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    background-color: var(--background-bg);
    z-index: 1;
  }
  
  thead th:first-child {
    background-color: rgba(90, 80, 192, 0.6);
  }
}

/* ========== FAQ BLOCK ========== */
.faq-block {
  background-color: var(--background);
  padding: 3rem 2rem;
  margin: 4rem 0;
  border-radius: 1rem;
}

.faq-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2.5rem;
  text-align: center;
}

.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.faq-item div {
  line-height: 1.7;
  color: var(--primary-light);
}

.faq-item:hover {
  background-color: var(--hover);
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: 0 8px 20px rgba(43, 32, 132, 0.25);
}

@media (max-width: 768px) {
  .faq-block {
    padding: 2rem 1rem;
  }
  
  .faq-heading {
    font-size: 1.75rem;
  }
  
  .faq-item {
    padding: 1.25rem;
  }
  
  .faq-item h3 {
    font-size: 1.2rem;
  }
}

/* ========== TOP NAVIGATION (MOBILE ONLY) ========== */
.topnav {
  background-color: var(--background);
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Show only on mobile and tablets */
@media (min-width: 1025px) {
  .topnav {
    display: none;
  }
}

.topnav-visible {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.topnav-visible::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.topnav-visible a {
  flex: 1 1 20%;
  min-width: 58px;
  background-color: var(--background-bg);
  border-radius: 0.75rem;
  color: var(--text);
  text-align: center;
  font-size: 0.75rem;
  padding: 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.topnav-visible a:hover {
  background-color: var(--hover);
  color: white;
  transform: translateY(-2px);
}

.topnav-visible a i {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.mobile-logo {
  display: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
  margin: 1rem 0;
  text-align: center;
}

.mobile-logo .chip {
  color: var(--secondary);
}

/* Show logo and limit its size on mobile */
@media (max-width: 1024px) {
  .mobile-logo {
    display: block !important;
    text-align: center;
    margin: 1.25rem 0;
  }
  .mobile-logo img {
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }
}

/* ====== FOOTER STYLES ====== */
.footer {
  background-color: var(--sidebar-bg);
  color: var(--accent);
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Main footer grid */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

/* Branding */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  height: 45px;
  width: auto;
}

.footer-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.footer-description {
  color: var(--primary-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Navigation columns */
.footer-column h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

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

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: var(--text);
  transform: translateX(3px);
}

/* Contact information */
.footer-contact p {
  margin: 0.75rem 0;
  color: var(--primary-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.1rem;
}

.footer-contact a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--text);
}

/* Bottom footer */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-logo {
  height: 30px;
  width: auto;
}

.footer-copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--card-bg);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--secondary);
  color: var(--text);
  transform: translateY(-3px);
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-light);
}

/* Tablet styles */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .footer-container {
    padding: 2rem 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1;
    text-align: center;
    align-items: center;
  }
  
  .footer-column h4 {
    text-align: center;
  }
  
  .footer-column ul {
    text-align: center;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-bottom-left {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-social {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Fixed language switcher functionality */
.language-switcher {
  position: relative;
}

/* Show dropdown when clicked */
.lang-current.active + .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-current.active::after {
  transform: rotate(180deg);
}