:root {
    /* Colors - Override per domain */
    --color-primary: #502878;
    --color-accent: #8040a0;
    --color-bg-1: 10, 5, 15;
    --color-bg-2: 25, 15, 35;
    --color-bg-3: 45, 25, 60;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(var(--color-bg-3), 0.4);

    /* Typography */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Monaco, "Cascadia Code", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: #f5f5f7;
    background: #0a0a0f;
    background-image:
        radial-gradient(at 0% 0%, rgba(var(--color-bg-3), 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(var(--color-bg-2), 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(var(--color-bg-3), 0.3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(var(--color-bg-2), 0.2) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Glass Panel Wrapper */
.glass-panel {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 2px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    padding: 12px;
    margin-bottom: 32px;
}


@media (min-width: 640px) {
    .glass-panel {
        padding: 16px;
    }
}

@media (min-width: 768px) {
    .glass-panel {
        padding: 16px;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-slogan {
    font-style: italic;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #ffffff !important;
}

/* Breadcrumb */
.breadcrumb {
    padding: 24px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb li::after {
    content: "›";
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

.breadcrumb li:last-child::after {
    display: none;
}

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

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb li[aria-current="page"] {
    color: rgba(255, 255, 255, 0.9);
}

/* Homepage Hero */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-bg-3), 0.4) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-text {
        flex: 1;
        max-width: 600px;
    }

    .hero-video {
        flex-shrink: 0;
        width: 400px;
    }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Video */
.hero-video .video-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-video .video-link:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(var(--color-bg-3), 0.3);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}

.hero-video .video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.hero-video .video-link:hover .video-overlay {
    opacity: 1;
    transform: translateY(0);
}

.hero-video .video-overlay span {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    padding: 18px 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Posts Grid */
.latest-posts {
    padding: 0;
}

.blog-list {
    padding: 0;
}

.latest-posts h2, .list-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.03em;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--color-bg-3), 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--color-bg-3), 0.4);
    box-shadow: var(--shadow-md), 0 0 32px rgba(var(--color-bg-3), 0.2);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card .post-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    margin: 0;
    line-height: 0;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -50px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.post-info h2, .post-info h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-info h2 a, .post-info h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-info h2 a:hover, .post-info h3 a:hover {
    color: var(--color-accent);
}

.post-info time {
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.post-info .excerpt {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.read-more {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 10px;
}

.view-all {
    display: block;
    text-align: center;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 32px;
    transition: opacity 0.2s ease;
}

.view-all:hover {
    opacity: 0.8;
}

/* Blog Post */
.blog-post {
    margin: 0 auto;
}

.post-header {
    margin-bottom: 48px;
}

.post-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-header time {
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.post-meta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.category:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
}

.post-image {
    margin: 48px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

/* Single post image - floating on desktop/tablet only */
.post-image-single {
    width: 100%;
    margin-bottom: 24px;
}

.post-image-single img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .post-image-single {
        float: left;
        width: 300px;
        margin-right: 24px;
        margin-bottom: 16px;
    }
}

.post-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content h2 {
    margin-top: 56px;
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.post-content h3 {
    margin-top: 48px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.post-content h4 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--color-bg-3), 0.4);
    transition: all 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: var(--color-accent);
    color: #ffffff;
}

.post-content strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.post-content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.post-content ul, .post-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.post-content li {
    margin-bottom: 12px;
    padding-left: 8px;
}

.post-content ul li {
    list-style-type: disc;
}

.post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
}

.post-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.post-content pre code {
    background: none;
    padding: 0;
    border: none;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Post Footer CTA */
.post-footer {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta {
    background: linear-gradient(135deg, rgba(var(--color-bg-3), 0.15) 0%, rgba(var(--color-bg-2), 0.1) 100%);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--color-bg-3), 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.cta h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}

.cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    font-size: 1.125rem;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: relative;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* SEO Sections */
.seo-content {
    padding: 80px 0;
}

.seo-section {
    max-width: 900px;
    margin: 0 auto 80px;
}

.seo-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.seo-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.8;
}

.seo-text p {
    margin-bottom: 20px;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -0.03em;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 36px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--color-bg-3), 0.3);
}

.faq-item h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-accent);
    letter-spacing: -0.01em;
}

.faq-answer {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-bg-3), 0.3) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.final-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.final-cta p {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 40px;
    margin-top: 100px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-about h3 {
    margin-bottom: 20px;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4, .footer-cta h4 {
    margin-bottom: 24px;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.footer-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 80px;
}

.pagination a, .pagination span {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-color: transparent;
    transform: translateY(-2px);
}

.pagination .active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .site-header {
        padding: 12px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        gap: 20px;
        font-size: 0.875rem;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-desc {
        font-size: 1.125rem;
    }


    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .blog-post {
        margin: 0 auto;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1.0625rem;
    }

    .post-content h2 {
        font-size: 1.75rem;
        margin-top: 48px;
    }

    .post-content h3 {
        font-size: 1.375rem;
        margin-top: 40px;
    }

    .cta {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .nav-cta {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .hero-cta, .cta-button, .footer-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .post-info {
        padding: 20px;
    }
}

/* 404 Error Page */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.error-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
}

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

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--color-bg-3), 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Pagination - Hugo default styling */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding: 0;
    margin-left: 0;
    list-style: none !important;
}

.pagination .page-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
}

.pagination .page-link {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
    outline: none;
}

.pagination .page-link span {
    border: none !important;
    outline: none !important;
    padding: 0;
    margin: 0;
    display: inline;
    background: none;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    font-weight: 600;
    border-color: transparent;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide ARIA labels visually but keep for screen readers */
.pagination [aria-label] {
    /* Labels already in aria-label attribute, visual text is fine */
}

@media (max-width: 768px) {
    .error-content h1 {
        font-size: 5rem;
    }

    .error-content h2 {
        font-size: 1.5rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 32px;
    }

    .pagination .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
