:root {
    --bg-color: #ffffff;
    --primary-color: #2563eb;
    --secondary-color: #4f46e5;
    --text-primary: #020617;
    --text-slate: #1e293b;
    --gray-light: #f8fafc;
    --gray-border: #f1f5f9;
    --card-radius: 2.5rem;
    --shadow-premium: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Layout Widths - Edit these to make site cleaner */
    --width-main: 65rem;
    /* Default was 80rem (max-w-7xl) */
    --width-narrow: 64rem;
    /* Centered headers */
    --width-content: 50rem;
    /* Standard reading width */
}

/* GLOBAL CONTAINERS */
.container-main {
    max-width: var(--width-main);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.container-narrow {
    max-width: var(--width-narrow);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.container-content {
    max-width: var(--width-content);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* Base resets and selections inherited from Tailwind base */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* REUSABLE COMPONENTS */

/* Main Article Card - Homepage */
.article-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-0.5rem);
}

/* Category Badge - "CAT: ..." */
.badge-cat {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 10;
}

/* Arrow Icon Wrapper */
.arrow-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.article-card:hover .arrow-icon {
    background: var(--primary-color);
    color: white;
}

/* Hero Section Primary */
.hero-main {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    padding: 5rem 1rem;
    text-align: center;
    color: white;
}

/* Section Title - Bold Headlines */
.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Small Label Above Titles */
.label-eyebrow {
    font-size: 10px;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

/* Navigation Pill Links */
.nav-pill {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.nav-pill:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-pill {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.btn-pill:hover {
    transform: scale(1.05);
}

.btn-outline {
    background: rgba(79, 70, 229, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.5);
}

/* Corner Decoration */
.corner-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    background: rgba(37, 99, 235, 0.05);
    border-bottom-left-radius: 5rem;
    margin-right: -2rem;
    margin-top: -2rem;
    transition: background 0.3s ease;
}

.article-card:hover .corner-decor {
    background: rgba(37, 99, 235, 0.1);
}

/* Card Footer Divider */
.card-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.card-footer-text {
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 1:1 News Drop Cap Style */
.drop-cap:first-letter {
    float: left;
    font-size: 5.5rem;
    line-height: 0.7;
    font-weight: 900;
    margin-right: 0.85rem;
    margin-top: 0.6rem;
    font-family: 'Outfit', sans-serif;
    color: #4f46e5;
    /* Indigo */
    text-transform: uppercase;
}

/* Typography Overrides for Prose */
.prose p,
.article-content p {
    margin-bottom: 2rem !important;
    line-height: 1.8;
}

.prose strong,
.article-content strong {
    font-weight: 900;
    color: #0f172a;
}

.p-8 {
    padding: 1rem !important;
}

.p-10 {
    padding: 1rem !important;
}

.text-xl {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: #020617;
    line-height: 1.25;
    margin-top: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.article-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem !important;
    padding-left: 1.5rem !important;
}

.article-content ul {
    list-style-type: disc !important;
}

.article-content ol {
    list-style-type: decimal !important;
}

.article-content li {
    margin-bottom: 0.75rem !important;
    padding-left: 0.5rem;
    color: #334155;
    line-height: 1.6;
}

.article-content li::marker {
    color: var(--primary-color);
    font-weight: 900;
}

/* FAQ Accordion Reset */
details>summary {
    list-style: none;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

/* Article Hero Section */
.hero-article {
    background: #020617 radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, #020617 100%);
    padding: 6rem 1rem;
    text-align: center;
    color: white;
}

/* Breadcrumb Pills */
.breadcrumb-pill {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--secondary-color);
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.breadcrumb-pill:hover {
    background: var(--secondary-color);
    color: white;
}

/* Author Identity Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-border);
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

/* FAQ Component */
.faq-container {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid var(--gray-border);
    text-align: center;
}

.faq-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Related Article Card */
.related-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--gray-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #e0e7ff;
    transform: translateY(-2px);
}

.related-icon {
    background: #eef2ff;
    color: var(--secondary-color);
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.related-card:hover .related-icon {
    background: var(--secondary-color);
    color: white;
}

/* Category & Directory Pages */
.category-header {
    max-width: 56rem;
    margin: 0 auto;
    padding: 5rem 1rem;
    text-align: center;
}

.category-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.document-item {
    display: block;
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.document-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: #e0e7ff;
    transform: translateY(-2px);
}

.document-item-flex {
    display: flex;
    align-items: stretch;
}

.number-badge {
    width: 6rem;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--gray-border);
    font-size: 1.5rem;
    font-weight: 900;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.document-item:hover .number-badge {
    color: var(--primary-color);
}

.item-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-title {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-slate);
    text-transform: uppercase;
    line-height: 1.4;
    transition: color 0.3s ease;
    padding-right: 1rem;
}

.document-item:hover .item-title {
    color: var(--primary-color);
}

.item-icon {
    color: #e2e8f0;
    transition: color 0.3s ease;
}

.document-item:hover .item-icon {
    color: var(--primary-color);
}

/* Radial Gradients for Hero Sections */
.news-hero-gradient {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, #020617 100%);
}

.dark-hero-gradient {
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
}

/* Security Check Modal */
.security-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.security-modal {
    background: white;
    width: 100%;
    max-width: 340px;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.security-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.security-title {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.security-text {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.btn-human {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background: var(--primary-color);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    text-decoration: none !important;
}

.btn-human:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
    background: #1d4ed8;
}

.btn-human svg {
    transition: transform 0.3s ease;
}

.btn-human:hover svg {
    transform: translateX(4px);
}

/* --- Info Modal System --- */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-modal-overlay.show {
    opacity: 1;
}

.info-modal-container {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 1.5rem;
    position: relative;
    padding: 2.5rem;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-modal-overlay.show .info-modal-container {
    transform: scale(1) translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.close-modal-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

#modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

#modal-content p {
    color: #475569;
    line-height: 1.625;
    margin-bottom: 1rem;
}

#modal-content ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.25rem;
}

#modal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #475569;
}

#modal-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

#modal-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.footer-nav-link {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

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

/* --- New UI Enhancements (Based on Images) --- */

/* FAQ Enhancement */
.faq-pill-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.faq-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1rem 3rem;
    border-radius: 9999px;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.faq-title-text {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.faq-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.faq-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Hide default marker */
.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary {
    list-style: none;
    outline: none;
}

.faq-chevron {
    width: 2rem;
    height: 2rem;
    background: #f3f4f6;
    color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.group-open .faq-chevron {
    transform: rotate(180deg);
    background: #e0e7ff;
}

/* Discover More Section */
.discover-more-container {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #f1f5f9;
}

.discover-more-title {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    display: inline-block;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 3.5rem;
}

.discover-more-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -70px;
    width: 50px;
    height: 4px;
    background: #4f46e5;
    border-radius: 99px;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.discover-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.discover-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.discover-index {
    width: 2.25rem;
    height: 2.25rem;
    background: #eff6ff;
    color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.discover-meta {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.35rem;
}

/* Master Sitemap Page Styles */
.master-body {
    background: #0f172a;
    color: #f1f5f9;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
}

.master-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.master-header {
    border-bottom: 1px solid #1e293b;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.master-title {
    font-size: 2.5rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.master-title .emoji { 
    font-size: 2.5rem; 
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.master-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

.master-subtitle span.highlight {
    color: #22c55e;
    font-weight: 900;
}

.master-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.master-card:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.3);
}

.master-card-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.master-num {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-weight: 950;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-family: 'Fira Code', monospace;
}

.master-folder {
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: #e2e8f0;
}

.master-slug-box {
    background: #020617;
    border: 1px solid #1e293b;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #38bdf8;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.master-slug-box:hover {
    border-color: #38bdf8;
    background: #0f172a;
}

.master-slug-box:active {
    transform: scale(0.98);
}

.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 900;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.copy-toast.show {
    opacity: 1;
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #1e293b;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pagination-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1);
}

.prev-btn svg { transform: rotate(180deg); }

.pagination-info {
    font-size: 0.875rem;
    font-weight: 800;
    color: #94a3b8;
    background: #f8fafc;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
    .pagination-info {
        order: -1;
    }
}

/* Premium Magazine Article Styles */
.magazine-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drop-cap-box {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background: #eef2ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 950;
    border-radius: 0.75rem;
    font-family: var(--font-display);
    box-shadow: inset 0 0 0 1px rgba(67, 56, 202, 0.1);
}

.magazine-title-wrapper {
    flex-grow: 1;
}

.magazine-subtitle {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.magazine-highlight {
    color: #4338ca;
    text-transform: uppercase;
    font-weight: 900;
    border-bottom: 2px solid #c7d2fe;
}

.article-body-p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #334155;
    font-size: 1.125rem;
}

.recommended-box {
    margin: 3.5rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, #4338ca, #a855f7) border-box;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05);
}

.recommended-box:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -12px rgba(67, 56, 202, 0.15);
}

.recommended-label-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.recommended-dash {
    width: 3.5rem;
    height: 3px;
    background: linear-gradient(to right, #4338ca, transparent);
    border-radius: 99px;
    flex-shrink: 0;
}

.recommended-text {
    font-size: 0.875rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #4338ca;
    font-family: 'Outfit', sans-serif;
}

.recommended-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.recommended-article-title {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.recommended-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: #4338ca;
    color: white;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px -5px rgba(67, 56, 202, 0.4);
}

@media (max-width: 768px) {
    .magazine-header {
        flex-direction: column;
        gap: 1rem;
    }
    .drop-cap-box {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 2rem;
    }
}
/* Bing Image Gallery Styles - Premium Magazine */
.bing-gallery-container {
    margin: 4rem 0;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 2.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.bing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .bing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .bing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bing-item-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.8);
}

.bing-item-wrapper:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-color: #4338ca;
}

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

.bing-item-wrapper:hover .bing-img {
    transform: scale(1.15);
}

.bing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.bing-item-wrapper:hover .bing-overlay {
    opacity: 1;
}

/* Lightbox Styles - Premium Image Viewer */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.show {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 5px solid white;
}

.lightbox-overlay.show .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.bing-item-wrapper {
    cursor: zoom-in;
}

/* Lightbox Ad Styling */
.lightbox-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 95vh;
    gap: 1rem;
}

.lightbox-ad-top {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 90px;
}
