/* style/resources-tay-co-hafele-features.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* From shared.css body background */
  --btn-login-color: #EA7C07;
}

.page-resources-tay-co-hafele-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if shared.css is overridden */
}

.page-resources-tay-co-hafele-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-tay-co-hafele-features__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light); /* Default for dark sections */
}

.page-resources-tay-co-hafele-features__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light); /* Default for dark sections */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Background color specific styles */
.page-resources-tay-co-hafele-features__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources-tay-co-hafele-features__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__section-title,
.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__section-description,
.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__feature-title,
.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__feature-text,
.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__step-title,
.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__step-text,
.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__faq-question span:first-child,
.page-resources-tay-co-hafele-features__light-bg .page-resources-tay-co-hafele-features__faq-answer p {
  color: var(--text-dark);
}

/* Hero Section */
.page-resources-tay-co-hafele-features__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
}

.page-resources-tay-co-hafele-features__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-resources-tay-co-hafele-features__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-resources-tay-co-hafele-features__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-tay-co-hafele-features__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources-tay-co-hafele-features__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-resources-tay-co-hafele-features__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-resources-tay-co-hafele-features__btn-primary,
.page-resources-tay-co-hafele-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-resources-tay-co-hafele-features__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-tay-co-hafele-features__btn-primary:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
}

.page-resources-tay-co-hafele-features__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-tay-co-hafele-features__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources-tay-co-hafele-features__cta-button {
  background-color: var(--btn-login-color);
  border-color: var(--btn-login-color);
}

.page-resources-tay-co-hafele-features__cta-button:hover {
  background-color: #c76706;
  border-color: #c76706;
}

/* Features Overview Section */
.page-resources-tay-co-hafele-features__features-overview {
  padding: 80px 0;
}

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

.page-resources-tay-co-hafele-features__feature-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__feature-card:hover {
  transform: translateY(-10px);
}

.page-resources-tay-co-hafele-features__feature-icon {
  width: 100%; /* Ensure large image */
  max-width: 400px; /* Example size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-tay-co-hafele-features__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__feature-text {
  color: var(--text-dark);
}

/* Why Choose Us Section */
.page-resources-tay-co-hafele-features__why-choose-us {
  padding: 80px 0;
}

.page-resources-tay-co-hafele-features__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-resources-tay-co-hafele-features__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-tay-co-hafele-features__benefit-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-resources-tay-co-hafele-features__benefit-text {
  color: var(--text-light);
}

/* How It Works Section */
.page-resources-tay-co-hafele-features__how-it-works {
  padding: 80px 0;
}

.page-resources-tay-co-hafele-features__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources-tay-co-hafele-features__step-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-resources-tay-co-hafele-features__step-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__step-text {
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__cta-bottom {
  text-align: center;
}

/* Video Section */
.page-resources-tay-co-hafele-features__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-tay-co-hafele-features__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Example max-width */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-tay-co-hafele-features__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-resources-tay-co-hafele-features__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Make sure overlay is above video for click */
  cursor: pointer;
}

/* FAQ Section */
.page-resources-tay-co-hafele-features__faq-section {
  padding: 80px 0;
}

.page-resources-tay-co-hafele-features__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-tay-co-hafele-features__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}

.page-resources-tay-co-hafele-features__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-tay-co-hafele-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-tay-co-hafele-features__faq-item.active .page-resources-tay-co-hafele-features__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-tay-co-hafele-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-tay-co-hafele-features__faq-item.active .page-resources-tay-co-hafele-features__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

.page-resources-tay-co-hafele-features__faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

/* CTA Section */
.page-resources-tay-co-hafele-features__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-tay-co-hafele-features__cta-section .page-resources-tay-co-hafele-features__section-description {
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-tay-co-hafele-features__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-resources-tay-co-hafele-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-tay-co-hafele-features__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-tay-co-hafele-features__hero-title {
    font-size: 2.2em;
  }

  .page-resources-tay-co-hafele-features__hero-description {
    font-size: 1em;
  }

  .page-resources-tay-co-hafele-features__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-tay-co-hafele-features__btn-primary,
  .page-resources-tay-co-hafele-features__btn-secondary,
  .page-resources-tay-co-hafele-features a[class*="button"],
  .page-resources-tay-co-hafele-features a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-tay-co-hafele-features__section-title {
    font-size: 2em;
  }

  .page-resources-tay-co-hafele-features__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources-tay-co-hafele-features__features-grid,
  .page-resources-tay-co-hafele-features__benefits-grid,
  .page-resources-tay-co-hafele-features__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-tay-co-hafele-features__feature-card,
  .page-resources-tay-co-hafele-features__benefit-item,
  .page-resources-tay-co-hafele-features__step-card {
    padding: 20px;
  }

  /* Image responsiveness for mobile */
  .page-resources-tay-co-hafele-features img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content for mobile */
  .page-resources-tay-co-hafele-features__hero-section,
  .page-resources-tay-co-hafele-features__features-overview,
  .page-resources-tay-co-hafele-features__why-choose-us,
  .page-resources-tay-co-hafele-features__how-it-works,
  .page-resources-tay-co-hafele-features__video-section,
  .page-resources-tay-co-hafele-features__faq-section,
  .page-resources-tay-co-hafele-features__cta-section,
  .page-resources-tay-co-hafele-features__container,
  .page-resources-tay-co-hafele-features__feature-card,
  .page-resources-tay-co-hafele-features__benefit-item,
  .page-resources-tay-co-hafele-features__step-card,
  .page-resources-tay-co-hafele-features__video-wrapper,
  .page-resources-tay-co-hafele-features__hero-buttons,
  .page-resources-tay-co-hafele-features__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video responsiveness for mobile */
  .page-resources-tay-co-hafele-features video,
  .page-resources-tay-co-hafele-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-tay-co-hafele-features__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }

  /* FAQ specific mobile adjustments */
  .page-resources-tay-co-hafele-features__faq-question,
  .page-resources-tay-co-hafele-features__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-tay-co-hafele-features__hero-title {
    font-size: 1.8em;
  }

  .page-resources-tay-co-hafele-features__section-title {
    font-size: 1.8em;
  }
}