/* ----------------------------------------------------------------------------
 * CUSTOM DESIGN SYSTEM - INSTRUCTIONAL.PATGLATZ.COM
 * Theme: Research Studio + Design Workshop
 * ---------------------------------------------------------------------------- */

:root {
  /* Color Palette */
  --bg-warm-white: #F7F5F2;       /* Warm Off-White */
  --surface-dark-slate: #232A36;  /* Primary Surface */
  --text-charcoal: #2B3440;       /* Primary Text */
  
  /* Accent Colors */
  --accent-teal: #38D5D0;         /* Primary Accent: Structure & Access */
  --accent-teal-dark: #29A8A4;
  --accent-teal-muted: rgba(56, 213, 208, 0.15);
  
  --accent-purple: #8E6BE8;       /* Secondary Accent: Learning & Reflection */
  --accent-purple-dark: #6C4DBE;
  --accent-purple-muted: rgba(142, 107, 232, 0.15);
  
  --accent-amber: #E6B86A;        /* Tertiary Accent: Judgment & Risk */
  --accent-amber-dark: #C5964B;
  --accent-amber-muted: rgba(230, 184, 106, 0.15);

  /* Layout Boundaries */
  --border-color: rgba(43, 52, 64, 0.12);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 255, 255, 0.15);
  
  --max-width: 1280px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ----------------------------------------------------------------------------
 * BASE SETUP & RESET
 * ---------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-warm-white);
  color: var(--text-charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ----------------------------------------------------------------------------
 * TYPOGRAPHY
 * ---------------------------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--surface-dark-slate);
}

p {
  color: rgba(43, 52, 64, 0.8);
  margin-bottom: 1rem;
}

/* Section Headings */
.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(43, 52, 64, 0.6);
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* ----------------------------------------------------------------------------
 * NAVIGATION HEADER
 * ---------------------------------------------------------------------------- */

#site-header {
  position: sticky;
  top: 0;
  background-color: rgba(247, 245, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.logo-link {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--surface-dark-slate);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 52, 64, 0.5);
  font-weight: 500;
  margin-top: 0.25rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-anchor {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(43, 52, 64, 0.7);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-anchor:hover {
  color: var(--surface-dark-slate);
}

.nav-anchor.active {
  color: var(--surface-dark-slate);
  border-bottom-color: var(--surface-dark-slate);
}

.nav-external {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--surface-dark-slate);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-external:hover {
  background-color: var(--surface-dark-slate);
  color: var(--bg-warm-white);
  border-color: var(--surface-dark-slate);
}

.nav-external .arrow {
  color: var(--accent-teal);
  transition: transform 0.2s ease;
}

.nav-external:hover .arrow {
  transform: translateX(3px);
}

/* ----------------------------------------------------------------------------
 * HERO SECTION
 * ---------------------------------------------------------------------------- */

.hero-section {
  padding: 8rem 2rem 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-container {
  max-width: 900px;
}

.hero-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent-teal-dark);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  line-height: 1.15;
}

.highlight-accent {
  background: linear-gradient(120deg, var(--surface-dark-slate) 0%, rgba(43,52,64,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  font-size: 1.25rem;
  color: rgba(43, 52, 64, 0.75);
  line-height: 1.7;
  max-width: 800px;
}

/* ----------------------------------------------------------------------------
 * CAROUSEL SECTION
 * ---------------------------------------------------------------------------- */

.narrative-section {
  padding: 6rem 2rem;
  background-color: #ECEAE6; /* slightly darker warm background for carousel grouping */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.narrative-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.carousel-wrapper {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  min-height: 650px;
}

/* Progress Sidebar Navigation */
.carousel-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid rgba(43, 52, 64, 0.1);
  padding-right: 2rem;
}

.progress-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.progress-item .num {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(43, 52, 64, 0.35);
  transition: var(--transition-smooth);
}

.progress-item .label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(43, 52, 64, 0.5);
  transition: var(--transition-smooth);
}

.progress-item:hover {
  background-color: rgba(43, 52, 64, 0.04);
}

.progress-item:hover .label {
  color: var(--surface-dark-slate);
}

/* Progress active states */
.progress-item.active {
  background-color: var(--surface-dark-slate);
}

.progress-item.active .num {
  color: var(--accent-teal);
}

.progress-item.active .label {
  color: var(--bg-warm-white);
  font-weight: 600;
}

/* Carousel Stage */
.carousel-stage {
  flex-grow: 1;
  position: relative;
}

/* Individual Slides */
.carousel-slide {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Slide Colors and Surfaces */
.carousel-slide {
  background-color: var(--surface-dark-slate);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
}

.slide-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 3.5rem;
  align-items: stretch;
}

/* Slide Content Column */
.slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-header {
  margin-bottom: 2rem;
}

.project-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px;
  object-fit: cover;
  border: 1px solid var(--border-accent);
}

.concept-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Color Accent Variations on labels */
.slide-purple .concept-label { color: var(--accent-purple); }
.slide-amber .concept-label { color: var(--accent-amber); }
.slide-teal .concept-label { color: var(--accent-teal); }

.slide-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--bg-warm-white);
  letter-spacing: -0.02em;
}

/* Slide Body blocks mapping */
.slide-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.variable-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.block-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.variable-block p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Action buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-purple {
  background-color: var(--accent-purple);
  color: white;
}

.btn-purple:hover {
  background-color: var(--accent-purple-dark);
}

.btn-amber {
  background-color: var(--accent-amber);
  color: var(--surface-dark-slate);
}

.btn-amber:hover {
  background-color: var(--accent-amber-dark);
}

.btn-teal {
  background-color: var(--accent-teal);
  color: var(--surface-dark-slate);
}

.btn-teal:hover {
  background-color: var(--accent-teal-dark);
}

/* Slide Visuals Column */
.slide-visuals {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.visual-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.visual-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.25rem;
}

.main-image-wrapper {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.main-visual-img {
  max-width: 100%;
  max-height: 320px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Sandbox Iframe Mock Browser Shell */
.browser-shell {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #171E29;
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.browser-url {
  font-size: 0.7rem;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.35);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.75rem;
  border-radius: 12px;
  text-align: center;
  margin: 0 auto;
  max-width: 200px;
  width: 100%;
}

.browser-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.browser-action-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.browser-action-btn:hover {
  color: var(--bg-warm-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.demo-iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
  background-color: #F7FAFC; /* fallback light background inside the iframe game/evaluator */
}


/* Thumbnail and Supporting Details Gallery */
.thumbnails-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mockup-thumb-link {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: var(--transition-smooth);
}

.mockup-thumb-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.4);
}

.thumb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Details Row split for Dungeon and Authorship */
.details-row {
  display: flex;
  gap: 1.5rem;
}

.detail-visual-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-img-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  transition: var(--transition-smooth);
}

.mockup-img-link:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.detail-visual-img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  display: block;
}

/* Carousel Control Bar */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  max-width: calc(100% - 290px); /* Align with the stage */
  margin-left: auto;
}

.ctrl-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--surface-dark-slate);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ctrl-btn:hover {
  background-color: var(--surface-dark-slate);
  color: var(--bg-warm-white);
  border-color: var(--surface-dark-slate);
}

.progress-bar-container {
  flex-grow: 1;
  margin: 0 2rem;
  height: 4px;
  background-color: rgba(43, 52, 64, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--surface-dark-slate);
  width: 20%;
  transition: width 0.4s ease;
}

/* ----------------------------------------------------------------------------
 * RESEARCH AND WRITING SECTION
 * ---------------------------------------------------------------------------- */

.studies-section {
  padding: 7rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.studies-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-framing {
  max-width: 850px;
  margin: -1rem auto 3.5rem auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(43, 52, 64, 0.9);
  border-left: 3px solid var(--accent-purple);
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.study-card {
  background-color: var(--bg-warm-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.study-card:hover {
  border-color: var(--surface-dark-slate);
  box-shadow: 0 10px 20px rgba(43, 52, 64, 0.05);
  transform: translateY(-2px);
}

.study-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.study-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: #ECEAE6;
  border: 1px solid rgba(43, 52, 64, 0.08);
}

.study-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--surface-dark-slate);
  line-height: 1.2;
}

.study-summary {
  font-size: 0.9rem;
  color: rgba(43, 52, 64, 0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.study-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--surface-dark-slate);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.study-link .arrow {
  color: var(--accent-amber-dark);
  transition: transform 0.2s ease;
}

.study-card:hover .study-link .arrow {
  transform: translateX(4px);
}

/* ----------------------------------------------------------------------------
 * ABOUT / PHILOSOPHY SECTION
 * ---------------------------------------------------------------------------- */

.about-section {
  padding: 7rem 2rem;
  background-color: #ECEAE6;
  border-top: 1px solid var(--border-color);
}

.about-container {
  max-width: 960px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}

.about-tag {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-purple-dark);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.accent-line {
  width: 60px;
  height: 2px;
  background-color: var(--surface-dark-slate);
}

.about-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(43, 52, 64, 0.85);
  margin-bottom: 1.5rem;
}

/* Redirect block connecting to Governance */
.about-redirect-box {
  margin-top: 3.5rem;
  background-color: var(--surface-dark-slate);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.redirect-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.redirect-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.redirect-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-warm-white);
  border-bottom: 1px solid var(--accent-teal);
  padding-bottom: 0.25rem;
}

.redirect-link:hover {
  color: var(--accent-teal);
  border-bottom-color: transparent;
}

.about-headshot {
  width: 100%;
  max-width: 260px;
  margin-top: 2rem;
  border-radius: 20px;
  filter: grayscale(100%);
  display: block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(43, 52, 64, 0.1);
}

/* ----------------------------------------------------------------------------
 * FOOTER
 * ---------------------------------------------------------------------------- */

#site-footer {
  background-color: var(--surface-dark-slate);
  color: rgba(255, 255, 255, 0.55);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-motto {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal) !important;
  font-weight: 600;
  margin-top: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: var(--accent-teal);
}

/* ----------------------------------------------------------------------------
 * RESPONSIVE ADAPTATIONS
 * ---------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .carousel-wrapper {
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
  }
  
  .carousel-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(43, 52, 64, 0.1);
    padding-right: 0;
    padding-bottom: 1rem;
  }
  
  .progress-menu {
    flex-direction: row;
    position: static;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .progress-item {
    flex-shrink: 0;
  }

  .carousel-controls {
    max-width: 100%;
  }

  .slide-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .main-nav ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    padding: 5rem 1rem 3rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .narrative-section, .studies-section, .about-section {
    padding: 4rem 1rem;
  }

  .carousel-slide {
    padding: 1.75rem;
  }

  .slide-title {
    font-size: 1.8rem;
  }

  .section-framing {
    margin: -1rem 0 2.5rem 0;
    padding-left: 1rem;
  }

  .studies-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

/* ----------------------------------------------------------------------------
 * DOWNLOADABLE RESOURCES SECTION (AI ADOPTION IN ED)
 * ---------------------------------------------------------------------------- */

.download-resources-container {
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 4rem;
}

.download-resources-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bg-warm-white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.download-resources-intro {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 800px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.download-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.download-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.download-card-content {
  margin-bottom: 1.75rem;
}

.download-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.download-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bg-warm-white);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.file-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-teal);
  background-color: rgba(56, 213, 208, 0.12);
  border: 1px solid rgba(56, 213, 208, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.download-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 0;
}

.download-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-view {
  background-color: transparent;
  color: var(--bg-warm-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-view:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--bg-warm-white);
  color: var(--bg-warm-white);
}

.btn-download {
  background-color: var(--accent-teal);
  color: var(--surface-dark-slate);
  border: 1px solid var(--accent-teal);
}

.btn-download:hover {
  background-color: var(--accent-teal-dark);
  border-color: var(--accent-teal-dark);
  color: var(--surface-dark-slate);
}

.download-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.download-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}

.download-footer-link {
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
}

.download-footer-link:hover {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}

/* Responsive Overrides for Download section */
@media (max-width: 1024px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .download-resources-container {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }
  .download-resources-title {
    font-size: 1.5rem;
  }
  .download-card {
    padding: 1.5rem;
  }
}
