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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #fefefe;
}

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

/* Header */
header {
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #d4914a;
    transform: translateY(-2px);
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c2c2c;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    color: #d4914a;
}

.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c2c2c;
    cursor: pointer;
    padding: 5px;
    z-index: 2001;
}

.sidebar-close:hover {
    color: #d4914a;
}

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

nav a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #d4914a;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #d4914a;
    transition: all 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Main Layout */
.main-layout, .post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding: 60px 0;
}

/* Blog Posts Grid Layout */
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
}

.post {
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: block;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
    cursor: pointer;
    display: block;
}

/* Fallback for images not in container */
.post > a > img.post-image,
.post img.post-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

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

.post-image-container:hover .post-title-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.post-header {
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.3;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.post-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    transition: all 0.3s ease;
}

.post-title-overlay .post-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.post-title-overlay .post-title a {
    color: white;
}

.post-title-overlay .post-title a:hover {
    color: #d4914a;
}

.post-title:hover {
    color: #d4914a;
    cursor: pointer;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #d4914a; 
}

.post-excerpt {
    display: none; /* Hide the excerpt text */
}

.continue-reading {
    display: none; /* Hide the continue reading button */
}

.post-divider {
    display: none; /* Hide dividers in grid layout */
}

/* Responsive - Single column on mobile */
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .post-image-container {
        height: 300px;
    }
    
    .post-title-overlay .post-title {
        font-size: 1.3rem;
    }
    
    .post-title-overlay {
        padding: 20px;
    }
}

/* Back button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 40px 0 20px 0;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #d4914a;
    transform: translateX(-5px);
}

/* Post Layout */
.post-layout  {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding: 20px 0 60px 0;
}

/* Main Article */
.article-main  {
    max-width: none;
}

.post-header  {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.post-category {
    color: #d4914a;
}

.post-date {
    color: #888;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.2;
    margin-bottom: 30px;
}

.post-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 40px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: auto;       /* Let height adjust automatically */
    object-fit: contain; 
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.post-content p {
    margin-bottom: 30px;
}

.post-content p:first-of-type {
    font-size: 1.2rem;
    color: #333;
    font-weight: 400;
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 50px 0 25px 0;
    line-height: 1.3;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 50px 0;
}

.gallery-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin-top: 15px;
    line-height: 1.5;
}

/* Quote */
.quote {
    background: linear-gradient(135deg, #f8f8f8 0%, #f1f1f1 100%);
    border-left: 4px solid #d4914a;
    padding: 40px;
    margin: 50px 0;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sidebar-section {
    background: #fdfdfd;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.sidebar-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.search-box {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box:focus {
    outline: none;
    border-color: #d4914a;
    box-shadow: 0 0 0 3px rgba(212, 145, 74, 0.1);
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #d4914a;
    color: white;
    transform: translateY(-3px);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-post:hover {
    background: #f8f8f8;
}

.related-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-post-content {
    flex: 1;
}

.related-post-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.related-post-date {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Newsletter */
.newsletter-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 30px;
    font-size: 1rem;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #d4914a;
    box-shadow: 0 0 0 3px rgba(212, 145, 74, 0.1);
}

.newsletter-btn {
    width: 100%;
    padding: 15px;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #d4914a;
    transform: translateY(-2px);
}

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

/* Tags */
.post-tags  {
    display: flex;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.tag  {
    background: #f8f8f8;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover  {
    background: #d4914a;
    color: white;
}

/* Share buttons */
.share-section  {
    border-top: 1px solid #f0f0f0;
    padding-top: 40px;
    margin-top: 60px;
    text-align: center;
}

.share-title  {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.share-buttons  {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn  {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.facebook  { background: #3b5998; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.pinterest  { background: #bd081c; }
.share-btn.instagram  { background: #e4405f; }

.share-btn:hover  {
    transform: translateY(-3px) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .main-layout, .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .container {
        padding: 0 10px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100%;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        padding: 20px;
        transition: right 0.3s ease-in-out;
        z-index: 2000;
        font-size: 0.9rem;
        overflow-y: auto;
    }

    .sidebar.open {
        right: 0;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-image, .featured-image {
        height: 220px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 20px;
    }

    .logo {
        font-size: 2rem;
    }
}

.logo img {
    height: 150px; /* adjust as needed */
    width: auto;
}

/* Sidebar Navigation Styles */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-filter-link {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-filter-link:hover,
.sidebar-filter-link.active {
    color: #2c2c2c;
    background: rgba(44, 44, 44, 0.05);
    padding-left: 15px;
}

.sidebar-filter-link:last-child {
    border-bottom: none;
}

/* Mobile Navigation in Sidebar */
.mobile-nav-section {
    display: none; /* Hidden by default on desktop */
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-filter-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: #fff;
    margin: 0;
}

.sidebar-filter-link:hover {
    background: #f8f8f8;
    color: #2c2c2c;
    padding-left: 25px;
}

.sidebar-filter-link.active {
    background: #2c2c2c;
    color: #fff;
}

.sidebar-filter-link:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sidebar-filter-link:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Show mobile navigation only on mobile screens */
@media (max-width: 768px) {
    .mobile-nav-section {
        display: block !important;
    }
    
    /* Hide the top navigation on mobile */
    header nav {
        display: none;
    }
    
    /* Make sure sidebar toggle is visible */
    .sidebar-toggle {
        display: block;
    }
}

/* On desktop, hide the sidebar navigation and show header nav */
@media (min-width: 769px) {
    .mobile-nav-section {
        display: none;
    }
    
    header nav {
        display: block;
    }
}