/* =========================================================
   Reset and Base Styles
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url(bg.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* =========================================================
   Utility
   ========================================================= */
img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   Educational Disclaimer
   ========================================================= */
.disclaimer-banner {
  background: #764ba2;
  color: #9c6fd6;
  font-size: 0.4rem;
  text-align: center;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================================
   Header
   ========================================================= */
.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: px; /* leaves space for disclaimer */
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

/* Wrap logo + text together in one row */
.logo-text {
  display: flex;
  align-items: center;
  gap: 10px; /* small controlled space between logo and text */
}

/* Logo image */
.logo img {
  border-radius: 5%;
  width: 55px;
  height: 55px;
}

/* Stack name and tagline tightly */
.branding {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Site title */
.logo-text h1 {
  margin: 0;
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

/* Tagline */
.tagline {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-style: italic;
}

/* Remove any unintended offsets */
.logo-text,
.logo-text h1,
.logo-text .tagline {
  margin-left: 0 !important;
}

/* Nav menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #667eea;
}

/* Back link (if used) */
.back-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: #e3f2fd;
  text-decoration: none;
}

/* =========================================================
   Demo Header (optional section)
   ========================================================= */
.demo-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 40px;
  z-index: 999;
  padding: 1rem 2rem;
}

.demo-header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-header h1 {
  color: #2c3e50;
  font-size: 1.8rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-module {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #fff;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
}

.btn-tertiary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-tertiary:hover {
  background: rgba(255,255,255,0.3);
}

/* =========================================================
   Learning Modules
   ========================================================= */
.learning-modules {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.learning-modules h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.module-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.module-card:hover {
  transform: translateY(-5px);
}

.module-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.btn-module {
  background: #667eea;
  color: white;
  margin-top: 1rem;
}

.btn-module:hover {
  background: #5a6fd8;
}

/* =========================================================
   Features Preview
   ========================================================= */
.features-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 2rem;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features-container h2 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.feature-item p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.feature-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.feature-link:hover {
  background: #e3f2fd;
  text-decoration: none;
}

/* =========================================================
   Resources & About Containers
   ========================================================= */
.resources-main,
.about-main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.resources-container,
.about-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 3rem;
}

/* Resource sections */
.resource-section {
  margin-bottom: 4rem;
}

.resource-section h2 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid #667eea;
  padding-bottom: 1rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #007bff;
}

.resource-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.resource-card p {
  color: #495057;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.resource-card ul {
  color: #495057;
  padding-left: 1.5rem;
}

.resource-card li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Access Methods */
.access-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.method-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.method-card:hover {
  border-color: #007bff;
  transform: translateY(-5px);
}

.method-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.method-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.method-details {
  text-align: left;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.method-details h4 {
  color: #495057;
  margin-bottom: 1rem;
}

.method-details ol,
.method-details ul {
  padding-left: 1.5rem;
}

.method-details li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* =========================================================
   Legal Section
   ========================================================= */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.legal-card {
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid;
}

.legal-card.warning {
  background: #fff5f5;
  border-color: #dc3545;
}

.legal-card.positive {
  background: #f0fff4;
  border-color: #28a745;
}

.legal-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.legal-card.warning h3 {
  color: #dc3545;
}

.legal-card.positive h3 {
  color: #28a745;
}

/* =========================================================
   Media Literacy
   ========================================================= */
.literacy-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #6f42c1;
}

.skill-category h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* =========================================================
   Reading List
   ========================================================= */
.reading-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.reading-category {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #17a2b8;
}

.reading-category h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* =========================================================
   About Page
   ========================================================= */
.mission-section {
  text-align: center;
  margin-bottom: 4rem;
}

.mission-statement {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mission-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mission-point {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.point-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mission-point h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #28a745;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.approach-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.approach-item {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #007bff;
}

.approach-item h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* =========================================================
   Disclaimers, Contact, Acknowledgments
   ========================================================= */
.disclaimer-content {
  display: grid;
  gap: 2rem;
}

.disclaimer-box {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 2rem;
}

.disclaimer-box h3 {
  color: #856404;
  margin-bottom: 1rem;
}

.disclaimer-box p {
  color: #533f03;
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-method {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border-left: 4px solid #17a2b8;
}

.contact-method h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.acknowledgments-content {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #6f42c1;
}

.thanks-to {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
}

.thanks-to h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.thanks-to ul {
  padding-left: 1.5rem;
}

.thanks-to li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* =========================================================
   Footer
   ========================================================= */
.main-footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #ecf0f1;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ecf0f1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary,
  .btn-tertiary {
    width: 100%;
    max-width: 300px;
  }

  .resources-container,
  .about-container {
    padding: 2rem;
  }

  .resource-grid,
  .access-methods,
  .legal-grid,
  .literacy-skills,
  .reading-list {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .learning-modules,
  .features-preview {
    padding: 2rem 1rem;
  }

  .resources-main,
  .about-main {
    padding: 0 1rem;
  }

  .resources-container,
  .about-container {
    padding: 1.5rem;
  }
}
