@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&display=swap');

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f4f4f4;
    --accent-color: #d4af37;
    /* Gold accent */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --border-color: #eeeeee;
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    /* Tightens up multi-line headings */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

.grid {
    display: grid;
    gap: 30px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.shrunk {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    z-index: 1001;
    transition: var(--transition-smooth);
}

header.shrunk .logo {
    font-size: 1.8rem;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Homepage Magazine Sections */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    min-height: 500px;
}

.featured-main {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.featured-main img,
.side-story img,
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-main:hover img,
.side-story:hover img,
.card-image:hover img {
    transform: scale(1.08);
    /* Increased slightly for more impact */
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.featured-content .category {
    background: var(--accent-color);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.featured-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.side-stories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Reduced gap to help fit height */
    height: 100%;
}

.side-story {
    flex: 1;
    /* Make both stories take equal half of the height */
    position: relative;
    /* For category tag positioning */
    overflow: hidden;
    border-bottom: none;
    /* Removing border as images will fill space */
    padding-bottom: 0;
}

.side-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.side-story-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.side-story-content h3 {
    font-size: 1.1rem;
    margin-top: 5px;
}

.side-story-content .category {
    background: var(--accent-color);
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 5px;
}

.side-story h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Grid Layout for Posts */
.posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 60px;
}

.card {
    opacity: 0;
    transform: translateY(30px);
}

.card.animate {
    animation: fadeInUp 0.8s forwards;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 15px;
}

.card .date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

/* Post Hero Section */
.post-hero {
    background-color: var(--secondary-color);
    padding: 60px 0;
    margin-bottom: 60px;
}

.post-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.post-hero-content {
    text-align: left;
}

.post-hero-content .category {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 20px;
}

.post-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.post-hero-content .article-meta {
    justify-content: flex-start;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-hero-image {
    height: 400px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* Single Post Layout */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.article-header h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.main-content-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 50px;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

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

.article-body h1 {
    font-size: 2.2rem;
    margin: 0px 0 20px;
}

.article-body h2 {
    font-size: 2.2rem;
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 1.8rem;
    margin: 35px 0 15px;
}

.article-body h4 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.article-body h5 {
    font-size: 1.2rem;
    margin: 25px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-body h6 {
    font-size: 1rem;
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.article-body blockquote {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    border-left: 5px solid var(--accent-color);
    padding-left: 30px;
    margin: 40px 0;
    color: var(--primary-color);
}

/* Sidebar */
aside {
    border-left: 1px solid var(--border-color);
    padding-left: 30px;
}

.widget {
    margin-bottom: 50px;
}

.widget-title {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-101%);
    animation: revealAnim 1s ease-in-out;
}

@keyframes revealAnim {
    0% {
        transform: translateX(-101%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(101%);
    }
}

/* Category Sections */
.category-section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.view-all {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
}

.layout-2-1 {
    grid-template-columns: 2fr 1fr;
}

.layout-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.layout-1-2 {
    grid-template-columns: 1fr 2fr;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 60px 20px;
}

.footer-grid ul {
    list-style: none !important;
    padding-left: 0;
    margin-left: 0;
}

.footer-grid ul li {
    padding-left: 0;
    display: flex;
    align-items: center;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    nav {
        display: contents;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 1000;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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

    .hero-section,
    .main-content-layout,
    .layout-3-col,
    .layout-2-1,
    .layout-1-2 {
        grid-template-columns: 1fr !important;
    }

    .side-stories {
        height: auto;
    }

    .side-story {
        height: 300px;
    }

    .featured-main {
        height: 400px;
    }

    header .logo {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }

    aside {
        border-left: none;
        padding-left: 0;
    }

    .post-hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .post-hero-image {
        height: 350px;
    }
}

/* Full Width Article Variant */
.page-full-width header {
    padding: 0;
}

.page-full-width .main-content-layout {
    grid-template-columns: 1fr;
    justify-items: center;
}

.page-full-width .article-body {
    max-width: 850px;
    width: 100%;
}

.page-full-width .article-container {
    padding-top: 20px;
}

/* Blue Theme */
@media (max-width: 992px) {
    .blue-theme nav ul.active {
        background-color: #01074b;
    }
}

.blue-theme {
    background-color: #01074b;
    color: #fff;
}

.blue-theme header {
    border-bottom: 2px solid #fff;
}

.blue-theme header,
.blue-theme footer {
    background-color: #01074b;
    color: #fff;
}

.blue-theme .article-body blockquote {
    color: #fff;
}

.blue-theme .hamburger span {
    background-color: #fff;
}