/* Main Layout Wrapper */
body {
    background: var(--bg-main);
}

/* Post Container - Two Column Layout */
.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
}

/* Main Content */
.main-content {
    flex: 0 1 700px;
    max-width: 700px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    margin-bottom: 40px;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--coffee-light);
}

.post-title {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 2.5rem;
    color: var(--coffee-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 400;
}

.post-date {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

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

.post-content p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.9;
}

.post-content strong {
    font-weight: 600;
    color: var(--coffee-dark);
}

.post-content em {
    font-style: italic;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: flex-start;
}

.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 4px;
    /* box-shadow: 0 1px 4px rgba(0,0,0,0.06); */
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-title {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 1.1rem;
    color: var(--coffee-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--coffee-light);
    text-align: center;
}

.sidebar-link {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding: 8px 0;
    transition: color 0.3s;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.sidebar-link:hover {
    color: var(--coffee-light);
    /* border-bottom-color: var(--coffee-light); */
}

.sidebar-link:last-child {
    margin-bottom: 0;
}

/* Subscribe Form */
.subscribe-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--coffee-light);
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--coffee-dark);
}

.subscribe-form button {
    width: 100%;
    padding: 12px;
    background: var(--coffee-dark);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background: #3d2514;
}

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.instagram-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

/* Related Posts - Full Width Below Everything */
.related-posts {
    width: 100%;
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 60px 40px 0;
    border-top: 2px solid var(--coffee-light);
    clear: both;
}

.related-title {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 2rem;
    color: var(--coffee-dark);
    text-align: center;
    margin-bottom: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    text-align: center;
    transition: transform 0.3s;
}

.related-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

.related-card h3 {
    font-family: "Aref Ruqaa Ink", serif;
    font-size: 1.2rem;
    color: var(--coffee-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--coffee-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .post-container {
        flex-direction: column;
        padding: 60px 30px;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .sidebar {
        display: none;
    }
    
}

@media (max-width: 768px) {
    .post-container {
        padding: 40px 20px;
    }
    
    .post-title {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .post-content p {
        text-align: right;
    }

    .related-posts {
        padding: 40px 20px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .sidebar-section {
        min-width: 100%;
    }
}
