.page-resources-j88-account-security {
  color: #ffffff; /* Dark body background #1a1a2e, so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources-j88-account-security__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-j88-account-security__section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Inherit from body or use a consistent dark background */
}

.page-resources-j88-account-security__hero-content-section {
  padding-top: 0; /* shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #2F4F4F; /* Auxiliary color for a distinct hero area */
  text-align: center;
}

.page-resources-j88-account-security__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #DAA520; /* Gold for prominence */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-j88-account-security__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-j88-account-security__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-j88-account-security__btn-primary,
.page-resources-j88-account-security__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-j88-account-security__btn-primary {
  background-color: #DAA520;
  color: #1a1a2e;
  border: 2px solid #DAA520;
}

.page-resources-j88-account-security__btn-primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  transform: translateY(-3px);
}

.page-resources-j88-account-security__btn-secondary {
  background-color: transparent;
  color: #DAA520;
  border: 2px solid #DAA520;
}

.page-resources-j88-account-security__btn-secondary:hover {
  background-color: #DAA520;
  color: #1a1a2e;
  transform: translateY(-3px);
}

.page-resources-j88-account-security__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #DAA520;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-j88-account-security__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources-j88-account-security__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-j88-account-security__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources-j88-account-security__text-block p {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-resources-j88-account-security__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-j88-account-security__tip-card {
  background-color: #2F4F4F;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-j88-account-security__tip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-j88-account-security__tip-card-title {
  font-size: 24px;
  color: #DAA520;
  margin-bottom: 20px;
  min-height: 60px; /* Ensure consistent height for titles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources-j88-account-security__tip-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-j88-account-security__tip-card p {
  font-size: 16px;
  color: #e0e0e0;
}

.page-resources-j88-account-security__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources-j88-account-security__ordered-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-resources-j88-account-security__ordered-list li strong {
  color: #DAA520;
}

.page-resources-j88-account-security__ordered-list li a {
  color: #DAA520;
  text-decoration: none;
}

.page-resources-j88-account-security__ordered-list li a:hover {
  text-decoration: underline;
}

/* FAQ styles */
.page-resources-j88-account-security__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-j88-account-security__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #3a3a4e;
}

.page-resources-j88-account-security__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #2F4F4F;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-j88-account-security__faq-question:hover {
  background-color: #3a5f5f;
}

.page-resources-j88-account-security__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-resources-j88-account-security__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #DAA520;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-j88-account-security__faq-item.active .page-resources-j88-account-security__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-resources-j88-account-security__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #1a1a2e;
  color: #e0e0e0;
}

.page-resources-j88-account-security__faq-item.active .page-resources-j88-account-security__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #3a3a4e;
}

.page-resources-j88-account-security__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* General image and button responsiveness */
.page-resources-j88-account-security img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources-j88-account-security__section,
.page-resources-j88-account-security__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* 🚨 Mobile Responsive Design (max-width: 768px) - MUST INCLUDE ALL BLOCKS AS PER INSTRUCTIONS */
@media (max-width: 1024px) {
  .page-resources-j88-account-security__main-title {
    font-size: 42px;
  }

  .page-resources-j88-account-security__section-title {
    font-size: 32px;
  }

  .page-resources-j88-account-security__content-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-j88-account-security__content-grid--reverse-mobile {
    grid-template-areas: "image" "text";
  }

  .page-resources-j88-account-security__content-grid--reverse-mobile .page-resources-j88-account-security__image-wrapper {
    grid-area: image;
  }

  .page-resources-j88-account-security__content-grid--reverse-mobile .page-resources-j88-account-security__text-block {
    grid-area: text;
  }

  .page-resources-j88-account-security__tip-card-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  /* 1. HERO Content Area */
  .page-resources-j88-account-security__hero-content-section {
    padding-top: 0 !important; /* Ensure no double padding */
    padding-bottom: 40px;
  }

  .page-resources-j88-account-security__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources-j88-account-security__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources-j88-account-security__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* 2. LOGO Carousel Area (Included as per strict instruction, even if not on this page) */
  .page-resources-j88-account-security__logo-carousel-section {
    padding: 20px 15px;
  }
  
  .page-resources-j88-account-security__logo-carousel {
    gap: 12px;
  }
  
  .page-resources-j88-account-security__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
  
  .page-resources-j88-account-security__logo-item a {
    padding: 8px;
  }

  /* 3. Game Display Area (Included as per strict instruction, even if not on this page) */
  .page-resources-j88-account-security__games-section {
    padding: 40px 15px;
  }
  
  .page-resources-j88-account-security__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-resources-j88-account-security__featured-game-title {
    font-size: 20px;
  }
  
  .page-resources-j88-account-security__featured-game-image {
    height: 300px;
  }
  
  .page-resources-j88-account-security__games-tabs {
    gap: 15px;
  }
  
  .page-resources-j88-account-security__games-tab {
    font-size: 16px;
  }
  
  .page-resources-j88-account-security__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-resources-j88-account-security__game-card-image {
    height: 150px;
  }
  
  .page-resources-j88-account-security__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  /* 4. General Images and Containers */
  .page-resources-j88-account-security img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-j88-account-security__container,
  .page-resources-j88-account-security__section,
  .page-resources-j88-account-security__tip-card,
  .page-resources-j88-account-security__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override specific padding for elements that manage their own internal padding */
  .page-resources-j88-account-security__hero-content-section .page-resources-j88-account-security__container,
  .page-resources-j88-account-security__section .page-resources-j88-account-security__container {
    padding-left: 0;
    padding-right: 0;
  }

  /* 5. Buttons and Button Containers */
  .page-resources-j88-account-security__btn-primary,
  .page-resources-j88-account-security__btn-secondary,
  .page-resources-j88-account-security a[class*="button"],
  .page-resources-j88-account-security a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources-j88-account-security__cta-buttons,
  .page-resources-j88-account-security__button-group,
  .page-resources-j88-account-security__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 6. Other Content Modules */
  .page-resources-j88-account-security {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-j88-account-security__section {
    padding: 40px 0;
  }

  .page-resources-j88-account-security__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-j88-account-security__text-block p {
    font-size: 16px;
  }

  .page-resources-j88-account-security__tip-card {
    padding: 25px;
  }

  .page-resources-j88-account-security__tip-card-title {
    font-size: 20px;
    min-height: auto;
  }

  .page-resources-j88-account-security__tip-image {
    height: 200px;
  }

  .page-resources-j88-account-security__ordered-list {
    padding-left: 20px;
  }

  .page-resources-j88-account-security__ordered-list li {
    font-size: 16px;
  }

  .page-resources-j88-account-security__faq-question {
    padding: 15px 20px;
  }

  .page-resources-j88-account-security__faq-question h3 {
    font-size: 16px;
  }

  .page-resources-j88-account-security__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-resources-j88-account-security__faq-answer {
    padding: 0 20px;
  }

  .page-resources-j88-account-security__faq-item.active .page-resources-j88-account-security__faq-answer {
    padding: 15px 20px !important;
  }
}

/* HERO主图区域 (Required in CSS, even if HTML not present on this page) */
.page-resources-j88-account-security__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; 
  margin-top: 0;
}

.page-resources-j88-account-security__hero-container {
  position: relative;
  margin: 0 auto;
}

.page-resources-j88-account-security__hero-image {
  width: 100%;
  margin: 0;
}

.page-resources-j88-account-security__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-resources-j88-account-security__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0 !important;
    margin-top: 0;
  }
  
  .page-resources-j88-account-security__hero-image img {
    width: 100%;
    height: auto;
  }
}

/* LOGO轮播区域 (Required in CSS, even if HTML not present on this page) */
.page-resources-j88-account-security__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: #1a1a2e;
}

.page-resources-j88-account-security__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-resources-j88-account-security__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-resources-j88-account-security__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-resources-j88-account-security__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-resources-j88-account-security__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.page-resources-j88-account-security__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-resources-j88-account-security__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 🚨 Mobile LOGO Carousel */
@media (max-width: 768px) {
  .page-resources-j88-account-security__logo-carousel-section {
    padding: 20px 15px;
  }
  
  .page-resources-j88-account-security__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }
  
  .page-resources-j88-account-security__logo-carousel {
    gap: 12px;
  }
  
  .page-resources-j88-account-security__logo-item a {
    padding: 8px;
  }
}

/* 游戏展示区域 (Required in CSS, even if HTML not present on this page) */
.page-resources-j88-account-security__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #1a1a2e;
}

.page-resources-j88-account-security__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-resources-j88-account-security__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-resources-j88-account-security__featured-game-area {
  width: 100%;
}

.page-resources-j88-account-security__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffd700;
  text-align: left;
}

.page-resources-j88-account-security__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #2F4F4F;
  border: 1px solid #3a3a4e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-j88-account-security__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.page-resources-j88-account-security__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources-j88-account-security__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-resources-j88-account-security__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-j88-account-security__games-grid-area {
  width: 100%;
}

.page-resources-j88-account-security__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-resources-j88-account-security__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-resources-j88-account-security__games-tab:hover {
  color: #ffffff;
}

.page-resources-j88-account-security__games-tab.active {
  color: #DAA520;
  text-decoration: underline;
}

.page-resources-j88-account-security__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-resources-j88-account-security__games-grid.active {
  display: grid;
}

.page-resources-j88-account-security__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2F4F4F;
  border: 1px solid #3a3a4e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-j88-account-security__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-resources-j88-account-security__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources-j88-account-security__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-resources-j88-account-security__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-j88-account-security__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* 🚨 Mobile Game Display */
@media (max-width: 1024px) {
  .page-resources-j88-account-security__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-resources-j88-account-security__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-resources-j88-account-security__games-section {
    padding: 40px 15px;
  }
  
  .page-resources-j88-account-security__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-resources-j88-account-security__featured-game-title {
    font-size: 20px;
  }
  
  .page-resources-j88-account-security__featured-game-image {
    height: 300px;
  }
  
  .page-resources-j88-account-security__games-tabs {
    gap: 15px;
  }
  
  .page-resources-j88-account-security__games-tab {
    font-size: 16px;
  }
  
  .page-resources-j88-account-security__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-resources-j88-account-security__game-card-image {
    height: 150px;
  }
  
  .page-resources-j88-account-security__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }
}