.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Assumed to be #FFFFFF */
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #26A9E0 0%, #3a4a9c 100%); /* Blue gradient for hero */
  color: #ffffff; /* White text for dark/blue background */
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  line-height: 1.2;
}

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

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  color: #333333;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.page-login__btn-login {
  background: #EA7C07; /* Orange for Login */
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-login:hover {
  background: #d46e00;
  transform: translateY(-2px);
}

.page-login__btn-register {
  display: inline-block;
  background: #26A9E0; /* Blue for Register */
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register:hover {
  background: #1e87b7;
  transform: translateY(-2px);
}

.page-login__form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 14px;
}

.page-login__forgot-password,
.page-login__download-app {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__download-app:hover {
  color: #1a6f9c;
  text-decoration: underline;
}

.page-login__info-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #ffffff; /* Light background for info section */
  color: #333333;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-login__section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-login__info-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image width for cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__card-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__card-link {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__card-link:hover {
  background: #1e87b7;
}

.page-login__cta-download {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(90deg, #26A9E0 0%, #0a4f6d 100%); /* Darker blue gradient */
  color: #ffffff;
}

.page-login__cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
}

.page-login__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__cta-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.page-login__cta-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.page-login__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__btn-download {
  display: inline-block;
  background: #EA7C07; /* Orange for Download CTA */
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-download:hover {
  background: #d46e00;
  transform: translateY(-3px);
}

.page-login__faq-section {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background for FAQ */
  color: #333333;
  text-align: center;
}

/* FAQ容器样式 */
.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ default state - answer hidden */
.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #555555;
}

/* FAQ active state - 🚨 Use !important and sufficiently large max-height to ensure it expands */
.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important for priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

/* Question style */
.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: #333333;
}

/* Toggle icon */
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #26A9E0;
  transform: rotate(45deg); /* Rotate for 'x' effect, or simply change to '-' */
}

.page-login__latest-news {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a4f6d 0%, #26A9E0 100%); /* Darker blue background */
  color: #ffffff;
  text-align: center;
}

.page-login__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__news-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-login__news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-login__news-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-login__news-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__news-title a:hover {
  color: #EA7C07; /* Orange hover for news titles */
}

.page-login__news-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-login__news-date {
  font-size: 14px;
  color: #cccccc;
  margin-top: auto;
}

.page-login__view-all {
  margin-top: 50px;
}

.page-login__btn-view-all {
  display: inline-block;
  background: #EA7C07;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-view-all:hover {
  background: #d46e00;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-image {
    height: 500px;
  }
  .page-login__main-title {
    font-size: 38px;
  }
  .page-login__cta-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 4px;
  }

  .page-login__main-title {
    font-size: 32px;
  }

  .page-login__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 100%;
  }

  .page-login__form-input {
    padding: 10px;
    font-size: 15px;
  }

  .page-login__btn-login,
  .page-login__btn-register,
  .page-login a[class*="button"],
  .page-login 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;
    font-size: 16px;
  }

  .page-login__form-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .page-login__info-section,
  .page-login__cta-download,
  .page-login__faq-section,
  .page-login__latest-news {
    padding: 40px 15px;
  }

  .page-login__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-login__section-title {
    font-size: 28px;
  }

  .page-login__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__info-grid {
    grid-template-columns: 1fr;
  }

  .page-login__info-card {
    padding: 20px;
  }

  .page-login__card-title {
    font-size: 20px;
  }

  .page-login__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__cta-flex {
    flex-direction: column;
  }

  .page-login__cta-content {
    text-align: center;
  }

  .page-login__cta-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__cta-title {
    font-size: 30px;
  }

  .page-login__cta-description {
    font-size: 16px;
  }

  /* FAQ specific mobile styles */
  .page-login__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-login__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-login__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .page-login__faq-answer {
    padding: 0 15px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }

  .page-login__news-grid {
    grid-template-columns: 1fr;
  }

  .page-login__news-image {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-login__news-content {
    padding: 20px;
  }

  .page-login__news-title {
    font-size: 18px;
  }

  .page-login__news-excerpt {
    font-size: 15px;
  }
}

/* Image responsiveness for all images in content area */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all image containers prevent overflow */
.page-login__section,
.page-login__card,
.page-login__container,
.page-login__news-card,
.page-login__info-card,
.page-login__cta-download {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__news-card,
  .page-login__info-card,
  .page-login__cta-download {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}