
/* Container */
.container {
    display: flex;
    gap: 1.8rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem;
}

/* Main Content */
.main-content {
    width: 65%;
}

 main{
        max-width: 1300px;
        margin-top:60px;
    }
.main-content {
    margin-top: 0; 
   padding: 0;
}
/* Content Box */
.content-box {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.img-box img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.post-title {
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #c53030; /* Red color */
}

.section-title {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #c53030;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 35%;
}

.sticky-wrapper {
    position: relative;
}

@media (min-width: 769px) {
    .sticky-wrapper {
        position: sticky;
        top: 2rem;
    }
}

/* Ad Container */
.adContainer {
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Recent Posts */
.recent-posts {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.recent-posts h2 {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.recent-post-item:hover {
    transform: translateY(-5px);
    background-color: #f9f9f9;
}

.recent-post-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
    overflow: hidden;
}

.recent-post-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.recent-post-excerpt {
    font-size: 0.875rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0.5rem;
    }

    .main-content,
    .sidebar {
        width: 100%;
    }

    .content-box {
        padding: 0.5rem;
    }

    .recent-post-image {
        width: 80px;
        height: 80px;
    }

    .adContainer {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.95rem;
    }
}
