.container-home {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  margin-top: 75px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(68, 157, 240, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  padding-right: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  background-color: white;
  border: 1.5px solid #f8f8f8;
  color: #449df0;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  gap: 8px;
}

.hero-tag .icon-start {
  display: inline-block;
  animation: spin 6s linear infinite;
  font-size: 10px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-tag .icon-bolt {
  display: inline-block;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  color: #0a0a0a;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  color: #5a5a5a;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero p a {
  color: #449df0;
  text-decoration: none;
  border-bottom: 2px solid #449df0;
  transition: opacity 0.3s;
}

.hero p a:hover {
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-home {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  color: #fff;
  background-color: #449df0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse-glow-blue 2s ease-out infinite;
}

@keyframes pulse-glow-blue {
  0% {
    box-shadow: 0 0 0 0 #449df0;
  }
  70% {
    box-shadow: 0 0 30px 20px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* hiệu ứng hover */
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* icon mũi tên di chuyển khi hover */
.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-outline {
  background: white;
  color: #449df0;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  border-color: #449df052;
  background: #f3f8fe;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a5a5a;
  font-size: 14px;
}

.hero-stat i {
  border-radius: 50%;
  color: #00c950;
  font-size: 18px;
  animation: pulse-glow-green 3s ease-in-out infinite;
}

@keyframes pulse-glow-green {
  0% {
    box-shadow: 0 0 0 0 #00c950;
  }
  70% {
    box-shadow: 0 0 10px 6px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.hero-right {
  position: relative;
}

.hero-card {
  position: relative;
  /* border-radius: 24px; */
  overflow: hidden;
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); */
  /* background: white; */
  /* background: radial-gradient(
    circle at top right,
    #e8f2ff,
    #ffffff 100%
  ); */
  max-width: 620;
  margin-left: auto;
  justify-content: center;
  display: flex;
}

.hero-card-img {
  width: 80%;
  height: auto;
  display: block;
  border-radius: 24px;
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); */
}

.hero-badge {
  position: absolute;
  top: 20px;
  right: 50%;
  transform: translateX(50%);
  background: white;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #449df061;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-badge.live {
  font-weight: 500;
}

.hero-badge.live i {
  color: #00c950;
  font-size: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-icon-item {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.hero-icon-item:hover {
  transform: translateY(-5px);
}

.hero-icon-item i {
  font-size: 24px;
  color: #449df0;
}

.hero-stats-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  width: calc(100% - 40px);
  max-width: 630px;
}

.stat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.571);
  /* background: #f1f5ff; */
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-box .stat-label {
  display: block;
  font-size: 14px;
  color: #000000;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-box .stat-value-home {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0084ff;
}

/* Responsive cho hero card */
@media (max-width: 768px) {
  .hero-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-icons {
    padding: 0 20px;
  }

  .hero-icon-item {
    width: 50px;
    height: 50px;
  }

  .hero-icon-item i {
    font-size: 20px;
  }

  .hero-stats-bottom {
    gap: 12px;
    width: calc(100% - 30px);
  }

  .stat-box {
    padding: 10px 12px;
  }

  .stat-box .stat-value {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 10px;
    padding: 6px 12px;
  }

  .hero-icon-item {
    width: 45px;
    height: 45px;
  }

  .hero-icon-item i {
    font-size: 18px;
  }

  .stat-box .stat-label {
    font-size: 9px;
  }

  .stat-box .stat-value {
    font-size: 14px;
  }
}

/* BEST PROXY PROVIDERS */
.best-proxy {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  background: #ebf5ff;
  color: #449df0;
  padding: 4px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid #449df07b;
}

.section-tag i {
  margin-right: 6px;
}

.section-header h2 {
  font-size: 40px;
  color: #0a0a0a;
  margin-bottom: 12px;
  font-weight: 300;
}

.section-header h2 span {
  color: #449df0;
}

.section-header p {
  color: #5a5a5a;
  font-size: 16px;
}

/* =================================================== */
.best-proxy {
  overflow: visible;
  padding-top: 20px;
}

.proxy-slider-container {
  position: relative;
  padding: 0 70px;
}

.proxy-list {
  padding: 20px 0 10px 0;
  display: flex;
  gap: 28px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 20px;
}

.slider-dots {
  margin-bottom: 24px;
}

.view-all {
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.proxy-list::-webkit-scrollbar {
  display: none;
}

.proxy-list.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.proxy-item {
  flex: 0 0 calc(33.333% - 18.67px);
  min-width: 340px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    to bottom right,
    rgba(77, 154, 255, 0.05),
    rgba(120, 178, 252, 0.05)
  );
  border: 2px solid rgba(77, 154, 255, 0.15);
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(77, 154, 255, 0.05);
  transition: all 0.5s ease;
  position: relative;
}

.proxy-item:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    to bottom right,
    rgba(77, 154, 255, 0.08),
    rgba(120, 178, 252, 0.08)
  );
  border-color: rgba(77, 154, 255, 0.35);
  box-shadow: 0 12px 32px rgba(77, 154, 255, 0.25);
}

.proxy-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(to bottom right, #4d9aff38, #78b2fc7d);
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.5s ease;
  z-index: 0;
}

.proxy-item:hover::before {
  opacity: 0.4;
}

.proxy-item > * {
  position: relative;
  z-index: 1;
}

.proxy-header {
  position: relative;
  padding: 5px;
  background: linear-gradient(
    to bottom right,
    rgba(77, 154, 255, 0.08),
    rgb(255 255 255 / 8%)
  );
  text-align: center;
  border-radius: 15px 15px 0 0;
}

.proxy-rank-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  /* position: relative; */
  margin-bottom: -20px;
  gap: 12px;

  position: relative;
  top: 45px;
  left: 15%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.proxy-rank {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #4d9aff);
  box-shadow: 0 8px 20px rgba(77, 154, 255, 0.4);
  transition: transform 0.6s ease;
}

.proxy-item:hover .proxy-rank {
  transform: rotate(8deg) scale(1.1);
}

.proxy-rank-star {
  color: #449df0;
  font-size: 24px;
  opacity: 0;
  transition: all 0.7s ease;
  position: absolute;
  right: 20px;
  top: 0;
}

.proxy-item:hover .proxy-rank-star {
  opacity: 1;
  transform: rotate(180deg);
}

.proxy-logo-center {
  display: flex;
  justify-content: center;
}

.proxy-logo {
  width: 95px;
  height: 95px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease;
}

.proxy-item:hover .proxy-logo {
  transform: rotate(8deg) scale(1.1);
}

.proxy-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.proxy-body {
  padding: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.proxy-title {
  margin-bottom: 4px;
}

.proxy-title h3 {
  font-size: 24px;
  color: #0a0a0a;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.proxy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  justify-content: center;
}

.badge {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-best {
  background: #449df0;
  color: white;
}

.badge-popular {
  background: #ffa500;
  color: white;
}

.badge-value {
  background: #00c950;
  color: white;
}

.badge-flexible {
  background: #8b5cf6;
  color: white;
}

.proxy-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 44px;
}

.proxy-rating-box {
  /* background: #fcfdfe;
  border: 1px solid #f0f0f0; */
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 12px;
}

.proxy-rating-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px;
}

.rating-score {
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
}

.rating-text {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.proxy-features {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
  max-height: 180px;
  overflow: hidden;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #4a4a4a;
  background-color: #fcfdfe;
  border: 1px solid #f8f8f8;
  border-radius: 10px;
  padding: 6px 20px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border: 1px solid #449df0a3;
  background-color: #f0f8ff;
}

.feature-item i {
  color: #449df0;
  font-size: 13px;
  flex-shrink: 0;
}

.proxy-footer {
  padding: 0 24px 24px;
  margin-top: auto;
}

.proxy-price-box {
  text-align: center;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(
    to bottom right,
    rgba(77, 154, 255, 0.08),
    rgba(168, 85, 247, 0.08)
  );
  border: 2px solid rgba(77, 154, 255, 0.2);
  box-shadow: 0 4px 12px rgba(77, 154, 255, 0.08);
  margin-bottom: 10px;
}

.price-label {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.price-value {
  font-size: 26px;
  font-weight: 700;
  color: #d40924;
  margin: 0px 0;
}

.price-period {
  font-size: 12px;
  color: #9ca3af;
}

.btn-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 32px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(to right, #4d9aff, #78b2fc);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(77, 154, 255, 0.3);
  outline: none;
  text-decoration: none;
}

.btn-visit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 154, 255, 0.4);
}

.btn-visit i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-visit:hover i {
  transform: translateX(4px);
}

.verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: #00c950;
  font-weight: 500;
  margin-top: 12px;
}

.verified-badge i {
  font-size: 15px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover:not(:disabled) {
  background: #4d9aff;
  color: white;
  border-color: #4d9aff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(77, 154, 255, 0.3);
}

.slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #4d9aff;
}

.slider-dot:hover:not(.active) {
  background: #9ca3af;
}

/* ===================== rank top ================== */

/* =========================
   RANK LOGO - BASE
========================= */
.proxy-rank-logo {
  padding: 0px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  color: #1e1e1e;
}

/* =========================
   RANK 1
========================= */
.proxy-item:nth-child(1) .proxy-rank-logo .proxy-rank {
  background: linear-gradient(135deg, #ff9b00, #ffc900);
  box-shadow: 0 5px 10px rgba(255, 201, 0, 0.6);
}

/* =========================
   RANK 2
========================= */
.proxy-item:nth-child(2) .proxy-rank-logo .proxy-rank {
  background: linear-gradient(135deg, #96a78d, #d9e9cf);
  box-shadow: 0 5px 10px rgba(182, 206, 180, 0.6);
}

/* =========================
   RANK 3
========================= */
.proxy-item:nth-child(3) .proxy-rank-logo .proxy-rank {
  background: linear-gradient(135deg, #ff7d29, #ffbf78);
  box-shadow: 0 5px 10px rgba(255, 125, 41, 0.6);
}

@media (max-width: 1024px) {
  .proxy-item {
    flex: 0 0 calc(50% - 14px);
  }
}

@media (max-width: 768px) {
  .proxy-item {
    flex: 0 0 calc(100% - 24px);
    height: 680px;
  }
}

@media (max-width: 480px) {
  .proxy-item {
    flex: 0 0 calc(100% - 24px);
    height: 660px;
  }

  .proxy-slider-container {
    padding: 0;
  }
}

/* ================================================================================================================== */

/* Tablet - Large (1024px and below) */
@media (max-width: 1024px) {
  .proxy-item {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .proxy-left {
    width: 100%;
    justify-content: flex-start;
  }

  .proxy-middle {
    width: 100%;
  }

  .proxy-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .proxy-price-box {
    max-width: 200px;
  }

  .btn-visit {
    max-width: 250px;
  }
}

/* Tablet - Medium (768px and below) */
@media (max-width: 768px) {
  .proxy-item {
    padding: 16px;
    gap: 16px;
  }

  /* Top section: rank + logo + details */
  .proxy-left {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .proxy-rank-box {
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .proxy-rank {
    width: 45px;
    height: 45px;
    font-size: 14px;
  }

  .proxy-logo {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .proxy-details h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .proxy-desc {
    font-size: 13px;
  }

  /* Rating and features section */
  .proxy-middle {
    gap: 12px;
  }

  .proxy-rating {
    justify-content: flex-start;
    padding: 4px 8px;
  }

  .stars {
    font-size: 14px;
  }

  .rating-score {
    font-size: 18px;
  }

  .rating-text {
    font-size: 12px;
  }

  .proxy-features {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .feature-item {
    font-size: 12px;
    padding: 4px 8px;
  }

  .feature-item i {
    font-size: 11px;
  }

  /* Bottom section: price + button full width */
  .proxy-right {
    flex-direction: column;
    gap: 12px;
  }

  .proxy-price-box {
    max-width: 100%;
    padding: 12px 16px;
  }

  .price-value {
    font-size: 22px;
  }

  .btn-visit {
    max-width: 100%;
    padding: 12px 24px;
    font-size: 14px;
  }

  .verified-badge {
    font-size: 12px;
  }
}

/* Mobile - Small (480px and below) */
@media (max-width: 480px) {
  .proxy-item {
    padding: 14px;
    gap: 14px;
  }

  .proxy-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .proxy-rank-box {
    flex-direction: column;
    height: auto;
  }

  .proxy-rank {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .proxy-logo {
    width: 60px;
    height: 60px;
  }

  .proxy-details {
    width: 100%;
  }

  .proxy-details h3 {
    font-size: 17px;
  }

  .proxy-badges {
    justify-content: center;
  }

  .proxy-desc {
    font-size: 12px;
  }

  .proxy-rating {
    justify-content: center;
  }

  .proxy-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-item {
    justify-content: center;
  }

  .price-value {
    font-size: 20px;
  }

  .btn-visit {
    padding: 11px 20px;
    font-size: 13px;
  }

  .verified-badge {
    justify-content: center;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .proxy-item {
    padding: 12px;
  }

  .proxy-details h3 {
    font-size: 16px;
  }

  .price-value {
    font-size: 18px;
  }

  .btn-visit {
    font-size: 12px;
    padding: 10px 18px;
  }
}

/* DIRECTORY SECTION */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.directory-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.directory-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #449df0, #3285d1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.directory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(68, 157, 240, 0.15);
  border-color: #449df068;
}

.directory-card:hover::before {
  transform: scaleX(1);
}

.directory-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ebf5ff, #dbeafe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #449df0;
  font-size: 24px;
  margin-bottom: 20px;
  transition: transform 0.8s ease;
}

.directory-card:hover .directory-icon {
  transform: rotate(8deg) scale(1.05);
  transition: all 1s ease;
}

.directory-card h3 {
  font-size: 19px;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 700;
}

.directory-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.directory-list {
  list-style: none;
  margin-bottom: 20px;
}

.directory-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a4a4a;
  font-size: 14px;
  margin-bottom: 8px;
}

.directory-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #449df0;
  border-radius: 50%;
}

.directory-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background: #f3f4f6;
  color: #449df0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.btn-load {
  width: 100%;
  background: #80b7fc;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-load i {
  margin-left: 3px;
}

.btn-load:hover {
  background: #449df0;
  transform: translateY(-2px);
}

/* GUIDES SECTION */
.guides {
  padding: 80px 0;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 30px;
}

.guide-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.guide-card:hover {
  transform: translateY(-6px);
  border: 2px solid #449df06d;
  box-shadow: 0 12px 32px rgba(68, 157, 240, 0.15);
}

.guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.guide-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.guide-tag {
  background: #ebf5ff;
  color: #449df0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.guide-time {
  color: #9ca3af;
  font-size: 13px;
}

.guide-card h3 {
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 50px;
}

.guide-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.guide-link {
  color: #449df0;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
  pointer-events: none;
  margin-top: auto;
  align-self: flex-start;
}

.guide-card:hover .guide-link {
  gap: 10px;
}

.guide-link i {
  transition: transform 0.3s ease;
}

.guide-card:hover .guide-link i {
  transform: translateX(3px);
}

/* PARTNERS SECTION */
.partners {
  padding: 0px 0;
  background: white;
}

.testimonials-slider {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 23px;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 28px;
  will-change: transform;
}

/* Desktop: mỗi slide chiếm 50% - gap/2 */
.slide {
  min-width: calc(50% - 14px);
  width: calc(50% - 14px);
  flex-shrink: 0;
  box-sizing: border-box;
}

.testimonial-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.testimonial-card:hover {
  border-color: #449df062;
  box-shadow: 0 8px 24px rgba(68, 157, 240, 0.12);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 16px;
}

.testimonial-text {
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #449df0, #3285d1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 13px;
  color: #9ca3af;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e5e7eb;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: #449df0;
  border-color: #449df0;
  color: white;
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #449df0;
  width: 28px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  /* ... các style khác (ví dụ: hero, v.v.) ... */

  /* Thêm hoặc Sửa: Đảm bảo mỗi slide chiếm 100% khi cuộn */
  .slider-track {
    display: flex; /* Đã có, chỉ kiểm tra */
    /* width: auto; => không nên set cứng */
    gap: 0;
  }

  .slide {
    min-width: 100%; /* Rất quan trọng: Mỗi slide chiếm 100% */
  }

  /* Đảm bảo container của slider không bị tràn */
  .slider-wrapper {
    overflow: hidden;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding-right: 0;
    text-align: center;
    order: 1;
  }

  .hero-right {
    order: 2;
    margin-bottom: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero h1 {
    font-size: 40px;
  }

  .directory-grid,
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proxy-info {
    justify-content: center;
  }

  .proxy-features {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 60px;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-card {
    padding: 24px;
  }

  .card-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-item {
    padding: 12px 8px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .directory-grid,
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .proxy-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-tag {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-stat {
    font-size: 12px;
  }

  .card-stats {
    gap: 8px;
  }

  .stat-value {
    font-size: 18px;
  }

  .feature-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .directory-grid,
  .guides-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================= */
/*  add css for search form */
/* Header Search Form */
.header-search {
  display: flex;
  align-items: center;
  margin-right: -180px;
}

.search-form {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: visible;
  transition: all 0.3s ease;
  width: 220px;
  position: relative;
}

.search-form:hover {
  border-color: #449df0;
  box-shadow: 0 2px 8px rgba(68, 157, 240, 0.15);
}

.search-form:focus-within {
  border-color: #449df0;
  box-shadow: 0 2px 12px rgba(68, 157, 240, 0.25);
  background: white;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 15px;
  font-size: 14px;
  color: #333;
  outline: none;
  width: 100%;
}

.search-input::placeholder {
  color: #999;
  font-weight: 300;
}

.search-button {
  background: transparent;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-button:hover {
  color: #449df0;
  transform: scale(1.1);
}

.search-button i {
  font-size: 16px;
}

/* Responsive cho form search */
@media (max-width: 1200px) {
  .search-form {
    width: 180px;
  }

  .header-search {
    margin: 0 15px;
  }
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }
}

/* =====================================================
   BEST PROXY PROVIDERS - FIXED MOBILE RESPONSIVE
   ===================================================== */

.best-proxy {
  padding: 80px 0;
  overflow: visible;
}

/* ===== SLIDER CONTAINER ===== */
.proxy-slider-container {
  position: relative;
  padding: 0 70px;
}

/* ===== PROXY LIST ===== */
.proxy-list {
  padding: 20px 0 10px 0;
  display: flex;
  gap: 28px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.proxy-list::-webkit-scrollbar {
  display: none;
}

.proxy-list.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* ===== PROXY ITEM - BASE ===== */
.proxy-item {
  flex: 0 0 calc(33.333% - 18.67px);
  min-width: 340px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    to bottom right,
    rgba(77, 154, 255, 0.05),
    rgba(120, 178, 252, 0.05)
  );
  border: 2px solid rgba(77, 154, 255, 0.15);
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(77, 154, 255, 0.05);
  transition: all 0.5s ease;
  position: relative;
  scroll-snap-align: start;
}

.proxy-item:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    to bottom right,
    rgba(77, 154, 255, 0.08),
    rgba(120, 178, 252, 0.08)
  );
  border-color: rgba(77, 154, 255, 0.35);
  box-shadow: 0 12px 32px rgba(77, 154, 255, 0.25);
}

.proxy-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(to bottom right, #4d9aff38, #78b2fc7d);
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.5s ease;
  z-index: 0;
}

.proxy-item:hover::before {
  opacity: 0.4;
}

.proxy-item > * {
  position: relative;
  z-index: 1;
}

/* ===== NAVIGATION BUTTONS ===== */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover:not(:disabled) {
  background: #4d9aff;
  color: white;
  border-color: #4d9aff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(77, 154, 255, 0.3);
}

.slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

/* ===== SLIDER DOTS ===== */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #4d9aff;
}

.slider-dot:hover:not(.active) {
  background: #9ca3af;
}

/* ===== DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
  .proxy-item {
    flex: 0 0 calc(33.333% - 18.67px);
    min-width: 340px;
    max-width: 400px;
  }
}

/* ===== TABLET LARGE (1024px - 1199px) ===== */
@media (max-width: 1199px) {
  .proxy-slider-container {
    padding: 0 60px;
  }

  .proxy-item {
    flex: 0 0 calc(50% - 14px);
    min-width: 320px;
    max-width: 380px;
  }

  .slider-nav {
    width: 48px;
    height: 48px;
  }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) {
  .proxy-slider-container {
    padding: 0 50px;
  }

  .proxy-item {
    flex: 0 0 calc(100% - 40px);
    min-width: 300px;
    max-width: 100%;
    height: auto;
  }

  .proxy-list {
    gap: 20px;
    padding: 20px 10px;
  }
}

/* ===== MOBILE LARGE (481px - 767px) ===== */
@media (max-width: 767px) {
  .best-proxy {
    padding: 60px 0;
  }

  .proxy-slider-container {
    padding: 0 45px;
  }

  .proxy-list {
    gap: 16px;
    padding: 20px 5px;
  }

  .proxy-item {
    flex: 0 0 calc(100% - 30px);
    min-width: 280px;
    max-width: 100%;
    height: auto;
  }

  .slider-nav {
    width: 44px;
    height: 44px;
  }

  .slider-nav.prev {
    left: -5px;
  }

  .slider-nav.next {
    right: -5px;
  }
}

/* ===== MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  .best-proxy {
    padding: 50px 0;
  }

  /* CRITICAL: Remove side padding completely on mobile */
  .proxy-slider-container {
    padding: 0;
    margin: 0 -10px;
  }

  .proxy-list {
    gap: 12px;
    padding: 20px 10px;
    scroll-padding: 0 10px;
  }

  .proxy-item {
    flex: 0 0 calc(100% - 40px);
    min-width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    margin: 0 10px;
    height: auto;
  }

  /* Navigation buttons - smaller and positioned inside */
  .slider-nav {
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .slider-nav.prev {
    left: 10px;
  }

  .slider-nav.next {
    right: 10px;
  }

  .slider-nav i {
    font-size: 14px;
  }

  /* Dots - smaller on mobile */
  .slider-dots {
    gap: 6px;
    margin-top: 15px;
    margin-bottom: 20px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    width: 24px;
  }

  /* View All Button */
  .view-all {
    margin-top: 10px;
  }
}

/* ===== MOBILE EXTRA SMALL (max 360px) ===== */
@media (max-width: 360px) {
  .proxy-slider-container {
    margin: 0 -5px;
  }

  .proxy-list {
    padding: 20px 5px;
  }

  .proxy-item {
    flex: 0 0 calc(100% - 30px);
    min-width: calc(100% - 30px);
    max-width: calc(100% - 30px);
    margin: 0 5px;
  }

  .slider-nav {
    width: 36px;
    height: 36px;
  }

  .slider-nav.prev {
    left: 5px;
  }

  .slider-nav.next {
    right: 5px;
  }
}
