/* ========================================
   موقع شمس فلسطين — تصميم احترافي
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Amiri:wght@400;700&display=swap');

:root {
  --color-bg: #fdf8f0;
  --color-bg-warm: #f5ebd8;
  --color-ink: #1a1611;
  --color-ink-soft: #4a4238;
  --color-sun: #d97706;
  --color-sun-deep: #b45309;
  --color-sun-light: #fbbf24;
  --color-earth: #7c2d12;
  --color-olive: #4d5d3a;
  --color-sky: #0c4a6e;
  --color-line: #d6c8b0;
  --color-card: #ffffff;
  --shadow-soft: 0 1px 3px rgba(124, 45, 18, 0.08), 0 4px 16px rgba(124, 45, 18, 0.06);
  --shadow-bold: 0 4px 24px rgba(124, 45, 18, 0.12), 0 12px 48px rgba(124, 45, 18, 0.08);
  --font-display: 'Amiri', serif;
  --font-body: 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(217, 119, 6, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-ink);
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 30% 30%, var(--color-sun-light), var(--color-sun) 60%, var(--color-sun-deep));
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 0 24px rgba(217, 119, 6, 0.4);
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 30deg, var(--color-sun) 30deg 35deg, transparent 35deg 75deg, var(--color-sun) 75deg 80deg, transparent 80deg 120deg, var(--color-sun) 120deg 125deg, transparent 125deg 165deg, var(--color-sun) 165deg 170deg, transparent 170deg 210deg, var(--color-sun) 210deg 215deg, transparent 215deg 255deg, var(--color-sun) 255deg 260deg, transparent 260deg 300deg, var(--color-sun) 300deg 305deg, transparent 305deg 345deg, var(--color-sun) 345deg 350deg, transparent 350deg);
  mask: radial-gradient(circle, transparent 28px, black 30px);
  -webkit-mask: radial-gradient(circle, transparent 28px, black 30px);
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--color-sun-deep);
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--color-sun-deep);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-sun);
  transition: width 0.3s;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-ink);
  cursor: pointer;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-sun-deep);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-sun);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--color-ink);
}

.hero h1 .highlight {
  color: var(--color-sun-deep);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.15em;
  background: var(--color-sun-light);
  z-index: -1;
  opacity: 0.5;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-sun-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-bold);
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
}

.btn-secondary:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-system {
  position: relative;
  width: 380px;
  height: 380px;
}

.sun-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef3c7, var(--color-sun-light) 30%, var(--color-sun) 65%, var(--color-sun-deep));
  box-shadow:
    0 0 80px rgba(217, 119, 6, 0.4),
    0 0 160px rgba(251, 191, 36, 0.3),
    inset -20px -20px 60px rgba(180, 83, 9, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.sun-rays {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg 20deg, rgba(217, 119, 6, 0.3) 20deg 25deg,
    transparent 25deg 65deg, rgba(217, 119, 6, 0.3) 65deg 70deg,
    transparent 70deg 110deg, rgba(217, 119, 6, 0.3) 110deg 115deg,
    transparent 115deg 155deg, rgba(217, 119, 6, 0.3) 155deg 160deg,
    transparent 160deg 200deg, rgba(217, 119, 6, 0.3) 200deg 205deg,
    transparent 205deg 245deg, rgba(217, 119, 6, 0.3) 245deg 250deg,
    transparent 250deg 290deg, rgba(217, 119, 6, 0.3) 290deg 295deg,
    transparent 295deg 335deg, rgba(217, 119, 6, 0.3) 335deg 340deg,
    transparent 340deg);
  mask: radial-gradient(circle, transparent 200px, black 220px, black 250px, transparent 280px);
  -webkit-mask: radial-gradient(circle, transparent 200px, black 220px, black 250px, transparent 280px);
  animation: spin 40s linear infinite;
}

.floating-stat {
  position: absolute;
  background: var(--color-card);
  padding: 1rem 1.4rem;
  border-radius: 12px;
  box-shadow: var(--shadow-bold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--color-line);
}

.floating-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(217, 119, 6, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.floating-stat-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
}

.floating-stat-text strong {
  font-size: 1.1rem;
  color: var(--color-ink);
  font-weight: 700;
}

.stat-1 { top: 8%; right: -8%; animation: float 5s ease-in-out infinite; }
.stat-2 { bottom: 12%; left: -8%; animation: float 5s ease-in-out 1.5s infinite; }
.stat-3 { top: 50%; right: -15%; animation: float 5s ease-in-out 3s infinite; }

/* ========== Section ========== */
.section {
  padding: 5rem 2rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-sun-deep);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
}

/* ========== Tools Grid ========== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: var(--color-ink);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
  transition: transform 0.4s;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-bold);
  border-color: var(--color-sun);
}

.tool-card:hover::before {
  transform: translate(20%, -20%) scale(1.5);
}

.tool-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-sun-light), var(--color-sun));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.tool-card p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-sun-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.tool-card:hover .tool-link {
  gap: 0.7rem;
}

/* ========== Features ========== */
.features {
  background: var(--color-bg-warm);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
  border-radius: 50%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
}

.feature {
  text-align: center;
  padding: 1rem;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-sun), var(--color-sun-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.feature h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

/* ========== Tool Page ========== */
.tool-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-sun-deep); }

.tool-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
}

.tool-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

.tool-header .lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  line-height: 1.8;
}

.calculator-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 3rem;
}

.calculator-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.calculator-card h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--color-sun);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
  font-size: 0.95rem;
}

.form-group .hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-sun);
  background: white;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-calculate {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--color-sun), var(--color-sun-deep));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 1rem;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
}

.btn-calculate:active {
  transform: translateY(0);
}

/* Results */
.results {
  background: linear-gradient(135deg, #fff7ed, var(--color-bg-warm));
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  display: none;
  border: 2px solid var(--color-sun-light);
  animation: fadeIn 0.4s ease-out;
}

.results.show { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-sun-deep);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-item {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--color-line);
}

.result-label {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 0.4rem;
}

.result-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.5px;
}

.result-value small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-ink-soft);
  margin-right: 0.3rem;
}

.recommendation {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border-right: 4px solid var(--color-sun);
}

.recommendation h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}

.recommendation p {
  color: var(--color-ink-soft);
  line-height: 1.7;
}

/* Article content */
.article-content {
  margin-top: 3rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-ink);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--color-ink);
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--color-ink-soft);
  line-height: 1.9;
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 2rem;
  color: var(--color-ink-soft);
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.info-box {
  background: var(--color-bg-warm);
  border-right: 4px solid var(--color-sun);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.info-box strong { color: var(--color-sun-deep); }

/* Quiz */
.quiz-container {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.quiz-progress {
  height: 6px;
  background: var(--color-line);
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sun-light), var(--color-sun));
  width: 0%;
  transition: width 0.4s;
  border-radius: 3px;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-option {
  padding: 1.1rem 1.4rem;
  border: 2px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-bg);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: right;
  color: var(--color-ink);
}

.quiz-option:hover {
  border-color: var(--color-sun);
  background: white;
  transform: translateX(-4px);
}

.quiz-option.selected {
  border-color: var(--color-sun);
  background: rgba(251, 191, 36, 0.1);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Footer */
.footer {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(253, 248, 240, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  color: var(--color-sun-light);
}

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

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(253, 248, 240, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-sun-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 248, 240, 0.1);
  text-align: center;
  color: rgba(253, 248, 240, 0.5);
  font-size: 0.9rem;
}

/* ========== Articles ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.article-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-bold);
  border-color: var(--color-sun);
}

.article-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-sun-light), var(--color-sun));
  position: relative;
  overflow: hidden;
}

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

.article-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-bottom: 0.8rem;
  align-items: center;
}

.article-tag {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-sun-deep);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.article-card p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.article-read-more {
  color: var(--color-sun-deep);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ========== Article Page ========== */
.article-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.article-hero .article-meta {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.article-hero .article-lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.article-cover {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--color-sun-light), var(--color-sun));
}

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

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  font-size: 1.08rem;
  line-height: 1.9;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-ink);
  letter-spacing: -0.5px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--color-ink);
}

.article-body p {
  margin-bottom: 1.2rem;
  color: var(--color-ink-soft);
}

.article-body p strong {
  color: var(--color-ink);
  font-weight: 700;
}

.article-body ul, .article-body ol {
  margin: 1.2rem 2rem;
  color: var(--color-ink-soft);
}

.article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
}

.article-body blockquote {
  border-right: 4px solid var(--color-sun);
  background: var(--color-bg-warm);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.article-body img {
  width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-top: 0.5rem;
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.article-body th, .article-body td {
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--color-line);
}

.article-body th {
  background: var(--color-bg-warm);
  font-weight: 700;
}

.article-cta {
  background: linear-gradient(135deg, #fff7ed, var(--color-bg-warm));
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  border: 2px solid var(--color-sun-light);
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--color-sun-deep);
}

.article-cta p {
  margin-bottom: 1.2rem;
  color: var(--color-ink-soft);
}

.related-articles {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.related-articles h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--color-bg-warm);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-sun-deep);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.open .faq-answer {
  padding: 0 1.5rem 1.2rem;
  max-height: 1000px;
}

.faq-answer p {
  color: var(--color-ink-soft);
  line-height: 1.8;
}

.toc {
  background: var(--color-bg-warm);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.toc ul {
  list-style: none;
  margin: 0;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  color: var(--color-sun-deep);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--color-card);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual { height: 320px; }
  .sun-system { width: 260px; height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .calculator-card { padding: 1.5rem; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .floating-stat { padding: 0.7rem 1rem; }
  .floating-stat-text strong { font-size: 0.95rem; }
}

/* ========== Personal Experience Section ========== */
.personal-experience {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-right: 5px solid var(--color-sun-deep);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  position: relative;
}

.personal-experience::before {
  content: '✍️';
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--color-sun-deep);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.personal-experience h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-sun-deep);
  margin-bottom: 0.8rem;
  margin-top: 0.3rem;
}

.personal-experience .author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.7);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-sun-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}

.personal-experience p {
  color: #57534e;
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.personal-experience p:last-child {
  margin-bottom: 0;
}

.personal-experience .signature {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--color-sun-deep);
  font-weight: 600;
  text-align: left;
}

/* ========== Video Section ========== */
.article-video {
  background: #1a1a1a;
  border-radius: 16px;
  margin: 2.5rem 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.video-header {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--color-sun-deep), var(--color-sun));
  color: white;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.video-header .video-icon {
  font-size: 1.5rem;
}

.video-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  color: white;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: #000;
}

.video-wrapper iframe,
.video-wrapper .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #292524, #1c1917);
  color: #a8a29e;
  text-align: center;
  padding: 2rem;
}

.video-placeholder .play-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.video-placeholder p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #d6d3d1;
}

.video-placeholder small {
  font-size: 0.85rem;
  color: #78716c;
}

.video-caption {
  padding: 1rem 1.5rem;
  background: #292524;
  color: #d6d3d1;
  font-size: 0.9rem;
  text-align: center;
}
