@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-regular-400.woff2') format('woff2');
}

:root {
    --color-primary: #DC143C;
    --color-bg: #F9F6EE;
    --color-text: #1B1212;
    --color-text-light: #2D2D2D;
    --color-border: rgba(27, 18, 18, 0.25);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.date-display {
    white-space: nowrap;
}

.translate-container {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.translate-container i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.search-form {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    position: relative;
}

.search-form input {
    padding: 0.25rem 2rem 0.25rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    font-size: 0.85rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-form button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
}

.x-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    text-decoration: none;
    color: inherit;
}

.top-bar .auth-link {
    color: var(--color-bg) !important;
}

.top-bar .social-links span {
    color: var(--color-bg) !important;
}

.social-links a {
    margin-left: 1.5rem;
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-bg);
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 100%;
}

.logo-container {
    text-align: center;
    padding: 3rem 1rem;
    background-image: radial-gradient(circle at center, rgba(220, 20, 60, 0.03) 0%, transparent 70%);
    position: relative;
}

.corner-logo-link {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    z-index: 10;
}

.corner-logo {
    max-width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.corner-logo:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(8px 8px 20px rgba(0, 0, 0, 0.3));
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 5.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #800000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(6px 6px 12px rgba(0, 0, 0, 0.2));
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo h1:hover {
    transform: translateY(-3px) scale(1.01);
}

.tagline {
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-primary);
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.main-nav {
    border-top: 2px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    position: sticky;
    top: 0;
    background-color: rgba(249, 246, 238, 0.98);
    backdrop-filter: blur(8px);
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-nav ul::-webkit-scrollbar {
    display: none;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: 25px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.25);
}

.mobile-nav-header {
    display: none;
    align-items: center;
    padding: 0 1rem;
    background-color: var(--color-bg);
}

.mobile-menu-toggle {
    font-size: 1.5rem;
    padding: 1rem 1rem 1rem 0;
    cursor: pointer;
    color: var(--color-primary);
}

.mobile-page-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.content {
    max-width: var(--max-width);
    width: 94%;
    margin: 4rem auto;
    padding: 0 1rem;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.featured-article {
    position: sticky;
    top: 5rem;
    align-self: start;
    z-index: 10;
}

.side-articles-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.side-article {
    animation: fadeIn 0.6s ease-out forwards;
}

.image-placeholder {
    background-color: #E8E3D8;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.image-placeholder::before {
    content: 'Image Area';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(27, 18, 18, 0.4);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    z-index: 2;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.02) 55%, transparent 55%);
    background-size: 10px 10px;
    z-index: 1;
}

article:hover .image-placeholder {
    transform: scale(1.02);
}

.image-placeholder.main-feature {
    aspect-ratio: 21 / 9;
    margin-bottom: 1.5rem;
    max-height: 400px;
}

.image-placeholder.side {
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
    max-height: 180px;
}

.image-placeholder.card-img {
    aspect-ratio: 16 / 10;
    margin-bottom: 1.25rem;
    max-height: 220px;
}

.featured-article {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    cursor: pointer;
    aspect-ratio: 3 / 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.featured-article-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.featured-article-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease-in-out;
}

.featured-article:hover .featured-article-bg img {
    transform: scale(1.03);
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-article-overlay {
    position: relative;
    z-index: 2;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white !important;
    text-align: center;
    width: 100%;
}

.featured-article-overlay h2,
.featured-article-overlay .featured-meta,
.featured-article-overlay .category-tag {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease-in-out;
    opacity: 1;
    transform: translateY(0);
    display: inline-block;
    width: 100%;
}

.featured-article-overlay h2 {
    display: block !important;
}

.featured-article-overlay .category-tag {
    width: auto !important;
}

/* Elegant Ken-Burns fade and slide-up transition states */
.featured-article.is-transitioning .featured-article-bg img {
    opacity: 0.15;
    transform: scale(1.06);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out !important;
}

.featured-article.is-transitioning .featured-article-overlay h2,
.featured-article.is-transitioning .featured-article-overlay .featured-meta,
.featured-article.is-transitioning .featured-article-overlay .category-tag {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out !important;
}

.featured-article-overlay h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem !important;
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white !important;
}

.featured-article-overlay h2 a {
    color: white !important;
}

.featured-article-overlay .category-tag {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.featured-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.8rem;
}

.featured-meta .author {
    color: white !important;
}

.featured-meta .post-date {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
    font-weight: 600;
}

@media (min-width:993px) {
    .featured-article {
        position: sticky;
        top: 5rem;
        align-self: start;
    }
}

.featured-article h2 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.category-tag {
    display: inline-block;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
}

.featured-article .article-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 900;
}

.featured-article .excerpt {
    font-size: 0.98rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.author {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text);
    letter-spacing: 1px;
}

.side-article {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.side-article h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.side-article:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.side-article h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.side-article .card-img {
    border-radius: 0 !important;
    aspect-ratio: 1 / 1 !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.side-article .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-article:hover .card-img img {
    transform: scale(1.04);
}

.side-article .excerpt {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.section-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 4rem 0;
    position: relative;
    opacity: 0.8;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background-color: var(--color-primary);
}

.post-date {
    font-size: 0.78rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date i {
    color: var(--color-primary);
}

.new-card-content .post-date {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.new-card-content .post-date i {
    color: rgba(255, 255, 255, 0.8);
}

.whats-new-carousel {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #E8E3D8;
    min-height: 382px;
    /* Reserve height for dynamic RSS feed cards to eliminate CLS */
}

.whats-new-carousel::-webkit-scrollbar {
    height: 6px;
}

.whats-new-carousel::-webkit-scrollbar-track {
    background: #E8E3D8;
    border-radius: 10px;
}

.whats-new-carousel::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.whats-new-track {
    display: inline-flex;
    gap: 1.5rem;
}

.new-card {
    width: 260px;
    flex-shrink: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 20, 60, 0.2);
}

.new-card-img {
    height: 350px;
    width: 100%;
}

.new-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.new-card:hover .new-card-img img {
    opacity: 0.5;
    transform: scale(1.05);
}

.new-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: white;
}

.new-card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2.5rem;
}

@media (max-width:1200px) {
    .grid-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:992px) {
    .grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:576px) {
    .grid-section {
        grid-template-columns: 1fr;
    }
}

.grid-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    cursor: pointer;
    position: relative;
}

.grid-card h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img,
.featured-article .card-img,
.side-article .card-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    aspect-ratio: 3 / 2;
    width: 100%;
}

.featured-article .card-img {
    aspect-ratio: 16 / 9 !important;
    max-height: 450px;
}

.feature-image-container {
    max-width: 750px;
    margin: 0 auto 2.5rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.feature-image-container:hover {
    transform: scale(1.01);
}

img[src*="nisha-mandal.webp"] {
    object-position: center top !important;
}

.card-img img,
.featured-article img,
.side-article img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

article:hover .card-img img,
article:hover .featured-article img,
article:hover .side-article img {
    transform: scale(1.08);
}

.grid-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.grid-card .excerpt {
    font-size: 0.88rem;
    color: var(--color-text-light);
    flex-grow: 1;
}

.site-footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 5rem 2rem 2rem;
    margin-top: 6rem;
    border-top: 5px solid var(--color-primary);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-bg);
    letter-spacing: -0.5px;
    filter: drop-shadow(1px 1px 0px rgba(255, 255, 255, 0.2)) drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
}

.footer-brand p {
    color: rgba(249, 246, 238, 0.7);
    font-size: 0.9rem;
    max-width: 400px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(249, 246, 238, 0.9);
    position: relative;
    padding-left: 1rem;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(249, 246, 238, 0.1);
    font-size: 0.9rem;
    color: rgba(249, 246, 238, 0.5);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    animation: fadeIn 0.6s ease-out forwards;
}

@media (max-width:1200px) {
    .logo h1 {
        font-size: 4rem;
    }
}

@media (max-width:1100px) {
    .hero-section {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (max-width:992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-article {
        min-height: auto;
        position: relative;
        top: auto;
        z-index: auto;
    }

    .featured-article-overlay {
        padding: 1rem !important;
    }

    .side-articles-col {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .side-article {
        flex: 1 1 calc(50% - 1rem);
    }

    .logo h1 {
        font-size: 3.2rem;
    }

    .corner-logo-link {
        left: 2rem;
    }

    .corner-logo {
        max-width: 140px;
    }
}

@media (max-width:768px) {
    .top-bar {
        padding: 1rem;
        justify-content: center;
        text-align: center;
    }

    .translate-container {
        margin: 0 auto;
    }

    .social-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .search-form {
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0;
    }

    .search-form input {
        width: 100%;
        max-width: 300px;
    }

    .social-links a {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .main-nav {
        width: 100%;
        overflow: visible;
        background: rgba(249, 246, 238, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--color-border);
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 0;
    }

    .main-nav::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
        pointer-events: none;
        z-index: 5;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center;
        padding: 0;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0;
    }

    .main-nav li {
        margin: 0;
        border-bottom: none;
        flex: 0 0 auto;
    }

    .main-nav li:first-child {
        position: sticky;
        left: 0;
        z-index: 20;
        background-color: #F9F6EE;
        border-right: 2px solid rgba(220, 20, 60, 0.15);
        box-shadow: 5px 0 10px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
    }

    .main-nav a {
        display: inline-block;
        padding: 0.75rem 1.1rem;
        font-size: 0.95rem;
        white-space: nowrap;
        border-radius: 0;
    }

    .main-nav a.active::after {
        bottom: 5px;
    }

    .main-nav li:first-child a {
        padding-left: 1.25rem !important;
        padding-right: 1rem !important;
    }

    .main-nav a[title="Home"] i {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a {
        padding-left: 0;
    }

    .featured-article .article-content h2 {
        font-size: 1.5rem;
    }

    .corner-logo-link {
        position: relative;
        left: 0;
        transform: none;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .corner-logo {
        max-width: 90px;
    }

    .logo-area {
        display: block !important;
        text-align: center;
    }

    .content {
        width: 100%;
        padding: 0;
        margin: 2rem auto;
    }

    .hero-section {
        gap: 1.5rem;
    }

    .tagline {
        font-size: 1rem !important;
        letter-spacing: 3px !important;
    }
}

@media (max-width:480px) {
    .logo h1 {
        font-size: 1.75rem;
        letter-spacing: -1px;
    }

    .content {
        padding: 0;
        margin-top: 1.5rem;
    }

    .hero-section {
        padding: 0;
        margin-bottom: 2rem;
    }

    .featured-article {
        padding: 1rem;
        border-radius: 12px;
    }

    .featured-article .card-img {
        max-height: 200px !important;
        margin-bottom: 0.75rem;
    }

    .featured-article .article-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .grid-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-card {
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-areas: "img category" "img title" "img date";
        gap: 0.2rem 1rem;
        padding: 0.8rem;
        border-radius: 12px;
        align-items: center;
        flex: 1 1 100%;
    }

    .grid-card .card-img {
        grid-area: img;
        width: 110px;
        height: 80px;
        margin-bottom: 0;
        border-radius: 6px;
    }

    .grid-card h3 {
        grid-area: title;
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .grid-card .category-tag {
        grid-area: category;
        font-size: 0.75rem;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 1px solid var(--color-primary);
        justify-self: start;
    }

    .grid-card .post-date {
        grid-area: date;
        font-size: 0.8rem;
        margin-top: 0;
    }

    .side-article {
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-areas: "img category" "img title" "img date";
        gap: 0.2rem 1rem;
        padding: 0;
        align-items: center;
        flex: 1 1 100%;
    }

    .side-article .card-img {
        grid-area: img;
        width: 110px;
        height: 110px;
        aspect-ratio: 1 / 1 !important;
        margin-bottom: 0 !important;
        border-radius: 0;
    }

    .side-article h3 {
        grid-area: title;
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .side-article .category-tag {
        grid-area: category;
        font-size: 0.75rem;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 1px solid var(--color-primary);
        justify-self: start;
    }

    .side-article .post-date {
        grid-area: date;
        font-size: 0.8rem;
        margin-top: 0;
    }

    .grid-card .excerpt,
    .side-article .excerpt {
        display: none;
    }

    .main-nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .main-nav li:first-child a {
        padding-left: 1rem !important;
        padding-right: 0.8rem !important;
    }

    .main-nav a[title="Home"] i {
        font-size: 0.9rem;
    }
}

.interactions-section {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    padding: 2rem 1rem 0 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #eaeaea;
}

.reactions-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: none;
    margin-bottom: 1rem;
}

.reaction-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: none;
}

.reaction-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.reaction-btn i {
    font-size: 1.1rem;
}

.reaction-count {
    font-weight: 600;
    font-family: var(--font-body);
    color: #444;
    font-size: 0.9rem;
}

.comments-section {
    max-width: 100%;
    margin: 0;
}

.comment-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.3s;
    resize: vertical;
    background: #fdfdfd;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

.login-prompt-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.login-prompt-card p {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.related-articles-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.related-articles-section h3 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.related-articles-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
}

.floating-actions {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
}

.floating-btn {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--color-primary);
    font-size: 1.2rem;
}

.floating-btn:hover {
    transform: scale(1.1) translateX(5px);
    background: var(--color-primary);
    color: white;
}

@media (max-width:1024px) {
    .floating-actions {
        display: none;
    }

    .interactions-section {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
}

@media (max-width:768px) {
    html {
        font-size: 80% !important;
    }
}

.user-dropdown-container {
    position: relative;
    display: inline-block;
    margin-right: 1.5rem;
}

.user-greeting {
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: 1px solid #f0f0f0;
}

.user-dropdown-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-body);
}

.user-dropdown-menu a i {
    color: var(--color-primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.user-dropdown-menu a:hover {
    background: #fdf5f6;
    color: var(--color-primary);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.auth-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 3rem;
    background: white;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.auth-btn:hover {
    background-color: #b51031;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.static-content {
    background: white;
    padding: 3rem 4rem;
    border: 1px solid var(--color-border);
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.65;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.auth-link {
    font-weight: 700 !important;
    color: var(--color-primary) !important;
}

.interview-image-card {
    background-color: #f1f1f1;
    border-radius: 12px;
    padding: 10px;
    margin: 1.5rem auto;
    max-width: 320px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.interview-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.interview-image-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.zoom-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.zoom-overlay:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: zoom-out;
}

.zoom-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.zoom-overlay svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zoom-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.interview-q {
    margin-bottom: 2rem !important;
}

.interview-q p:first-child strong {
    font-size: 1.2rem;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.interview-q p strong {
    font-size: inherit;
    color: inherit;
    display: inline;
    font-family: inherit;
}

@media (max-width:768px) {
    .static-content {
        padding: 1.5rem 0.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
}

/* Google AdSense CLS Optimization */
.adsbygoogle {
    display: none !important;
    min-height: 250px;
    background-color: rgba(27, 18, 18, 0.02);
    position: relative;
}

.adsbygoogle::after {
    content: 'Advertisement';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(27, 18, 18, 0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ad-slot-300-250 {
    display: flex;
    width: 300px;
    height: 450px;
    margin: 2rem auto;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-slot-300-250:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ad-slot-300-250 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.ad-slot-728-90 {
    display: flex;
    width: 100%;
    max-width: 728px;
    height: auto;
    aspect-ratio: 1024 / 423;
    margin: 2rem auto;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-slot-728-90:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ad-slot-728-90 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .ad-slot-728-90 {
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 1024 / 423;
        margin: 1.5rem auto;
    }
}

.ad-slot-responsive {
    display: flex;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1024 / 423;
    margin: 2rem auto;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-slot-responsive:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ad-slot-responsive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .ad-slot-responsive {
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 1024 / 423;
        margin: 1.5rem auto;
    }
}

/* Dynamic Layout Placeholders CLS Optimization */
#header-placeholder {
    min-height: 273px;
    /* Default desktop header height */
    display: block;
}

#footer-placeholder {
    min-height: 334px;
    /* Default desktop footer height */
    display: block;
}

@media (max-width: 992px) {
    #header-placeholder {
        min-height: 290px;
    }
}

@media (max-width: 768px) {
    #header-placeholder {
        min-height: 290px;
    }
}

@media (max-width: 480px) {
    #header-placeholder {
        min-height: 290px;
    }
}

/* Ad slots reservation rules moved and consolidated above */

/* --- Vogue-Style READ NOW Grid --- */
.read-now-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    width: 100%;
}

@media (max-width: 1100px) {
    .read-now-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .read-now-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .read-now-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
}


.read-now-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: left;
}

.read-now-card:hover {
    transform: translateY(-4px);
}

.read-now-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 0.85rem;
    border-radius: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .read-now-card-img {
    border-color: rgba(255, 255, 255, 0.08);
}

.read-now-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.read-now-card:hover .read-now-card-img img {
    transform: scale(1.04);
}

.read-now-card-category {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    display: block;
}

.read-now-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.read-now-card:hover .read-now-card-title {
    color: var(--color-primary);
}

.read-now-card-author {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.read-now-card-date {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.68rem;
    color: var(--color-text-light);
}