body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #f2f4f8;
  color: #222;
  line-height: 1.6;
  width: 80%;
  margin-left: 10%;
  /*box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);*/
}

@media screen and (max-width: 768px) {
  body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f2f4f8;
    color: #222;
    line-height: 1.6;
    width: 100%;
  }
}

header {
  background: linear-gradient(to right, #0061ce, #3494ff);
  padding: 0.5rem 2rem;
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.desk-headh1 {
  display: flex;
  margin: 0;
  font-size: 3rem;
  color: #fff;
  font-weight: 600;
  font-family: arial black;
  margin-left: 5%;
}

.mobi-headh1 {
  display: none;
}

@media screen and (max-width: 768px) {
  .desk-headh1 {
    display: none;
  }

  .mobi-headh1 {
    display: flex;
    margin: 0;
    position: relative;
    font-size: 2rem;
    color: #fff;
    font-weight: 600;
  }
}

.desk-sitelogo {
  display: flex;
  width: 140px;
}

.mobi-sitelogo {
  display: none;
}

@media screen and (max-width: 768px) {
  .desk-sitelogo {
    display: none;
  }

  .mobi-sitelogo {
    position: relative;
    left: -5px;
    display: flex;
    width: 70px;
  }
}

nav {
  margin-left: 10%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  font-size: 1.5rem;
  color: #ddd;
  text-decoration: none;
  font-weight: 800;
  transition: color 0.3s ease;
  padding: 0px 0px 0px 40px;
}

nav a:hover {
  color: #fff;
}

nav input[type="text"] {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: none;
  background: #333;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

nav input[type="text"]::placeholder {
  color: #aaa;
}

nav input[type="text"]:focus {
  background: #444;
}

/* Mobile first hide */
#main-nav {
  display: none;
  }
  
  .menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5em;
  margin: 10px;
  margin-left: 15px;
  color: #fff;
  }
  
  /* Show nav when toggled */
  #main-nav.show {
  display: block;
  }
  
  /* Desktop view */
  @media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
  
  #main-nav {
    display: block;
  }
}

.langsel {
  margin-left: 60%;
  position: absolute;
  display: flex;
  width: 11.5%;
  background-color: #0a223f;
  margin-top: 107px;
}

.langsel a {
  text-decoration: none;
  color: #fff;
  padding: 0px 10px 0px 10px;
}

@media screen and (max-width: 768px) {
  .langsel {
    margin-left: 50%;
    position: absolute;
    display: flex;
    width: 50%;
    background-color: #0a223f;
    font-size: 0.8rem;
    margin-top: 54px;
  }
}

.ticker {
  background-color: #920e0e;
  color: #fff;
  padding: 5px 5px 0px 5px;
  font-size: 1em;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #444;
  border-bottom: 2px solid #444;
}

main {
  padding: 1rem 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.top-story-card {
  display: flex;
  flex-direction: column;
}

.top-story-card img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

#top-story h2 {
  margin-top: 5px;
  color: #000;
  padding-left: 4px;
  border-bottom: 4px solid #ac1c2c;
}

.top-story-card h3 a:hover {
  color: #0077cc;
}

.top-story-card p {
  font-size: 1.05rem;
  color: #444;
}

.desk-tops #top-story {
  margin-bottom: 1rem;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  width: 46.48%;
  display: inline-block;
}

.mobi-tops #top-story {
  display: none;
}

.top-story-card h3 a {
  font-size: 1.9rem;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

@media screen and (max-width: 768px) {
  .desk-tops #top-story {
    display: none;
  }

  .mobi-tops #top-story {
    margin-bottom: 1rem;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    display: block;
  }

  .top-story-card h3 a {
    font-size: 1.5rem;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
}

.top-story-card a {
  text-decoration: none;  /* Removes underline from the link */
  color: #333;            /* Set text color */
}

.ltns {
  color: #000;
  padding-left: 4px;
  border-bottom: 4px solid #ac1c2c;
}

#latest-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item-content {
  padding: 1rem;
}

/* Change title color and add underline on hover */
.news-item a:hover {
  color: #007bff;         /* Change the text color to blue when hovered */
}

.news-item img.featured-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.news-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.news-item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Default: Hide mobile image, show desktop image */
.mobile-topstory-image {
  display: none;
}

.desktop-topstory-image {
  width: 500px;  /* Reduce the width to 300px */
  height: auto;  /* Keep aspect ratio */
}

/* When screen width is 768px or smaller, show mobile image and hide desktop image */
@media screen and (max-width: 768px) {
  .desktop-topstory-image {
    display: none;
  }

  .mobile-topstory-image {
    display: block;
    width: 300px;  /* Reduce the width to 300px */
    height: auto;  /* Keep aspect ratio */
  }
}

/* Remove default text decoration and set color for news titles */
.news-item a {
  text-decoration: none;  /* Removes underline from the link */
  color: #333;            /* Set text color */
}

.category-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.category-card {
  display: block;
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s;
  min-width: 150px;
  text-align: center;
}

.category-card:hover {
  background: #007bff;
  color: white;
  transform: translateY(-5px);
}

#categories h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#categories ul li {
  display: inline-block;
  margin-right: 20px;
}

#categories a {
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
}

#categories a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive stacking */
@media (max-width: 768px) {
  nav {
    gap: 0.6rem;
  }
  .news-item {
    flex-direction: column;
  }

  .news-item img.featured-image {
    height: 200px;
  }

  .top-story-card img {
    max-height: 300px;
  }
}

.explore-more-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.explore-more-button:hover {
  background-color: #0056b3;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: #1a1a1a;
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 0;
}

/* Search Popup Overlay */
.search-popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.search-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.search-popup-content input[type="text"] {
  width: 80%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-popup-content button {
  padding: 10px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
}

.search-popup-content button:hover {
  background: #0056b3;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  padding: 12px 12px 10px 12px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}


#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  display: flex;
  gap: 10px;
}

.loader span {
  display: block;
  width: 15px;
  height: 15px;
  background: linear-gradient(to right, #0061ce, #3494ff); /* your theme color */
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.loader span:nth-child(1) {
  animation-delay: 0;
}
.loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
}

.top-vid-play-butt {
  position: absolute !important;
  margin-left: 17%;
  margin-top: 8.5%;
  color: #007bff !important;
  background-color: #383838;
  padding: 6px 12px;
  border-radius: 5px;
}

.top-vid-play-butt-mobi {
  position: absolute !important;
  margin-left: 33%;
  margin-top: 17%;
  color: #007bff !important;
  background-color: #383838;
  padding: 6px 12px;
  border-radius: 5px;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  padding: 40px 20px 10px 20px; /* reduced bottom padding */
  background-color: #1a1a1a;
  color: #fff;
  flex-wrap: wrap;
  margin-bottom: 0; /* remove bottom margin if any */
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 10px 40px;
}

.footer-column h3 {
  margin-bottom: 10px;
  color: #ac1c2c;
  border-bottom: 4px solid #ac1c2c;
}

.footer-column img {
  max-width: 20%;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 6px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}


.newsletter-form input[type="email"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 10px;
  background-color: #ac1c2c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #911621;
}

.newsletter-response {
  margin-top: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.newsletter-response.success {
  color: #28a745; /* green */
}

.newsletter-response.error {
  color: #dc3545; /* red */
}

.floating-social-icons {
  position: fixed;
  top: 35%;
  left: 10px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.floating-social-icons .social-icon {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 12px;
  margin: 5px 0;
  border-radius: 50%;
  font-size: 18px;
  width: 20px;
  height: 20px;
  line-height: 21px;
  transition: all 0.3s ease;
}

.floating-social-icons .social-icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.floating-social-icons .fb { background: #286cff; }
.floating-social-icons .ig { background: #a10dce; }
.floating-social-icons .yt { background: #fd1010; }
.floating-social-icons .tg { background: #0088cc; }
