/* style/house-reviews.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0d0d0d;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

/* Ensure content padding for fixed header */
.page-house-reviews {
  padding-top: 120px; /* Default for desktop, adjusted in media queries */
  color: var(--text-dark); /* Default text color for light sections */
  background-color: var(--bg-light);
}

/* HERO Section Styles */
.page-house-reviews__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: Adjusted for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker gradient for better contrast */
  color: var(--text-light);
}

.page-house-reviews__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-house-reviews__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-house-reviews__hero-subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  color: var(--text-light);
  line-height: 1.5;
}

.page-house-reviews__hero-subtitle a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-house-reviews__hero-subtitle a:hover {
  color: #fff;
}

/* General Content Area */
.page-house-reviews__content-area {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-house-reviews__text-block {
  margin-bottom: 40px;
  line-height: 1.7;
  font-size: 17px;
}

.page-house-reviews__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-house-reviews__text-block a:hover {
  text-decoration: underline;
}

/* Card Styles */
.page-house-reviews__card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-bottom: 40px;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-house-reviews__card-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-house-reviews__card-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

.page-house-reviews__card-title--white {
  color: var(--text-light);
}

.page-house-reviews__card-description--white {
  color: var(--text-light);
}

/* Dark background card for contrast */
.page-house-reviews__dark-bg {
  background: linear-gradient(135deg, #0056b3, #003f7f); /* Darker blue gradient */
  color: var(--text-light);
}

.page-house-reviews__dark-bg .page-house-reviews__card-title {
  color: var(--text-light);
}

.page-house-reviews__dark-bg .page-house-reviews__card-description {
  color: var(--text-light);
}

.page-house-reviews__dark-bg .page-house-reviews__platform-link {
  color: var(--secondary-color);
}

.page-house-reviews__dark-bg .page-house-reviews__platform-link:hover {
  color: #fff;
}

/* Review Grid */
.page-house-reviews__review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-house-reviews__review-item {
  background: #fdfdfd;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-house-reviews__review-item h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-house-reviews__review-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-house-reviews__review-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-house-reviews__review-item a:hover {
  text-decoration: underline;
}

.page-house-reviews__review-icon {
  width: 120px; /* Increased size for content image, not icon */
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Highlight Platforms */
.page-house-reviews__highlight-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-house-reviews__platform-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-house-reviews__platform-item h3 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-house-reviews__platform-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-house-reviews__platform-logo {
  width: 150px; /* Increased size for content image, not icon */
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.page-house-reviews__platform-link {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-house-reviews__platform-link:hover {
  text-decoration: underline;
}

/* Promotion List & Strategy List */
.page-house-reviews__promotion-list,
.page-house-reviews__strategy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-house-reviews__promotion-item,
.page-house-reviews__strategy-item {
  background: #fdfdfd;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-house-reviews__promotion-item h3,
.page-house-reviews__strategy-item h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-house-reviews__promotion-item p,
.page-house-reviews__strategy-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-house-reviews__promotion-image,
.page-house-reviews__strategy-image {
  width: 180px; /* Increased size for content image, not icon */
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* News List */
.page-house-reviews__news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-house-reviews__news-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-house-reviews__news-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-house-reviews__news-item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
}

.page-house-reviews__news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.page-house-reviews__news-link {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-house-reviews__news-link:hover {
  text-decoration: underline;
}

.page-house-reviews__news-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  display: block;
}

/* CTA Button Styles */
.page-house-reviews__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
  border: none;
  cursor: pointer;
}

.page-house-reviews__cta-button:hover {
  background: #ffdb58;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
}

.page-house-reviews__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.page-house-reviews__cta-button--secondary:hover {
  background: #0056b3;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

.page-house-reviews__cta-button--tertiary {
  background: #f0f0f0;
  color: var(--primary-color);
  box-shadow: none;
  border: 1px solid var(--primary-color);
  padding: 12px 25px;
  font-size: 16px;
}

.page-house-reviews__cta-button--tertiary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

.page-house-reviews__cta-button--small {
  padding: 12px 25px;
  font-size: 16px;
  margin-top: 20px;
}

/* FAQ Section */
.page-house-reviews__faq-section {
  margin-top: 40px;
}

.page-house-reviews__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-house-reviews__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-house-reviews__faq-question:hover {
  background: #f5f5f5;
}

.page-house-reviews__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-house-reviews__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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-house-reviews__faq-item.active .page-house-reviews__faq-toggle {
  color: #d9534f; /* Red for close */
  transform: rotate(45deg); /* Rotate plus to form x */
}

.page-house-reviews__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 20px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
}

.page-house-reviews__faq-item.active .page-house-reviews__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
}

.page-house-reviews__faq-answer p {
  margin: 0;
}

.page-house-reviews__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-house-reviews__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-house-reviews__hero-title {
    font-size: 40px;
  }
  .page-house-reviews__hero-subtitle {
    font-size: 18px;
  }
  .page-house-reviews__card-title {
    font-size: 28px;
  }
  .page-house-reviews__review-item h3,
  .page-house-reviews__promotion-item h3,
  .page-house-reviews__strategy-item h3,
  .page-house-reviews__news-item h3 {
    font-size: 20px;
  }
  .page-house-reviews__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-house-reviews {
    padding-top: 100px !important; /* Mobile: Adjusted for fixed header */
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

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

  .page-house-reviews__section,
  .page-house-reviews__card,
  .page-house-reviews__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-house-reviews__hero-section {
    padding-top: 140px !important; /* Mobile: Adjusted for fixed header */
    padding: 40px 15px;
  }

  .page-house-reviews__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-house-reviews__hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-house-reviews__content-area {
    padding: 20px 15px;
  }

  .page-house-reviews__card {
    padding: 25px;
    margin-bottom: 30px;
  }

  .page-house-reviews__card-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-house-reviews__card-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-house-reviews__review-grid,
  .page-house-reviews__highlight-platforms,
  .page-house-reviews__promotion-list,
  .page-house-reviews__strategy-list,
  .page-house-reviews__news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-house-reviews__review-item h3,
  .page-house-reviews__platform-item h3,
  .page-house-reviews__promotion-item h3,
  .page-house-reviews__strategy-item h3,
  .page-house-reviews__news-item h3 {
    font-size: 18px;
  }

  .page-house-reviews__review-item p,
  .page-house-reviews__platform-item p,
  .page-house-reviews__promotion-item p,
  .page-house-reviews__strategy-item p,
  .page-house-reviews__news-item p {
    font-size: 14px;
  }

  .page-house-reviews__review-icon,
  .page-house-reviews__platform-logo,
  .page-house-reviews__promotion-image,
  .page-house-reviews__strategy-image {
    width: 100px; /* Adjust size for mobile if needed, still min 200px equivalent for generation */
  }

  .page-house-reviews__news-image {
    height: 150px;
  }

  .page-house-reviews__cta-button {
    padding: 10px 20px;
    font-size: 15px;
    margin-top: 20px;
  }

  .page-house-reviews__faq-question {
    padding: 15px;
  }

  .page-house-reviews__faq-question h3 {
    font-size: 16px;
  }

  .page-house-reviews__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

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

@media (max-width: 480px) {
  .page-house-reviews__hero-title {
    font-size: 28px;
  }
  .page-house-reviews__hero-subtitle {
    font-size: 15px;
  }
  .page-house-reviews__card-title {
    font-size: 22px;
  }
  .page-house-reviews__review-item h3,
  .page-house-reviews__platform-item h3,
  .page-house-reviews__promotion-item h3,
  .page-house-reviews__strategy-item h3,
  .page-house-reviews__news-item h3 {
    font-size: 16px;
  }
  .page-house-reviews__cta-button {
    font-size: 14px;
    padding: 8px 15px;
  }
}