@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --navy: #1b2838;
  --cream: #fdf8f0;
  --orange: #e8733a;
  --orange-dark: #d4612c;
  --orange-light: #f4a97a;
  --text-dark: #2c2c2c;
  --text-muted: #6b7280;
  --white: #ffffff;
  --border: #e5e0d8;
  --shadow-sm: 0 1px 3px rgba(27, 40, 56, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 40, 56, 0.1);
  --shadow-lg: 0 8px 30px rgba(27, 40, 56, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.3;
  color: var(--navy);
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange-dark);
}

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

/* ===== SITE HEADER ===== */

.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.header-brand:hover {
  color: var(--orange-light);
}

.header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}

.header-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-tagline {
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  opacity: 0.7;
  font-style: italic;
  margin-top: 1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  background: rgba(232, 115, 58, 0.2);
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== MAIN CONTENT ===== */

.site-main {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ===== BLOG CARDS ===== */

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 32px;
}

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

.blog-card a {
  text-decoration: none;
  color: inherit;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px 28px 28px;
}

.blog-card-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 8px;
  display: inline-block;
}

.blog-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--orange);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== ARTICLE STYLES ===== */

article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

article p {
  margin-bottom: 20px;
}

article img {
  border-radius: 10px;
  width: 100%;
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}

article ul, article ol {
  margin: 16px 0 24px 24px;
}

article li {
  margin-bottom: 8px;
}

article blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(232, 115, 58, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.article-meta .tag {
  background: rgba(232, 115, 58, 0.1);
  color: var(--orange);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== AUTHOR BOX ===== */

.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.author-box-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  flex-shrink: 0;
}

.author-box-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.author-box-info .author-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.author-box-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== COMMENTS SECTION ===== */

.comments-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}

.comments-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.comment {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.comment-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.no-comments {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== COMMENT FORM ===== */

.comment-form {
  margin-top: 32px;
}

.comment-form h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 115, 58, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-submit {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 32px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 4px;
}

.form-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-message {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== SOCIAL LINKS ===== */

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.1);
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== COOKIE BANNER ===== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  min-width: 240px;
}

.cookie-banner a {
  color: var(--orange-light);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: var(--orange);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--orange-dark);
}

.cookie-btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-decline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* ===== PAGE STYLES ===== */

.page-header {
  margin-bottom: 36px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb .sep {
  opacity: 0.4;
}

/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}

.pagination a {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--orange);
  color: var(--white);
}

.pagination .current {
  background: var(--orange);
  color: var(--white);
}

/* ===== RELATED POSTS ===== */

.related-posts {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}

.related-posts h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-grid .blog-card {
  margin-bottom: 0;
}

.related-grid .blog-card-image {
  height: 150px;
}

.related-grid .blog-card-body {
  padding: 16px 20px 20px;
}

.related-grid .blog-card-title {
  font-size: 1.05rem;
}

/* ===== SIDEBAR LAYOUT (optional 2-column) ===== */

.layout-with-sidebar {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 10px 14px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .site-main {
    padding: 28px 16px;
  }

  article h1 {
    font-size: 1.65rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-card-image {
    height: 180px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 1.15rem;
  }

  .header-avatar {
    width: 36px;
    height: 36px;
  }

  article h1 {
    font-size: 1.4rem;
  }

  .blog-card-body {
    padding: 18px 20px 22px;
  }

  .blog-card-title {
    font-size: 1.2rem;
  }
}
