html, body {
  margin: 0;
  padding: 0;
  font-weight: 300;
  background-color: #fff;
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.custom-left {
  width: 150px;
  flex-shrink: 0;
}

.custom-right {
  width: 300px;
  flex-shrink: 0;
}

.content-area {
  flex-grow: 1;
  min-width: 0;
}

.layout-footer {
  background-color: #f9f9f9;
  padding: 20px 0;
  margin-top: 20px;
}

.footer-inner {
  font-size: 14px;
  color: #555;
  text-align: left;
}

@media (max-width: 991.98px) {
  .custom-left,
  .custom-right,
  .content-area {
    width: 100%;
  }

  .content-area {
    margin: 20px 0;
  }

  .nav.flex-column {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav.flex-column .nav-link {
    padding: 4px 12px;
    border-right: 1px solid #ccc;
    margin-right: -1px;
  }

  .nav.flex-column .nav-link:last-child {
    border-right: none;
    margin-right: 0;
  }
}

h1 {
  color: #343a40;
  font-size: 32px;
  margin-bottom: 20px;
}

h2 {
  margin-top: 2rem;
  color: #343a40;
}

p {
  color: #343a40;
  font-size: 18px;
  line-height: 1.6;
}

.table th,
.table td {
  vertical-align: middle;
}

.nav-item .bi {
  margin-right: 10px;
}

.custom-right ul li::before {
  content: "•";
  color: #6c757d;
  display: inline-block;
  margin-right: 6px;
}

.active-link {
  font-weight: 600;
  color: #0d6efd !important;
}

.article-table-wrapper {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.vpn-table {
  font-size: 0.925rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.vpn-table thead {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.vpn-table th,
.vpn-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;
}

.vpn-table tbody tr:nth-child(odd) > td {
  background-color: #f8f9fa !important;
}

.vpn-table tbody tr:nth-child(even) > td {
  background-color: #ffffff !important;
}

.vpn-table tbody tr:last-child td {
  border-bottom: none !important;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.table-hint {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 16px;
  font-style: italic;
  display: block;
}

.table-hint.shown {
  margin-bottom: 0.5rem;
}

#langDropdown {
  border: 1px solid #0d6efd;
  border-radius: .375rem !important;
  width: 110px !important;
  text-align: left;
  padding: 0.375rem 0.75rem;
  background-color: white;
  color: #0d6efd;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#langDropdown:hover,
#langDropdown:focus {
  background-color: #0d6efd !important;
  color: white !important;
}

#langDropdown:focus,
#langDropdown:active,
.dropdown.show #langDropdown {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.dropdown-menu[data-bs-popper] {
  margin-top: 0 !important;
}

.dropdown-menu[aria-labelledby="langDropdown"] {
  width: 110px !important;
  min-width: unset !important;
  border: 1px solid #0d6efd !important;
  border-top: none !important;
  border-radius: 0 0 .375rem .375rem !important;
  padding: 0 !important;
  background-color: #fff;
}

.dropdown-menu .dropdown-item {
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: #0d6efd;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #0d6efd !important;
  color: white !important;
}

.dropdown-menu {
  transition: none !important;
}

.hover-shadow:hover {
  box-shadow: var(--bs-box-shadow-sm);
}

.hover-border-primary:hover {
  border-color: var(--bs-primary) !important;
}

.card-transition {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-meta {
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6c757d);
}

.card-meta i {
  opacity: 0.7;
}

.vpn-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.vpn-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
  text-decoration: none;
}

.vpn-card-logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vpn-card-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}