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

:root {
    --primary: var(--brand-accent);
    --primary-dark:  var(--brand-primary);
    --text: var(--text-primary);
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    /*background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;*/
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 400px);
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.error {
    text-align: center;
    padding: 3rem;
    color: #dc2626;
    background: #fee;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--bg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
}

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

.post-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--bg-light);
    border-radius: 6px;
}

.post-card-image-placeholder {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 3rem;
}

.post-card-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: var(--brand-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.post-category:hover {
    background: var(--primary-dark);
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text);
}

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

.post-card h2 a {
    color: inherit;
    text-decoration: none;
    display: inline;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.post-image {
    margin: 2rem 0;
    text-align: left;
}

.post-image img {
    max-width: 100%;
    height: auto;
}

.post-image figcaption {
    margin-top: 0.rem;
    font-size: 0.875rem;
    color: #666;
}
.posts-list {
    display: grid;
    gap: 2rem;
}

.post-card-title a {
    text-decoration: none;
    color: #222;
}

.post-card-excerpt {
    color: #555;
    margin: 0.5rem 0;
}

.post-card-meta {
    font-size: 0.875rem;
    color: #888;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Single Post */
.post-header {
    background: var(--bg);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.post-header-container {
    max-width: 900px;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
}

.post-content {
    background: var(--bg);
    padding: 3rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

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

.post-body p {
    margin-bottom: 1rem;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.post-body h1 {
    font-size: 2.5rem;
}

.post-body h2 {
    font-size: 2rem;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body h4 {
    font-size: 1.25rem;
}

.post-body ul, .post-body ol {
    margin: 0rem 0 1.5rem 2rem;
}

.post-body li {
    margin-bottom: 0rem;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.post-body strong {
    font-weight: 700;
}

.post-body em {
    font-style: italic;
}

.post-body code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: 3rem;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
}

.author-box-info h3 {
    margin-bottom: 0.5rem;
}

.author-box-short {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

.no-posts p {
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    nav a {
        margin-left: 1rem;
    }

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

    .post-body {
        font-size: 1rem;
    }
}

.custom-html-block {
    margin: 2rem 0;
}

.cta-large {
  display: inline-block;
  padding: 1.5rem 4rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  /*background: linear-gradient(135deg, #7589d5, #43b0b3);*/
  background: var(--brand-primary);
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(67,176,179,0.5);
  transition: all 0.3s ease;
}

.cta-large:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(67,176,179,0.7);
}

.ctadiv {
    display: flex;
    align-items: center;
    justify-content: center;
}
  


.back-btn-div {
    max-width: 800px;
    margin: auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    color: #111827;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    background: #f9fafb;
  }

  .back-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .back-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.15s ease;
  }

  .back-btn:hover svg {
    transform: translateX(-3px);
  }

  .back-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
  }