/* style/resources-55winbet-latest-news.css */

/* Base styles for the page content */
.page-resources-55winbet-latest-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text on dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background from shared.css */
}

.page-resources-55winbet-latest-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-55winbet-latest-news__section-title,
.page-resources-55winbet-latest-news__cta-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-55winbet-latest-news__section-description,
.page-resources-55winbet-latest-news__cta-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources-55winbet-latest-news__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-55winbet-latest-news__paragraph {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Hero Section */
.page-resources-55winbet-latest-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 120px 0 60px; /* Adjusted padding-top for header offset */
  box-sizing: border-box;
  overflow: hidden;
}

.page-resources-55winbet-latest-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-55winbet-latest-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources-55winbet-latest-news__hero-section .page-resources-55winbet-latest-news__container {
  position: relative;
  z-index: 3;
  color: #ffffff;
}

.page-resources-55winbet-latest-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: bold;
}

.page-resources-55winbet-latest-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Buttons */
.page-resources-55winbet-latest-news__btn-primary,
.page-resources-55winbet-latest-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
}

.page-resources-55winbet-latest-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-resources-55winbet-latest-news__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-resources-55winbet-latest-news__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-resources-55winbet-latest-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Content Area */
.page-resources-55winbet-latest-news__content-area {
  padding: 60px 0;
  background-color: #0a0a0a; /* Ensure content area uses body background */
  color: #ffffff;
}

/* Card Grid */
.page-resources-55winbet-latest-news__news-grid,
.page-resources-55winbet-latest-news__game-update-grid,
.page-resources-55winbet-latest-news__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-resources-55winbet-latest-news__news-card,
.page-resources-55winbet-latest-news__game-card,
.page-resources-55winbet-latest-news__tip-card {
  background-color: #ffffff; /* White background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text on white card background */
}

.page-resources-55winbet-latest-news__news-card:hover,
.page-resources-55winbet-latest-news__game-card:hover,
.page-resources-55winbet-latest-news__tip-card:hover {
  transform: translateY(-5px);
}

.page-resources-55winbet-latest-news__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources-55winbet-latest-news__card-content {
  padding: 25px;
}

.page-resources-55winbet-latest-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources-55winbet-latest-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources-55winbet-latest-news__card-title a:hover {
  text-decoration: underline;
}

.page-resources-55winbet-latest-news__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources-55winbet-latest-news__read-more-link,
.page-resources-55winbet-latest-news__play-now-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
}

.page-resources-55winbet-latest-news__read-more-link:hover,
.page-resources-55winbet-latest-news__play-now-link:hover {
  text-decoration: underline;
}

/* Security Info Section */
.page-resources-55winbet-latest-news__security-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-resources-55winbet-latest-news__security-image {
  flex: 1 1 45%;
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-55winbet-latest-news__security-text-block {
  flex: 1 1 50%;
  max-width: 50%;
}

/* FAQ Section */
.page-resources-55winbet-latest-news__faq-list {
  max-width: 900px;
  margin: 0 auto 60px;
}

.page-resources-55winbet-latest-news__faq-item {
  background-color: #ffffff; /* White background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333; /* Dark text on white FAQ item background */
}

.page-resources-55winbet-latest-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f8f8f8;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-resources-55winbet-latest-news__faq-question:hover {
  background-color: #e0f2f7;
}

.page-resources-55winbet-latest-news__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-resources-55winbet-latest-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-55winbet-latest-news__faq-item.active .page-resources-55winbet-latest-news__faq-toggle {
  transform: rotate(45deg); /* Change to minus sign visual */
}

.page-resources-55winbet-latest-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555; /* Darker text for answer content */
}

.page-resources-55winbet-latest-news__faq-item.active .page-resources-55winbet-latest-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 15px 25px;
}

.page-resources-55winbet-latest-news__faq-answer p {
  margin: 0;
  color: inherit;
}

.page-resources-55winbet-latest-news__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources-55winbet-latest-news__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-resources-55winbet-latest-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-resources-55winbet-latest-news__cta-section .page-resources-55winbet-latest-news__container {
  max-width: 900px;
}

.page-resources-55winbet-latest-news__cta-title {
  color: #ffffff;
}

.page-resources-55winbet-latest-news__cta-description {
  color: #f0f0f0;
}

.page-resources-55winbet-latest-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-55winbet-latest-news__hero-title {
    font-size: 3em;
  }
  .page-resources-55winbet-latest-news__section-title,
  .page-resources-55winbet-latest-news__cta-title {
    font-size: 2em;
  }
  .page-resources-55winbet-latest-news__sub-title {
    font-size: 1.5em;
  }
  .page-resources-55winbet-latest-news__news-grid,
  .page-resources-55winbet-latest-news__game-update-grid,
  .page-resources-55winbet-latest-news__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources-55winbet-latest-news__security-image,
  .page-resources-55winbet-latest-news__security-text-block {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-resources-55winbet-latest-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-55winbet-latest-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    min-height: 400px;
  }
  .page-resources-55winbet-latest-news__hero-title {
    font-size: 2.2em;
  }
  .page-resources-55winbet-latest-news__hero-description {
    font-size: 1em;
  }
  .page-resources-55winbet-latest-news__section-title,
  .page-resources-55winbet-latest-news__cta-title {
    font-size: 1.8em;
  }
  .page-resources-55winbet-latest-news__section-description,
  .page-resources-55winbet-latest-news__cta-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  .page-resources-55winbet-latest-news__sub-title {
    font-size: 1.3em;
  }
  .page-resources-55winbet-latest-news__btn-primary,
  .page-resources-55winbet-latest-news__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 5px;
  }
  .page-resources-55winbet-latest-news__news-grid,
  .page-resources-55winbet-latest-news__game-update-grid,
  .page-resources-55winbet-latest-news__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-55winbet-latest-news__security-info {
    flex-direction: column;
    gap: 20px;
  }
  .page-resources-55winbet-latest-news__security-image,
  .page-resources-55winbet-latest-news__security-text-block {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .page-resources-55winbet-latest-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-55winbet-latest-news__cta-buttons a {
    width: 100%;
  }

  /* Mobile image responsiveness */
  .page-resources-55winbet-latest-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-55winbet-latest-news__section,
  .page-resources-55winbet-latest-news__card,
  .page-resources-55winbet-latest-news__container,
  .page-resources-55winbet-latest-news__hero-section,
  .page-resources-55winbet-latest-news__content-area,
  .page-resources-55winbet-latest-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-resources-55winbet-latest-news__cta-button,
  .page-resources-55winbet-latest-news__btn-primary,
  .page-resources-55winbet-latest-news__btn-secondary,
  .page-resources-55winbet-latest-news a[class*="button"],
  .page-resources-55winbet-latest-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-55winbet-latest-news__cta-buttons,
  .page-resources-55winbet-latest-news__button-group,
  .page-resources-55winbet-latest-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for CTA buttons on mobile */
  }
}

/* Color Contrast Adjustments for specific elements on dark body background */
.page-resources-55winbet-latest-news__dark-bg {
  color: #ffffff; /* Dark background配浅色文字 */
}

.page-resources-55winbet-latest-news__light-bg {
  color: #333333; /* Light background配深色文字 */
  background-color: #ffffff;
}

.page-resources-55winbet-latest-news__content-area {
  color: #ffffff; /* Main content area text is light on dark body background */
}

.page-resources-55winbet-latest-news p,
.page-resources-55winbet-latest-news li {
  color: #f0f0f0; /* Default paragraph and list item text color on dark body background */
}

.page-resources-55winbet-latest-news__card p,
.page-resources-55winbet-latest-news__card li,
.page-resources-55winbet-latest-news__faq-answer p {
  color: #555555; /* Text within light cards/FAQ answers */
}

.page-resources-55winbet-latest-news__faq-item.active .page-resources-55winbet-latest-news__faq-answer {
  color: #555555; /* Ensure text color in expanded FAQ answer is readable */
}