:root {
    /* Palette */
    --bg-dark: #0f111a;
    --bg-card: #1a1d29;
    --bg-surface: #161a26;
    --text-main: #e6e8ef;
    --text-muted: #9aa3b2;
    --accent-cyan: #00d9ff;
    --accent-purple: #7000ff;
    --white: #ffffff;
    --black: #000000;
    --success: #00ffa3;
    --error: #ff4d4d;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --container-padding: 1.5rem;
    --section-spacing: 5rem;

    /* Shadows */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--section-spacing) 0;
    }
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(15, 17, 26, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }

    .nav-link {
        position: relative;
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        transition: color 0.2s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-cyan);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--accent-cyan);
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 768px) {
    .burger {
        display: none;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1050;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 2rem;
    font-weight: 800;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center;
}

@media (min-width: 768px) {
    .hero {
        min-height: 55vh;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 48vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.12) 0%, rgba(15, 17, 26, 1) 70%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 500px;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* Buttons - Solid Only */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--black);
    border-color: var(--accent-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.35);
    background: #00e5ff;
    border-color: #00e5ff;
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
    padding: 0.875rem 1.5rem;
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Latest Posts Section */
.posts-section {
    background-color: var(--white);
    color: var(--black);
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

@media (min-width: 768px) {
    .posts-section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

.posts-section h2 {
    color: var(--black);
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Cards - Tight, Premium */
.post-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.post-thumb {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 18px;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.post-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    display: block;
}

.post-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: var(--accent-cyan);
}

.post-excerpt {
    color: #5a6472;
    font-size: 0.875rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.post-date {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-cyan);
    color: #000;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.read-more:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
    background: #00e5ff;
}

.center-cta {
    text-align: center;
}

/* Reviews Section */
.reviews-section {
    background: var(--bg-dark);
    padding: 60px 20px;
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-card);
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 217, 255, 0.25);
    background: linear-gradient(145deg, var(--bg-card), #1e2230);
}

.review-art {
    width: 100%;
    height: 200px;
    background: #000;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}

.review-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.review-card:hover .review-art img {
    transform: scale(1.05);
}

.review-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-cyan);
    color: var(--black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.review-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.review-info h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-weight: 800;
}

.review-card:hover .review-info h3 {
    color: var(--accent-cyan);
}

.rating-stars {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-info p,
.review-info .post-excerpt {
    color: #c8d2e0;
    font-size: 0.875rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card .read-more {
    margin-top: auto;
    align-self: center;
}

/* About Section */
.about-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
    .about-section {
        flex-direction: row;
        align-items: center;
    }
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #1a1d29, #2d3345);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Email Subscription */
.sub-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.15), rgba(0, 217, 255, 0.1)), var(--bg-card);
    border-radius: 24px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sub-section:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
}

.sub-section h2 {
    margin-bottom: 1rem;
}

.sub-section>p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.sub-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 550px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .sub-form {
        flex-direction: row;
        gap: 0.75rem;
    }
}

.sub-form input {
    flex-grow: 1;
    padding: 1.125rem 1.75rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sub-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sub-form input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12);
    transform: translateY(-2px);
}

.sub-form .btn-primary {
    padding: 1.125rem 2.5rem;
    white-space: nowrap;
}

#subSuccess {
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid var(--success);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem !important;
    font-weight: 600;
}

/* Contact Us */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-section>p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.65rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.checkbox-group:hover {
    background: rgba(255, 255, 255, 0.04);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-cyan);
}

.checkbox-group span {
    flex: 1;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
    }

    .sub-form .btn-primary {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: #0a0c14;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Cookie Popup */
.cookie-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    z-index: 2000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 400px;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-actions .btn {
    padding: 0.45rem 1rem;
    font-size: 0.7rem;
    min-width: auto;
    border-radius: 40px;
    letter-spacing: 0.02em;
}

.cookie-actions .btn-ghost {
    padding: 0.45rem 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.65rem;
    color: var(--accent-cyan);
}

@media (max-width: 480px) {
    .cookie-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 1.5rem;
    }

    .cookie-actions .btn {
        width: 100%;
        flex: none;
    }
}

.cookie-bar.active {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cookie Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--bg-dark);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Toast Message */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: var(--success);
    color: var(--black);
    border-radius: 50px;
    font-weight: 700;
    z-index: 5000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 255, 163, 0.3);
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    10%,
    90% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Cookie Preference Toggles */
.pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-cyan);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

input:disabled+.slider {
    opacity: 0.5;
    cursor: default;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   SINGLE POST PAGE STYLES
   ======================================== */

body.single-post,
body.post-page {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Post Header Navigation */
.post-header {
    background: var(--bg-dark);
    padding: 100px 20px 30px;
}

.post-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.post-breadcrumb a:hover {
    color: var(--accent-cyan);
}

.post-breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

/* Post Hero - Image with Title Overlay */
.post-hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.post-hero {
    width: 100%;
    height: 320px;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.post-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 17, 26, 0) 0%, rgba(15, 17, 26, 0.85) 70%, rgba(15, 17, 26, 0.95) 100%);
    z-index: 1;
}

.post-hero-content {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    z-index: 2;
}

.post-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .post-hero {
        height: 260px;
        border-radius: 16px;
    }

    .post-hero-content {
        bottom: 20px;
        left: 24px;
        right: 24px;
    }

    .post-hero h1 {
        font-size: 1.65rem;
    }
}

/* Post Content */
.post-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.post-meta-strip {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.post-body {
    line-height: 1.75;
}

.post-body p {
    font-size: 1.075rem;
    line-height: 1.75;
    color: #c0cad8;
    margin-bottom: 1.75rem;
}

.post-body h2 {
    font-size: 1.85rem;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-align: left;
}

.post-body h3 {
    font-size: 1.45rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

/* Post Images - Centered, Rounded */
.post-body img {
    max-width: 88%;
    margin: 2.5rem auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: block;
}

/* Blockquotes */
.post-body blockquote {
    border-left: 4px solid var(--accent-cyan);
    background: rgba(0, 217, 255, 0.04);
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

.post-body blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #e5e9f0;
    line-height: 1.6;
    margin: 0;
}

/* Lists */
.post-body ul,
.post-body ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style-position: outside;
}

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

.post-body ol {
    list-style-type: decimal;
}

.post-body li {
    margin-bottom: 0.75rem;
    color: #c0cad8;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-body li::marker {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Legal Pages */
.legal-page {
    background: var(--bg-dark);
    min-height: 100vh;
    padding: 120px 20px 80px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-container h1 {
    margin-bottom: 1rem;
    text-align: left;
}

.legal-container p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-container h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: left;
}

.legal-container h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-cyan);
}

.legal-container ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.legal-container li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
    }

    .post-container {
        padding: 0 16px 60px;
    }

    .post-body p {
        font-size: 1.05rem;
    }

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

    .post-body img {
        max-width: 100%;
    }
}