/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
}

.top-bar .logo {
  font-size: 24px;
  font-weight: 700;
}

.top-bar .search-bar {
  display: flex;
  align-items: center;
}

.top-bar .search-bar input[type="search"] {
  padding: 8px;
  border: none;
  border-radius: 4px;
  outline: none;
}

.top-bar .search-bar button {
  background-color: #ff6a3d;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: 5px;
}

.top-bar .date {
  font-size: 14px;
}

/* Navigation */
nav {
  background-color: #333;
  padding: 10px 20px;
}

nav ul {
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ff6a3d;
}

/* Ticker */
.ticker {
  background-color: #ff6a3d;
  color: white;
  padding: 10px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.ticker p {
  margin: 0;
  animation: ticker 15s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  background-color: #f4f4f9;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: #fff; /* Fallback background */
}

.hero-slide:hover img {
  transform: scale(1.05);
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Ensure text readability */
  color: white;
  padding: 20px;
  text-align: left;
  font-size: 1.2rem; /* Increase font size for better visibility */
}

.hero-caption h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-caption a {
  background-color: #ff6a3d;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 14px;
  color: white;
  transition: background-color 0.3s ease;
}

.hero-caption a:hover {
  background-color: #ff5630;
}

/* Enhanced Articles Grid CSS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusts for different screen sizes */
  gap: 20px;
  padding: 20px;
}

.article-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-content {
  padding: 15px;
}

.article-content h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 14px;
  margin-bottom: 10px;
}

.article-content p.meta {
  font-size: 12px;
  color: #777;
}


/* Featured News */
.featured-news {
  background-color: #fff;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 20px;
}

.featured-news img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.featured-news h2 {
  font-size: 24px;
  margin: 20px 0 10px;
}

.featured-news p {
  font-size: 16px;
  color: #666;
}

/* Other News Section */
.other-news {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.other-news article {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.other-news img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
}

.other-news h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.other-news p {
  font-size: 14px;
  color: #555;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 20px;
}

footer p {
  margin: 0;
}

footer a {
  color: #ff6a3d;
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .featured-news {
    margin: 10px;
  }

  .other-news {
    flex-direction: column;
  }
}

.search-bar {
  display: flex;
}

.search-bar input {
  padding: 5px;
  font-size: 14px;
}

.search-bar button {
  padding: 5px;
  cursor: pointer;
}

/* FAQ Section */
.faq-section {
  margin-top: 30px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}



a {
  color: #ffa600;
  /* Vibrant blue color */
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #b38900;
  /* Darker shade for hover effect */
}

#dateTime {
  color: #ffae00;
  /* Vibrant blue, same as the hyperlink accent */
  font-size: 10px;
  /* Smaller font size */
  font-weight: normal;
  /* Adjust weight as necessary */
}



/* General Image Styling */

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-container:hover .image-caption {
  background: rgba(0, 0, 0, 0.8);
  /* Darker when hovered */
}

/* Image container styling */
.image-container {
  margin-bottom: 20px;
  position: relative;
}

.responsive-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.image-caption {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #666;
  text-align: center;
  display: flex;
  justify-content: space-between;
  font-style: italic;
}

.caption-text {
  font-weight: 500;
  font-size: 0.7rem;
}

.image-credit {
  font-size: 0.7rem;
}

.image-credit a {
  color: #ff6a3d;
  /* Accent color for the link */
  text-decoration: none;
}

.image-credit a:hover {
  text-decoration: underline;
}

/* Meta (date and time) styling */
.meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.accent-time {
  color: #ff6a3d;
  /* Accent color for the date */
  font-size: 0.85rem;
}

/* Ensure article body has a good padding */
.article-body {
  line-height: 1.6;
  font-size: 1.1rem;
}


.carousel-container {
  display: flex;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  flex: 0 0 20%; /* Display three items per view */
  box-sizing: border-box;
  margin-right: 20px; /* Spacing between items */
}

.carousel-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  z-index: 100;
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}
