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

:root {
    --accent-color: #d02627;
    --black: #000000;
    --dark-gray: #111111;
    --medium-gray: #333333;
    --light-gray: #666666;
    --white: #ffffff;
    --bg-gray: #f8f8f8;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.4;
    font-weight: 400;
}

img {
    width: 100%;
}

/* Header Styles */
header {
    background: #191158; 
    padding: 30px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: block;     
    margin: 20px auto;       
    width: 250px;        
    height: auto;         
}

/* .logo:hover {
    color: var(--accent-color);
} */

/* Navigation */
nav {
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px; 

    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px;
    transition: border-color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
    background: var(--accent-color);

}

/* Homepage Specific Styles */
.homepage main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
    /* margin-bottom: 80px; */
}

.news-card {
    cursor: pointer;
    border: none;
    background: var(--white);
}

.news-thumbnail {
    width: 100%;
    height: 280px;
    background: var(--dark-gray);
    overflow: hidden;
    margin-bottom: 25px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 0;
}

.news-date {
    font-size: 14px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-title {
    font-size: 28px; /* 32px */
    font-weight: 800;
    line-height: 1.2;
    color: var(--black);
    transition: color 0.2s;
    text-decoration: none;
}


.news-card:hover .news-title {
    color: var(--accent-color);
}

/* Pagination */

.nav-pag {
    display: flex;
    gap: 30px;              /* gap only applies when there are 2 children */
    width: 100%;            /* so children can expand */
}

.nav-pag a {
    flex: 1;                /* take equal width when both exist */
    display: flex;          /* make text centerable */
    justify-content: center;
    align-items: center;
    text-align: center;

    color: #191058;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    border: 3px solid #191058;
    background: var(--white);
    transition: all 0.2s;
}

.nav-pag a:hover {
    background: #191058;
    color: var(--white);
}

/* Optional: if only one button exists, make it 100% */
.nav-pag a:only-child {
    flex: 1 1 100%;
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 80px 0;
}

/* .pagination a {
    color: var(--black);
    text-decoration: none;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    border: 3px solid var(--black);
    background: var(--white);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--black);
    color: var(--white);
}

.pagination .active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.pagination .dots {
    padding: 12px 8px;
    color: var(--light-gray);
    font-size: 18px;
    font-weight: 700;
} */

/* Article Page Specific Styles */
.article-page main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Ad Banner */
.ad-banner {
    width: 100%;
    height: 200px; /* 120px */
    background: var(--bg-gray);
    /* border: 2px solid var(--medium-gray); */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    color: var(--light-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.article-header {
    margin-bottom: 50px;
}

.article-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.article-date {
    font-size: 16px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.article-image {
    width: 100%;
    height: 500px;
    background: var(--dark-gray);
    overflow: hidden;
    margin-bottom: 50px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 20px;
    line-height: 1.7;
    color: var(--black);
}

.article-content p {
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 50px 0 25px;
    color: var(--black);
    line-height: 1.1;
}

.article-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--black);
}

.article-content blockquote {
    border-left: 5px solid var(--accent-color);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    color: var(--medium-gray);
    font-size: 24px;
}

.article-content ul, .article-content ol {
    margin: 30px 0;
    padding-left: 40px;
}

.article-content li {
    margin-bottom: 15px;
    font-size: 20px;
}

/* Tags Section */
.article-tags {
    padding: 40px 0;
    border-top: 2px solid var(--bg-gray);
    margin-top: 60px;
}

.tags-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--black);
    margin-bottom: 20px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-gray);
    color: var(--black);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.tag:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Related Articles */
.related-articles {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 3px solid var(--black);
}

.related-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--black);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    /* margin-bottom: 50px; */
}

.related-card {
    cursor: pointer;
}

.related-card:hover .related-article-title {
    color: var(--accent-color);
}

.related-thumbnail {
    width: 100%;
    height: 180px;
    background: var(--dark-gray);
    overflow: hidden;
    margin-bottom: 20px;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-date {
    font-size: 13px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 700;
}

.related-article-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    transition: color 0.2s;
}

/* Back to News Link */
.back-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 0;
    border-bottom: 3px solid var(--accent-color);
}

.back-link:hover {
    color: var(--black);
    border-bottom-color: var(--black);
}

/* Footer */
footer {
    background: #191158; 
    color: var(--white);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column {
    text-align: left;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #3c3575;
    text-align: center;
    color: #3c3575;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.anunt-info {
    background-color: #f0cece;
    border: 3px solid #e3bbbb;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 15px;
    font-weight: bold;
    color: #601111;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 40px;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .article-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    /* .logo {
        font-size: 36px;
    } */
    
    .nav-links {
        gap: 25px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .news-thumbnail {
        height: 240px;
    }
    
    .article-title {
        font-size: 40px;
    }
    
    .article-image {
        height: 350px;
    }
    
    .article-content {
        font-size: 18px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 480px) {
    /* .logo {
        font-size: 28px;
    } */
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .homepage main {
        padding: 40px 20px;
    }
    
    .news-title {
        font-size: 26px;
    }
    
    .news-thumbnail {
        height: 200px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .footer-grid {
        /* grid-template-columns: 1fr; */
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .pagination a {
        padding: 10px 14px;
        font-size: 14px;
    }
}
