* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-serif: 'Playfair Display', serif;
    --font-serif-body: 'EB Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-600: #d97706;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
}

body {
    font-family: var(--font-sans) !important;
    line-height: 1.6;
    color: var(--slate-900);
    background: white;

}

/* Header */
.editorial-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.editorial-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editorial-logo {
    font-family: var(--font-serif) !important;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.editorial-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.editorial-nav-links a {
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.editorial-nav-links a:hover {
    color: var(--orange-600);
}

/* Hero Section */
.editorial-hero {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-700) 100%);
    color: white;
    padding: 8.5rem 2rem 4.5rem;
    text-align: center;
}

.editorial-hero h1 {
    font-family: var(--font-serif) !important;
    color: #fff;
    font-size: 5.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.editorial-hero p {
    font-family: var(--font-serif-body) !important;
    font-size: 2rem;
    color: var(--slate-300);
    max-width: 700px;
    margin: 2.5rem auto 0;
}

/* Category Navigation */
.editorial-category-nav {
    position: sticky;
    top: 95px;
    z-index: 50;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 990px) {
    .editorial-category-nav {
        top: 88px;
    }
}

.editorial-category-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.editorial-category-nav-container::-webkit-scrollbar {
    display: none;
}

.editorial-category-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--slate-200);
    background: transparent;
    color: var(--slate-600);
    font-family: var(--font-sans);
}

.editorial-category-btn:hover {
    background: var(--slate-50);
}

.editorial-category-btn.editorial-active {
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    border-color: transparent;
    color: white;
}

/* Featured Article */
.editorial-featured-article {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.editorial-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

.editorial-featured-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.editorial-author-link {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.editorial-featured-card:hover .editorial-featured-title {
    color: var(--orange-600);
}

.editorial-author-link:hover .editorial-author-name-text {
    color: var(--orange-600);
}

.editorial-featured-image-container {
    position: relative;
    overflow: hidden;
}

.editorial-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

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

.editorial-featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.editorial-featured-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-featured-category {
    color: var(--orange-600);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.375rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.editorial-featured-title {
    font-family: var(--font-serif) !important;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.editorial-featured-excerpt {
    font-family: var(--font-serif-body) !important;
    font-size: 1.95rem;
    color: var(--slate-700);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.editorial-featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
}

.editorial-featured-author {
    /* Styles moved to .editorial-author-link */
}

.editorial-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.editorial-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-500);
}

/* Author of the Week */
.editorial-author-section {
    margin-bottom: 5rem;
}

.editorial-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.editorial-section-icon {
    width: 2rem;
    height: 2rem;
    color: var(--orange-600);
}

.editorial-section-title {
    font-family: var(--font-serif) !important;
    font-size: 4.2rem;
    margin-top: 2rem;
}

.editorial-author-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    background: linear-gradient(135deg, var(--slate-50) 0%, white 100%);
    border: 2px solid var(--slate-200);
    border-radius: 1rem;
    padding: 5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.editorial-author-info {
    text-align: left;
}

.editorial-author-avatar-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.editorial-author-avatar-wrapper {
    position: relative;
}

.editorial-author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--orange-500);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.editorial-author-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 48px;
    height: 48px;
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.editorial-author-badge svg {
    width: 24px;
    height: 24px;
    color: white !important;
}

.editorial-author-name {
    font-family: var(--font-serif) !important;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.editorial-author-title {
    color: var(--orange-600);
    font-weight: 600;
    font-size: 1.625rem;
    margin-bottom: 1.3rem;
}

.editorial-author-bio {
    font-family: var(--font-serif-body) !important;
    font-size: 1.725rem;
    color: var(--slate-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.editorial-author-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--slate-600);
}

.editorial-author-stats svg {
    width: 1.95rem;
    height: 1.95rem;
    color: var(--orange-500);
}

.editorial-view-profile-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--orange-500);
    background: transparent;
    color: var(--orange-600);
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
}

.editorial-view-profile-btn:hover {
    background: #fff7ed;
}

.editorial-author-article {
    cursor: pointer;
}

.editorial-author-article-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.editorial-author-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.editorial-author-article:hover .editorial-author-article-image {
    transform: scale(1.05);
}

.editorial-article-badge {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.editorial-article-badge-category {
    left: 1.5rem;
    top: 1.5rem;
    font-size: 1.15rem;
    background: white;
    color: var(--orange-600);
}

.editorial-article-badge-featured {
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.15rem;
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    color: white;
}

.editorial-author-article-title {
    font-family: var(--font-serif) !important;
    font-size: 3.4rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.editorial-author-article:hover .editorial-author-article-title {
    color: var(--orange-600);
}

.editorial-author-article-excerpt {
    font-family: var(--font-serif-body) !important;
    font-size: 1.725rem;
    color: var(--slate-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.editorial-author-article-meta {
    display: flex;
    gap: 2rem;
    color: var(--slate-500);
    font-size: 1.525rem;
}

.editorial-meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.editorial-meta-item svg {
    width: 2rem;
    height: 2rem;
}

/* Articles Section */
.editorial-articles-section {
    padding: 5rem 1.5rem;
    background: white;
}

.editorial-articles-container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.editorial-articles-heading {
    font-family: var(--font-serif) !important;
    font-size: 2.5rem;
    text-transform: capitalize;
}

.editorial-sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--slate-200);
    border-radius: 9999px;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
    transition: border-color 0.3s;
    font-family: var(--font-sans);
    background: white;
}

.editorial-sort-select:hover {
    border-color: var(--slate-300);
}

.editorial-sort-select:focus {
    outline: none;
    border-color: var(--orange-500);
}

/* Article Cards Grid */
.editorial-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.editorial-article-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.editorial-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--slate-300);
}

.editorial-article-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.editorial-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.editorial-article-card:hover .editorial-article-image {
    transform: scale(1.05);
}

.editorial-article-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    color: var(--orange-600);
    padding: 0.375rem 1.2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editorial-article-content {
    padding: 2.5rem;
}

.editorial-article-title {
    font-family: var(--font-serif) !important;
    font-size: 2.175rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.editorial-article-card:hover .editorial-article-title {
    color: var(--orange-600);
}

.editorial-article-excerpt {
    font-family: var(--font-serif-body) !important;
    font-size: 1.675rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.editorial-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-100);
}

.editorial-article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editorial-article-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.editorial-article-author-name {
    font-size: 1.475rem;
    padding-left: 1rem;
    font-weight: 500;
    color: var(--slate-700);
}

.editorial-article-read-time {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--slate-500);
    font-size: 1.4rem;
}

.editorial-article-read-time svg {
    width: 16;
    height: 16;
}

/* Pagination */
.editorial-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.editorial-pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--slate-200);
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--slate-700);
    font-family: var(--font-sans);
}

.editorial-pagination-btn:hover:not(:disabled) {
    border-color: var(--slate-300);
    background: var(--slate-50);
}

.editorial-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.editorial-pagination-btn.editorial-active {
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    border-color: transparent;
    color: white;
}

/* Newsletter */
.editorial-newsletter {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-700) 100%);
    color: white;
    padding: 5rem 1.5rem;
    text-align: center;
}

.editorial-newsletter-container {
    max-width: 700px;
    margin: 0 auto;
}

.editorial-newsletter h2 {
    font-family: var(--font-serif) !important;
    font-size: 4.4rem;
    margin-bottom: 2rem;
    color: #fff;
}

.editorial-newsletter p {
    font-family: var(--font-serif-body) !important;
    font-size: 1.725rem;
    color: var(--slate-300);
    margin-bottom: 2rem;
}

.editorial-newsletter-form {
    display: flex;
    gap: 2rem;
    max-width: 500px;
    margin: 3rem auto;
}

.editorial-newsletter-input {
    flex: 1 !important;
    padding: .6rem 2rem !important;
    border: none !important;
    border-radius: 9999px !important;
    font-size: 1.7rem !important;
    font-family: var(--font-sans) !important;
    background-color: #fff !important;
    width: 40% !important;
    display: inline !important;
    margin-right: 1.7rem !important;
}

@media (max-width: 768px) {
    .editorial-newsletter-input {
        padding: .75rem 2rem !important;
    }
}

.editorial-newsletter-btn {
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    font-family: var(--font-sans);
}

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


/* Utility */
.editorial-hidden {
    display: none !important;
}

.editorial-space-y-20>*+* {
    margin-top: 5rem;
}

/* Empty State */
.editorial-empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
}

.editorial-empty-state p {
    font-family: var(--font-serif-body) !important;
    font-size: 1.25rem;
    color: var(--slate-500);
}

/* Responsive */
@media (max-width: 768px) {
    .editorial-hero h1 {
        font-size: 2.5rem;
    }

    .editorial-hero p {
        font-size: 1.525rem;
    }

    .editorial-featured-card {
        grid-template-columns: 1fr;
    }

    .editorial-author-showcase {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .editorial-author-info {
        text-align: center;
    }

    .editorial-author-avatar-container {
        justify-content: center;
    }

    .editorial-articles-grid {
        grid-template-columns: 1fr;
    }

    .editorial-newsletter-form {
        flex-direction: column;
    }

    .editorial-nav-links {
        display: none;
    }

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

    .editorial-author-name {
        font-size: 2rem;
    }
}

/* Toast Notification */
.editorial-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--slate-900);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
    }

    to {
        transform: translateX(0);
    }
}