/* ============================================
   CENTRONEWS - Corporate News Theme
   ============================================ */

:root {
    --site-primary: #0056b3;
    --site-secondary: #ff8c00;
    --site-bg: #f4f7f6;
    --site-text: #333333;
    --site-accent: #003d82;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Open+Sans:wght@400;600;700&display=swap");

body {
    font-family: "Open Sans", sans-serif;
    background-color: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    color: var(--site-accent);
}

/* ===== HEADER CORPORATIVO ===== */
.site-header {
    background-color: var(--site-primary);
    color: var(--site-white);
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid var(--site-secondary);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section img {
    height: 80px;
    border-radius: 4px;
}

.main-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    background: rgba(0,0,0,0.1);
    padding: 10px 0;
    border-radius: 4px;
}

.main-nav a {
    color: var(--site-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--site-secondary);
}

/* ===== HERO SECTION ===== */


.hero-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.hero-card:hover img {
    transform: scale(1.02);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 20px;
    color: white;
}

.hero-content h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* ===== NEWS GRID (LIST VIEW) ===== */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.news-card {
    display: flex;
    background: var(--site-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--site-primary);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.news-card img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    color: var(--site-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--site-accent);
}

.news-desc {
    color: var(--site-text);
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--site-accent);
    color: var(--site-white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--site-white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--site-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    
    .news-card {
        flex-direction: column;
    }
    .news-card img {
        width: 100%;
        height: 200px;
    }
    .main-nav {
        flex-wrap: wrap;
    }
}

/* --- HERO GRID FIXES --- */

      #latest-container { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
      .hero-card { position: relative; border-radius: 8px; overflow: hidden; height: 400px; display: block; }
      .hero-card img { width: 100%; height: 100%; object-fit: cover; }
      .hero-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 30px 20px 20px; color: white; }
      @media (max-width: 768px) { #latest-container { grid-template-columns: 1fr; } }
    

/* --- PRELOADER --- */
#site-preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--site-bg); display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease;
}
#site-preloader.hidden { opacity: 0; pointer-events: none; }

.loader {
    width: 48px; height: 48px; display: inline-block; position: relative;
    border: 3px solid; border-color: var(--site-primary) #0000 var(--site-secondary) #0000;
    border-radius: 50%; box-sizing: border-box; animation: 1s rotate linear infinite;
  }
  .loader:before, .loader:after {
    content: ''; top: 0; left: 0; position: absolute; border: 10px solid transparent;
    border-bottom-color: var(--site-secondary); transform: translate(-10px, 19px) rotate(-35deg);
  }
  .loader:after {
    border-color: var(--site-primary) #0000 #0000 #0000; transform: translate(32px, 3px) rotate(-35deg);
  }
  @keyframes rotate { 100% { transform: rotate(360deg) } }
