* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

body {
  
  overflow-x: hidden;
}

a:hover,
a:focus,
a:active {
  text-decoration: none;        
}

a {
  text-decoration: none;
  color: inherit;
}


.main-content {
  flex: 1;
  min-width: 0;
}


.news-grid.two-per-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.news-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    overflow: hidden;
}

.news-box-header {
   
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.news-box-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.news-img {
    flex-shrink: 0;
    width: 260px; 
    height: 150px; 
    overflow: hidden;
   
}


/* ================= HOME NEWS LAYOUT ================= */

.home-news {
  max-width: 1400px;
  margin: 40px 0;      
  padding: 0 16px;     
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 10px;
}
/* ================= FEATURED ================= */
.news-featured {
  padding: 26px;
  
}
.news-featured {
  position: relative;
  padding-right: 18px;
  background: #fff;
}
.news-featured::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: #e0e0e0;
}


/* Content layout ONLY */
.featured-body {
  display: grid;
  grid-template-columns: 1fr 2fr; /* IMAGE wider than TEXT */
  gap: 26px;
  align-items: center;
}


/* Image */
.news-featured img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  
}

/* FEATURED CONTENT */
.news-featured .overlay {
  position: static;
  background: none;
  padding: 0;
  color: inherit;
}

/* ================= TOP NEWS ================= */
.news-top {
  
  
  padding: 22px;
}

.news-top img {
  width: 100%;
  height: 180px;
  object-fit: cover;
 
  margin-bottom: 14px;
}

.news-top .badge.subtle {
  display: inline-block;
  border: 2px solid #8b1e1a;
  color: #8b1e1a;
  font-weight: 700;
  padding: 6px 14px;
  margin-bottom: 12px;
}
/* Remove color change on paragraph and time */
.news-top a {
    text-decoration: none;
}

.news-top p {
    color: #555;
}

.news-top time {
    color: #888;
}

.news-top a:hover p {
    color: #555;
}

.news-top a:hover time {
    color: #888;
}
/* ================= BELOW 4 NEWS ================= */
.news-grid {
  grid-column: 1 / -1;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  /* Align grid content with consistent padding */
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.news-grid article {
 
  overflow: hidden;
  padding: 0; /* remove inner padding for true alignment */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.news-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0; 
  margin-bottom: 12px; 
}


.news-grid h3 {
 
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #660000; /* dark maroon */
  margin-top: 8px;
}

.news-grid p {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin-top: 4px;
}
.featured-body time,
.tablet-content time,
.top-body time,
.news-grid time {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  margin-bottom: 12px;
}

 /* More News */
 
.more-news-btn {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 16px;
}


/* ================= TABLET VIEW ================= */
@media (max-width: 980px) {

 
  .home-news {
    grid-template-columns: 1fr;
  }


  /* ===== TOP NEWS SIDE-BY-SIDE ON TABLET ===== */
  .news-top a {
    display: grid;
    grid-template-columns: 1fr 1fr; /* TEXT LEFT, IMAGE RIGHT */
    gap: 16px;
    align-items: center;
  }

  .news-top img {
    height: 250px;
    width: 50%;
    object-fit: cover;
   
  }

  /* ===== BELOW 4 NEWS — 2 COLUMN GRID ===== */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}


/* ================= STRICT MOBILE RULES ================= */
@media (max-width: 600px) {
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* CRITICAL */
    
  }

  .home-news {
    margin: 0;
    padding: 0;
    gap: 0;
  }
  
.more-news-btn {
    margin-top: 20px !important;
    margin-bottom: 32px !important; /* key fix */
  }

  /* ================= CARDS ================= */
  .news-featured,
  .news-top,
  .news-grid article {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible; /* allow full-bleed images */
  }

  /* ================= FEATURED STACK ================= */
  .news-featured a {
    display: block;          /* IMPORTANT */
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
/* ================= SPACE AFTER FEATURED ================= */
.news-featured {
  margin-bottom: 16px !important; /* adjust: 8px / 12px / 16px */
}

  .news-featured img,
  .news-top img,
  .news-grid img {
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    height: 40vh;
    min-height: 200px;
    object-fit: cover;
  }

  /* ================= FEATURED TEXT ================= */
  .news-featured .overlay {
    padding: 0 !important;
    background: none !important;
  }


  .news-featured h1,
  .news-featured p,
  .news-featured time {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
  }

  /* ================= TOP NEWS ================= */
  .news-top a {
    display: block;
    padding: 0;
    margin: 0;
  }

  .news-top h2,
  .news-top p,
  .news-top time {
    padding-left: 8px;
    padding-right: 8px;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
  }

  /* ================= GRID NEWS ================= */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  .news-grid h3,
  .news-grid p,
  .news-grid time {
    padding-left: 8px;
    padding-right: 8px;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
  }
  /* ================= FEATURED MOBILE STACK FIX ================= */
  .news-featured .featured-body {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Ensure text stays on top */
  .news-featured .overlay {
    order: 1;
    width: 100%;
  }

  /* Ensure image stays below text */
  .news-featured img {
    order: 2;
    margin-top: 12px;
  }

/* More News */

.news-grid.two-per-row {
        grid-template-columns: 1fr; 
        padding: 0 !important;      
        margin: 0 !important;       
        gap: 0;                     
        width: 100vw;              
        box-sizing: border-box;
    }
    .news-box-content, 
    .news-box {
        flex-direction: column; /* stack image above text */
        align-items: stretch;   /* full width */
        padding: 0 !important;  /* remove internal padding */
        margin: 0 !important;   /* remove margin */
        width: 100%;
        box-sizing: border-box;
    }

    /* Image edge-to-edge */
    .news-img {
        width: 100% !important;
        height: 350px;      /* fixed height */
        border-radius: 0;   /* sharp edges */
        margin: 0 !important;
        object-fit: cover;
        display: block;
    }

    /* Text under image with minimal padding */
    .news-text {
        width: 100%;
        padding: 8px;       /* optional, can remove if you want true edge-to-edge text */
        text-align: left;
        margin: 0;
        box-sizing: border-box;
    }
}

  /* ================= VISIBILITY ================= */
  .news-top-tablet {
    display: none !important;
  }

  .news-top {
    display: block !important;
  }
}


/* ================= TABLET / MEDIUM SCREENS ================= */
@media (min-width: 601px) and (max-width: 980px) {

  /* TOP NEWS — MAKE IMAGE TALLER */
  .news-top img {
    height: 300px;
    object-fit: cover;
  }

  /* BELOW 4 — 2 COLUMN MODE, TALLER IMAGES */
  .news-grid img {
    height: 200px;
    object-fit: cover;
  }

  .news-grid article {
    padding-bottom: 6px;
  }
}

/* ================= NEWS TOP TABLET ONLY (2-COLUMN GRID ZONE) ================= */
@media (max-width: 980px) and (min-width: 601px) {

  /* Hide original top news */
  .news-top {
    display: none !important;
  }

  /* Show tablet version */
  .news-top-tablet {
    display: block !important;
    
    padding: 22px;
  }

  .news-top-tablet a {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr;
    gap: 24px;
    align-items: center;
  }

  .news-top-tablet img {
    width: 100%;
    height: 280px;
    object-fit: cover;
   
  }

  .news-top-tablet h2 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: #a5302b;
  }

  .news-top-tablet p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
  }

  .news-top-tablet time
  {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #777;
  }
 
  /* 2 columns for 4 boxes */
  .news-grid.two-per-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Stack image above text in each news-box */
  .news-box-content {
    flex-direction: column; /* image top, text below */
    gap: 12px;              /* space between image & text */
  }

  /* Make images full width inside each box */
  .news-img {
    width: 100%;
    height: 200px;          /* adjust as needed */
  }

  .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .news-text {
    padding: 8px;
  }
}

.more-news-btn .btn-maroon {
    display: inline-block;
    padding: 10px 20px;           
    font-size: 16px;              
    font-weight: 600;             
    color: #800000;               
    background-color: #fff;       
    border: 2px solid #800000;    
    border-radius: 0;             
    text-align: center;           
    text-decoration: none;        
    transition: all 0.3s ease;   
}

.more-news-btn .btn-maroon:hover,
.more-news-btn .btn-maroon:focus {
    background-color: #800000;    
    color: #fff;                 
    border-color: #800000;        
}

.news-img {
  position: relative;
  overflow: hidden;
}

.more-news-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #b30000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  text-transform: uppercase;
  border-radius: 3px;
  letter-spacing: .5px;
}
