/* ============================================
   DYNAMIC CRAFT - SOFT PASTEL DESIGN SYSTEM
   Professional SEO Training Platform
   ============================================ */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: #4a4a4a;
  background: linear-gradient(135deg, #fef5f1 0%, #fff9f5 50%, #fef0f7 100%);
  min-height: 100vh;
}

/* Soft Pastel Color Palette */
:root {
  --pastel-primary: #b8d4e8;
  --pastel-secondary: #d4c5e8;
  --pastel-accent: #ffd4b8;
  --pastel-success: #c8e8d4;
  --pastel-pink: #f8d4e8;
  --pastel-peach: #ffd9c8;
  --text-dark: #4a4a4a;
  --text-medium: #6b6b6b;
  --text-light: #8a8a8a;
  --white: #ffffff;
  --soft-shadow: rgba(180, 180, 200, 0.15);
  --hover-shadow: rgba(180, 180, 200, 0.25);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #4a4a4a;
  margin-bottom: 16px;
}

h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: #6b6b6b;
}

a {
  color: #7ba8c9;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #5d8eb3;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons - Soft Pastel Style */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--soft-shadow);
}

.btn-primary {
  background: linear-gradient(135deg, #b8d4e8 0%, #a8c4d8 100%);
  color: #4a4a4a;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a8c4d8 0%, #98b4c8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--hover-shadow);
}

.btn-secondary {
  background: linear-gradient(135deg, #d4c5e8 0%, #c4b5d8 100%);
  color: #4a4a4a;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #c4b5d8 0%, #b4a5c8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--hover-shadow);
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px var(--soft-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-menu li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #4a4a4a;
  padding: 8px 0;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b8d4e8, #d4c5e8);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: linear-gradient(135deg, #b8d4e8, #a8c4d8);
  color: #4a4a4a;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--soft-shadow);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px var(--hover-shadow);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #fef5f1 0%, #fff9f5 100%);
  z-index: 1999;
  padding: 80px 32px 32px;
  box-shadow: -4px 0 24px var(--soft-shadow);
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #f8d4e8, #e8c4d8);
  color: #4a4a4a;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
  background: linear-gradient(135deg, #e8c4d8, #d8b4c8);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #4a4a4a;
  padding: 12px 0;
  border-bottom: 1px solid rgba(180, 180, 200, 0.2);
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: #7ba8c9;
  padding-left: 8px;
}

/* Hero Section - Soft Pastel */
.hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, #fef5f1 0%, #fff9f5 50%, #fef0f7 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(216, 197, 232, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 212, 232, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  color: #4a4a4a;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: 20px;
  color: #6b6b6b;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
}

.trust-indicators span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #6b6b6b;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  box-shadow: 0 2px 8px var(--soft-shadow);
}

/* Page Hero */
.page-hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, #fef5f1 0%, #fff9f5 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 20px;
  color: #6b6b6b;
  max-width: 700px;
  margin: 0 auto;
}

/* Stats Bar */
.stats-bar {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(184, 212, 232, 0.3), rgba(212, 197, 232, 0.3));
  margin-bottom: 60px;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-around;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #7ba8c9;
  line-height: 1;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #6b6b6b;
}

/* Section Styling */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.section-subheadline {
  text-align: center;
  font-size: 18px;
  color: #6b6b6b;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Course Grid - Flexbox Only */
.course-grid,
.benefits-grid,
.testimonial-grid,
.mission-grid,
.category-grid,
.resource-grid,
.video-grid,
.methods-grid,
.info-grid,
.page-links-grid,
.action-grid,
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Course Cards */
.course-card {
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 16px var(--soft-shadow);
  transition: all 0.4s ease;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #b8d4e8, #d4c5e8, #ffd4b8);
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px var(--hover-shadow);
}

.course-card:hover::before {
  opacity: 0.5;
}

.course-card h3 {
  color: #4a4a4a;
  font-size: 22px;
  margin-bottom: 12px;
}

.course-card p {
  color: #6b6b6b;
  flex-grow: 1;
}

.course-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #7ba8c9;
  margin: 16px 0;
}

/* Benefit Cards */
.benefit-card,
.mission-card {
  flex: 1 1 calc(50% - 24px);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px var(--soft-shadow);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.benefit-card:hover,
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--hover-shadow);
  background: rgba(255, 255, 255, 1);
}

.benefit-card h3,
.mission-card h3 {
  color: #4a4a4a;
  margin-bottom: 12px;
}

/* Testimonials - High Contrast for Readability */
.testimonials {
  background: linear-gradient(135deg, rgba(248, 212, 232, 0.3), rgba(255, 217, 200, 0.3));
  padding: 60px 20px;
}

.testimonial-card {
  flex: 1 1 calc(50% - 24px);
  min-width: 300px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px var(--soft-shadow);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--hover-shadow);
}

.testimonial-card p {
  color: #4a4a4a;
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 2px solid rgba(184, 212, 232, 0.3);
}

.testimonial-author strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #4a4a4a;
  font-size: 16px;
}

.testimonial-author span {
  color: #6b6b6b;
  font-size: 14px;
}

/* CTA Banner */
.cta-banner,
.cta-section {
  background: linear-gradient(135deg, #b8d4e8 0%, #d4c5e8 100%);
  padding: 80px 20px;
  text-align: center;
  border-radius: 32px;
  margin: 60px 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #4a4a4a;
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-content p {
  color: #4a4a4a;
  font-size: 18px;
  margin-bottom: 32px;
}

.guarantee-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #4a4a4a;
  box-shadow: 0 2px 8px var(--soft-shadow);
}

/* Story & Text Sections */
.text-section {
  max-width: 800px;
  margin: 0 auto;
}

.text-section p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.8;
  color: #6b6b6b;
}

/* Resource Cards */
.resource-card,
.category-card,
.video-card {
  flex: 1 1 calc(50% - 24px);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px var(--soft-shadow);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card:hover,
.category-card:hover,
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--hover-shadow);
}

.resource-type,
.resource-count,
.duration,
.level {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ffd4b8, #ffcca8);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 8px;
}

/* Contact & Info Cards */
.method-card,
.info-card {
  flex: 1 1 calc(50% - 24px);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px var(--soft-shadow);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.method-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--hover-shadow);
}

.method-card h3,
.info-card h3 {
  color: #4a4a4a;
  margin-bottom: 12px;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px var(--soft-shadow);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px var(--hover-shadow);
}

.faq-item h3 {
  color: #4a4a4a;
  font-size: 18px;
  margin-bottom: 12px;
}

.faq-item p {
  color: #6b6b6b;
}

/* 404 Error Page */
.error-hero {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fef5f1 0%, #fff9f5 100%);
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: rgba(184, 212, 232, 0.6);
  line-height: 1;
  margin-bottom: 24px;
}

.page-link-card,
.action-card {
  flex: 1 1 calc(25% - 24px);
  min-width: 240px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px var(--soft-shadow);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-link-card:hover,
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--hover-shadow);
}

.page-link-card h3 a {
  color: #4a4a4a;
}

/* Thank You Page */
.confirmation-hero {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fef5f1 0%, #fff9f5 100%);
}

.confirmation-content {
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c8e8d4, #b8d8c4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ffffff;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px var(--soft-shadow);
}

.next-steps {
  font-size: 16px;
  color: #6b6b6b;
}

/* Featured Story Section */
.story-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-top: 32px;
}

.story-profile {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px var(--soft-shadow);
}

.story-profile .role {
  color: #7ba8c9;
  font-weight: 600;
}

.story-details {
  flex: 2 1 500px;
}

.story-details h4 {
  color: #4a4a4a;
  margin-top: 24px;
  margin-bottom: 8px;
}

.story-details ul {
  list-style: none;
  padding-left: 0;
}

.story-details ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: #6b6b6b;
}

.story-details ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #7ba8c9;
  font-weight: bold;
}

/* Impact Stats */
.impact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

.impact-stats span {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  font-weight: 600;
  color: #4a4a4a;
  box-shadow: 0 2px 8px var(--soft-shadow);
}

/* Metrics Cards */
.metric-card {
  flex: 1 1 calc(25% - 24px);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 16px var(--soft-shadow);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--hover-shadow);
}

.metric-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #7ba8c9;
  margin-bottom: 12px;
}

.metric-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 8px;
}

/* Enrollment Benefits */
.enrollment-benefits {
  background: linear-gradient(135deg, rgba(184, 212, 232, 0.2), rgba(212, 197, 232, 0.2));
  padding: 60px 20px;
}

.benefit-item {
  flex: 1 1 calc(25% - 24px);
  min-width: 200px;
  text-align: center;
  margin-bottom: 20px;
}

.benefit-item h3 {
  color: #4a4a4a;
  font-size: 20px;
  margin-bottom: 8px;
}

.benefit-item p {
  color: #6b6b6b;
  font-size: 14px;
}

/* Legal Content */
.legal-hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, #fef5f1 0%, #fff9f5 100%);
  text-align: center;
}

.last-updated {
  font-size: 14px;
  color: #8a8a8a;
  margin-top: 8px;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 4px 16px var(--soft-shadow);
}

.content-wrapper h2 {
  color: #4a4a4a;
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-wrapper p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Landmarks List */
.landmarks-list {
  list-style: none;
  padding-left: 0;
  max-width: 600px;
  margin: 24px auto;
}

.landmarks-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: #6b6b6b;
  font-size: 16px;
}

.landmarks-list li::before {
  content: '📍';
  position: absolute;
  left: 0;
}

/* Footer - Soft Pastel */
footer {
  background: linear-gradient(135deg, #d4c5e8 0%, #c4b5d8 100%);
  color: #4a4a4a;
  padding: 60px 20px 24px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-section h3,
.footer-section h4 {
  color: #4a4a4a;
  margin-bottom: 16px;
}

.footer-section p,
.footer-section ul li {
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #4a4a4a;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #7ba8c9;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(74, 74, 74, 0.2);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: #4a4a4a;
  font-size: 14px;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(248, 212, 232, 0.98), rgba(255, 217, 200, 0.98));
  backdrop-filter: blur(10px);
  padding: 24px;
  box-shadow: 0 -4px 24px var(--soft-shadow);
  z-index: 1998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.cookie-text {
  flex: 1 1 300px;
  color: #4a4a4a;
}

.cookie-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #4a4a4a;
}

.cookie-text p {
  font-size: 14px;
  margin-bottom: 0;
  color: #4a4a4a;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-buttons .btn {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-accept {
  background: linear-gradient(135deg, #c8e8d4, #b8d8c4);
  color: #4a4a4a;
}

.btn-reject {
  background: rgba(255, 255, 255, 0.9);
  color: #4a4a4a;
}

.btn-settings {
  background: transparent;
  color: #4a4a4a;
  border: 2px solid rgba(74, 74, 74, 0.3);
  box-shadow: none;
}

.btn-settings:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: #7ba8c9;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 74, 74, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal-content {
  background: linear-gradient(135deg, #fef5f1, #fff9f5);
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px var(--hover-shadow);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-modal.active .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal h2 {
  color: #4a4a4a;
  margin-bottom: 24px;
}

.cookie-category {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-category h3 {
  color: #4a4a4a;
  font-size: 18px;
  margin-bottom: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: rgba(180, 180, 200, 0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle.active {
  background: linear-gradient(135deg, #c8e8d4, #b8d8c4);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px var(--soft-shadow);
}

.cookie-toggle.active::after {
  transform: translateX(24px);
}

.cookie-category p {
  color: #6b6b6b;
  font-size: 14px;
  margin-bottom: 0;
}

.cookie-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-save-preferences {
  background: linear-gradient(135deg, #b8d4e8, #a8c4d8);
  color: #4a4a4a;
  flex: 1;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.9);
  color: #4a4a4a;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  /* Navigation */
  .nav-menu,
  .nav-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding: 60px 20px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Sections */
  section {
    padding: 32px 20px;
  }

  /* Cards */
  .course-card,
  .benefit-card,
  .mission-card,
  .testimonial-card,
  .resource-card,
  .category-card,
  .video-card,
  .method-card,
  .info-card,
  .page-link-card,
  .action-card,
  .metric-card {
    flex: 1 1 100%;
  }

  /* Stats */
  .stats-grid {
    flex-direction: column;
    gap: 32px;
  }

  .stat-item {
    min-width: 100%;
  }

  /* Story Content */
  .story-content {
    flex-direction: column;
  }

  .story-profile,
  .story-details {
    flex: 1 1 100%;
  }

  /* Error Code */
  .error-code {
    font-size: 80px;
  }

  /* Legal Content */
  .content-wrapper {
    padding: 32px 24px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    flex: 1 1 100%;
  }

  /* Cookie Banner */
  .cookie-content {
    flex-direction: column;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  /* Cookie Modal */
  .cookie-modal-content {
    padding: 24px;
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }

  .cookie-modal-buttons .btn {
    width: 100%;
  }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .course-card,
  .benefit-card,
  .mission-card {
    flex: 1 1 calc(50% - 24px);
  }

  .page-link-card,
  .action-card,
  .metric-card,
  .benefit-item {
    flex: 1 1 calc(50% - 24px);
  }
}

/* Print Styles */
@media print {
  header,
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-consent-banner,
  .cookie-modal,
  .hero-cta,
  .cta-banner,
  .cta-section,
  footer {
    display: none;
  }

  body {
    background: white;
  }

  * {
    box-shadow: none !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-padding-top: 80px;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 3px solid #b8d4e8;
  outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade-in to sections */
section {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
* {
  transition-timing-function: ease-out;
}

/* Ensure proper spacing between all elements */
.course-grid > *,
.benefits-grid > *,
.testimonial-grid > *,
.stats-grid > *,
.mission-grid > *,
.category-grid > *,
.resource-grid > *,
.video-grid > *,
.methods-grid > *,
.info-grid > *,
.page-links-grid > *,
.action-grid > *,
.metrics-grid > * {
  margin-bottom: 20px;
}

/* Prevent content overlap */
.card-container,
.content-grid {
  position: relative;
  z-index: 1;
}

/* Text-Image Sections */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.text-image-section img {
  flex: 1 1 300px;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 4px 16px var(--soft-shadow);
}

.text-image-section .text-content {
  flex: 1 1 400px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }

  .text-image-section img {
    max-width: 100%;
  }
}

/* Feature Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--soft-shadow);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px var(--hover-shadow);
}

.feature-item h3 {
  color: #4a4a4a;
  margin-bottom: 8px;
}

.feature-item p {
  color: #6b6b6b;
  margin-bottom: 0;
}