/* ==========================================
   UNIFIED ARTICLE STYLES
   Combines main.css header/hero with articles.css content
   ========================================== */

/* ==========================================
   GENERAL & RESET
   ========================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #040301;
  color: #E5F4FA;
  line-height: 1.6;
  overflow-x: hidden;
  font-size-adjust: 0.5;
}

/* Scroll bar */
::-webkit-scrollbar {
  width: 7.5px;
  background: #040301;
  border: none;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #E5F4FA;
}

:root {
  /* FONTS */
  --ff-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 900;

  /* COLORS */
  color-scheme: dark;
  --clr-primary: hsl(30, 67%, 1%);
  --clr-primary-light: hsl(197, 100%, 99%);
  --clr-grey: hsl(0, 13%, 75%);
  --clr-active: hsl(201, 55%, 39%);
  --clr-active-hover: hsl(201, 55%, 44%);
  --clr-secondary: hsl(201, 55%, 44%);
  --clr-secondary-hover: hsl(33, 53%, 69%);
  --clr-success: #8dcf75;
  --clr-warning: #ffd18d;
  --clr-error: #c34a36;

  interpolate-size: allow-keywords;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   HEADER (from main.css)
   ========================================== */
/* Existing Header Styles */
header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(4, 3, 1, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #E5F4FA;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #2D749A;
}

.btn {
  background-color: #2D749A;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1e5a7a;
}

/* Hamburger Menu Styles - Hidden by default */
header input[type="checkbox"] {
  display: none;
}

#active:checked ~ .menu-items {
  clip-path: circle(150%);
}

.menu-btn {
  display: none;
  position: fixed;
  z-index: 10;
  right: 16px;
  top: 16px;
  height: 64px;
  width: 64px;
  text-align: center;
  line-height: 64px;
  border-radius: 50%;
  font-size: 20px;
  color: #E5F4FA;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  background-color: rgba(4, 3, 1, 0.95);
}

.menu-items {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #000000;
  clip-path: circle(25px at calc(100% - 45px) 45px);
  transition: all 0.3s ease-in-out;
  z-index: 9;
  display: none;
}

.menu-items ul {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.menu-items ul li {
  margin: 16px 0;
}

.menu-items ul li a {
  color: #E5F4FA;
  text-decoration: none;
  font-size: 32px;
  font-weight: 500;
  padding: 5px 12px;
  position: relative;
  line-height: 50px;
  transition: all 0.3s ease;
  display: block;
}

.menu-items ul li a:hover {
  color: #2D749A;
}

.ham {
  cursor: pointer;
  transition: transform 400ms;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ham .line {
  fill: none;
  transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
  stroke: #E5F4FA;
  stroke-width: 5.5;
  stroke-linecap: round;
}

.ham .top {
  stroke-dasharray: 40 160;
}

.ham .middle {
  stroke-dasharray: 40 142;
  transform-origin: 50%;
  transition: transform 400ms;
}

.ham .bottom {
  stroke-dasharray: 40 85;
  transform-origin: 50%;
  transition: transform 400ms, stroke-dashoffset 400ms;
}

.ham.active .top {
  stroke-dashoffset: -64px;
}

.ham.active .middle {
  transform: rotate(90deg);
}

.ham.active .bottom {
  stroke-dashoffset: -64px;
}

.hamRotate.active {
  transform: rotate(45deg);
}

.hamRotate180.active {
  transform: rotate(180deg);
}

/* Media query for mobile screens - Show hamburger below 900px */
@media (max-width: 900px) {
  header {
    padding: 0;
  }

  nav {
    display: none;
  }
  
  .menu-btn {
    display: block;
  }
  
  .menu-items {
    display: block;
  }

  .menu-items .btn {
    padding: 12px 24px;
  } .menu-items .btn:hover {
    color: #E5F4FA;
  }
  
  /* Keep logo visible on mobile */
  header .logo {
    display: block;
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 11;
  }
}

/* ==========================================
   HEADER BACK BUTTON (from articles.css)
   ========================================== */
#header-back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  margin-right: 2px;
  margin-top: 3px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(199, 210, 254, 0.2);
}

#header-back:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateX(-3px);
  border-color: rgba(199, 210, 254, 0.4);
}

#header-back .svg-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: #E5F4FA;
  transition: fill 0.3s ease;
}

#header-back:hover .svg-icon {
  fill: #2D749A;
}

/* ==========================================
   ARTICLE HERO SECTION (from main.css)
   ========================================== */
.article-hero {
  padding: 60px 0;
  margin-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.hero-image {
    width: 100%;
    min-height: 360px;
    background: linear-gradient(135deg, #2D749A, #4a90e2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
}

/* Make the actual img element fit properly */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* For wide screens: Set aspect ratio on the container */
@media (min-width: 769px) {
    .hero-image {
        aspect-ratio: 4 / 3; /* Or use 1 / 1 for square, adjust to your preference */
        min-height: unset; /* Remove the fixed min-height on wide screens */
    }
}

/* For small screens: Keep 16:9 aspect ratio */
@media (max-width: 768px) {
    .hero-image {
        min-height: auto;
    } .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #E5F4FA;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #aaaaaa;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #ff6b9d;
  font-size: 1.1rem;
}

.hero-intro {
  font-size: 1.1rem;
  color: #cccccc;
  line-height: 1.7;
}

.wrapper {
  padding: min(1.25em, 3em);
}

/* DESKTOPS, LARGE SCREEN STYLES */
@media (min-width: 60em) {
  .wrapper {
    max-width: clamp(72rem, 90vw, 68rem);
    margin-inline: auto;
  }
}

/* ==========================================
   ARTICLE CONTENT WRAPPER (from articles.css)
   ========================================== */
.article-wrapper {
  max-width: 75ch;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  line-height: 1.7;
}

article.article-wrapper {
  padding-top: clamp(2rem, 8vh, 5rem);
  padding-bottom: clamp(3rem, 10vh, 6rem);
}

.content-article-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================
   TYPOGRAPHY (from articles.css)
   ========================================== */
h1, h2, h3, h4, p {
  color: #E5F4FA;
}

h1 {
  font-size: 5rem;
  line-height: 1.2;
}

h2 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: 1.6px;
}

article h1 {
  margin-bottom: 1.5rem;
  color: #E5F4FA;
}

article h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 50px 0 30px 0;
  color: #E5F4FA;
}

article h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 40px 0 20px 0;
  color: #E5F4FA;
}

article h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #E5F4FA;
}

article p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #E5F4FA;
  opacity: 0.95;
  font-size: 1.1rem;
  line-height: 1.8;
}

article p:first-of-type {
  margin-top: 1.5rem;
}

.content-wrapper p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Special paragraph styles */
.article.italic {
  font-style: italic;
  color: #aaaaaa;
  padding-left: 1.5rem;
  border-left: 3px solid #2D749A;
  margin: 1.5rem 0;
}

.highlight-text {
  font-style: italic;
  font-weight: 600;
  color: #E5F4FA;
  text-align: center;
  margin: 40px 0;
  font-size: 1.2rem;
}

.emphasis {
  font-weight: 600;
  color: #E5F4FA;
}

/* Strong emphasis */
article strong,
article b {
  font-weight: 700;
  color: #E5F4FA;
}

/* Emphasis */
article em,
article i {
  font-style: italic;
  color: #aaaaaa;
}

/* ==========================================
   LINKS (from articles.css)
   ========================================== */
article a {
  color: #2D749A;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

article a:hover {
  color: #4a90e2;
  text-decoration-color: #4a90e2;
}

.link-text {
  color: #ff6b9d;
  text-decoration: none;
  font-weight: 600;
}

.link-text:hover {
  text-decoration: underline;
}

/* ==========================================
   LISTS (from articles.css)
   ========================================== */
article ul,
article ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: #E5F4FA;
}

.content-wrapper ul {
  margin: 30px 0;
  padding-left: 0;
}

article ul {
  list-style: disc;
}

article ol {
  list-style: decimal;
}

article li {
  margin: 0.75rem 0;
  line-height: 1.7;
  padding-left: 0.5rem;
  font-size: 1.1rem;
}

.content-wrapper li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
  list-style: none;
  position: relative;
  padding-left: 25px;
}

.content-wrapper li::before {
  content: '•';
  color: #2D749A;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

article li::marker {
  color: #2D749A;
  font-weight: 700;
}

article ul ul,
article ol ol,
article ul ol,
article ol ul {
  margin: 0.5rem 0;
}

/* ==========================================
   BLOCKQUOTES (from articles.css)
   ========================================== */
article blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid #2D749A;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #aaaaaa;
}

article blockquote p {
  margin: 0.5rem 0;
}

article blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  color: #2D749A;
}

article blockquote cite::before {
  content: "— ";
}

/* ==========================================
   CODE BLOCKS (from articles.css)
   ========================================== */
article code {
  padding: 0.2em 0.4em;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #2D749A;
}

article pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 1px solid rgba(199, 210, 254, 0.1);
}

article pre code {
  padding: 0;
  background: none;
  color: #E5F4FA;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==========================================
   DEFINITION BOXES (from main.css)
   ========================================== */
.definition-box {
  background: linear-gradient(135deg, #1E5A7A, #2D749A);
  color: #000;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
  border: 3px solid #333;
}

.definition-box h3 {
  color: #000;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.definition-box p {
  color: #000;
  margin-bottom: 15px;
}

.definition-box .term {
  font-weight: 700;
  color: #000;
}

.definition-box ul {
  color: #000;
  list-style: disc;
  padding-left: 2rem;
}

.definition-box li {
  color: #000;
  margin: 0.5rem 0;
}

/* ==========================================
   SPECIAL CONTENT BOXES (from articles.css)
   ========================================== */
.info-box,
.warning-box,
.success-box,
.tip-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
}

.info-box {
  background: rgba(66, 153, 225, 0.1);
  border-color: #2D749A;
}

.warning-box {
  background: rgba(255, 209, 141, 0.1);
  border-color: #ffd18d;
}

.success-box {
  background: rgba(141, 207, 117, 0.1);
  border-color: #8dcf75;
}

.tip-box {
  background: rgba(211, 166, 117, 0.1);
  border-color: #2D749A;
}

.info-box p,
.warning-box p,
.success-box p,
.tip-box p {
  margin: 0.5rem 0;
}

/* ==========================================
   IMAGES (from articles.css)
   ========================================== */
article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 0.5rem;
  loading: lazy;
  object-fit: cover;
}

article figure {
  margin: 2rem 0;
  text-align: center;
}

article figure img {
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

article figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #aaaaaa;
}

.content-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #a8e6cf, #7fcdcd);
  border-radius: 16px;
  margin: 50px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-image::before {
  content: '🤝';
  font-size: 4rem;
  z-index: 2;
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: #aaaaaa;
  margin-top: 15px;
  font-size: 0.9rem;
}

.img-featured {
  border: 3px solid #2D749A;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================
   VIDEOS (from articles.css)
   ========================================== */
article video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

.video-container.ratio-4-3 {
  padding-bottom: 75%;
}

.video-container.ratio-1-1 {
  padding-bottom: 100%;
}

/* ==========================================
   TABLES (from articles.css)
   ========================================== */
article table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  overflow: hidden;
}

article thead {
  background: rgba(199, 210, 254, 0.1);
}

article th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #2D749A;
  border-bottom: 2px solid #2D749A;
}

article td {
  padding: 0.875rem 1rem;
  color: #E5F4FA;
  border-bottom: 1px solid rgba(199, 210, 254, 0.1);
}

article tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

article tbody tr:last-child td {
  border-bottom: none;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  margin: 0;
}

/* ==========================================
   HORIZONTAL RULE (from articles.css)
   ========================================== */
article hr {
  margin: 3rem 0;
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #2D749A,
    transparent
  );
}

/* ==========================================
   FAQ SECTION (from articles.css)
   ========================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background: #E5F4FA;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-header h2 {
  color: #040301;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.faq-header p {
  color: #666;
  font-size: 1.1rem;
}

.faq-item {
  margin-bottom: 15px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #4a90e2;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.faq-question {
  background: linear-gradient(135deg, #4a90e2 0%, #2D749A 100%);
  color: white;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #2D749A 0%, #4a90e2 100%);
}

.faq-question::after {
  content: '+';
  font-size: 1.8rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f9f9f9;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px 25px;
}

.faq-answer p {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}

/* ==========================================
   BACK LINK (from main.css)
   ========================================== */
.back-link {
  text-align: center;
  padding: 40px 0;
}

.back-link a {
  background: transparent;
  border: 2px solid #2D749A;
  color: #2D749A;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-link a:hover {
  background-color: #2D749A;
  color: #E5F4FA;
}

/* ==========================================
   NEWSLETTER (from main.css)
   ========================================== */
.newsletter-container {
  max-width: 1200px;
  margin: 96px auto;
  background-color: #0a0806;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.newsletter-image {
  background: linear-gradient(135deg, #2D749A, #4a90e2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  height: 100%;
}

.newsletter-form {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.avatars {
  display: flex;
  gap: -8px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #0A0806;
  margin-left: -8px;
  background: linear-gradient(45deg, #2D7499, #040301);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
}

.avatar:first-child {
  margin-left: 0;
}

.social-proof-text {
  font-size: 0.9rem;
  color: #aaaaaa;
  font-weight: 500;
}

.newsletter-headline {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #E5F4FA;
  line-height: 1.1;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 40px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.email-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid #333;
  border-radius: 12px;
  background-color: #1a1a1a;
  color: #E5F4FA;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: #2D749A;
}

.email-input::placeholder {
  color: #777;
}

.cta-button {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2D7499, #222A38);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
  margin-bottom: 20px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 116, 153, 0.3);
}

.privacy-text {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  line-height: 1.4;
}

.privacy-text a {
  color: #2D7499;
  text-decoration: none;
}

.privacy-text a:hover {
  text-decoration: underline;
}

/* ==========================================
   DISCOVERY CARDS (from main.css)
   ========================================== */
.discovery-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 128px;
}

.discovery-card {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.discovery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-logo {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: #2d3748;
}

.card-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: auto;
}

/* ==========================================
   FOOTER (from articles.css)
   ========================================== */
footer {
  background-color: #2D749A;
  color: #040301;
  padding: 128px 0;
}

footer img {
  width: 120px;
  height: auto;
}

footer h3, footer p, footer a {
  color: #040301;
}

footer a {
  color: #040301;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

footer .legal {
  display: flex;
  flex-direction: column;
}

footer h3 {
  margin: 64px 0 12px 0;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    display: none;
  }

  .article-wrapper {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  article h1 {
    font-size: 2rem;
  }

  article h2 {
    font-size: 1.8rem;
  }

  article h3 {
    font-size: 1.5rem;
  }

  .content-wrapper h2 {
    font-size: 1.8rem;
  }

  article blockquote {
    padding: 1rem 1.25rem;
  }

  article pre {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .article.italic {
    padding-left: 1rem;
  }

  #header-back {
    top: 1rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
  }

  .newsletter-image {
    min-height: 300px;
  }

  .newsletter-form {
    padding: 40px 30px;
  }

  .newsletter-headline {
    font-size: 2.2rem;
  }

  .discovery-grid {
    grid-template-columns: 1fr;
  }

  .discovery-title {
    font-size: 1.25rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .faq-container {
    padding: 30px 20px;
  }

  .faq-header h2 {
    font-size: 2rem;
  }

  .faq-header p {
    font-size: 1rem;
  }

  .faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }

  /* Mobile: Stack table */
  article table.stack-on-mobile {
    display: block;
  }

  article table.stack-on-mobile thead {
    display: none;
  }

  article table.stack-on-mobile tbody,
  article table.stack-on-mobile tr,
  article table.stack-on-mobile td {
    display: block;
    width: 100%;
  }

  article table.stack-on-mobile tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(199, 210, 254, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem;
  }

  article table.stack-on-mobile td {
    text-align: right;
    padding: 0.5rem;
    position: relative;
    padding-left: 50%;
    border: none;
  }

  article table.stack-on-mobile td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.5rem;
    width: 45%;
    padding-right: 0.5rem;
    white-space: nowrap;
    font-weight: 700;
    text-align: left;
    color: #2D749A;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .definition-box {
    padding: 20px;
  }

  article ul,
  article ol {
    padding-left: 1.5rem;
  }

  article figure img {
    border-radius: 0.25rem;
  }

  article table {
    font-size: 0.875rem;
  }

  article th,
  article td {
    padding: 0.75rem 0.5rem;
  }

  .newsletter-form {
    padding: 30px 20px;
  }

  .newsletter-headline {
    font-size: 1.8rem;
  }

  .newsletter-container {
    border-radius: 16px;
  }

  .faq-container {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .faq-header h2 {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 52em) {
  .footer {
    display: block;
    text-align: left;
  }

  .footer-desc {
    flex-direction: row;
    justify-content: space-between;
  }

  .flex {
    display: flex;
  }

  .space-between {
    justify-content: space-between;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  #header-back {
    display: none;
  }

  .article-wrapper {
    max-width: 100%;
    padding: 0;
  }

  article h1,
  article h2,
  article h3 {
    page-break-after: avoid;
  }

  article img,
  article figure,
  article table {
    page-break-inside: avoid;
  }

  article a {
    text-decoration: underline;
  }

  article a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

article section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

#header-back {
  will-change: transform;
}

#header-back:hover {
  transform: translateX(-3px) translateZ(0);
}