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

body,
body * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: #666;
}

a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3730a3;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #4f46e5;
  color: white;
}

.btn-primary:hover {
  background-color: #3730a3;
  color: white;
}

.btn-secondary {
  background-color: #f59e0b;
  color: white;
}

.btn-secondary:hover {
  background-color: #d97706;
  color: white;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo h1 {
  color: #4f46e5;
  font-size: 1.5rem;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #4f46e5;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Tips promo section (ex-newsletter-signup) */
.tips-promo-section {
  background-color: #f8fafc;
  padding: 60px 0;
}

.tips-promo {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.tips-promo h3 {
  color: #1f2937;
  margin-bottom: 1rem;
}
/* Articles */
.featured-articles,
.all-articles {
  padding: 80px 0;
}

.featured-articles h2,
.all-articles h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.article-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card.featured img {
  height: 100%;
}

.article-content {
  padding: 1.5rem;
}

.article-tag {
  background-color: #eef2ff;
  color: #4f46e5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.article-content h3 {
  margin: 1rem 0;
}

.article-content h3 a {
  color: #1f2937;
}

.article-content h3 a:hover {
  color: #4f46e5;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* Articles List */
.articles-list {
  max-width: 800px;
  margin: 0 auto;
}

.article-item {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

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

/* Quiz Section */
.quiz-section {
  background-color: #f8fafc;
  padding: 60px 0;
}

.quiz-card {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Quiz custom button styles */
.quiz-container {
  padding: 2rem 0;
}
.quiz-question {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}
.quiz-answer {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}
.quiz-answer:hover,
.quiz-answer:focus {
  background: #3730a3;
  transform: translateY(-2px) scale(1.03);
}
.quiz-result {
  padding: 2rem 0;
}
.quiz-result h3 {
  color: #4f46e5;
  margin-bottom: 1rem;
}
.quiz-result p {
  color: #374151;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .article-card.featured {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }

  .featured-articles,
  .all-articles {
    padding: 60px 0;
  }

  .quiz-card {
    padding: 1.5rem;
  }

  .quiz-answer {
    width: 100%;
    font-size: 0.98rem;
    padding: 0.85rem 0.5rem;
  }

  .category-hero,
  .category-intro,
  .getting-started,
  .platforms,
  .personality-guides,
  .quick-tips,
  .featured-articles,
  .all-articles,
  .story-categories,
  .story-highlights,
  .story-lessons,
  .share-story,
  .tips-categories,
  .quick-tips-section,
  .dos-donts,
  .expert-advice,
  .troubleshooting,
  .safety-essentials,
  .platform-safety,
  .trust-building,
  .warning-signs,
  .safety-tools,
  .emergency-resources,
  .safety-checklist,
  .cta-section,
  .quiz-section,
  .about-values,
  .about-team,
  .about-contact {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 0.7rem !important;
    margin-bottom: 0.7rem !important;
  }
  p,
  .hero-subtitle,
  .article-content p,
  .intro-content p,
  .article-meta,
  .article-tag,
  .article-content ul,
  .article-content ol {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .article-header {
    margin-bottom: 1.2rem !important;
    padding-bottom: 1rem !important;
  }
  .article-container,
  .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1000px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
  .nav-menu {
    gap: 1.2rem;
  }
}
