:root {
  /* Palette: Trust & Nature (Teal/Emerald) */
  --primary: #0d9488; /* teal-600 */
  --primary-hover: #0f766e; /* teal-700 */
  --accent: #ccfbf1; /* teal-100 */
  
  --bg: #ffffff;
  --bg-alt: #f8fafc; /* slate-50 */
  --text-main: #1e293b; /* slate-800 */
  --text-muted: #64748b; /* slate-500 */
  
  --dark-bg: #0f172a; /* slate-900 */
  --dark-text: #f1f5f9; /* slate-100 */
  
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0;
  color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-primary { color: var(--primary); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover { background-color: var(--primary-hover); box-shadow: var(--shadow-md); }

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  color: var(--text-main);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--primary); }

/* --- Header --- */
.site-header {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.main-nav a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .main-nav { display: none; } /* Simplified for mobile prototype */
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  text-align: center;
  overflow: hidden;
}

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

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-hover);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-warning {
  background: #fef3c7; /* amber-100 */
  color: #b45309; /* amber-700 */
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-bg-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.08) 0%, rgba(255,255,255,0) 60%);
  z-index: 1;
  pointer-events: none;
}

/* --- Features Section --- */
.features {
  padding: 80px 0;
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--bg-alt);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card p { color: var(--text-muted); flex-grow: 1; margin-bottom: 24px; }

.card-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}
.card-link:hover { text-decoration: underline; }

/* --- Mission Dark Section --- */
.mission-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  padding: 100px 0;
}

.mission-content {
  max-width: 720px;
}

.mission-dark h2 { color: white; }
.mission-dark p { color: #94a3b8; font-size: 1.15rem; margin-bottom: 2rem; }

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #cbd5e1;
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

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

.footer-brand { color: var(--text-muted); font-size: 0.9rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 24px;
}
.footer-links a:hover { color: var(--primary); }

/* --- BLOG STYLES --- */

/* Blog List Header */
.blog-header {
  background: var(--bg-alt);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-list {
  padding: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

/* Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--shadow-md);
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  transition: 0.2s ease;
}

.post-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-content h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.post-content h2 a:hover {
  color: var(--primary);
}

.post-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.read-more {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}
.read-more:hover { text-decoration: underline; }

/* Single Article Page */
.article-page {
  padding-bottom: 80px;
}

.article-header {
  background: var(--dark-bg);
  color: white;
  padding: 60px 0 80px;
  text-align: center;
}

.article-header h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 900px;
  margin: 0 auto;
}

.article-meta {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.article-container {
  max-width: 800px;
}

.article-featured-image {
  margin: -60px auto 40px; /* Pull up over header */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 2/1;
  background: #e2e8f0;
}

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

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body h2, .article-body h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.article-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-footer {

  margin-top: 60px;

  padding-top: 40px;

  border-top: 1px solid var(--border);

}



/* --- RELATED SECTION --- */

.related-section {

  background-color: var(--bg-alt);

  padding: 80px 0;

  border-top: 1px solid var(--border);

}



.related-section h3 {

  text-align: center;

  margin-bottom: 40px;

  font-size: 2rem;

}



.article-footer-nav {



  text-align: center;



  margin-top: 60px;



}







/* --- MAGAZINE LAYOUT --- */







/* Hero Section with Background Image */



.mag-hero {



  position: relative;



  min-height: 60vh;



  display: flex;



  align-items: center;



  justify-content: center;



  color: white;



  overflow: hidden;



  padding: 80px 24px;



}







.mag-hero-bg {



  position: absolute;



  top: 0;



  left: 0;



  width: 100%;



  height: 100%;



  background-size: cover;



  background-position: center;



  z-index: -2;



  filter: brightness(0.7);



}







.mag-hero-overlay {



  position: absolute;



  top: 0;



  left: 0;



  width: 100%;



  height: 100%;



  background: linear-gradient(to bottom, rgba(15,23,42,0.3), rgba(15,23,42,0.9));



  z-index: -1;



}







.mag-hero-content {



  position: relative;



  z-index: 2;



  text-align: center;



  max-width: 900px;



}







.mag-hero-content h1 {



  color: white;



  margin-bottom: 24px;



  text-shadow: 0 2px 4px rgba(0,0,0,0.3);



}







.mag-hero-content h1 a:hover {



  text-decoration: underline;



}







.mag-hero-content .lead {



  color: #e2e8f0;



  font-size: 1.25rem;



  margin-bottom: 32px;



  max-width: 700px;



  margin-left: auto;



  margin-right: auto;



}







/* Magazine Feed */



.mag-feed {



  padding: 80px 0;



}







.section-header.text-left {



  text-align: left;



  margin-left: 0;



  margin-bottom: 40px;



}







/* Mission Section */



.mag-mission {



  background: var(--bg-alt);



  padding: 100px 0;



  border-top: 1px solid var(--border);



}







.mission-grid {



  display: grid;



  grid-template-columns: 1fr 1fr;



  gap: 60px;



  align-items: center;



}







@media (max-width: 768px) {



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



}







.mission-text h2 {



  margin-bottom: 24px;



}







.mission-stats {



  display: grid;



  grid-template-columns: 1fr 1fr;



  gap: 32px;



}







.stat-item {



  background: var(--bg);



  padding: 32px;



  border-radius: var(--radius);



  border: 1px solid var(--border);



  text-align: center;



  box-shadow: var(--shadow-sm);



}







.stat-number {



  display: block;



  font-size: 3rem;



  font-weight: 800;



  color: var(--primary);



  line-height: 1;



  margin-bottom: 8px;



  font-family: var(--font-heading);



}







.stat-label {



  font-size: 0.9rem;



  color: var(--text-muted);



  font-weight: 600;



  text-transform: uppercase;



  letter-spacing: 0.05em;



}







/* --- ERROR PAGES --- */

.error-page {

  min-height: 60vh;

  display: flex;

  align-items: center;

  text-align: center;

  padding: 80px 0;

}



.error-code {

  font-size: clamp(4rem, 10vw, 8rem);

  font-weight: 800;

  color: var(--accent);

  line-height: 1;

  margin-bottom: 24px;

  font-family: var(--font-heading);

}



/* --- CONTACT PAGE --- */

.contact-section {

  padding: 80px 0;

  min-height: 70vh;

  display: flex;

  align-items: center;

  background: var(--bg-alt);

}



.contact-card {

  background: var(--bg);

  padding: 60px 40px;

  border-radius: var(--radius);

  border: 1px solid var(--border);

  text-align: center;

  max-width: 600px;

  margin: 0 auto;

  box-shadow: var(--shadow-lg);

}



.contact-details {

  margin-top: 40px;

  padding-top: 40px;

  border-top: 1px solid var(--border);

}



.icon-box {

  width: 64px;

  height: 64px;

  background: var(--accent);

  color: var(--primary);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 2rem;

  margin: 0 auto 24px;

}



.email-link {

  display: block;

  font-size: clamp(1.1rem, 4vw, 1.5rem);

  font-weight: 700;

  color: var(--primary);

  margin-bottom: 16px;

}

.email-link:hover {

  color: var(--primary-hover);

  text-decoration: underline;

}



.response-time {

  color: var(--text-muted);

  font-size: 0.9rem;

}
