/* ==============================================
   Design System - Variables
   ============================================== */
   :root {
    /* Color Palette */
    --color-primary: #1a1a1a;     /* Rich black */
    --color-secondary: #c9a87c;   /* Warm gold */
    --color-tertiary: #f5f5f5;    /* Off white */
    --color-text: #333333;        /* Soft black for text */
    --color-accent: #8c8c8c;      /* Sophisticated gray */
    
    /* Typography */
    --font-primary: 'Cormorant Garamond', serif;  /* Luxury serif for headlines */
    --font-secondary: 'Montserrat', sans-serif;   /* Clean sans-serif for body */
    
    /* Spacing */
    --spacing-unit: 1rem;
    --container-width: 1400px;    /* Generous width for large screens */
}

/* ==============================================
   Base Elements
   ============================================== */
body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-tertiary);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

h1 { font-size: 3.5rem; margin-bottom: var(--spacing-unit); }
h2 { font-size: 2.5rem; margin-bottom: var(--spacing-unit); }
h3 { font-size: 2rem; margin-bottom: var(--spacing-unit); }
h4 { font-size: 1.5rem; margin-bottom: var(--spacing-unit); }

/* ==============================================
   Layout & Container
   ============================================== */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==============================================
   Header & Navigation
   ============================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-secondary);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* ==============================================
   Hero Section
   ============================================== */
.hero {
    margin-top: -80px;
    padding-top: 80px;
    height: 60vh;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ==============================================
   Post Grid & Cards
   ============================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.post-card {
    position: relative;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card-content {
    padding: 2rem;
    background: white;
}

.post-card h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: var(--color-primary);
}

/* ==============================================
   Blog Post Page
   ============================================== */
   .post-footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.share-buttons span {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
}

.share-button {
    background: none;
    border: 1px solid var(--color-accent);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.post-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-tags .tag {
    background: var(--color-tertiary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-meta {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-featured-image {
    margin: 2rem -4rem;
    position: relative;
}

.image-caption {
    text-align: center;
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.blog-meta {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==============================================
   Newsletter Section
   ============================================== */
.newsletter {
    background: var(--color-primary);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    padding: 1rem 2rem;
    width: 300px;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* ==============================================
   Mobile Menu
   ============================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==============================================
   Responsive Styles
   ============================================== */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }
    
    h1 { font-size: 2.5rem; }
    
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .post-featured-image {
        margin: 2rem 0;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 2rem;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
        max-width: 300px;
    }
}
/* ==============================================
   Latest Design Stories Section
   ============================================== */
   .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.filter-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    background: none;
    border: 1px solid var(--color-accent);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.tag:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

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

/* Add responsive styles for the tags */
@media (max-width: 768px) {
    .filter-tags {
        gap: 0.5rem;
    }

    .tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}
/* ==============================================
   Blog Post Content
   ============================================== */
   .blog-section {
    margin: 4rem 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-secondary);
}

.section-content {
    font-family: var(--font-secondary);
    line-height: 1.8;
    color: var(--color-text);
}

.section-content p {
    margin-bottom: 1.5rem;
}

/* First section special styling */
.blog-section:first-child .section-content {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-style: italic;
    line-height: 2;
}

/* Pull quotes */
.pull-quote {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-secondary);
    border-left: 3px solid var(--color-secondary);
    padding-left: 2rem;
    margin: 2rem 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blog-section {
        margin: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
/* ==============================================
   CTA Section
   ============================================== */
   .cta-section {
    background-color: var(--color-tertiary);
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cta-content p {
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--color-secondary);
}

/* ==============================================
   Footer
   ============================================== */
   footer {
    background: var(--color-primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}


/* ==============================================
   Responsive Styles
   ============================================== */
   @media (max-width: 768px) {
    /* ... existing responsive styles ... */
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-buttons span {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/*======================================
Related posts
========================================*/
.related-posts {
    margin: 5rem 0;
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

/* ==============================================
   Animations
   ============================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   Utility Classes
   ============================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
