/* Blog Hero Section - Colorful Card Style */
.blog-hero {
    background: #ffffff;
    color: #000000;
    padding: 160px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    display: none;
}

.blog-hero .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: slideUpFade 0.8s ease-out;
}

.blog-hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -3px;
    line-height: 1;
    color: #000000;
    text-align: center;
}

.blog-hero .hero-subline {
    font-size: 1.5rem;
    color: #6e6e73;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* Smooth Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.blog-hero .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    /* Initial state for animation */
    animation: slideUpFade 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: slideUpFade 0.6s ease-out forwards;
}

/* Ensure visibility if JS fails or animation is slow */
.blog-hero .hero-content,
.fade-in {
    visibility: visible;
}

/* Stagger card animations */
.article-grid .article-card:nth-child(1) {
    animation-delay: 0.1s;
}

.article-grid .article-card:nth-child(2) {
    animation-delay: 0.2s;
}

.article-grid .article-card:nth-child(3) {
    animation-delay: 0.3s;
}

.article-grid .article-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Article Grid Section */
.article-grid-section {
    padding: 40px 5% 100px;
    background-color: #ffffff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.article-card {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* In case it's an <a> tag later */
}

.article-card:hover {
    transform: none;
    /* OpenAI style is very static, maybe subtle image zoom only */
}

.article-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    background-color: #f8fafc;
}

.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-image-container img {
    transform: scale(1.04);
}

/* Abstract Gradients - Vibrant & Soft */
.gradient-1 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Soft pinkish/yellow like OpenAI */
.gradient-2 {
    background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, #111827 100%);
}

/* Deep blue */
.gradient-3 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Bright blue */
.gradient-4 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.article-content {
    padding: 0;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000000;
    line-height: 1.3;
    transition: color 0.3s;
}

.article-card:hover .article-title {
    color: #000000;
    /* Titles stay black in OpenAI style */
    text-decoration: underline;
}

.article-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
    color: #6e6e73;
    /* Apple/OpenAI style grey */
    font-weight: 500;
}

/* Featured Badge Style (GPT-5.3 Instant style) */
.featured-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 12px 28px;
    border-radius: 100px;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-badge span {
    font-weight: 400;
    color: #6e6e73;
}

/* Logo Overlay Style (OpenAI | Amazon style) */
.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
}

.logo-overlay .divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
}

.logo-overlay .amazon {
    font-weight: 400;
}

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .featured-badge,
    .logo-overlay {
        font-size: 1.25rem;
        padding: 12px 24px;
    }
}

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

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .featured-badge,
    .logo-overlay {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
}

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

.pagination a {
    color: #0A2647;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination a:hover:not(.active) {
    background-color: #f0f0f0;
}

/* Article Post Header - Clean Layout */
.article-post-header {
    padding: 140px 5% 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    animation: slideUpFade 0.8s ease-out;
}

.article-post-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #000000;
    text-align: center;
}

.article-post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #6e6e73;
    font-size: 1rem;
    font-weight: 500;
}

.article-container {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

/* Hide original hero */
.article-hero {
    display: none;
}

.article-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-body {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #1E293B;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 60px;
    margin-bottom: 24px;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.article-body p {
    margin-bottom: 24px;
}

/* New content block styles */
.article-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #0F172A;
    border-left: 4px solid var(--accent);
    padding-left: 30px;
    margin: 40px 0;
    font-weight: 500;
    line-height: 1.4;
}

.article-list {
    margin-bottom: 30px;
    padding-left: 20px;
}

.article-list li {
    margin-bottom: 12px;
    position: relative;
    list-style: disc;
}

.article-body-image {
    width: 100%;
    border-radius: 12px;
    margin: 40px 0;
}

.related-articles {
    margin-top: 80px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.related-article-card {
    margin-bottom: 12px;
}

.related-article-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.related-article-card a:hover {
    text-decoration: underline;
}

.article-image-container.no-image {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.article-image-container.no-image::after {
    content: "No Image Available";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

.share-buttons {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-buttons a {
    font-size: 1.5rem;
    color: #0A2647;
    transition: color 0.3s;
}

.share-buttons a:hover {
    color: var(--primary);
}

.related-articles {
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 40px;
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0A2647;
}

.related-article-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.related-article-card a {
    text-decoration: none;
    color: #0A2647;
    font-weight: 600;
}


/* ChatGPT Style Badge for CTA */
.chatgpt-cta-container {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.chatgpt-cta-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #000000;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chatgpt-cta-btn:hover {
    transform: scale(1.05);
    background: #1a1a1a;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.chatgpt-cta-icon-wrapper {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.1rem;
    overflow: hidden; /* Ensure image stays inside circle */
}

.chatgpt-cta-icon-wrapper img {
    max-width: 70%;
    max-height: 70%;
}

.chatgpt-cta-text {
    font-size: 1rem;
    letter-spacing: -0.2px;
}

/* Redesigned CTA Card */
.cta-section {
    display: flex;
    justify-content: center;
    margin: 80px 0;
}

.cta-card {
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: 80px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.cta-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.cta-subtext {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cta-card .btn-primary {
    background: white;
    color: #0f172a;
    padding: 20px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* TOC Styles */
.toc-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.toc-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #0f172a;
}

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

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Internal Links */
.internal-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

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

.cta-trust {
    margin-top: 24px;
    font-size: 0.9rem;
    color: #94a3b8;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.btn-pulse {
    animation: pulse 2.5s infinite;
}