/* style/resources-review-standards.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --dark-bg-1: #0d0d0d; /* Assuming from shared.css for context */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --light-bg-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-review-standards {
    color: var(--light-text-color); /* Main text color for the page body */
    background-color: var(--dark-bg-1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-resources-review-standards__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-review-standards__section {
    padding: 60px 0;
    background-color: var(--dark-bg-1);
    color: var(--light-text-color);
}

.page-resources-review-standards__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--light-text-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* HERO BANNER - for non-homepage, acts as a primary content banner */
.page-resources-review-standards__hero-banner {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: var(--light-text-color);
}

.page-resources-review-standards__banner-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-resources-review-standards__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text-color);
}

.page-resources-review-standards__intro-text {
    font-size: 20px;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--light-text-color);
}

/* Overview Section */
.page-resources-review-standards__overview-section {
    background-color: var(--card-bg-color);
    color: var(--dark-text-color);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-resources-review-standards__overview-section .page-resources-review-standards__section-title {
    color: var(--primary-color);
}

.page-resources-review-standards__overview-section p {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Criteria Section */
.page-resources-review-standards__criteria-section {
    background-color: var(--light-bg-color);
    color: var(--dark-text-color);
    padding: 60px 0;
}

.page-resources-review-standards__criteria-section .page-resources-review-standards__section-title {
    color: var(--primary-color);
}

.page-resources-review-standards__criterion-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-resources-review-standards__criterion-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-resources-review-standards__criterion-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
}

.page-resources-review-standards__criterion-content p {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--dark-text-color);
}

.page-resources-review-standards__criterion-content ul {
    list-style: disc inside;
    text-align: left;
    margin-left: 20px;
    margin-top: 20px;
    color: var(--dark-text-color);
}

.page-resources-review-standards__criterion-content li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

/* Benefits Section */
.page-resources-review-standards__benefits-section {
    background-color: var(--dark-bg-1);
    color: var(--light-text-color);
    padding: 80px 0;
    text-align: center;
}

.page-resources-review-standards__benefits-section .page-resources-review-standards__section-title {
    color: var(--light-text-color);
}

.page-resources-review-standards__benefit-image {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-resources-review-standards__benefits-section p {
    font-size: 19px;
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-review-standards__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources-review-standards__cta-button:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-resources-review-standards__faq-section {
    background-color: var(--card-bg-color);
    color: var(--dark-text-color);
    padding: 60px 0;
}

.page-resources-review-standards__faq-section .page-resources-review-standards__section-title {
    color: var(--primary-color);
}

.page-resources-review-standards__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-review-standards__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-review-standards__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;
}

.page-resources-review-standards__faq-item.active .page-resources-review-standards__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources-review-standards__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-resources-review-standards__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-review-standards__faq-question:active {
  background: #eeeeee;
}

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

.page-resources-review-standards__faq-toggle {
  font-size: 24px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-review-standards__faq-item.active .page-resources-review-standards__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-resources-review-standards__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text-color);
}

/* Conclusion Section */
.page-resources-review-standards__conclusion-section {
    background-color: var(--dark-bg-1);
    color: var(--light-text-color);
    padding: 60px 0;
    text-align: center;
}

.page-resources-review-standards__conclusion-section .page-resources-review-standards__section-title {
    color: var(--light-text-color);
}

.page-resources-review-standards__conclusion-section p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-review-standards__main-title {
        font-size: 40px;
    }
    .page-resources-review-standards__section-title {
        font-size: 32px;
    }
    .page-resources-review-standards__criterion-title {
        font-size: 24px;
    }
    .page-resources-review-standards__criterion-content p {
        font-size: 16px;
    }
    .page-resources-review-standards__benefits-section p {
        font-size: 17px;
    }
}

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

    .page-resources-review-standards__container {
        padding: 0 15px;
    }

    .page-resources-review-standards__hero-banner {
        padding: 60px 0 30px;
    }

    .page-resources-review-standards__banner-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    .page-resources-review-standards__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources-review-standards__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-resources-review-standards__section {
        padding: 40px 0;
    }

    .page-resources-review-standards__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-resources-review-standards__overview-section p {
        font-size: 16px;
    }

    .page-resources-review-standards__criterion-item {
        padding: 20px;
        margin-bottom: 30px;
    }

    .page-resources-review-standards__criterion-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .page-resources-review-standards__criterion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .page-resources-review-standards__criterion-content p,
    .page-resources-review-standards__criterion-content li {
        font-size: 15px;
    }

    .page-resources-review-standards__benefits-section p {
        font-size: 16px;
    }

    .page-resources-review-standards__benefit-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    .page-resources-review-standards__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .page-resources-review-standards__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-review-standards__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-review-standards__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-review-standards__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-review-standards__faq-item.active .page-resources-review-standards__faq-answer {
        padding: 15px !important;
    }
    .page-resources-review-standards__faq-list {
        padding: 0;
    }
}

/* Global image responsive styles */
.page-resources-review-standards img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile forced image styles */
@media (max-width: 768px) {
    .page-resources-review-standards img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-review-standards__section,
    .page-resources-review-standards__criterion-item,
    .page-resources-review-standards__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources-review-standards__hero-banner {
        padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    }
}