/* style/index-best-exchange-card-game-platforms.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #4B0082;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light-grey: #f1f3f5;
  --border-color: #e4e4e4;
}

.page-index-best-exchange-card-game-platforms {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  background-color: var(--background-light-grey);
  line-height: 1.6;
}

/* HERO Section */
.page-index-best-exchange-card-game-platforms__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background-color: var(--background-light-grey);
}

.page-index-best-exchange-card-game-platforms__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-best-exchange-card-game-platforms__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index-best-exchange-card-game-platforms__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-best-exchange-card-game-platforms__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index-best-exchange-card-game-platforms__hero-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-best-exchange-card-game-platforms__hero-description {
  font-size: 18px;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-best-exchange-card-game-platforms__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-index-best-exchange-card-game-platforms__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Game Leaderboard Section */
.page-index-best-exchange-card-game-platforms__game-leaderboard-section {
  padding: 40px 20px;
  background-color: var(--background-light-grey);
  text-align: center;
}

.page-index-best-exchange-card-game-platforms__page-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 40px;
  text-align: center;
}

.page-index-best-exchange-card-game-platforms__game-leaderboard {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index-best-exchange-card-game-platforms__game-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__game-card:hover {
  transform: translateY(-5px);
}

.page-index-best-exchange-card-game-platforms__game-card-segment {
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 120px; /* Ensure consistent height for segments */
}

.page-index-best-exchange-card-game-platforms__segment-1 {
  padding-left: 0;
  border-left: none;
  width: 120px;
  flex-shrink: 0;
  position: relative;
  gap: 10px;
}

.page-index-best-exchange-card-game-platforms__segment-1::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background-color: var(--border-color);
}

.page-index-best-exchange-card-game-platforms__segment-2 {
  flex: 1;
  position: relative;
}

.page-index-best-exchange-card-game-platforms__segment-2::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background-color: var(--border-color);
}

.page-index-best-exchange-card-game-platforms__segment-3 {
  width: 180px;
  flex-shrink: 0;
  position: relative;
}

.page-index-best-exchange-card-game-platforms__segment-3::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background-color: var(--border-color);
}

.page-index-best-exchange-card-game-platforms__segment-4 {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-index-best-exchange-card-game-platforms__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-color-light);
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-index-best-exchange-card-game-platforms__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.page-index-best-exchange-card-game-platforms__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
}

.page-index-best-exchange-card-game-platforms__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333);
}

.page-index-best-exchange-card-game-platforms__game-icon {
  max-width: 80px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 10px;
}

.page-index-best-exchange-card-game-platforms__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  text-align: center;
  margin-bottom: 8px;
}

.page-index-best-exchange-card-game-platforms__game-name-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block; /* Ensure the link takes up full width for centering */
}

.page-index-best-exchange-card-game-platforms__game-name-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index-best-exchange-card-game-platforms__game-description {
  font-size: 14px;
  color: #000000;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index-best-exchange-card-game-platforms__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__game-description a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index-best-exchange-card-game-platforms__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.page-index-best-exchange-card-game-platforms__stars {
  color: #FFD700;
  font-size: 18px;
  margin-right: 5px;
  font-weight: bold;
}

.page-index-best-exchange-card-game-platforms__rating-number {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-color-dark);
}

.page-index-best-exchange-card-game-platforms__promotion-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.page-index-best-exchange-card-game-platforms__promotion-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__promotion-link:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index-best-exchange-card-game-platforms__hot-badge {
  background: #ff0000;
  color: var(--text-color-light);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
}

.page-index-best-exchange-card-game-platforms__cta-button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: none;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-best-exchange-card-game-platforms__btn-download {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-index-best-exchange-card-game-platforms__btn-download:hover {
  background: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-index-best-exchange-card-game-platforms__btn-review {
  background: var(--secondary-color);
  color: var(--text-color-light);
}

.page-index-best-exchange-card-game-platforms__btn-review:hover {
  background: #3a0066;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Review Content Section */
.page-index-best-exchange-card-game-platforms__review-content-section {
  padding: 40px 20px;
  background: var(--background-light-grey);
}

.page-index-best-exchange-card-game-platforms__review-content-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index-best-exchange-card-game-platforms__review-content-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-index-best-exchange-card-game-platforms__review-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 24px;
  text-align: center;
}

.page-index-best-exchange-card-game-platforms__review-body h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-index-best-exchange-card-game-platforms__review-body {
  color: var(--text-color-dark);
  line-height: 1.7;
}

.page-index-best-exchange-card-game-platforms__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* General Section Styling */
.page-index-best-exchange-card-game-platforms__section-title {
  font-size: 30px;
  font-weight: bold;
  color: var(--text-color-dark);
  text-align: center;
  margin-bottom: 30px;
}

.page-index-best-exchange-card-game-platforms__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Intro Section */
.page-index-best-exchange-card-game-platforms__intro-section {
  padding: 60px 0;
  background-color: var(--background-light-grey);
}

.page-index-best-exchange-card-game-platforms__intro-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-index-best-exchange-card-game-platforms__intro-content p {
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 15px;
}

.page-index-best-exchange-card-game-platforms__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Game Types Section */
.page-index-best-exchange-card-game-platforms__game-types-section {
  padding: 60px 0;
  background-color: var(--background-light-grey);
}

.page-index-best-exchange-card-game-platforms__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-best-exchange-card-game-platforms__game-type-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index-best-exchange-card-game-platforms__game-type-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-index-best-exchange-card-game-platforms__game-type-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 10px;
}

.page-index-best-exchange-card-game-platforms__game-type-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
}

.page-index-best-exchange-card-game-platforms__game-type-link {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-color-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__game-type-link:hover {
  background: #3a0066;
}

/* Promotions Section */
.page-index-best-exchange-card-game-platforms__promotions-section {
  padding: 60px 0;
  background-color: var(--background-light-grey);
}

.page-index-best-exchange-card-game-platforms__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-best-exchange-card-game-platforms__promotion-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index-best-exchange-card-game-platforms__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-index-best-exchange-card-game-platforms__promotion-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 10px;
}

.page-index-best-exchange-card-game-platforms__promotion-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
}

.page-index-best-exchange-card-game-platforms__promotion-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-color-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__promotion-button:hover {
  background: #e6c200;
}

/* Blog Section */
.page-index-best-exchange-card-game-platforms__blog-section {
  padding: 60px 0;
  background-color: var(--background-light-grey);
}

.page-index-best-exchange-card-game-platforms__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-best-exchange-card-game-platforms__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index-best-exchange-card-game-platforms__blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-index-best-exchange-card-game-platforms__blog-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 10px;
}

.page-index-best-exchange-card-game-platforms__blog-link {
  color: var(--text-color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__blog-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index-best-exchange-card-game-platforms__blog-summary {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
}

.page-index-best-exchange-card-game-platforms__blog-date {
  font-size: 14px;
  color: #888888;
}

.page-index-best-exchange-card-game-platforms__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-index-best-exchange-card-game-platforms__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-best-exchange-card-game-platforms__view-all-button:hover {
  background: #3a0066;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-best-exchange-card-game-platforms__game-card-segment {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index-best-exchange-card-game-platforms__segment-1 {
    width: 100px;
  }
  .page-index-best-exchange-card-game-platforms__segment-3 {
    width: 150px;
  }
  .page-index-best-exchange-card-game-platforms__segment-4 {
    width: 180px;
  }
  .page-index-best-exchange-card-game-platforms__game-name {
    font-size: 22px;
  }
  .page-index-best-exchange-card-game-platforms__cta-button {
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .page-index-best-exchange-card-game-platforms__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for mobile fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index-best-exchange-card-game-platforms__hero-title {
    font-size: 32px;
  }

  .page-index-best-exchange-card-game-platforms__hero-description {
    font-size: 16px;
  }

  .page-index-best-exchange-card-game-platforms__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index-best-exchange-card-game-platforms__page-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-index-best-exchange-card-game-platforms__game-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .page-index-best-exchange-card-game-platforms__game-card-segment {
    width: 100% !important;
    padding: 10px 0;
    border-left: none;
    text-align: left;
    min-height: auto;
  }
  
  .page-index-best-exchange-card-game-platforms__segment-1,
  .page-index-best-exchange-card-game-platforms__segment-2,
  .page-index-best-exchange-card-game-platforms__segment-3,
  .page-index-best-exchange-card-game-platforms__segment-4 {
    position: relative;
    width: 100% !important;
    flex-shrink: unset;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-index-best-exchange-card-game-platforms__segment-1::after,
  .page-index-best-exchange-card-game-platforms__segment-2::after,
  .page-index-best-exchange-card-game-platforms__segment-3::after {
    display: none;
  }

  .page-index-best-exchange-card-game-platforms__segment-1 {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 10px;
  }

  .page-index-best-exchange-card-game-platforms__rank-badge {
    position: static;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .page-index-best-exchange-card-game-platforms__game-icon {
    max-width: 60px;
    margin-top: 0;
  }

  .page-index-best-exchange-card-game-platforms__game-name {
    font-size: 20px;
    text-align: left;
  }

  .page-index-best-exchange-card-game-platforms__game-description {
    font-size: 13px;
    text-align: left;
    margin-top: 5px;
  }

  .page-index-best-exchange-card-game-platforms__game-rating,
  .page-index-best-exchange-card-game-platforms__promotion-text {
    justify-content: flex-start;
    margin-top: 10px;
  }
  
  .page-index-best-exchange-card-game-platforms__hot-badge {
    margin-left: 5px;
  }

  .page-index-best-exchange-card-game-platforms__segment-4 {
    flex-direction: row;
    gap: 10px;
    margin-top: 15px;
  }

  .page-index-best-exchange-card-game-platforms__btn-download,
  .page-index-best-exchange-card-game-platforms__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }

  .page-index-best-exchange-card-game-platforms__review-content-section,
  .page-index-best-exchange-card-game-platforms__intro-section,
  .page-index-best-exchange-card-game-platforms__game-types-section,
  .page-index-best-exchange-card-game-platforms__promotions-section,
  .page-index-best-exchange-card-game-platforms__blog-section {
    padding: 30px 15px;
  }

  .page-index-best-exchange-card-game-platforms__review-content-card,
  .page-index-best-exchange-card-game-platforms__intro-content,
  .page-index-best-exchange-card-game-platforms__game-type-card,
  .page-index-best-exchange-card-game-platforms__promotion-card,
  .page-index-best-exchange-card-game-platforms__blog-card {
    padding: 20px;
  }

  .page-index-best-exchange-card-game-platforms__review-title,
  .page-index-best-exchange-card-game-platforms__section-title {
    font-size: 24px;
  }

  .page-index-best-exchange-card-game-platforms__review-body h3,
  .page-index-best-exchange-card-game-platforms__game-type-title,
  .page-index-best-exchange-card-game-platforms__promotion-title,
  .page-index-best-exchange-card-game-platforms__blog-title {
    font-size: 18px;
  }

  .page-index-best-exchange-card-game-platforms__review-body p,
  .page-index-best-exchange-card-game-platforms__intro-content p,
  .page-index-best-exchange-card-game-platforms__game-type-description,
  .page-index-best-exchange-card-game-platforms__promotion-description,
  .page-index-best-exchange-card-game-platforms__blog-summary {
    font-size: 15px;
  }

  .page-index-best-exchange-card-game-platforms img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index-best-exchange-card-game-platforms__section,
  .page-index-best-exchange-card-game-platforms__card,
  .page-index-best-exchange-card-game-platforms__container,
  .page-index-best-exchange-card-game-platforms__intro-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}