/* ============================================
   BREAKINGCENTER - Custom Theme
   ============================================ */
:root {
    --site-primary: #8b0000;
    --site-secondary: #000000;
    --site-bg: #121212;
    --site-text: #e0e0e0;
    --site-accent: #ff0000;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
}
body {
    font-family: system-ui, sans-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: system-ui, 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(4, 1fr); gap: 15px;
    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 */

      .hero-card.dark { position: relative; display: block; height: 300px; overflow: hidden; border: 2px solid #ff0000; }
      .hero-card.dark img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
      .hero-card.dark:hover img { opacity: 1; }
      .hero-content { position: absolute; bottom: 0; background: rgba(0,0,0,0.8); width: 100%; padding: 15px; }
      .hero-content h3 { color: #fff; font-size: 1.1rem; margin: 0; }
      .news-card { display: flex; flex-direction: column; background: #1e1e1e; }
      .news-card img { width: 100%; height: 150px; object-fit: cover; }
      .news-content { padding: 10px; }
      .news-title { font-size: 1rem; color: #fff; }
    
@media (max-width: 768px) {
    #latest-container, .news-grid { grid-template-columns: 1fr !important; }
}

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

      #latest-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
      .hero-card.dark { position: relative; display: block; height: 350px; overflow: hidden; border: 2px solid #ff0000; border-radius: 4px; }
      .hero-card.dark img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
      .hero-content { position: absolute; bottom: 0; background: rgba(0,0,0,0.9); width: 100%; padding: 15px; 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 {
    box-sizing: border-box; position: relative; width: 48px; height: 48px; animation: spin 1s linear infinite;
  }
  .loader:after, .loader:before {
    content: ""; width: 24px; height: 24px; position: absolute; border-radius: 50%;
    background: var(--site-primary); animation: spin 1s linear infinite; transform-origin: 0px 100%;
  }
  .loader:before { transform-origin: 0 50%; background: var(--site-secondary); }
  @keyframes spin { to { transform: rotate(360deg); } }
