/* --- Global Variables & Industrial Palette --- */
:root {
    --primary: #f5b400; /* Industrial Yellow/Orange */
    --dark: #111111;
    --charcoal: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.accent { color: var(--primary); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navbar --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--dark);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.lang-toggle button {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 5px 12px;
    cursor: pointer;
    font-weight: bold;
}

/* --- Hero --- */
.news-hero {
    height: 450px;
    background: url('https://images.unsplash.com/photo-1516937941344-00b4e0337589?auto=format&fit=crop&q=80&w=1400') center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
}

/* --- Featured Grid --- */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 0; /* Flush alignment */
}

.feat-img-left img, .feat-img-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feat-main-card {
    background: var(--dark);
    color: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feat-main-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.feat-main-card p {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 30px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date { color: var(--primary); font-weight: 600; font-size: 14px; }
.read-more { color: var(--white); font-weight: 700; border-bottom: 2px solid var(--primary); }

/* --- News Grid --- */
.light-gray-bg { background-color: var(--light-gray); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    position: relative;
    height: 380px;
    overflow: hidden;
    cursor: pointer;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    transition: var(--transition);
}

.news-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.2; }
.news-card p { font-size: 13px; color: #ddd; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-card:hover img { transform: scale(1.1); }
.news-card:hover .card-overlay { background: rgba(0, 0, 0, 0.7); border-bottom: 5px solid var(--primary); }

.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
}

.extra-feat-card { max-width: 300px; height: 350px; }

/* --- Pagination --- */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pag-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: var(--white);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.pag-btn.active, .pag-btn:hover {
    background: var(--dark);
    color: var(--primary);
    border-color: var(--dark);
}

/* --- Category Strip --- */
.category-strip {
    background: var(--charcoal);
    padding: 40px 0;
    color: var(--white);
}

.cat-flex {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.cat-item i { font-size: 40px; color: var(--primary); margin-bottom: 15px; display: block; }
.cat-item span { font-weight: 800; font-size: 14px; text-transform: uppercase; }

/* --- Footer --- */
footer {
    background: var(--dark);
    color: #999;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.footer-col h4 { color: var(--white); margin-bottom: 25px; text-transform: uppercase; font-size: 14px; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 13px; margin-bottom: 10px; }

.footer-bottom { border-top: 1px solid #222; padding-top: 20px; font-size: 12px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .featured-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .featured-grid, .news-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .bottom-row { grid-template-columns: 1fr; gap: 20px; justify-items: center;}
}

/* Animations */
.fade-in { animation: fadeIn 1.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }