/* style/resources-platform-guide.css */
:root {
    --primary-color: #8B0000;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #111;
    --background-light: #f1f3f5;
    --card-background-dark: rgba(255, 255, 255, 0.1);
    --card-background-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-platform-guide {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

/* Fixed navigation bar padding */
.page-resources-platform-guide__hero-section {
    padding-top: 180px; /* Desktop: Adjust based on actual fixed header height */
}

/* Hero Section (no leaderboard on this page) */
.page-resources-platform-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), #6d0000); /* Darker red gradient for hero */
    color: var(--text-light);
    overflow: hidden;
}

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

.page-resources-platform-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Limit image width */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-platform-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-resources-platform-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

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

.page-resources-platform-guide__hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources-platform-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources-platform-guide__btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources-platform-guide__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-platform-guide__btn-secondary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.page-resources-platform-guide__btn-secondary:hover {
    background: #6d0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources-platform-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-platform-guide__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-resources-platform-guide__text-block {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-resources-platform-guide__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-platform-guide__link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Introduction Section */
.page-resources-platform-guide__introduction-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources-platform-guide__introduction-section .page-resources-platform-guide__section-title {
    color: var(--primary-color);
}

/* Criteria Section */
.page-resources-platform-guide__criteria-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #6d0000);
    color: var(--text-light);
}

.page-resources-platform-guide__criteria-section .page-resources-platform-guide__section-title {
    color: var(--text-light);
}

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

.page-resources-platform-guide__card {
    background: var(--card-background-light);
    border-radius: 12px;
    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;
    color: var(--text-dark);
}

.page-resources-platform-guide__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-platform-guide__dark-card {
    background: var(--card-background-dark);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-platform-guide__dark-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-resources-platform-guide__card-image {
    max-width: 250px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-resources-platform-guide__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-platform-guide__dark-card .page-resources-platform-guide__card-title {
    color: var(--secondary-color);
}

.page-resources-platform-guide__card-description {
    font-size: 16px;
    line-height: 1.7;
}

/* Tips Section */
.page-resources-platform-guide__tips-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources-platform-guide__tips-section .page-resources-platform-guide__section-title {
    color: var(--primary-color);
}

.page-resources-platform-guide__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-resources-platform-guide__content-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-platform-guide__text-content {
    flex: 2;
    min-width: 300px;
}

/* FAQ Section */
.page-resources-platform-guide__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-resources-platform-guide__faq-section .page-resources-platform-guide__section-title {
    color: var(--text-light);
}

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

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

.page-resources-platform-guide__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-platform-guide__faq-item.active .page-resources-platform-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-background-dark);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-resources-platform-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color);
  border: 1px solid #6d0000;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-resources-platform-guide__faq-question:hover {
  background: #6d0000;
  border-color: #4a0000;
}

.page-resources-platform-guide__faq-question:active {
  background: #4a0000;
}

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

.page-resources-platform-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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-resources-platform-guide__faq-item.active .page-resources-platform-guide__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

/* CTA Section */
.page-resources-platform-guide__cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--text-dark);
    text-align: center;
}

.page-resources-platform-guide__cta-section .page-resources-platform-guide__section-title {
    color: var(--primary-color);
}

.page-resources-platform-guide__cta-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-platform-guide__main-title {
        font-size: 40px;
    }
    .page-resources-platform-guide__hero-description {
        font-size: 18px;
    }
    .page-resources-platform-guide__section-title {
        font-size: 32px;
    }
    .page-resources-platform-guide__card-title {
        font-size: 22px;
    }
    .page-resources-platform-guide__content-wrapper {
        flex-direction: column;
    }
    .page-resources-platform-guide__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources-platform-guide__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust based on actual fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-platform-guide__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources-platform-guide__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources-platform-guide__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-resources-platform-guide__introduction-section,
    .page-resources-platform-guide__criteria-section,
    .page-resources-platform-guide__tips-section,
    .page-resources-platform-guide__faq-section,
    .page-resources-platform-guide__cta-section {
        padding: 40px 0;
    }
    .page-resources-platform-guide__container {
        padding: 0 15px;
    }
    .page-resources-platform-guide__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-resources-platform-guide__text-block {
        font-size: 15px;
        line-height: 1.7;
    }
    .page-resources-platform-guide__grid-layout {
        gap: 20px;
    }
    .page-resources-platform-guide__card {
        padding: 25px;
    }
    .page-resources-platform-guide__card-title {
        font-size: 20px;
    }
    .page-resources-platform-guide__card-image {
        max-width: 200px;
    }
    .page-resources-platform-guide__faq-question {
        padding: 15px;
    }
    .page-resources-platform-guide__faq-question h3 {
        font-size: 16px;
    }
    .page-resources-platform-guide__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-resources-platform-guide__faq-item.active .page-resources-platform-guide__faq-answer {
        padding: 15px !important;
    }

    /* Image specific responsive styles */
    .page-resources-platform-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-platform-guide__section,
    .page-resources-platform-guide__card,
    .page-resources-platform-guide__container,
    .page-resources-platform-guide__hero-image,
    .page-resources-platform-guide__content-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}