@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #111844;
    --primary-light: #4B5694;
    --secondary: #7288AE;
    --accent: #4FA8A0;

    /* Backgrounds */
    --background: #ffffff;
    --surface: #F5F0E8;
    --footer-bg: #111844;

    /* Text */
    --text-primary: #0d1030;
    --text-secondary: #5a6485;
    --text-content: #3d4560;
    --footer-text: #8b90a5;

    /* Borders & Muted */
    --border: #e0d8cc;
    --muted: #b8b0a0;

    /* States */
    --error: #ef4444;
    --success: #22c55e;
    --disabled: #b8b0a0;

    /* Hero Gradient */
    --hero-gradient-start: #ffffff;
    --hero-gradient-end: #F5F0E8;

    /* Shadows */
    --shadow: 0 4px 20px -2px rgba(17, 24, 68, 0.06);
    --btn-shadow: 0 10px 15px -3px rgba(17, 24, 68, 0.35);
    --btn-hover-shadow: 0 10px 20px -3px rgba(114, 136, 174, 0.35);

    /* Radius */
    --radius: 16px;
}

/* Glassmorphism utility for unique feel */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Navbar with Unique Mobile Menu */
nav {
    background: var(--background);
    border-bottom: 2px solid var(--surface);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
}

/* Unique Hero Section */
.hero {
    padding: 6rem 0;
    text-align: left;
    background: linear-gradient(to right, var(--hero-gradient-start), var(--hero-gradient-end));
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.75rem;
    }
    .hero p {
        margin: 0 auto;
    }
}

/* Portfolio-style Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
}

.card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-8px);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 1.5rem;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-img-wrapper .card-category {
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    position: absolute;
}

.card-category {
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 99px;
}

.card-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Load More Button - Unique Style */
.load-more-container {
    display: flex;
    justify-content: center;
    padding-bottom: 5rem;
}

.btn-load-more {
    background: var(--secondary);
    color: white;
    padding: 1rem 3rem;
    border-radius: 99px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: var(--btn-shadow);
}

.btn-load-more:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--btn-hover-shadow);
}

.btn-load-more:disabled {
    background: var(--disabled);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Single Post View Improvements */
.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.post-header {
    text-align: center;
    margin-bottom: 4rem;
}

.post-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.25rem;
    }
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

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

.post-content p {
    margin-bottom: 2rem;
}

.post-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 3rem 0;
}

/* Validation Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input.error {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer Unique Style */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-grid div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid ul {
        align-items: center;
    }
}

footer {
    background: var(--footer-bg);
    border-top: 3px solid var(--primary);
    color: var(--footer-text);
    padding: 6rem 0 3rem;
}

footer .logo {
    color: white;
}

footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    color: var(--muted);
    font-size: 0.8rem;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* Author and E-E-A-T signals */
.author-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius);
    margin: 4rem 0;
    border: 1px solid var(--border);
}

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

.author-info h4 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.post-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

.status-badge svg {
    width: 16px;
    height: 16px;
}

/* Rewarded Consent Popup */
.rewarded-consent-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.rewarded-consent-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.rewarded-consent-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.rewarded-consent-icon svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.rewarded-consent-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.5rem;
}

.rewarded-consent-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.rewarded-consent-btns {
    display: flex;
    gap: 0.75rem;
}

.rewarded-consent-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    font-family: inherit;
}

.rewarded-consent-btn:active {
    transform: scale(0.96);
}

.rewarded-consent-yes {
    background: var(--primary);
    color: white;
}

.rewarded-consent-no {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Tubi Section */
.tubi-section {
    margin-bottom: 4rem;
}

.tubi-intro {
    margin: 1.5rem auto 2.5rem;
    max-width: 610px;
    line-height: 1.4;
    letter-spacing: -0.6px;
    text-align: center;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.tubi-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    border: 2px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tubi-logo {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: linear-gradient(145deg, #8c00ed 0%, #43009a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff500;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
}

.tubi-title {
    margin: 18px 0 0;
    font-size: clamp(24px, 4.5vw, 32px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.3;
    color: var(--secondary);
}

.tubi-choices {
    max-width: 380px;
    margin: 2rem auto 0;
    display: grid;
    gap: 19px;
}

.tubi-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 50px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 16PX;
    line-height: 1;
    padding: 12px 20px;
    transition: filter .15s ease;
}

.tubi-choice:hover {
    color: #fff;
    filter: brightness(1.06);
}

.tubi-choice .arrow {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: .7;
    margin-top: -2px;
}

.tubi-note {
    margin: 1.75rem 0 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(16px, 2.6vw, 19px);
}