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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #16167c 0%, #9f13da 100%);
    color: white;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo-text img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-text img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

/* Main Content Styles */
.main-content {
    padding: 40px 0;
    background-color: #f8fafc;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Advertisement Placeholders */
.advertisement {
    margin: 20px auto;
    text-align: center;
}

.ad-space {
    background: #edf2f7;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.placeholder-ad {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f1f5f9 25%, #e2e8f0 25%, #e2e8f0 50%, #f1f5f9 50%, #f1f5f9 75%, #e2e8f0 75%);
    background-size: 20px 20px;
    font-family: monospace;
}

.placeholder-ad p {
    margin: 4px 0;
    color: #475569;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Ad Sizes */
.header-banner-ad .ad-space {
    width: 970px;
    height: 90px;
    max-width: 100%;
}

.bottom-banner-ad .ad-space {
    width: 970px;
    height: 250px;
    max-width: 100%;
}

.in-article-ad .ad-space {
    width: 728px;
    height: 90px;
    max-width: 100%;
    margin: 20px auto;
}

.sidebar-ad .ad-space {
    width: 300px;
    height: 250px;
}

.sidebar-ad.sticky {
    position: sticky;
    top: 20px;
}

.sidebar-ad.sticky .ad-space {
    height: 600px;
}

/* Article Styles */
.article-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a202c;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #718096;
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.featured-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-image img{
    width: 100%;
}
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.article-body p {
    margin-bottom: 20px;
}

.article-tags {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
    transition: background-color 0.2s;
}

.tag:hover {
    background: #e2e8f0;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-feature{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.related-posts {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    gap: 5px;
}

.related-posts h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1a202c;
    font-weight: 700;
}

.related-post {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: transform 0.2s;
    cursor: pointer;
}

.related-post:hover {
    transform: translateX(5px);
}

.related-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.related-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #2d3748;
}

.related-date {
    font-size: 0.8rem;
    color: #718096;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comments-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a202c;
    font-weight: 700;
}

.comment-form {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comment-form h4 {
    margin-bottom: 20px;
    color: #2d3748;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-form form {
    display: flex;
    flex-direction: column;
}

.submit-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 150px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-header h5 {
    font-weight: 600;
    color: #2d3748;
}

.comment-date {
    font-size: 0.85rem;
    color: #718096;
}

.comment-content p {
    color: #4a5568;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #16167c 0%, #9f13da 100%);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.footer-section p {
    margin-bottom: 10px;
    color: #cbd5e0;
    line-height: 1.6;
}

.footer-description {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.7;
    margin-top: 15px;
    padding-right: 20px;
    text-align: justify;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }

    .logo-text {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo-text img {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .logo-text h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .logo-text p {
        font-size: 1rem;
        text-align: center;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-content {
        padding: 25px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .comment {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Responsive ad adjustments for tablets */
    .full-width-img {
        max-width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }

    .sidebar-img {
        max-width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .logo {
        gap: 10px;
        padding: 10px 0;
    }

    .logo-text {
        gap: 8px;
    }

    .logo-text img {
        width: 60px;
        height: 60px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .logo-text p {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 20px 0;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .related-post {
        flex-direction: column;
    }

    .related-post img {
        width: 100%;
        height: 120px;
    }

    /* Responsive ad adjustments for mobile */
    .full-width-img {
        max-width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: contain;
    }

    .sidebar-img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
}

@media (max-width: 360px) {
    .logo-text img {
        width: 50px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 10px;
    }

    .article-content {
        padding: 15px;
    }

    .article-title {
        font-size: 1.3rem;
    }
}

/* Ad image responsive styles */
.full-width-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Specific ad size constraints */

.article-image, .bottom-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.article-image .full-width-img {
    max-width: 728px;
    max-height: 190px;
    width: 100%;
    height: auto;
    
}

.bottom-feature .full-width-img {
    max-width: 970px;
    max-height: 250px;
    width: 100%;
    height: auto;
}

.sidebar-feature .sidebar-img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.sidebar-feature:first-child .sidebar-img {
    max-height: 250px;
}

.sidebar-feature.sticky .sidebar-img {
    max-height: 600px;
}