/* Reset and base styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--light-bg);
}

/* Header styles */
header {
    text-align: left;
    margin-bottom: 40px;
    padding: 30px 40px;
    background: linear-gradient(135deg, var(--card-bg) 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.logo {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.logo-img {
    max-width: 60px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo p {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}

/* Content wrapper for main content and sidebar */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Main content styles */
.main-post {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-post h1 {
    font-size: 2.2em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    color: #666;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    margin: 20px 0;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-content {
    font-size: 1.1em;
    line-height: 1.8;
}

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

/* Download button styles */
.download-section {
    margin: 30px 0;
    text-align: center;
}

.download-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.download-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.download-btn i {
    font-size: 1.2em;
}

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

/* Related posts styles */
.related-posts {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.related-posts h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.3em;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.post-card-content {
    padding: 15px;
}

.post-card h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
}

.post-card p {
    color: #4b5563;
    margin-bottom: 12px;
    font-size: 0.9em;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Rectangle Ad styles */
.rectangle-ad {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    margin: 30px 0;
}

.rectangle-ad .ad-placeholder {
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-weight: 500;
    font-size: 1.1em;
    min-height: 120px;
    max-height: 300px;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-direction: column;
    padding: 15px;
}

.rectangle-ad img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.rectangle-ad p {
    color: #64748b;
    margin-top: 10px;
    font-size: 0.9em;
}




/* Footer styles */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
}

/* Responsive styles */
@media (max-width: 1200px) {
    body {
        padding: 15px;
    }
    
    .content-wrapper {
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
    }
    
    .related-posts {
        margin-top: 20px;
    }
    
    .main-post h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .logo p {
        font-size: 1.8em;
    }
    
    .logo-img {
        max-width: 50px;
    }

    .main-post {
        padding: 20px;
    }
    
    .main-post h1 {
        font-size: 1.8em;
    }
    
    .related-posts {
        padding: 20px;
    }
    
    .comments-section {
        padding: 20px;
    }
    
    .rectangle-ad {
        margin: 20px 0;
    }
    
    .rectangle-ad .ad-placeholder {
        padding: 20px;
        min-height: 100px;
        max-height: 200px;
    }
    
    .rectangle-ad img {
        height: 150px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .content-wrapper {
        gap: 15px;
    }
    
    .main-post {
        padding: 15px;
    }
    
    .related-posts {
        padding: 15px;
    }
    
    .comments-section {
        padding: 15px;
    }
    
    .post-card-content {
        padding: 12px;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    header {
        padding: 15px;
        border-radius: 15px;
    }
    
    .logo {
        gap: 15px;
    }
    
    .logo p {
        font-size: 1.5em;
    }
    
    .logo-img {
        max-width: 45px;
    }

    .main-post {
        padding: 15px;
        border-radius: 8px;
    }
    
    .main-post h1 {
        font-size: 1.6em;
    }
    
    .related-posts {
        padding: 15px;
        border-radius: 8px;
    }
    
    .comments-section {
        padding: 15px;
        border-radius: 8px;
    }
    

    
    .rectangle-ad {
        margin: 15px 0;
    }
    
    .rectangle-ad .ad-placeholder {
        padding: 15px;
        min-height: 100px;
        max-height: 150px;
        font-size: 0.9em;
    }
    
    .rectangle-ad img {
        height: 200px;
    }
    
    .post-meta span {
        font-size: 0.9em;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .posts-grid {
        gap: 15px;
    }
    
    .post-card img {
        height: 120px;
    }
}
