/* General styles */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

main {
    flex-grow: 1;
}

a {
    color: #1a1a1a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.hidden {
    display: none;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.header-top {
    border-bottom: 1px solid #e6e6e6;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.logo {
    flex-grow: 1;
    text-align: center;
}

.logo img {
    display: inline-block;
    height: 38px;
}


.header-bottom {
    height: 52px;
}

nav {
    height: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

nav li {
    margin: 0 15px;
}

nav a {
    display: flex;
    align-items: center;
    height: 100%;
    color: #5a5a5a;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

nav a:hover,
nav a.active {
    color: #1a1a1a;
    border-bottom-color: #bb1919;
}


/* Main content */
main {
    padding: 20px 0;
}

.top-stories {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.main-story h2 {
    font-size: 32px;
    margin: 0 0 15px;
    font-weight: normal;
}

.main-story img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.side-stories-container h3 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: normal;
}

.side-story {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.side-story:last-child {
    border-bottom: none;
}

.side-story h4 {
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card hover */
.article a:hover img {
    filter: brightness(0.95);
}

/* Responsive */
@media (max-width: 900px) {
    .top-stories {
        grid-template-columns: 1fr;
    }
    .main-story img {
        height: 300px;
    }
}

.loading-indicator {
    color: #666;
    text-align: center;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    border-bottom: 2px solid #bb1919;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.article {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.article h4 {
    font-size: 18px;
    margin: 0 12px 12px;
    font-weight: normal;
}

/* Modal */
#article-modal .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

#article-modal .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    max-width: 720px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#article-modal .modal-image {
    width: 100%;
    margin-bottom: 15px;
}

#article-modal .modal-title {
    margin: 0 0 10px;
    font-weight: normal;
}

#article-modal .modal-body {
    white-space: pre-wrap;
    line-height: 1.6;
}

#article-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Skeleton Loader */
/* removed skeleton styles */

/* Footer */
footer {
    background-color: #f2f2f2;
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid #ccc;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 32px;
}

.footer-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.language-selector button {
    background-color: #e6e6e6;
    border: 1px solid #ccc;
    padding: 10px 15px;
    cursor: pointer;
}

.social-links {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.social-links span {
    margin-right: 15px;
    font-weight: bold;
}

.social-links a {
    margin-right: 15px;
    font-size: 20px;
    color: #5a5a5a;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.footer-copyright p {
    font-size: 13px;
    color: #5a5a5a;
    margin: 0;
}
