/* ============================================
   INTEGRA - Custom Theme
   ============================================ */
:root {
    --site-primary: #2e8b57;
    --site-secondary: #808080;
    --site-bg: #f5fffa;
    --site-text: #2f4f4f;
    --site-accent: #006400;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
}
body {
    font-family: "Merriweather", serif;
    background-color: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }
/* HEADER */
.site-header {
    background-color: var(--site-primary);
    color: var(--site-white);
    padding: 15px 0;
    text-align: center;
    border-bottom: 5px solid var(--site-secondary);
}
.header-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.logo-section img { height: 70px; }
.main-nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--site-white); font-weight: bold; text-transform: uppercase; padding: 5px 10px; }
.main-nav a:hover { color: var(--site-secondary); }
/* LAYOUTS */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
/* 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: 50px; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: var(--site-white); }
/* EXTRA CSS */

      .briefs-sidebar { padding-right: 20px; border-right: 1px solid #ddd; }
      .brief-item { display: block; margin-top: 20px; text-decoration: none; color: var(--site-text); }
      .brief-item h4 { color: #006400; margin-bottom: 5px; }
      .hero-card.investigative { display: flex; flex-direction: column; }
      .hero-card.investigative img { width: 100%; height: 400px; object-fit: cover; margin-bottom: 20px; }
      .tag { color: #2e8b57; font-weight: bold; font-size: 0.8rem; letter-spacing: 1px; }
      .hero-content h2 { font-size: 2.5rem; margin: 10px 0; color: #006400; }
      .news-card { display: flex; flex-direction: column; background: white; padding: 25px; border-top: 5px solid #2e8b57; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
      .news-card img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 20px; }
      .news-title { font-size: 1.4rem; color: #006400; margin-bottom: 10px; }
    
@media (max-width: 768px) {
    #latest-container, .news-grid { grid-template-columns: 1fr !important; }
}

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

      #latest-container { display: grid; grid-template-columns: 1fr 2.5fr; gap: 30px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
      .briefs-sidebar { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid #2e8b57; }
      .hero-card.investigative { position: relative; display: block; height: 450px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
      .hero-card.investigative img { width: 100%; height: 100%; object-fit: cover; }
      .hero-content { position: absolute; bottom: 0; width: 100%; padding: 30px; background: linear-gradient(transparent, rgba(0,100,0,0.9)); color: white; box-sizing: border-box; }
      @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 { position: relative; width: 164px; height: 164px; }
  .loader::before, .loader::after {
    content: ''; position: absolute; width: 40px; height: 40px; background-color: var(--site-secondary);
    left: 50%; top: 50%; animation: rotate 1s ease-in infinite;
  }
  .loader::after { width: 20px; height: 20px; background-color: var(--site-primary); animation: rotate 1s ease-in infinite, moveY 1s ease-in infinite; }
  @keyframes moveY { 0%, 100% { top: 10% } 45%, 55% { top: 59% } 60% { top: 40% } }
  @keyframes rotate {
    0% { transform: translate(-50%, -100%) rotate(0deg) scale(1, 1) }
    25% { transform: translate(-50%, 0%) rotate(180deg) scale(1, 1) }
    45%, 55% { transform: translate(-50%, 100%) rotate(180deg) scale(3, 0.5) }
    60% { transform: translate(-50%, 100%) rotate(180deg) scale(1, 1) }
    75% { transform: translate(-50%, 0%) rotate(270deg) scale(1, 1) }
    100% { transform: translate(-50%, -100%) rotate(360deg) scale(1, 1) }
  }
