:root {
    --black: #080808;
    --dark: #111111;
    --card: #181818;
    --yellow: #F2C93E;
    --teal: #4BBEC5;
    --white: #F4F4F0;
    --gray: #888888;
    --light-gray: #CCCCCC;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 2px;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(242, 201, 62, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 140px;
    height: 46px;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-back:hover {
    color: var(--yellow);
}

.nav-back svg {
    transition: transform 0.2s;
}

.nav-back:hover svg {
    transform: translateX(-3px);
}

.nav-cta {
    background: var(--yellow);
    color: var(--black) !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(242, 201, 62, 0.35);
}

/* HERO */
.blog-hero {
    padding: 140px 60px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(75, 190, 197, 0.07), transparent 60%), var(--black);
    z-index: 0;
}

.blog-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(75, 190, 197, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 190, 197, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(75, 190, 197, 0.1);
    border: 1px solid rgba(75, 190, 197, 0.3);
    color: var(--teal);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.blog-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 8vw, 96px);
    line-height: 0.92;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.blog-hero h1 span {
    color: var(--yellow);
}

.blog-hero p {
    font-size: 17px;
    color: var(--light-gray);
    font-weight: 300;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 60px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

/* GRID */
.blog-grid-section {
    padding: 60px 60px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ARTICLE CARD */
.article-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(242, 201, 62, 0.2);
}

.article-thumb {
    position: relative;
    overflow: hidden;
}

.article-thumb svg {
    display: block;
    width: 100%;
}

.article-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--teal);
    color: var(--black);
    z-index: 2;
}

.article-cat.yellow {
    background: var(--yellow);
}

.article-body {
    padding: 24px;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--white);
}

.article-body p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-meta span {
    font-size: 11px;
    color: var(--gray);
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--yellow);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: gap 0.2s;
}

.read-btn:hover {
    gap: 10px;
}

/* ARTICLE OVERLAY / MODAL */
.article-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.97);
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.article-overlay.open {
    opacity: 1;
    visibility: visible;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 40px 80px;
}

.article-content .back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
    margin-bottom: 40px;
    transition: color 0.2s;
    background: none;
    border: none;
}

.article-content .back:hover {
    color: var(--yellow);
}

.article-header-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.article-header-cat.yellow {
    color: var(--yellow);
}

.article-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.article-content .article-intro {
    font-size: 18px;
    color: var(--light-gray);
    line-height: 1.75;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1.5px;
    color: var(--white);
    margin: 40px 0 16px;
}

.article-content h2 span {
    color: var(--yellow);
}

.article-content p {
    font-size: 16px;
    color: var(--light-gray);
    line-height: 1.85;
    margin-bottom: 20px;
}

.article-content strong {
    color: var(--white);
}

.article-content ul {
    margin: 16px 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-content ul li {
    font-size: 15px;
    color: var(--light-gray);
    line-height: 1.7;
}

.article-content ul li::marker {
    color: var(--yellow);
}

.article-highlight {
    background: rgba(242, 201, 62, 0.06);
    border-left: 3px solid var(--yellow);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.article-highlight p {
    margin: 0;
    font-size: 16px;
    color: var(--white);
}

.article-cta {
    background: linear-gradient(135deg, var(--yellow), #e8b800);
    color: var(--black);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(242, 201, 62, 0.4);
}

/* NEWSLETTER */
.newsletter {
    background: linear-gradient(135deg, var(--dark), #1a1a1a);
    border: 1px solid rgba(242, 201, 62, 0.12);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    margin: 0 60px 80px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.newsletter h2 span {
    color: var(--yellow);
}

.newsletter p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 201, 62, 0.2);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--yellow);
}

.newsletter-form button {
    background: var(--yellow);
    color: var(--black);
    font-weight: 800;
    font-size: 14px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    transform: translateY(-1px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px 20px;
}

.form-success.show {
    display: block;
}

.form-success .check-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.form-success h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-form.hide {
    display: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FOOTER */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

footer p {
    font-size: 13px;
    color: var(--gray);
}

footer a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    animation: fabPulse 3s infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 48px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-fab svg {
    fill: white;
}

@media(max-width:1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:640px) {
    nav {
        padding: 16px 20px;
    }

    .blog-hero,
    .blog-grid-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter {
        margin: 0 20px 60px;
        padding: 40px 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .article-content {
        padding: 90px 20px 60px;
    }
}