/* Yellow Company Light Color Palette */
:root {
    /* Light Cream/Beige Colors - matching logo background */
    --cream-primary: #F5F5DC;       /* Main cream background */
    --cream-secondary: #F0F0E6;     /* Slightly darker cream */
    --cream-light: #FAFAF5;        /* Very light cream */
    --cream-dark: #E8E8D3;         /* Darker cream for borders */
    
    /* Accent Colors */
    --yellow-accent: #D4AF37;       /* Refined gold accent */
    --yellow-secondary: #B8860B;    /* Darker gold */
    --yellow-light: #F0E68C;       /* Light khaki */
    --brown-accent: #8B4513;       /* Brown for contrast */
    
    /* Gradients */
    --gradient-cream: linear-gradient(135deg, #F5F5DC, #F0F0E6);
    --gradient-gold: linear-gradient(135deg, #D4AF37, #B8860B);
    --gradient-light: linear-gradient(135deg, #FAFAF5, #F5F5DC);
    
    /* Background Colors - Light Theme */
    --bg-primary: #FAFAF5;         /* Very light cream */
    --bg-secondary: #F5F5DC;       /* Main cream */
    --bg-tertiary: #F0F0E6;        /* Medium cream */
    --bg-card: #FFFFFF;            /* Pure white for cards */
    
    /* Text Colors - Dark for light backgrounds */
    --text-primary: #2C2C2C;       /* Dark gray/black */
    --text-secondary: #4A4A4A;     /* Medium gray */
    --text-muted: #6B6B6B;         /* Light gray */
    --text-light: #8B8B8B;         /* Very light gray */
    
    /* Border Colors */
    --border-light: #E8E8D3;       /* Light cream border */
    --border-medium: #D4D4C1;      /* Medium cream border */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--yellow-accent);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo .logo-image {
    height: 70px;
    width: auto;
    max-width: 280px;
    transition: transform 0.3s ease;
}

.nav-logo .logo-image:hover {
    transform: scale(1.05);
}

/* Mobile logo responsiveness */
@media (max-width: 768px) {
    .nav-logo .logo-image {
        height: 55px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-image {
        height: 45px;
        max-width: 180px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--gradient-gold);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-secondary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-light);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23D4AF37" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    opacity: 0.5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 60vh;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}



.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--yellow-accent);
    border: 2px solid var(--yellow-accent);
}

.btn-secondary:hover {
    background: var(--yellow-accent);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}



/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}


.providers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.provider-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.provider-logo {
    width: 240px;
    height: 180px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 3px solid rgba(245, 158, 11, 0.5);
}

.provider-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.provider-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.provider-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-details {
    background: transparent;
    border: 2px solid var(--yellow-accent);
    color: var(--yellow-accent);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-details:hover {
    background: var(--yellow-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-details i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-details:hover i {
    transform: translateX(3px);
}

.providers-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Getting Started Section */
.getting-started {
    padding: 80px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-features {
    list-style: none;
    padding: 0;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.step-features i {
    color: #10b981;
    font-size: 0.875rem;
}

/* Commission Structure Section */
.commission-structure {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.commission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.commission-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.commission-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.commission-icon i {
    font-size: 1.5rem;
    color: white;
}

.commission-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.commission-rate {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.commission-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Payment Information Section */
.payment-info {
    padding: 80px 0;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.payment-option strong {
    color: #10b981;
    display: block;
    margin-bottom: 0.5rem;
}

.payment-option p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* How It Works CTA */
.how-it-works-cta {
    text-align: center;
    margin-top: 3rem;
}

.how-it-works-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Compact Hero for secondary pages */
.compact-hero {
    min-height: 40vh;
    padding: 4rem 0 2rem;
}

/* Minimal hero for blog page */
.blog-hero {
    min-height: auto;
    padding: 3rem 0 2rem;
    background: #2d3748;
    overflow: visible;
}

.blog-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-align: center;
}

.blog-hero .hero-description {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-align: center;
    color: #a0aec0;
}

.compact-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.compact-hero .hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .compact-hero {
        min-height: 30vh;
        padding: 3rem 0 1.5rem;
    }
    
    .compact-hero .hero-title {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .compact-hero .hero-description {
        font-size: 1rem;
    }
}

.payment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.payment-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.payment-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.payment-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.payment-feature i {
    font-size: 1.5rem;
    color: var(--yellow-primary);
    width: 40px;
    margin-top: 0.25rem;
}

.payment-feature h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.payment-visual {
    display: flex;
    justify-content: center;
}

.payment-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    max-width: 300px;
    width: 100%;
}

.payment-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.earnings-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.earnings-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.earnings-period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-status i {
    color: #10b981;
}

.payment-status span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Marketing Resources Section */
.marketing-resources {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.resource-icon i {
    font-size: 1.5rem;
    color: white;
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resource-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.resource-link {
    color: var(--yellow-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.resource-link:hover {
    color: var(--yellow-secondary);
    transform: translateX(3px);
}

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

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.03);
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--yellow-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-cream);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Blog Page Styles */
.featured-posts {
    padding: 80px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.featured-category {
    background: #6366f1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-content {
    padding: 1.5rem;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.featured-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.featured-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-link {
    color: var(--yellow-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.featured-link:hover {
    color: var(--yellow-secondary);
    transform: translateX(3px);
}



.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.blog-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}



.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.no-posts {
    text-align: center;
    color: #94a3b8;
    font-size: 1.125rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: var(--gradient-gold);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

.newsletter-form input::placeholder {
    color: #6b7280;
}

.newsletter-form input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #1f2937;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    color: #f87171;
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #f8fafc;
    margin-bottom: 1rem;
}

.error-message p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background: #1e293b;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--yellow-primary);
    width: 40px;
}

.feature h4 {
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.feature p {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.about-image {
    position: relative;
    height: 400px;
}

.about-graphic {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: #6366f1;
    top: 10%;
    right: 10%;
    animation: pulse 4s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: var(--yellow-secondary);
    bottom: 20%;
    left: 10%;
    animation: pulse 4s ease-in-out infinite 1s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    background: #10b981;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

/* Partner Section */
.partner {
    background: var(--gradient-cream);
    color: var(--text-primary);
}

.partner .section-title,
.partner .section-subtitle {
    color: var(--text-primary);
}

.partner .section-subtitle {
    margin-bottom: 1.5rem;
}

/* Consistent form spacing for all sections with forms */
.cta-section .section-subtitle,
.partner .section-subtitle,
.cta-content p:last-of-type,
.cta-content p + .hubspot-form-container,
.partner-content p + .hubspot-form-container {
    margin-bottom: 1.5rem;
}

/* Ensure consistent spacing for text immediately before forms */
.hubspot-form-container {
    margin-top: 1.5rem;
}

/* Override default section subtitle spacing when followed by forms */
.section-subtitle + .hubspot-form-container,
.section-subtitle + .partner-content .hubspot-form-container,
.section-subtitle + .cta-content .hubspot-form-container {
    margin-top: 1.5rem;
}

.partner-content {
    max-width: 600px;
    margin: 0 auto;
}

.partner-form {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    margin-bottom: 3rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.partner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.benefit i {
    font-size: 1.25rem;
    color: var(--yellow-primary);
}

.benefit span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Blog Section */
.blog {
    background: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-image {
    height: auto;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder i {
    font-size: 3rem;
    color: white;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-date {
    color: #94a3b8;
    font-size: 0.875rem;
}

.blog-category {
    background: var(--yellow-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    color: var(--yellow-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--yellow-secondary);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-light);
}

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

.footer-description {
    grid-column: 1;
}

.footer-links-section {
    justify-self: end;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--yellow-primary);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--yellow-primary);
    transform: translateY(-2px);
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-legal {
    margin-bottom: 1rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.footer-legal .separator {
    margin: 0 1rem;
    color: #6b7280;
}

/* Legal Pages Styles */
.legal-content {
    padding: 3rem 0;
    background: #0f172a;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-meta p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.legal-document h2 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow-primary);
}

.legal-document h2:first-of-type {
    margin-top: 0;
}

.legal-document p {
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-document ul {
    color: #e2e8f0;
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.7;
}

.legal-document li {
    margin-bottom: 0.5rem;
}

.legal-document strong {
    color: #f1f5f9;
    font-weight: 600;
}

/* Provider Page Styles */
.provider-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.provider-logo {
    flex-shrink: 0;
}

.service-logo-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--yellow-primary);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.service-logo-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Override for when images are loaded */
.service-logo-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px !important;
}

.service-image-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px !important;
}

.provider-intro {
    flex: 1;
}

.provider-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.provider-explanation {
    font-size: 1.125rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.service-details {
    padding: 4rem 0;
    background: #0f172a;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-image {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    overflow: hidden;
    min-height: 300px;
}

.service-image-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1rem;
    text-align: center;
    padding: 3rem;
    min-height: 300px;
}

.service-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-info {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

.service-field {
    margin-bottom: 2rem;
}

.service-field:last-child {
    margin-bottom: 0;
}

.service-field h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.service-field p {
    color: #e2e8f0;
    line-height: 1.6;
}

.service-field a {
    color: var(--yellow-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-field a:hover {
    color: var(--yellow-secondary);
}

/* Rich text content styles in service fields */
.service-field .features-content ul,
.service-field p ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.service-field .features-content li,
.service-field p li {
    color: #e2e8f0;
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

.service-field strong {
    color: #f1f5f9;
    font-weight: 600;
}

.service-field em {
    color: #cbd5e1;
    font-style: italic;
}

.service-field h3,
.service-field h4 {
    color: #f1f5f9;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.service-field h3 {
    font-size: 1.125rem;
}

.service-field h4 {
    font-size: 1rem;
}

/* Provider title container with website button */
.provider-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.provider-title-container .provider-title {
    margin: 0;
    flex: 1;
}

.provider-title-container .website-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
    min-width: auto;
}

.provider-title-container .website-btn i {
    margin-right: 0.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .provider-intro .provider-title-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .provider-intro .provider-title-container .website-btn {
        align-self: flex-start !important;
        margin-left: 0 !important;
    }
}

/* HubSpot Form Integration */
.hubspot-form-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

/* Override HubSpot form styles to match site theme */
.hs-form-frame .hs-form {
    color: #e2e8f0 !important;
}

.hs-form-frame .hs-form .hs-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
}

.hs-form-frame .hs-form .hs-input:focus {
    border-color: var(--yellow-primary) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.hs-form-frame .hs-form .hs-input::placeholder {
    color: #9ca3af !important;
}

.hs-form-frame .hs-form .hs-fieldtype-select select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
}

.hs-form-frame .hs-form .hs-fieldtype-textarea textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
}

.hs-form-frame .hs-form .hs-submit .hs-button {
    background: var(--yellow-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.hs-form-frame .hs-form .hs-submit .hs-button:hover {
    background: var(--yellow-secondary) !important;
    transform: translateY(-2px) !important;
}

.hs-form-frame .hs-form .hs-form-field label {
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

.hs-form-frame .hs-form .hs-error-msgs {
    color: #ef4444 !important;
}

/* About Page Styles */
.about-content {
    padding: 8rem 0 6rem;
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.5fr 1.2fr 1fr 0.5fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    padding: 0 2rem;
}

.about-text {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    text-align: left;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section p {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 1.125rem;
}

.about-section a {
    color: var(--yellow-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-section a:hover {
    color: var(--yellow-secondary);
}

.about-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    max-width: 300px;
}

.logo-placeholder {
    aspect-ratio: 3/2;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.logo-placeholder:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.logo-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Responsive Design for Providers Grid */
@media (max-width: 1024px) and (min-width: 769px) {
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile language dropdown adjustments */
    .language-menu {
        right: auto;
        left: 0;
        min-width: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text .section-title {
        text-align: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .legal-document {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .legal-document h2 {
        font-size: 1.25rem;
    }

    .footer-legal .separator {
        margin: 0 0.5rem;
    }

    .provider-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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



    .partner-benefits {
        grid-template-columns: 1fr;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid > div:first-child,
    .about-grid > div:last-child {
        display: none;
    }

    .about-logos {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
    }

    .commission-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .payment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .payment-text .section-title {
        text-align: center;
    }


}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .cta-content h2 {
        font-size: 2rem;
    }

    .earnings-amount {
        font-size: 2rem;
    }


}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
}

.nav-dropdown-toggle:hover {
    color: var(--yellow-accent);
}

.nav-dropdown-toggle.active {
    color: var(--yellow-accent);
}

.nav-dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--yellow-accent);
}

.nav-dropdown-item.active {
    color: var(--yellow-accent);
    background: var(--bg-secondary);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.language-toggle:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--yellow-primary);
}

.language-toggle i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-toggle i:last-child {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 150px;
    z-index: 1000;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.language-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--yellow-primary);
}

.language-option.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--yellow-primary);
}

.language-option .flag {
    font-size: 1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--yellow-primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--yellow-primary);
    outline-offset: 2px;
}

/* Loading animation for form submission */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Blog Header */
.blog-header {
    padding: 8rem 0 2rem;
    background: #0f172a;
    text-align: center;
    margin-top: 0;
}

.blog-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

.blog-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin: 0 0 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

/* Blog Posts Section */
.blog-posts {
    padding: 2rem 0 4rem;
    background: #0f172a;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
    margin-bottom: 4rem;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force 3x3 grid on desktop */
@media (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
    }
}

/* Force 3x3 grid for all screen sizes above mobile */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        max-width: none !important;
        width: 100% !important;
    }
}

.blog-card {
    background: #334155 !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex !important;
    flex-direction: column;
    height: auto;
    visibility: visible !important;
    opacity: 1 !important;
}



.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.02);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: white;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
}

.language-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.language-tag.en {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: #22c55e;
}

.language-tag.ja {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    color: #f8fafc;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.blog-title:hover {
    color: #a5b4fc;
}

.blog-excerpt {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 1rem; /* Add gap for better spacing */
}

.blog-author {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 0.875rem !important;
    color: #cbd5e1 !important; /* Same color as description text */
}

/* Blog card author avatar styling - make it specific to blog cards */
.blog-card .blog-author .author-avatar,
.blog-grid .blog-author .author-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important; /* Prevent the avatar from shrinking */
}

.read-more-btn {
    background: var(--gradient-gold);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent button from shrinking */
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Blog Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .blog-posts {
        padding: 2rem 0;
    }
    
    .blog-card {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .blog-image {
        height: auto;
        min-height: 180px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .pagination-numbers {
        margin: 0;
        order: -1;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .blog-excerpt {
        font-size: 0.8rem;
    }
    
    /* Blog card author avatar on mobile */
    .blog-card .blog-author .author-avatar,
    .blog-grid .blog-author .author-avatar {
        width: 36px !important;
        height: 36px !important;
    }
    
    .blog-author {
        font-size: 0.8rem !important;
        gap: 0.5rem !important;
    }
    
    .read-more-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

.blog-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}



.blog-date {
    color: #718096;
}

.blog-reading-time {
    color: #a0aec0;
}

.blog-title {
    margin-bottom: 0.75rem;
}

.blog-title a {
    color: #2d3748;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.blog-title a:hover {
    color: #4299e1;
}

.blog-excerpt {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.read-more:hover {
    color: #3182ce;
}

.read-more i {
    font-size: 0.75rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Removed - using .blog-posts instead */

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .blog-container {
        padding: 2rem 1rem;
    }
    
    .blog-card {
        aspect-ratio: 16/9;
    }
    
    .pagination-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(.disabled) {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Blog Loading State */
.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #cbd5e1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-left: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Yellow Company Blog Post Styles */
.blog-post {
    padding: 8rem 0 4rem;
    background: #0f172a;
    min-height: 100vh;
    color: #e5e7eb;
}

/* Hero Section - Side-by-Side Layout (Title LEFT, Image RIGHT) */
.blog-hero-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 3rem;
    min-height: 60vh;
}

/* LEFT SIDE: Content */
.blog-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* RIGHT SIDE: Visual */
.blog-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Featured Image from Sanity */
.hero-featured-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
        padding: 0 1.5rem;
    }
    
    .blog-hero-content {
        order: 1;
    }
    
    .blog-hero-visual {
        order: 2;
    }
}

.blog-breadcrumb {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a5b4fc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--yellow-primary);
}

.blog-post-header {
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Yellow Company Meta Layout: Horizontal arrangement */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.blog-category {
    background: var(--gradient-gold);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-date,
.reading-time {
    color: #94a3b8;
    font-weight: 500;
}

/* Author section styling for Yellow Company */
.author-name {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.875rem;
}

.blog-post-category {
    background: var(--gradient-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-post-date,
.blog-post-reading-time {
    color: #94a3b8;
    font-size: 0.875rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Author section - directly under the title on the left */
.blog-post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

/* Override for blog post detail pages - horizontal layout */
.blog-post-detail .author-info {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.author-name {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-title {
    color: #94a3b8;
    font-size: 0.75rem;
}

.blog-post-image {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Removed old conflicting grid - now handled by blog-content-wrapper */

/* Enhanced Blog Post Detail Styles */
.blog-post-detail {
    background: #0f172a;
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

/* Ensure no elements appear in top-left */
.blog-post .container {
    position: relative;
}

.blog-post .container::before,
.blog-post .container::after {
    display: none;
}

/* Hide any remaining breadcrumb elements */
.blog-breadcrumb {
    display: none !important;
}

.back-link {
    display: none !important;
}

/* Ensure original content is completely hidden */
.original-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.blog-post-detail .blog-post-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 3rem;
}

.blog-post-detail .blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-post-detail .blog-category {
    background: var(--gradient-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post-detail .blog-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: white;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
}

.blog-post-detail .blog-date,
.blog-post-detail .reading-time {
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-detail .blog-date::before {
    content: "📅";
    font-size: 1rem;
}

.blog-post-detail .reading-time::before {
    content: "⏱️";
    font-size: 1rem;
}

.blog-post-detail .blog-post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-post-detail .blog-post-author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

/* Category tag when positioned with author */
.blog-post-author .author-category {
    background: var(--gradient-gold);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
    position: static !important;
    top: auto !important;
    left: auto !important;
    align-self: center;
}

.blog-post-detail .author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    min-height: 48px;
}

.blog-post-detail .author-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
    align-self: center;
}

.blog-post-detail .author-link {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-detail .author-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Author Profile Page Styles */
.author-profile {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: calc(100vh - 80px);
    padding: 6rem 0 3rem 0;
    position: relative;
}

/* Tag Page Styles */
.tag-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: calc(100vh - 80px);
    padding: 6rem 0 3rem 0;
    position: relative;
}

.tag-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 0 0 50px 50px;
}

.tag-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.tag-profile-content {
    color: #e2e8f0;
}

.tag-header {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 150px;
}

.tag-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.tag-info {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.tag-details {
    flex: 1;
    text-align: left;
}

.tag-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.tag-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tag-count {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.tag-posts-section {
    position: relative;
}

.tag-posts-section::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.tag-not-found,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #e2e8f0;
}

.tag-not-found h1,
.error-message h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.tag-not-found p,
.error-message p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

/* Blog meta styling for tag pages */
.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.blog-date,
.reading-time {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Mobile Responsive for Tag Page */
@media (max-width: 768px) {
    .tag-page {
        padding: 2rem 0;
    }
    
    .tag-container {
        padding: 0 1rem;
    }
    
    .tag-header {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        margin-bottom: 3rem;
        text-align: left;
        min-height: auto;
    }
    
    .tag-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .tag-name {
        font-size: 2.5rem;
    }
    
    .tag-description {
        font-size: 1rem;
    }
}

.author-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 0 0 50px 50px;
}

.author-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.author-profile-content {
    color: #e2e8f0;
}

.author-header {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.author-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Author profile page main avatar container */
.author-profile .author-avatar {
    flex-shrink: 0;
    position: relative;
    width: 160px !important;
    height: auto !important;
    align-self: flex-start;
    border: none !important;
    border-radius: 0 !important;
}



.avatar-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.05);
}

.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding-left: 1rem;
}

.author-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.author-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
    position: relative;
}

.author-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.author-bio {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin: 0 0 2rem 0;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.author-social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: #a5b4fc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #c7d2fe;
    transform: translateY(-2px);
}

.author-posts-section {
    margin-top: 4rem;
    position: relative;
}

.author-posts-section::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-yellow-warm);
    border-radius: 2px;
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.author-post-card {
    background: #334155;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.author-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title-link {
    color: #f8fafc;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-title-link:hover {
    color: #60a5fa;
}

.post-excerpt {
    color: #cbd5e1;
    margin: 1rem 0;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.post-read-more {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-read-more:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.back-to-blog {
    text-align: center;
    margin: 3rem 0;
}

.author-not-found,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #cbd5e1;
}

.author-not-found h1 {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.no-posts {
    text-align: center;
    color: #94a3b8;
    font-size: 1.125rem;
    padding: 2rem;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) and (min-width: 769px) {
    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .author-profile {
        padding: 2rem 0;
    }
    
    .author-container {
        padding: 0 1rem;
    }
    
    .author-header {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        margin-bottom: 3rem;
        text-align: center;
        min-height: auto;
    }
    
    /* Author profile page avatar on mobile */
    .author-profile .author-avatar {
        width: auto !important;
        height: auto !important;
        align-self: center;
        border: none !important;
        border-radius: 0 !important;
    }
    
    .author-info {
        padding-left: 0;
    }
    
    .author-name {
        font-size: 2.5rem;
    }
    
    .author-title {
        font-size: 1.25rem;
    }
    
    .author-bio {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .author-container {
        padding: 0 1rem;
    }
}

.blog-post-detail .author-title {
    color: #94a3b8;
    font-size: 0.875rem;
    display: block;
}

.blog-post-detail .blog-post-featured-image {
    margin: 3rem auto;
    max-width: 1200px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.blog-post-detail .blog-post-featured-image:hover {
    transform: translateY(-5px);
}

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

/* Blog Post Tags */
.blog-post-detail .blog-post-tags {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 3rem;
}

.blog-post-detail .blog-post-tags h4 {
    color: #a5b4fc;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-detail .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-post-detail .tag {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post-detail .tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #c7d2fe;
    transform: translateY(-2px);
}

/* Blog Post Footer with Enhanced CTA */
.blog-post-detail .blog-post-footer {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 3rem;
}

.blog-post-detail .blog-cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-post-detail .blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-yellow-warm);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.blog-post-detail .blog-cta-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post-detail .blog-cta-section p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.blog-post-detail .cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-post-detail .cta-primary {
    background: var(--gradient-gold);
    color: white;
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transform: scale(1);
    transition: all 0.3s ease;
    border-radius: 16px;
}

.blog-post-detail .cta-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b5cf6, #7c5ce6);
}

.blog-post-detail .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-gold);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.blog-post-detail .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.blog-post-detail .btn-secondary {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.blog-post-detail .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

/* Blog Loading States */
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    color: #cbd5e1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-loading p {
    font-size: 1.125rem;
    margin: 0;
}

/* Blog Error States */
.blog-post-not-found,
.blog-post-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-post-not-found h1,
.blog-post-error h1 {
    font-size: 2.5rem;
    color: #f8fafc;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ef4444, #f97316);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post-not-found p,
.blog-post-error p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Tablet and smaller desktop responsive styles */
@media (max-width: 1024px) {
    .blog-post-detail.has-toc .blog-content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }
    
    .blog-content-wrapper {
        padding: 0 2rem;
    }
    
    .table-of-contents {
        min-width: 260px;
        max-width: 280px;
    }
}

/* Mobile Responsive Styles for Blog Post */
@media (max-width: 768px) {
    .blog-post-detail .blog-post-header {
        padding: 0 1.5rem;
    }
    
    .blog-post-detail .blog-post-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .blog-post-detail .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .blog-post-detail .blog-post-content {
        padding: 0 1.5rem;
        font-size: 1rem;
    }
    
    .blog-content-wrapper,
    .blog-post-detail.has-toc .blog-content-wrapper {
        display: block !important;
        padding: 0 1.5rem;
    }
    
    .table-of-contents {
        margin-bottom: 2rem;
        min-width: auto;
        max-width: none;
    }
    
    .toc-sticky {
        position: static;
        margin-bottom: 2rem;
        max-height: none;
        overflow-y: visible;
    }
    
    .blog-post-detail .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-detail .blog-post-content p:first-child {
        font-size: 1.125rem;
    }
    
    .blog-post-detail .blog-post-tags {
        padding: 0 1.5rem;
    }
    
    .blog-post-detail .blog-post-footer {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }
    
    .blog-post-detail .blog-post-featured-image {
        margin: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .blog-post-detail .blog-cta-section {
        margin: 0;
        padding: 2rem 1.5rem;
    }
    
    .blog-post-detail .blog-cta-section h3 {
        font-size: 1.5rem;
    }
    
    .blog-post-detail .blog-cta-section p {
        font-size: 1rem;
    }
    
    .blog-post-detail .cta-primary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}

/* Blog Content Wrapper */
.blog-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
}

/* Desktop grid layout with higher specificity */
@media (min-width: 769px) {
    .blog-post-detail.has-toc .blog-content-wrapper {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important;
        gap: 3rem;
        align-items: start;
    }
}

.blog-post-detail.centered .blog-content-wrapper {
    display: block;
    max-width: 1200px;
}

/* Enhanced Blog Content Styles */
.blog-post-detail .blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #e2e8f0;
    word-spacing: normal;
    letter-spacing: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 0; /* Prevent grid overflow */
    overflow-wrap: break-word;
}

.blog-post-detail .blog-post-content h1,
.blog-post-detail .blog-post-content h2,
.blog-post-detail .blog-post-content h3,
.blog-post-detail .blog-post-content h4 {
    color: #f8fafc;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    position: relative;
}

.blog-post-detail .blog-post-content h2 {
    font-size: 2rem;
    border-bottom: 3px solid #6366f1;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-detail .blog-post-content h3 {
    font-size: 1.5rem;
    color: #a5b4fc;
}

.blog-post-detail .blog-post-content h4 {
    font-size: 1.25rem;
    color: #cbd5e1;
}

.blog-post-detail .blog-post-content p {
    margin-bottom: 1.5rem;
    text-align: left;
    word-spacing: normal;
    letter-spacing: normal;
}

.blog-post-detail .blog-post-content p:first-child {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 2rem;
}

.blog-post-detail .blog-post-content strong {
    color: #f8fafc;
    font-weight: 600;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post-detail .blog-post-content ul,
.blog-post-detail .blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-detail .blog-post-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.blog-post-detail .blog-post-content ul li::marker {
    color: var(--yellow-primary);
    font-size: 1.5rem;
}

.blog-post-detail .blog-post-content blockquote {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid #6366f1;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #a5b4fc;
    font-size: 1.125rem;
    position: relative;
}

.blog-post-detail .blog-post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--yellow-primary);
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-family: serif;
}

/* Blog Post Content Links */
.blog-post-detail .blog-post-content a {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-color: rgba(96, 165, 250, 0.4);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.blog-post-detail .blog-post-content a:hover {
    color: #93c5fd;
    text-decoration-color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.blog-post-detail .blog-post-content a:active {
    color: #dbeafe;
}

/* Blog Image Styles */
.blog-post-detail .blog-post-content .blog-image-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.blog-post-detail .blog-post-content .blog-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.blog-post-detail .blog-post-content .blog-image:hover {
    transform: scale(1.02);
}

.blog-post-detail .blog-post-content .blog-image-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

/* Table of Contents Styles */
.table-of-contents {
    position: relative;
    min-width: 260px;
    max-width: 300px;
}

.toc-sticky {
    position: sticky;
    top: 6rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.toc-sticky h4 {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
}

.toc-link:hover {
    color: var(--yellow-primary);
    border-left-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0 8px 8px 0;
    padding-left: 1.25rem;
}

.toc-link.active {
    color: #a5b4fc;
    border-left-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 0 8px 8px 0;
}

.toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.8rem;
}

.toc-h4 {
    padding-left: 2rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-content-wrapper {
    color: #e2e8f0;
    line-height: 1.7;
}

.blog-content-wrapper h2 {
    color: #f8fafc;
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.blog-content-wrapper h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.blog-content-wrapper h4 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.blog-content-wrapper p {
    margin-bottom: 1.5rem;
}

.blog-content-wrapper ul,
.blog-content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content-wrapper li {
    margin-bottom: 0.5rem;
}

.blog-content-wrapper strong {
    color: #f8fafc;
    font-weight: 600;
}

.blog-content-wrapper blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #a5b4fc;
    font-size: 1.125rem;
}

.content-highlight {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.content-highlight h4 {
    color: #a5b4fc;
    margin-top: 0;
}

.blog-cta {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.blog-cta h3 {
    color: #f8fafc;
    margin-bottom: 1rem;
}

.blog-cta p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-gold);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-widget {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    color: #f8fafc;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.toc-list a:hover {
    color: #a5b4fc;
}

.social-share {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    border: 1px solid rgba(29, 161, 242, 0.2);
}

.share-btn.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
    border: 1px solid rgba(0, 119, 181, 0.2);
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.share-btn:hover {
    transform: translateY(-1px);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.related-post:hover {
    background: rgba(15, 23, 42, 0.8);
}

.related-post img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-content h5 {
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.related-date {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Responsive Design for Blog Post */
@media (max-width: 768px) {
    .blog-post {
        padding: 6rem 0 2rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post-meta {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .blog-post-author {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .author-info {
        text-align: center;
    }
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #a5b4fc;
}

.pagination-number.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination-btn {
        order: -1;
    }
}

/* Website button styling */
.provider-website {
    margin: 15px 0;
}

.website-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.website-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.website-link i {
    margin-right: 6px;
}

/* Legal Table Styles */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table tr:last-child {
    border-bottom: none;
}

.legal-table td {
    padding: 1rem 1.5rem;
    vertical-align: top;
    color: #e2e8f0;
    line-height: 1.6;
}

.legal-table td.label {
    background: rgba(99, 102, 241, 0.1);
    color: #f1f5f9;
    font-weight: 600;
    width: 200px;
    min-width: 200px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table td a {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-color: rgba(96, 165, 250, 0.5);
    text-underline-offset: 2px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.legal-table td a:hover {
    color: #93c5fd;
    text-decoration-color: #93c5fd;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

/* Mobile responsive for legal table */
@media (max-width: 768px) {
    .legal-table {
        font-size: 0.9rem;
    }
    
    .legal-table td {
        padding: 0.75rem 1rem;
    }
    
    .legal-table td.label {
        width: 120px;
        min-width: 120px;
    }
}
/* SaaS Consulting Section Styles */
.saas-consulting-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    position: relative;
}

.saas-consulting-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23D4AF37" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

.consulting-intro {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.consulting-intro .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.consulting-intro .section-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.consulting-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: left;
}

.consulting-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.consulting-results {
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 3rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.result-item:hover::before {
    left: 100%;
}

.result-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.result-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.result-item h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.result-item p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .saas-consulting-section {
        padding: 3rem 0;
    }
    
    .consulting-intro .section-title {
        font-size: 2.2rem;
    }
    
    .consulting-intro .section-subtitle {
        font-size: 1.1rem;
    }
    
    .consulting-description p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .result-item {
        padding: 1.5rem;
    }
    
    .result-item h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .consulting-intro .section-title {
        font-size: 1.8rem;
    }
    
    .results-title {
        font-size: 1.7rem;
    }
}

/* Cache buster: Thu Sep  4 10:00:43 JST 2025 */
