* {
    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: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-placeholder {
    background: #fff;
    color: #1e3c72;
    padding: 0;
    border-radius: 50%;
    border: 3px solid #fff;
    width: 60px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}
h3 a {
    text-decoration: none;
    color: inherit; /* keeps same color as h3 */
    }
    h3 a:hover {
    color: #007bff; /* highlight on hover */
    text-decoration: underline;
    }
.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 50%;
}
.site-info {
    flex: 1;
}
.site-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}
.site-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}
.footer-logo {
    background: transparent;
    color: #fff;
    border-color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid #fff;
    display: inline-block;
    text-align: center;
}
/* Main Content */
.main-content {
    padding: 40px 0;
    padding-top: 60px;
}
/* Featured Article */
.featured-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    position: relative;
}
.article-image {
    position: relative;
    height: auto;
    min-height: 400px;
    overflow: hidden;
}
/* Image Placeholder Styles - Unified and Responsive */
.image-placeholder {
    width: 100%;
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #667eea, #764ba2);
}
/* Featured Image Styles */
.image-placeholder img,
.featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

/* Featured article specific image styling */
.featured-article .image-placeholder {
    min-height: 500px;
    background: transparent;
}

.featured-article .featured-image {
    max-height: 700px;
}
/* Text overlay for image placeholders */
.image-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: inherit;
    font-weight: bold;
    color: white;
    text-shadow: none;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.article-content {
    padding: 40px;
}
.article-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.2;
}
.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}
.article-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}
.download-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}
.download-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}
.inner-ads {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
    width: 100%;
    height: 270px;
}
.ad-placeholder {
    flex: 1;
    background: #e0e6ed;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
    border-radius: 8px;
}
.ad-placeholder img {
    width: 100%;
    height: 90%;
    object-fit: cover;
}
/* Related Posts */
.related-posts {
    margin-bottom: 50px;
}
.related-posts h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.post-image {
    height: 200px;
    overflow: hidden;
}
.post-image .image-placeholder {
    height: 100%;
    font-size: 18px;
}
.post-content {
    padding: 25px;
}
.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.3;
}
.post-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}
.post-content p {
    color: #555;
    line-height: 1.6;
}
/* Full Width Image Section */
.image-placement-row {
    margin: 40px 0;
    text-align: center;
}
.image-placeholder.wide {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.image-placeholder.wide img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    display: block;
}
/* Comments Section */
.comments-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.comments-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
}
.comment-form {
    margin-bottom: 35px;
}
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}
.comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
}
.comment-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.comment-form button:hover {
    background: #218838;
}
.comment {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e6ed;
}
.comment:last-child {
    border-bottom: none;
}
.comment-avatar {
    flex-shrink: 0;
}
.avatar-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}
.comment-content {
    flex: 1;
}
.comment-header {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    align-items: center;
}
.comment-author {
    font-weight: 600;
    color: #2c3e50;
}
.comment-time {
    color: #666;
    font-size: 13px;
}
.comment-content p {
    color: #555;
    line-height: 1.6;
}
/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .site-title {
        font-size: 1.5rem;
    }
    .site-tagline {
        font-size: 13px;
    }
    .logo-placeholder {
        width: 50px;
        height: 50px;
    }
    .main-content {
        padding-top: 30px;
    }
    .image-placeholder.wide {
        height: 250px;
    }
    .placeholder-text {
        font-size: 18px;
        padding: 10px 20px;
    }
    .article-content {
        padding: 25px 20px;
    }
    .article-content h1 {
        font-size: 1.8rem;
    }
    .article-excerpt {
        font-size: 16px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .comments-section {
        padding: 25px 20px;
    }
    .comment {
        flex-direction: column;
        gap: 10px;
    }
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .image-placeholder {
        font-size: 18px;
    }
    .image-placeholder span {
        font-size: 14px;
        padding: 8px 16px;
    }
    .featured-image {
        max-height: 500px;
    }
    .featured-article .featured-image {
        max-height: 600px;
    }
    .inner-ads {
        flex-direction: column;
        height: auto;
    }
}
@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }
    .site-title {
        font-size: 1.3rem;
    }
    .site-tagline {
        font-size: 12px;
    }
    .image-placeholder.wide {
        height: 200px;
    }
    .placeholder-text {
        font-size: 16px;
        padding: 8px 16px;
    }
    .article-content h1 {
        font-size: 1.5rem;
    }
    .article-image {
        min-height: 250px;
    }
    .image-placeholder {
        font-size: 16px;
    }
    .image-placeholder span {
        font-size: 12px;
        padding: 6px 12px;
    }
    .featured-image {
        max-height: 400px;
    }
    .featured-article .featured-image {
        max-height: 500px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-image {
        height: 150px;
    }
    .post-content {
        padding: 20px;
    }
}
@media (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Modal background */
.modal {
display: none; /* hidden by default */
position: fixed;
z-index: 1000;
left: 0; top: 0;
width: 100%; height: 100%;
background-color: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
padding: 10px;
}

/* Modal content */
.modal-content {
background: #fff;
padding: 20px;
border-radius: 12px;
text-align: center;
max-width: 400px;
width: 100%;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
animation: fadeIn 0.3s ease;
}

.modal-content h2 {
margin-bottom: 10px;
}

.check-icon {
font-size: 40px;
color: #28a745;
margin: 10px 0;
}

.modal-content p {
margin: 15px 0;
}

.modal-content button {
padding: 10px 20px;
background: #007bff;
border: none;
border-radius: 8px;
color: white;
cursor: pointer;
transition: background 0.3s;
}

.modal-content button:hover {
background: #0056b3;
}

/* Close (X) button */
.close-btn {
position: absolute;
top: 12px; right: 18px;
font-size: 24px;
cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
from {opacity: 0; transform: scale(0.95);}
to {opacity: 1; transform: scale(1);}
}

/* Responsive */
@media (max-width: 500px) {
.modal-content {
width: 90%;
padding: 15px;
}
}

/* Modal background */
.modal {
display: none; /* hidden by default */
position: fixed;
z-index: 1000;
left: 0; top: 0;
width: 100%; height: 100%;
background-color: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
padding: 10px;
}

/* Modal content */
.modal-content {
position: relative;
background: #fff;
padding: 20px;
border-radius: 12px;
text-align: center;
max-width: 400px;
width: 100%;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
animation: fadeIn 0.3s ease;
}

.modal-content h2 {
margin-bottom: 10px;
font-size: 1.5rem;
}

.modal-content p {
margin: 15px 0;
font-size: 1rem;
color: #333;
}

.modal-content button {
padding: 10px 20px;
background: #007bff;
border: none;
border-radius: 8px;
color: white;
cursor: pointer;
transition: background 0.3s;
margin-top: 10px;
}

.modal-content button:hover {
background: #0056b3;
}

/* Close (X) button */
.close-btn {
position: absolute;
top: 10px; right: 15px;
font-size: 24px;
cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
from {opacity: 0; transform: scale(0.95);}
to {opacity: 1; transform: scale(1);}
}