/* ============================================
   RADIOABC - Custom Theme
   ============================================ */
:root {
    --site-primary: #000080;
    --site-secondary: #ffd700;
    --site-bg: #f5f5dc;
    --site-text: #000000;
    --site-accent: #0000cd;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
}
body {
    font-family: "Times New Roman", Times, 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: "Times New Roman", Times, 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(3, 1fr); gap: 30px;
    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 { display: flex; flex-direction: column; background: white; padding: 15px; border: 1px solid #ccc; }
      .hero-card.main { grid-row: span 2; }
      .hero-card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 15px; }
      .hero-card.main img { height: 400px; }
      .hero-content { color: #000; }
      .hero-content h2 { font-size: 2rem; color: #000080; }
      .news-card { display: flex; flex-direction: column; border-top: 4px solid #000080; padding-top: 15px; }
      .news-card img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 10px; filter: sepia(0.2); }
      .news-title { font-size: 1.2rem; color: #000080; }
    
@media (max-width: 768px) {
    #latest-container, .news-grid { grid-template-columns: 1fr !important; }
}

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

      #latest-container { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
      .hero-card { display: block; position: relative; overflow: hidden; border-radius: 8px; border: 2px solid #000080; }
      .hero-card.main { grid-row: span 2; height: 100%; }
      .hero-card.sub { height: 100%; }
      .hero-card img { width: 100%; height: 100%; object-fit: cover; }
      .hero-content { position: absolute; bottom: 0; width: 100%; padding: 15px; background: rgba(0,0,128,0.85); color: white; box-sizing: border-box; }
      .hero-content h2, .hero-content h3 { color: #ffd700; margin: 0; }
      @media (max-width: 768px) { #latest-container { grid-template-columns: 1fr; grid-template-rows: auto; } .hero-card.main { height: 300px; } .hero-card.sub { height: 200px; } }
    

/* --- 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: 48px; height: 48px; background: var(--site-primary);
    transform: rotateX(65deg) rotate(45deg); color: var(--site-secondary); animation: layers1 1s linear infinite alternate;
  }
  .loader:after {
    content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.7); animation: layerTr 1s linear infinite alternate;
  }
  @keyframes layers1 { 0% { box-shadow: 0px 0px 0 0px } 90%, 100% { box-shadow: 20px 20px 0 -4px } }
  @keyframes layerTr { 0% { transform: translate(0, 0) scale(1) } 100% { transform: translate(-25px, -25px) scale(1) } }
