/* =========================================================
   Sea Life Planet — Design System v2
   System font stack, ocean palette, fully responsive
   ========================================================= */

:root {
  --color-primary: #0a6e85;
  --color-primary-dark: #06495a;
  --color-primary-mid: #0d8fa8;
  --color-primary-light: #e6f4f7;
  --color-accent: #bf4c18;
  --color-accent-dark: #9e3c0e;
  --color-text: #1a2b32;
  --color-text-light: #5a6b73;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9fb;
  --color-border: #dde7ea;
  --color-success: #2e8b57;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1180px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 2px 10px rgba(10, 60, 75, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 60, 75, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 60, 75, 0.16);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; color: var(--color-primary-dark); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 0.6em; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); margin: 1.4em 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--color-border); padding: 0.6em 0.8em; text-align: left; }
th { background: var(--color-primary-light); color: var(--color-primary-dark); }
blockquote {
  margin: 1.4em 0; padding: 0.8em 1.2em;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-light);
}
code { background: var(--color-bg-alt); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-primary);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75em 1.6em; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-lg { padding: 0.9em 2em; font-size: 1rem; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 8px 24px rgba(10,110,133,0.35); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); box-shadow: 0 8px 24px rgba(255,122,69,0.4); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-ghost {
  background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.8); }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10,60,75,0.12); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 0; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem;
  color: var(--color-primary-dark); flex-shrink: 0;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.82; text-decoration: none; }
.logo svg { flex-shrink: 0; }

.nav-links {
  display: flex; gap: 4px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; color: var(--color-text); font-weight: 600;
  font-size: 0.82rem; padding: 6px 10px; border-radius: var(--radius);
  position: relative; transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 10px; right: 10px;
  height: 2px; background: var(--color-accent); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover { color: var(--color-primary); background: var(--color-primary-light); text-decoration: none; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--color-primary); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: 2px solid var(--color-border);
  cursor: pointer; padding: 8px 10px; border-radius: var(--radius);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.nav-toggle:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.hamburger-line {
  display: block; width: 22px; height: 2px; background: var(--color-primary-dark);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 300;
  visibility: hidden; opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.mobile-nav-overlay.open { visibility: visible; opacity: 1; }
.mobile-nav-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(6, 73, 90, 0.55); backdrop-filter: blur(4px);
}
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--color-bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(10,60,75,0.18);
}
.mobile-nav-overlay.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}
.mobile-nav-header .logo { color: #fff; }
.mobile-nav-header .logo svg { stroke: #fff; }
.mobile-nav-close {
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.28); }
.mobile-nav-close svg { width: 20px; height: 20px; }

.mobile-nav-links {
  flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 12px;
}
.mobile-nav-links li { }
.mobile-nav-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius);
  color: var(--color-text); font-weight: 600; font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-links li:last-child a { border-bottom: none; }
.mobile-nav-links a:hover, .mobile-nav-links a[aria-current="page"] {
  background: var(--color-primary-light); color: var(--color-primary); text-decoration: none;
}
.mobile-nav-footer {
  padding: 16px 20px; border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt); font-size: 0.85rem; color: var(--color-text-light);
}

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   HERO — HOMEPAGE
   ========================================================= */
.hero-home {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #04303c 0%, #06495a 35%, #0a6e85 70%, #0d8fa8 100%);
  color: #fff; padding: 80px 0 100px;
  text-align: center;
}

/* Floating bubbles */
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  animation: bubbleRise linear infinite;
}
.b1  { width: 40px;  height: 40px;  left: 8%;   bottom: -60px; animation-duration: 12s; animation-delay: 0s; }
.b2  { width: 18px;  height: 18px;  left: 18%;  bottom: -40px; animation-duration: 9s;  animation-delay: 2s; }
.b3  { width: 60px;  height: 60px;  left: 32%;  bottom: -80px; animation-duration: 15s; animation-delay: 1s; }
.b4  { width: 25px;  height: 25px;  left: 50%;  bottom: -50px; animation-duration: 11s; animation-delay: 3.5s; }
.b5  { width: 50px;  height: 50px;  left: 65%;  bottom: -70px; animation-duration: 13s; animation-delay: 0.8s; }
.b6  { width: 15px;  height: 15px;  left: 78%;  bottom: -35px; animation-duration: 8s;  animation-delay: 4s; }
.b7  { width: 35px;  height: 35px;  left: 88%;  bottom: -55px; animation-duration: 10s; animation-delay: 2.5s; }
.b8  { width: 22px;  height: 22px;  left: 42%;  bottom: -45px; animation-duration: 14s; animation-delay: 6s; }
.b9  { width: 70px;  height: 70px;  left: 12%;  bottom: -90px; animation-duration: 18s; animation-delay: 1.5s; }
.b10 { width: 12px;  height: 12px;  left: 72%;  bottom: -30px; animation-duration: 7s;  animation-delay: 5s; }

@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) scale(1.15); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.95); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 18px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.hero-home h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 760px; margin: 0 auto 0.5em; text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-home p {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85);
  max-width: 620px; margin: 0 auto 2em; line-height: 1.7;
}
.hero-home .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: inline-flex; gap: 0; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-xl);
  backdrop-filter: blur(10px); overflow: hidden;
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 32px; gap: 2px;
}
.hero-stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.2); }
.hero-stat strong { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; }

/* Wave divider */
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0; pointer-events: none;
}
.hero-wave svg { width: 100%; height: 60px; }

@media (max-width: 640px) {
  .hero-home { padding: 60px 0 80px; }
  .hero-stats { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-stat:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .hero-stat { padding: 12px 24px; }
}

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.categories-section { padding: 64px 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.category-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 28px 20px 24px;
  border-radius: var(--radius-lg); text-decoration: none; color: #fff;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; border: none;
}
.category-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--transition);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; color: #fff; }
.category-card:hover::before { background: rgba(255,255,255,0.08); }

/* Per-category gradient backgrounds */
.cat-0 { background: linear-gradient(135deg, #0a6e85, #0d8fa8); }
.cat-1 { background: linear-gradient(135deg, #1a6b3a, #2e9c59); }
.cat-2 { background: linear-gradient(135deg, #6b3fa0, #9b5de5); }
.cat-3 { background: linear-gradient(135deg, #2d5a27, #52a447); }
.cat-4 { background: linear-gradient(135deg, #2d3748, #4a5568); }
.cat-5 { background: linear-gradient(135deg, #065f46, #059669); }
.cat-6 { background: linear-gradient(135deg, #b45309, #d97706); }
.cat-7 { background: linear-gradient(135deg, #3a5c1a, #6b9e2f); }
.cat-8 { background: linear-gradient(135deg, #1a3a6b, #2563eb); }

.cat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.category-card:hover .cat-icon { transform: scale(1.1); background: rgba(255,255,255,0.3); }
.cat-icon svg { color: #fff; }

.category-card h3 {
  margin: 0; font-size: 0.95rem; color: #fff;
  font-weight: 700; line-height: 1.3;
}
.cat-arrow {
  width: 18px; height: 18px; opacity: 0.7;
  transition: transform var(--transition), opacity var(--transition);
}
.category-card:hover .cat-arrow { transform: translateX(4px); opacity: 1; }

@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 20px 12px 18px; }
}

/* =========================================================
   CARDS / ARTICLE GRIDS
   ========================================================= */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none; color: var(--color-text);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }

.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img-wrap img { transform: scale(1.05); }
.card-overlay {
  position: absolute; inset: 0; background: rgba(6,73,90,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.card:hover .card-overlay { opacity: 1; }
.card-read-more {
  color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 8px 20px; border: 2px solid rgba(255,255,255,0.8);
  border-radius: 999px; backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.1);
  transform: translateY(6px); transition: transform 0.25s ease 0.05s;
}
.card:hover .card-read-more { transform: translateY(0); }

.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.35; }
.card-body p { color: var(--color-text-light); font-size: 0.9rem; margin: 0; flex: 1; }
.card-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-primary); background: var(--color-primary-light);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; align-self: flex-start;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-header h2 { margin-top: 0; }
.section-header p { color: var(--color-text-light); font-size: 1.05rem; margin: 0; }
.section-cta { text-align: center; margin-top: 36px; }

/* =========================================================
   WHY SECTION (homepage)
   ========================================================= */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.why-content h2:first-child { margin-top: 0; }
.why-features { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--color-bg-alt);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.feature-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
}
.feature-item strong { display: block; font-size: 0.98rem; color: var(--color-primary-dark); margin-bottom: 4px; }
.feature-item p { margin: 0; font-size: 0.88rem; color: var(--color-text-light); }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs { font-size: 0.85rem; color: var(--color-text-light); margin: 18px 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--color-border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs li:last-child { color: var(--color-text); font-weight: 600; }

/* =========================================================
   HUB HERO (category pages)
   ========================================================= */
.hub-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 48px 0 56px; border-bottom: 1px solid var(--color-border); position: relative; overflow: hidden;
}
.hub-hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.hub-hero .breadcrumbs a { color: rgba(255,255,255,0.7); }
.hub-hero .breadcrumbs { color: rgba(255,255,255,0.7); }
.hub-hero .breadcrumbs li:last-child { color: #fff; }
.hub-hero .breadcrumbs li::after { color: rgba(255,255,255,0.35); }
.hub-hero h1 { color: #fff; margin-bottom: 0.4em; text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.hub-hero .lead { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 760px; line-height: 1.7; margin: 0; }

/* =========================================================
   HUB FILTER TABS
   ========================================================= */
.hub-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px;
  padding: 16px 0; border-bottom: 2px solid var(--color-border);
}
.hub-filter-btn {
  padding: 8px 20px; border-radius: 999px; border: 2px solid var(--color-border);
  background: #fff; color: var(--color-text-light); font-weight: 600;
  font-size: 0.88rem; cursor: pointer; transition: all var(--transition);
  font-family: var(--font-sans);
}
.hub-filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.hub-filter-btn.active {
  background: var(--color-primary); border-color: var(--color-primary);
  color: #fff; box-shadow: 0 4px 12px rgba(10,110,133,0.25);
}
.hub-group { transition: opacity 0.2s ease; }
.hub-group.hidden { display: none; }

/* =========================================================
   ARTICLE LAYOUT
   ========================================================= */
.article-wrap { padding: 28px 0 60px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
@media (max-width: 920px) { .article-grid { grid-template-columns: 1fr; } }

.article-header { margin-bottom: 24px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  color: var(--color-text-light); font-size: 0.88rem; margin: 12px 0 20px;
}
.article-meta .author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--color-text); }
.article-meta .author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.article-hero img { border-radius: var(--radius-lg); margin-bottom: 1.4em; }
.article-hero figcaption { font-size: 0.82rem; color: var(--color-text-light); text-align: center; margin-top: -1em; margin-bottom: 1.4em; }

/* TOC */
.toc { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px 22px; margin: 1.6em 0; }
.toc h2 { margin-top: 0; font-size: 1.05rem; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.toc a { font-size: 0.92rem; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-box {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px;
  background: #fff; position: sticky; top: 90px;
}
.sidebar-box h3 { margin-top: 0; font-size: 1rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.sidebar-box li:last-child { border-bottom: none; margin-bottom: 0; }

/* Quick facts box */
.quick-facts { background: var(--color-primary-light); border-radius: var(--radius-lg); padding: 18px 22px; margin: 1.4em 0; }
.quick-facts h2 { margin-top: 0; font-size: 1.05rem; color: var(--color-primary-dark); }
.quick-facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.quick-facts dt { font-weight: 700; color: var(--color-primary-dark); }
.quick-facts dd { margin: 0; }

/* FAQ */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 14px 18px; background: var(--color-bg-alt);
  list-style: none; position: relative; padding-right: 40px;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--color-primary-light); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; color: var(--color-primary); font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 14px 18px; border-top: 1px solid var(--color-border); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Affiliate card */
.affiliate-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px;
  margin: 1.6em 0; background: linear-gradient(135deg, #fff 0%, var(--color-bg-alt) 100%);
}
@media (max-width: 540px) { .affiliate-card { grid-template-columns: 1fr; text-align: center; } }
.affiliate-card img { border-radius: var(--radius); }
.affiliate-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.affiliate-card p { font-size: 0.92rem; color: var(--color-text-light); margin: 0 0 12px; }
.affiliate-disclosure { font-size: 0.78rem; color: var(--color-text-light); font-style: italic; margin-top: 4px; }

/* Sources */
.sources { font-size: 0.85rem; color: var(--color-text-light); border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 2em; }
.sources ol { padding-left: 1.2em; }

/* Author bio box */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 20px; margin: 2.5em 0; background: var(--color-bg-alt);
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.author-box p { margin: 0; font-size: 0.92rem; color: var(--color-text-light); }
@media (max-width: 480px) { .author-box { flex-direction: column; align-items: center; text-align: center; } }

/* Related articles */
.related-articles { margin: 2.5em 0; }
.related-articles h2 { margin-top: 0; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff; border-radius: var(--radius-xl); padding: 40px 32px;
  text-align: center; margin: 2.5em 0; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.newsletter h2 { color: #fff; margin-top: 0; }
.newsletter p { color: rgba(255,255,255,0.85); }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.newsletter input[type="email"] {
  padding: 0.75em 1.2em; border-radius: 999px; border: none;
  min-width: 280px; font-size: 0.95rem; font-family: var(--font-sans);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.85); padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { color: #fff; font-size: 0.9rem; margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.85); font-size: 0.88rem; transition: color var(--transition); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 2px; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.footer-brand svg { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.75);
}
.footer-disclosure { font-size: 0.8rem; color: rgba(255,255,255,0.75); max-width: 780px; margin: 0 auto 28px; text-align: center; line-height: 1.6; }
.footer-disclosure a { color: rgba(255,255,255,0.9); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 2px; }
.footer-disclosure a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-links a:hover { background: rgba(255,255,255,0.22); color: #fff; transform: translateY(-2px); }

/* =========================================================
   404
   ========================================================= */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 5rem; color: var(--color-primary); }

/* =========================================================
   ARTICLE CONTENT (inside article pages)
   ========================================================= */
.article-content { max-width: 100%; }
.article-content h2:first-child { margin-top: 0; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   FUN FACTS CAROUSEL
   ========================================================= */
.facts-section {
  background: linear-gradient(135deg, #04303c, #06495a);
  padding: 20px 0;
}
.facts-inner {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-xl); padding: 18px 24px;
}
.facts-label {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  color: var(--color-accent); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap;
}
.facts-track {
  flex: 1; min-height: 32px; display: flex; align-items: center; overflow: hidden;
}
.fact-slide {
  display: none; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.88); font-size: 0.94rem; line-height: 1.5;
}
.fact-slide strong { color: #fff; }
.fact-slide.active { display: flex; animation: factIn 0.4s ease; }
@keyframes factIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fact-emoji { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.facts-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fact-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: white; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); line-height: 1; padding: 0;
}
.fact-btn:hover { background: rgba(255,255,255,0.25); }
.fact-dots { display: flex; gap: 2px; }
.fact-dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: none; padding: 0; cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.fact-dot::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%); transition: background var(--transition), transform var(--transition);
}
.fact-dot.active::after { background: var(--color-accent); transform: translate(-50%, -50%) scale(1.3); }

@media (max-width: 700px) {
  .facts-inner { flex-wrap: wrap; gap: 12px; }
  .facts-label { width: 100%; }
  .facts-track { width: 100%; order: 3; }
  .facts-controls { margin-left: auto; }
}

/* =========================================================
   INTERACTIVE FISH TANK
   ========================================================= */
.tank-section { position: relative; }
.tank-hint {
  position: absolute; top: 14px; right: 24px; z-index: 10;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.8); font-size: 0.76rem; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15); pointer-events: none;
  animation: hintPulse 3s ease-in-out infinite;
}
@keyframes hintPulse {
  0%,100% { opacity: 0.9; } 50% { opacity: 0.5; }
}

.fish-tank {
  position: relative; width: 100%; height: 360px; overflow: hidden;
  background: linear-gradient(180deg,
    #021e28 0%,
    #032d3d 20%,
    #0a4f65 55%,
    #0a6070 80%,
    #063040 100%
  );
  cursor: default;
}

/* Caustic light rays */
.tank-rays { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ray {
  position: absolute; top: -20px; width: 60px; opacity: 0.04;
  background: linear-gradient(180deg, white, transparent);
  animation: rayWave 6s ease-in-out infinite;
  transform-origin: top center;
}
.r1 { left: 10%; height: 250px; animation-delay: 0s; }
.r2 { left: 28%; height: 300px; width: 80px; animation-delay: 1.2s; }
.r3 { left: 55%; height: 200px; animation-delay: 2.4s; }
.r4 { left: 76%; height: 280px; width: 70px; animation-delay: 0.8s; }
@keyframes rayWave {
  0%,100% { transform: rotate(-4deg); opacity: 0.04; }
  50%      { transform: rotate(4deg);  opacity: 0.07; }
}

/* Sand floor */
.tank-sand {
  position: absolute; bottom: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(180deg, transparent 0%, #1a4a30 30%, #0d3020 100%);
}
.sand-rock {
  position: absolute; border-radius: 50%; background: #1e5c38;
  bottom: 14px;
}
.rock1 { left: 22%; width: 28px; height: 18px; }
.rock2 { left: 52%; width: 20px; height: 14px; background: #1a5030; }
.rock3 { left: 80%; width: 36px; height: 22px; }

/* Seaweed */
.seaweed {
  position: absolute; bottom: 44px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #2aaa66, #1a7a46);
  transform-origin: bottom center;
  animation: seaweedSway ease-in-out infinite;
}
.sw1 { left: 5%;  width: 8px;  height: 60px; animation-duration: 3.2s; animation-delay: 0s; }
.sw2 { left: 8%;  width: 6px;  height: 40px; animation-duration: 2.8s; animation-delay: 0.6s; }
.sw3 { left: 38%; width: 9px;  height: 55px; animation-duration: 3.5s; animation-delay: 1s; }
.sw4 { left: 64%; width: 7px;  height: 45px; animation-duration: 3s;   animation-delay: 0.4s; }
.sw5 { left: 67%; width: 5px;  height: 30px; animation-duration: 2.6s; animation-delay: 1.2s; }
.sw6 { left: 88%; width: 8px;  height: 50px; animation-duration: 3.8s; animation-delay: 0.2s; }
@keyframes seaweedSway {
  0%,100% { transform: rotate(-10deg); }
  50%      { transform: rotate(10deg); }
}

/* Coral decorations (pure CSS) */
.tank-coral {
  position: absolute; bottom: 42px;
  border-radius: 50% 50% 0 0;
}
.coral-a {
  left: 14%; width: 18px; height: 30px;
  background: radial-gradient(circle at 50% 100%, #cc3388, #aa1166);
  box-shadow: 8px 0 0 #cc3388, -8px 0 0 #cc3388, 4px -14px 0 #dd44aa, -4px -14px 0 #dd44aa;
}
.coral-b {
  left: 50%; width: 14px; height: 24px;
  background: radial-gradient(circle at 50% 100%, #ff6b35, #dd4400);
  box-shadow: 6px 0 0 #ff6b35, -6px 0 0 #ff6b35, 3px -12px 0 #ff8855;
}
.coral-c {
  left: 78%; width: 16px; height: 26px;
  background: radial-gradient(circle at 50% 100%, #aa44cc, #882299);
  box-shadow: 7px 0 0 #aa44cc, -7px 0 0 #aa44cc, 3px -13px 0 #bb55dd;
}

/* Tank bubbles */
.tank-bubble {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  animation: tankBubUp linear infinite;
}
.tb1 { width: 9px;  height: 9px;  left: 9%;  bottom: 30px; animation-duration: 5.5s; animation-delay: 0s; }
.tb2 { width: 6px;  height: 6px;  left: 30%; bottom: 30px; animation-duration: 4.2s; animation-delay: 1.2s; }
.tb3 { width: 13px; height: 13px; left: 55%; bottom: 30px; animation-duration: 6.5s; animation-delay: 0.7s; }
.tb4 { width: 7px;  height: 7px;  left: 74%; bottom: 30px; animation-duration: 5s;   animation-delay: 2.5s; }
.tb5 { width: 10px; height: 10px; left: 91%; bottom: 30px; animation-duration: 4.8s; animation-delay: 1.8s; }
@keyframes tankBubUp {
  0%   { transform: translateY(0) translateX(0);    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.5; }
  100% { transform: translateY(-360px) translateX(12px); opacity: 0; }
}

/* Fish wrappers — swims via left position animation */
.fish-wrap {
  position: absolute; will-change: left;
}
.fw-1 { top: 18%; left: 0; animation: swimLR 20s linear infinite; will-change: transform; }
.fw-2 { top: 42%; left: 0; animation: swimRL 26s linear infinite; will-change: transform; }
.fw-3 { top: 62%; left: 0; animation: swimLR 16s linear infinite; animation-delay: -8s; will-change: transform; }
.fw-4 { top: 28%; left: 0; animation: swimRL 22s linear infinite; animation-delay: -4s; will-change: transform; }

@keyframes swimLR {
  0%   { transform: translateX(-110px); }
  100% { transform: translateX(calc(100vw + 110px)); }
}
@keyframes swimRL {
  0%   { transform: translateX(calc(100vw + 110px)) scaleX(-1); }
  100% { transform: translateX(-110px) scaleX(-1); }
}

/* Fish button (remove default button styles) */
.tank-fish {
  background: none; border: none; padding: 0; cursor: pointer; display: block;
  animation: fishBob 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
  transition: filter 0.2s;
}
.tank-fish:hover { filter: drop-shadow(0 4px 14px rgba(255,255,255,0.5)) brightness(1.1); }
.tank-fish:focus { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 4px; border-radius: 4px; }
.tank-fish.jump { animation: fishJump 0.55s ease-out; }

@keyframes fishBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes fishJump {
  0%   { transform: translateY(0) rotate(0deg); }
  28%  { transform: translateY(-46px) rotate(-18deg); }
  55%  { transform: translateY(-22px) rotate(12deg); }
  78%  { transform: translateY(-8px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Turtle */
.turtle-wrap {
  position: absolute; bottom: 54px; left: 0;
  animation: turtleWalk 40s linear infinite; animation-delay: -10s; will-change: transform;
}
@keyframes turtleWalk {
  0%   { transform: translateX(-100px); }
  100% { transform: translateX(calc(100vw + 100px)); }
}
.tank-turtle {
  background: none; border: none; padding: 0; cursor: pointer; display: block;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  animation: turtleWobble 4s ease-in-out infinite;
  transition: filter 0.2s;
}
.tank-turtle:hover { filter: drop-shadow(0 3px 12px rgba(255,255,255,0.4)) brightness(1.1); }
.tank-turtle:focus { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 4px; border-radius: 4px; }
.tank-turtle.spin { animation: turtleSpin 0.6s ease; }
@keyframes turtleWobble {
  0%,100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-4px); }
}
@keyframes turtleSpin {
  0%   { transform: rotate(0deg) scale(1); }
  30%  { transform: rotate(180deg) scale(1.15); }
  60%  { transform: rotate(360deg) scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Ripple click effect */
.ripple {
  position: fixed; pointer-events: none; z-index: 9999;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.6);
  animation: rippleOut 0.7s ease-out forwards;
  transform: translate(-50%, -50%);
}
@keyframes rippleOut {
  from { width: 0;    height: 0;    opacity: 1; }
  to   { width: 80px; height: 80px; opacity: 0; }
}

/* Fish speech bubble */
.fish-speech {
  position: fixed; z-index: 9998; pointer-events: none;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border: 2px solid var(--color-primary-light); border-radius: var(--radius-lg);
  padding: 12px 16px; max-width: 220px; font-size: 0.84rem;
  color: var(--color-text); box-shadow: var(--shadow-lg);
  animation: speechPop 3.2s ease forwards;
  transform: translate(-50%, calc(-100% - 18px));
}
.fish-speech strong { color: var(--color-primary-dark); display: block; margin-bottom: 3px; font-size: 0.88rem; }
.fish-speech::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 8px solid transparent;
  border-top-color: rgba(255,255,255,0.96);
}
@keyframes speechPop {
  0%  { opacity: 0; transform: translate(-50%, calc(-100% - 24px)) scale(0.85); }
  12% { opacity: 1; transform: translate(-50%, calc(-100% - 18px)) scale(1); }
  75% { opacity: 1; }
  100%{ opacity: 0; transform: translate(-50%, calc(-100% - 30px)) scale(0.95); }
}

/* Wave base under tank */
.tank-base { background: #0a4f65; margin-top: -1px; }

/* =========================================================
   CTA BAND (homepage bottom)
   ========================================================= */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-xl); padding: 40px 44px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.cta-band-text h2 { color: #fff; margin: 0 0 10px; font-size: 1.6rem; }
.cta-band-text p  { color: rgba(255,255,255,0.82); margin: 0; max-width: 520px; }
.cta-band-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }
.cta-band .btn-outline {
  color: #fff; border-color: rgba(255,255,255,0.5);
}
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.85); }

@media (max-width: 780px) {
  .cta-band { flex-direction: column; text-align: center; padding: 32px 24px; }
  .cta-band-actions { justify-content: center; }
}
