:root {
  --primary: #031522;
  --secondary: #061B2B;
  --accent-gold: #D9A83E;
  --accent-cyan: #008FBE;
  --bg: #F5F5F2;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --gold-hover: #C49530;
  --cyan-hover: #0073A3;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
  --max-width: 1100px;
  --header-height: 70px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }

a { color: var(--accent-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-hover); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: center;
  line-height: 1.4;
}
.btn-cyan { background: var(--accent-cyan); color: #fff; }
.btn-cyan:hover { background: var(--cyan-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,143,190,0.3); }
.btn-gold { background: var(--accent-gold); color: var(--primary); }
.btn-gold:hover { background: var(--gold-hover); color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217,168,62,0.3); }
.btn-outline { background: transparent; color: var(--accent-gold); border: 2px solid var(--accent-gold); }
.btn-outline:hover { background: var(--accent-gold); color: var(--primary); }

.gold { color: var(--accent-gold); }
.cyan { color: var(--accent-cyan); }
.text-center { text-align: center; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-bottom: 3px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--accent-gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-gold); }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; background: none; border: none; padding: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 50%, rgba(217,168,62,0.08) 0%, transparent 60%);
}
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 .gold { display: block; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections */
.section { padding: 60px 0; }
.section-title { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 40px; text-align: center; }
.section-title span { border-bottom: 3px solid var(--accent-gold); padding-bottom: 8px; }

/* Blog Cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--accent-gold); }
.blog-card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--primary); line-height: 1.3; }
.blog-card h2 a { color: var(--primary); }
.blog-card h2 a:hover { color: var(--accent-gold); }
.blog-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; flex: 1; }
.blog-card .meta { font-size: 12px; color: var(--text-light); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.blog-card .meta .date { display: inline-block; }

/* Sidebar Layout */
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.sidebar { position: sticky; top: calc(var(--header-height) + 20px); align-self: start; }
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.sidebar-widget h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-gold); }
.sidebar-widget p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.sidebar-widget .btn { width: 100%; }
.sidebar-widget .book-cover { margin-bottom: 16px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Article Page */
.article-page { padding: 40px 0; }
.article-header { margin-bottom: 32px; }
.article-header .breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.article-header .breadcrumb a { color: var(--text-light); }
.article-header .breadcrumb a:hover { color: var(--accent-gold); }
.article-header h1 { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 12px; }
.article-header .meta { font-size: 13px; color: var(--text-light); }
.article-header .meta span { margin-right: 16px; }
.article-content { font-size: 16px; line-height: 1.8; }
.article-content h2 { font-size: 24px; font-weight: 700; color: var(--primary); margin: 32px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 600; color: var(--primary); margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content code {
  background: #E8E8E3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.article-content pre {
  background: var(--primary);
  color: #E8E8E3;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 3px solid var(--accent-gold);
}
.article-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  margin: 20px 0;
  background: rgba(217,168,62,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}
.article-content img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }
.article-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  margin: 40px 0;
}
.article-cta h3 { font-size: 22px; margin-bottom: 12px; color: var(--accent-gold); }
.article-cta p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }

/* Book Page */
.book-page { padding: 60px 0; }
.book-showcase { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.book-cover-large { border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.book-info h1 { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.book-info .subtitle { font-size: 18px; color: var(--accent-cyan); font-weight: 600; margin-bottom: 24px; }
.book-info .description p { margin-bottom: 16px; line-height: 1.8; }
.book-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.book-highlight-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  color: var(--text-light);
}
.book-highlight-item strong { color: var(--primary); display: block; margin-bottom: 4px; }
.book-price { font-size: 36px; font-weight: 800; color: var(--accent-gold); margin: 24px 0 8px; }
.book-price-note { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.book-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* About Page */
.about-page { padding: 60px 0; }
.about-content { max-width: 700px; margin: 0 auto; text-align: center; }
.about-content h1 { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.about-content p { margin-bottom: 20px; color: var(--text-light); font-size: 16px; line-height: 1.8; }
.about-content .highlight { color: var(--accent-gold); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  border-top: 3px solid var(--accent-gold);
  margin-top: 60px;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .logo { font-size: 20px; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* AdSense Placeholders */
.ad-placeholder {
  background: #F0F0EC;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  margin: 20px 0;
}

/* Responsive */
/* Subscription Form */
.subscribe-form input[type="text"],
.subscribe-form input[type="tel"],
.subscribe-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input:focus {
  border-color: var(--accent-gold);
}
.radio-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}
.radio-label input[type="radio"] {
  accent-color: var(--accent-gold);
}
.subscribe-btn {
  width: 100%;
  font-size: 14px;
  padding: 10px 20px;
}
.subscribe-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .book-showcase { grid-template-columns: 1fr; text-align: center; }
  .book-highlights { grid-template-columns: 1fr; }
  .book-cover-large { max-width: 250px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 3px solid var(--accent-gold); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: flex; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .article-header h1 { font-size: 24px; }
}
@media (min-width: 769px) {
  .menu-toggle { display: none; }
}
