* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e0e0e0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}


main {
  flex: 1;
}



/* Navigation */
.navbarn {
  width: clamp(70%, 70vw, 95%);
  display: flex;
  overflow-x: auto;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #8F1A01; /*#4D0E03*/
  color: #fff;
  margin: 0 auto;
  padding-left: clamp(10px, 5vw, 30px);
  padding-right: clamp(10px, 5vw, 30px);
  box-sizing: border-box;
  height: clamp(60px, 10vw, 70px);
  overflow: visible;
  position: relative;
}

.navbarb {
  width: clamp(70%, 70vw, 95%);
  display: flex;
  overflow-x: auto;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #8F1A01;
  color: #fff;
  margin: 0 auto;
  padding-left: clamp(10px, 5vw, 30px);
  padding-right: clamp(10px, 5vw, 30px);
  box-sizing: border-box;
  height: clamp(60px, 10vw, 70px);
  overflow: visible;
  position: relative;
}
.navbare {
  width: clamp(70%, 70vw, 95%);
  display: flex;
  overflow-x: auto;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #8F1A01;
  color: #fff;
  margin: 0 auto;
  padding-left: clamp(10px, 5vw, 30px);
  padding-right: clamp(10px, 5vw, 30px);
  box-sizing: border-box;
  height: clamp(60px, 10vw, 70px);
  overflow: visible;
  position: relative;
}
.navbars {
  width: clamp(70%, 70vw, 95%);
  display: flex;
  overflow-x: auto;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #8F1A01;
  color: #fff;
  margin: 0 auto;
  padding-left: clamp(10px, 5vw, 30px);
  padding-right: clamp(10px, 5vw, 30px);
  box-sizing: border-box;
  height: clamp(60px, 10vw, 70px);
  overflow: visible;
  position: relative;
}

.logo {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: clamp(60px, 12vw, 100px);
  margin-top: clamp(-10px, -2vw, -20px);
}

.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* Align nav-links to the right */
  overflow: hidden;
}

.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 25px);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.nav-links a {
  flex: 1 1 auto;
  min-width: fit-content;
  color: #fff;
  text-decoration: none;
  margin-left: clamp(10px, 2vw, 20px);
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  overflow: hidden;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.hamburger:hover {
  color: red;
}

/* Featured and Latest Section */
.featured-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(10px, 3vw, 20px);
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  margin: clamp(15px, 5vw, 30px) auto 0 auto;
  padding: 0 clamp(10px, 5vw, 20px);
}

.main-featured {
  flex: 1 1 clamp(300px, 65%, 70%);
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  text-decoration: none;       /* Remove underline */
  color: inherit; 
}

.hero-img {
  width: 100%;
  height: 75%;
  object-fit: cover;
}

.main-text {
  padding: 20px;
}

.main-text h2 {
  font-size: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 12px;
}

.main-text p {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #333;
  margin-bottom: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* show 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  background: #eee;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  display: inline-block;
  max-width: fit-content;
}

.latest-news {
  flex: 1 1 clamp(250px, 30%, 35%);
  max-width: 100%;
}

.latest-headern {
  background: #8F1A01;
  color: white;
  padding: 10px 12px;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.latest-headerb {
  background: #8F1A01;
  color: white;
  padding: 10px 12px;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.latest-headere {
  background: #8F1A01;
  color: white;
  padding: 10px 12px;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.latest-headers {
  background: #8F1A01;
  color: white;
  padding: 10px 12px;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}


.news-card {
  display: flex;
  background: #fff;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 6px;
  gap: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  text-decoration: none;      /* remove underline on the entire link */
  color: inherit;             /* keep normal text color */
  display: block;             /* make the whole card clickable */
}

.news-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.news-card .info {
  flex: 1;
}

.news-card .info h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;

  text-decoration: none;      /* ensure no underline for title/date */
  color: inherit;
}

.news-card .info p {
  font-size: 0.8rem;
  color: #555;

  text-decoration: none;      /* ensure no underline for title/date */
  color: inherit;
}

.date-icon {
  margin-right: 5px;
}

/* Article Cards */
.articles {
  padding: clamp(20px, 4vw, 40px) clamp(10px, 4vw, 20px);
  max-width: 1200px;
  margin: clamp(5px, 2vw, 20px) auto 0 auto;
}

.articles h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.line {
  height: 4px;
  width: 60px;
  background: #111;
  margin-bottom: 20px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 3vw, 20px);
  padding: 0 clamp(10px, 3vw, 20px);
}

.cards {
  display: contents;
}

.card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: clamp(120px, 20vw, 180px);
  object-fit: cover;
}

.category {
  font-size: 0.7rem;
  font-weight: bold;
  padding: 6px 10px;
  background: #222;
  color: #fff;
  position: absolute;
  bottom: 10px;
  left: 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 1;
}

.category.news,
.category.business,
.category.entertainment,
.category.sports,
.category.shows {
  display: none;
}

.category.county-news {
  background-color: #00796B;
}

.category.national-news {
  background-color: #1976D2;
}

.category.international-news {
  background-color: #C2185B;
}

.card-title {
  font-size: 1rem;
  padding: 0 10px;
  margin-top: 5px;
}

.date {
  font-size: 0.8rem;
  color: #555;
  padding: 10px;
}

.load-more-btn {
  background-color: #111;
  color: #fff;
  padding: 10px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.load-more-btn:hover {
  background-color: #333;
}

.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: clamp(10px, 3vw, 20px) 0;
  width: 100%; /* auto-scales between 90% and 70% */
  margin: 0 auto;
  transition: width 0.3s ease;
  font-size: clamp(0.8rem, 2vw, 1rem); /* dynamic text sizing */
  box-sizing: border-box;
  gap: clamp(50px, 5vw, 80px); 
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 80px);
}

.footer-inner {
  display: flex;
  gap: clamp(150px, 80vw, 200px); 
  flex-wrap: wrap; /* stack on smaller screens */
  justify-content: center;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligns content to left */
  text-align: left; /* ensures text inside is left-aligned */
}

.footer-column h4 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem); /* slightly larger font */
  font-weight: 700; /* bold */
  margin-bottom: clamp(10px, 1.5vw, 14px); /* a little more spacing */
  color: #fff;
  
}

.footer-column p,
.footer-column li {
  margin-bottom: clamp(6px, 1vw, 10px);
}

.footer-column a {
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


.contact-info .contact-grid {
  display: flex;
  gap: clamp(30px, 4vw, 50px); /* space between two sub-columns */
  flex-wrap: wrap; /* stack on smaller screens */
}

.contact-info .contact-subcolumn {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 10px);
}

/* Keep About Us left-aligned, Contact Info left-aligned */
.footer-column.about-us {
  align-items: flex-start;
}
.footer-column.contact-info {
  align-items: flex-start;
}

.social-icons {
  margin-bottom: clamp(10px, 2vw, 20px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 20px);
}

.social-icons a {
  color: #ccc;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
}

@media (max-width: 1200px) {
  .featured-container {
    flex-direction: column;
  }

  .main-featured,
  .latest-news {
    flex: 1 1 100%;
    max-width: 100%;
    display: block;
    text-decoration: none;       /* Remove underline */
    color: inherit;   
  }

  .cards-container {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .main-text h2 {
    font-size: 1.2rem;
  }

  .main-text p {
    font-size: 0.9rem;
  }

  .news-card img {
    width: 60px;
    height: 50px;
  }

  .news-card .info h4 {
    font-size: 0.8rem;
  }


  .nav-links {
    display: none; /* Hide nav links initially */
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: clamp(60px, 10vw, 80px);
    left: 0;
    right: 0;
    padding: clamp(8px, 2vw, 16px);
    width: 100%;
    height: 50vh;
    overflow-y: auto; 
    
  }
  

  .nav-links.active {
    display: flex; /* Show nav when active */
  }

  .hamburger {
    display: block; /* Show hamburger on small screens */
  }

  .navbarn {
    width: clamp(90%, 90vw, 95%);
    position: relative;
  }

  .navbarb {
    width: clamp(90%, 90vw, 95%);
    position: relative;
  }

   .navbare {
    width: clamp(90%, 90vw, 95%);
    position: relative;
  }

   .navbars {
    width: clamp(90%, 90vw, 95%);
    position: relative;
  }



  .footer-inner {
    flex-direction: column;
    align-items: center; /* center all footer columns */
    gap: clamp(15px, 3vw, 30px);
  }

  /* About Us: center content */
  .footer-column.about-us {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Contact Info: stack sub-columns and center everything */
  .footer-column.contact-info {
    width: 100%; /* full width */
    align-items: center;
    text-align: center;
  }

  .contact-info .contact-grid {
    flex-direction: column; /* stack sub-columns */
    gap: clamp(15px, 3vw, 25px); /* spacing between sub-columns */
    align-items: center; /* center sub-columns horizontally */
  }

  .contact-info .contact-subcolumn {
    width: 100%; /* full width for each sub-column */
    flex: none;  /* prevent flex sizing from messing layout */
    align-items: center; /* center the content */
  }

  /* Center the CONTACT INFO title above sub-columns */
  .footer-column.contact-info h4 {
    text-align: center;
    width: 100%;
    margin-bottom: clamp(15px, 3vw, 20px);
  }

  /* Social icons: center below everything */
  .social-icons {
    justify-content: center;
    gap: clamp(10px, 2vw, 20px);
    margin-top: clamp(15px, 3vw, 25px);
  }
  
}


