/* Related Posts */
.related-posts {
    margin-bottom: 50px;
}

.related-posts h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 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, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid #e1e5e9;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
  .h3 a {
    font-weight: 700;
    color: #2980b9;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
            
        }
.h3 a :hover{
     border-bottom-color: #2980b9;
}



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

.logo-placeholder {
    width: 50px;
    height: 50px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: bold;
    font-size: 12px;
}
 .logo-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover; 
             border-radius: 4px;
        }

.logo h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Featured Article */
.featured-article {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content {
    padding: 40px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #7f8c8d;
}

.article-meta span {
    position: relative;
}

.article-meta span:not(:last-child):after {
    content: "•";
    position: absolute;
    right: -12px;
}

.article-text {
    font-size: 18px;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 40px;
}

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

.bold-text {
    font-weight: 700;
    color: #2980b9;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.bold-text:hover {
    border-bottom-color: #2980b9;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.download-btn {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Related Posts - 2 Column Layout */
.posts-grid-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.post-card-horizontal {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e1e5e9;
}

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

.post-image-horizontal {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-content-horizontal {
    padding: 20px;
}

.post-content-horizontal h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-excerpt {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #95a5a6;
    font-weight: 500;
    text-transform: uppercase;
}

.post-meta span {
    position: relative;
}

.post-meta span:not(:last-child):after {
    content: "•";
    position: absolute;
    right: -8px;
}

/* Content Images */
.content-image-left,
.content-image-right {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 30px 0;
}

.content-image-right {
    flex-direction: row-reverse;
}

.content-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.image-text {
    flex: 1;
}

.image-text p {
    margin-bottom: 15px;
}

.advertisement {
    text-align: center;
    width: 140%;
    height: 350px;
    margin-bottom: 50px;
    margin-left: -20%;
    font-size: 15px;
    background: #f8f9fa;
    padding: 30px 0;
}

.inner-advertisement{
    text-align: center;
    width: 100%;
    font-size: 15px;
}

.ad-image {
    max-width: 100%;
    width: 800px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}
/* Comments Section */
.comments-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comments-section h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.comments-list {
    margin-bottom: 40px;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ecf0f1;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-date {
    color: #95a5a6;
    font-size: 12px;
}

.comment-text {
    color: #34495e;
    line-height: 1.6;
}

/* Comment Form */
.comment-form {
    border-top: 2px solid #ecf0f1;
    padding-top: 30px;
}

.comment-form h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 20px;
}

.checkmark {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-content p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-btn {
    background: #34495e;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-btn:hover {
    background: #2c3e50;
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .article-meta span:not(:last-child):after {
        display: none;
    }
    
    .article-text {
        font-size: 16px;
    }
    
    .content-image-left,
    .content-image-right {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-image {
        width: 100%;
        height: 200px;
    }
    
    .posts-grid-two-column {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comments-section {
        padding: 30px 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .ad-image{
        width: 100%;
        height: 200px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .featured-article {
        margin-bottom: 30px;
        border-radius: 10px;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .article-content {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .article-text {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .download-section {
        padding: 20px 15px;
    }
    
    .download-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .posts-grid-two-column {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .post-image-horizontal {
        height: 150px;
    }
    
    .post-content-horizontal {
        padding: 15px;
    }
    
    .post-content-horizontal h3 {
        font-size: 16px;
    }
    
    .comments-section {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .comments-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .comment {
        gap: 10px;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .comment-form h3 {
        font-size: 18px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .checkmark {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-text {
        font-size: 14px;
    }
    
    .posts-grid {
        gap: 10px;
    }
    
    .post-content {
        padding: 12px;
    }
    
    .comments-section {
        padding: 15px 10px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 60px;
    padding: 50px 0 20px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-heading {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 20px;
}

.footer-links a:hover::before {
    color: #764ba2;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.contact-info p {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    width: 20px;
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    color: #95a5a6;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #667eea;
}

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo-text {
        font-size: 20px;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px 0;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-logo-img {
        width: 40px;
        height: 40px;
    }

    .footer-logo-text {
        font-size: 18px;
    }

    .footer-heading {
        font-size: 16px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}