/*
 * Education Page Styles
 * Text-heavy resource listings with embedded CTAs
 */

/* ===================================
   PAGE HERO
   ================================= */

.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-teal-900);
}

.page-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-0);
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(30, 30, 30, 0.35) 0%,
    rgba(20, 20, 20, 0.50) 50%,
    rgba(30, 30, 30, 0.35) 100%
  );
  z-index: var(--z-10);
}

.page-hero-content {
  position: relative;
  z-index: var(--z-20);
  text-align: center;
  max-width: 800px;
  padding: var(--space-8);
  margin: 0 auto;
}

.page-hero-content h1 {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
  font-size: var(--text-xl);
  color: var(--color-teal-50);
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .page-hero {
    height: 40vh;
    min-height: 300px;
  }

  .page-hero-content h1 {
    font-size: var(--text-4xl);
  }

  .page-hero-content p {
    font-size: var(--text-lg);
  }
}

/* ===================================
   INTRODUCTION
   ================================= */

.education-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.education-intro h2 {
  font-size: var(--text-4xl);
  color: var(--color-teal-700);
  margin-bottom: var(--space-6);
}

.intro-text {
  font-size: var(--text-lg);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* ===================================
   RESOURCE CATEGORIES
   ================================= */

.resource-category {
  max-width: 1000px;
  margin: 0 auto;
}

.category-title {
  font-size: var(--text-4xl);
  color: var(--color-teal-700);
  text-align: center;
  margin-bottom: var(--space-4);
}

.category-intro {
  background: linear-gradient(135deg, var(--color-teal-50) 0%, rgba(255,255,255,0.5) 100%);
  border-left: 4px solid var(--color-teal-500);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-xl);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}

/* ===================================
   RESOURCE ITEMS
   ================================= */

.resource-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.resource-item {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-teal-500);
  transition: all var(--transition-base);
}

.resource-item:hover {
  box-shadow: var(--shadow-teal-lg);
  transform: translateX(4px);
}

.resource-item h3 {
  font-size: var(--text-2xl);
  color: var(--color-teal-700);
  margin-bottom: var(--space-4);
}

.resource-item p {
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.resource-item p:last-child {
  margin-bottom: 0;
}

.resource-item strong {
  color: var(--color-teal-600);
  font-weight: var(--font-semibold);
}

@media (max-width: 767px) {
  .resource-item {
    padding: var(--space-6);
  }

  .resource-item h3 {
    font-size: var(--text-xl);
  }
}

/* ===================================
   EMBEDDED CTA CARDS
   ================================= */

.embedded-cta {
  margin-top: var(--space-12);
  margin-bottom: var(--space-8);
}

.cta-card {
  background: linear-gradient(
    135deg,
    var(--color-teal-600) 0%,
    var(--color-teal-700) 100%
  );
  color: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-teal-lg);
  max-width: 700px;
  margin: 0 auto;
}

.cta-card h4 {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-card p {
  font-size: var(--text-lg);
  color: var(--color-teal-50);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.cta-card .btn {
  background: var(--color-gold-500);
  color: var(--color-white);
  border: none;
  box-shadow: var(--shadow-gold);
}

.cta-card .btn:hover {
  background: var(--color-gold-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

@media (max-width: 767px) {
  .cta-card {
    padding: var(--space-6);
  }

  .cta-card h4 {
    font-size: var(--text-xl);
  }

  .cta-card p {
    font-size: var(--text-base);
  }
}

/* ===================================
   CTA SECTION CENTERING
   ================================= */

.cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-section .cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.cta-section .cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ===================================
   EDUCATION TOPICS GRID (Hub Page)
   ================================= */

.education-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.education-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.education-topic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-teal-lg);
  border-color: var(--color-teal-400);
}

.topic-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
  color: var(--color-teal-600);
  transition: all var(--transition-base);
}

.education-topic-card:hover .topic-icon {
  color: var(--color-teal-700);
  transform: scale(1.1);
}

.topic-icon svg {
  width: 100%;
  height: 100%;
}

.education-topic-card h3 {
  font-size: var(--text-xl);
  color: var(--color-teal-700);
  margin-bottom: var(--space-3);
}

.education-topic-card p {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gold-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}

.education-topic-card:hover .topic-link {
  color: var(--color-gold-700);
}

.topic-link::after {
  content: '\2192';
  transition: transform var(--transition-base);
}

.education-topic-card:hover .topic-link::after {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .education-topics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .education-topic-card {
    padding: var(--space-6);
  }

  .topic-icon {
    width: 48px;
    height: 48px;
  }
}

/* ===================================
   BREADCRUMB NAVIGATION
   ================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--color-teal-600);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--color-teal-700);
  text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
  color: var(--color-gray-700);
  font-weight: var(--font-medium);
}

/* ===================================
   GOLD THEMED RESOURCE CARDS
   ================================= */

.resource-card-gold {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-gold-50) 0%, var(--color-white) 100%);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 2px solid var(--color-gold-200);
}

.resource-card-gold:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold-lg);
  border-color: var(--color-gold-400);
}

.resource-card-gold .topic-icon {
  color: var(--color-gold-600);
}

.resource-card-gold:hover .topic-icon {
  color: var(--color-gold-700);
}

.resource-card-gold h3 {
  font-size: var(--text-xl);
  color: var(--color-gold-700);
  margin-bottom: var(--space-3);
}

.resource-card-gold p {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.resource-card-gold .topic-link {
  color: var(--color-gold-600);
}

.resource-card-gold:hover .topic-link {
  color: var(--color-gold-700);
}

/* ===================================
   SECTION HEADER (EDUCATION PAGE)
   ================================= */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.section-header .section-label {
  display: block;
  margin-bottom: var(--space-3);
}

.section-header h2 {
  color: var(--color-teal-700);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* ===================================
   FAQ STYLES
   ================================= */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-teal-700);
  margin-bottom: var(--space-4);
}

.faq-answer {
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
}

.faq-answer p {
  margin-bottom: var(--space-4);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .faq-item {
    padding: var(--space-6) 0;
  }

  .faq-question {
    font-size: var(--text-lg);
  }
}
