/* Base body styles: sets font, background, and text color */
body {
  margin: 0;  /* Remove default margin */
  padding: 0; /* Remove default padding */
  font-family: Arial, sans-serif;   /* Clean, modern font */
  background-color: #ffffff; /* Light background color */
  color: #000; /* Default text color */
  /* line-height: 1.6; Improved readability */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

/* Header styles: background, text color, padding, and layout */
.header {
  background-color: #901f1f; /* Dark red background */
  color: #fff;    /* White text */
  padding: 25px 10px; /* Padding around header */
  display: flex;
  justify-content: center;
  /* border: #000000 4px solid; /* Black border around header */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth 
  text-align: center;  */
}

/* Container for header content: aligns logo and text */
.header-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  text-align: center;
}

/* Logo image size */
.header-logo img {
  height: 80px;
  width: auto;
  border-radius: 38px; /* Slightly rounded corners */
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  image-resolution: from-image; /* Ensure high-res images look sharp */
  transition: transform 0.3s ease; /* Smooth hover effect */
  border: #ffffff 2px solid; /* Black border around logo */
}

/* Main header text size */
.header-text h1 {
  margin: 0;
  font-size: 2.5em;
}

/* Header tagline style */
.header-text p {
  margin: 5px 0 0;
  font-size: 1.1em;
}

/* Navigation bar styles: background, layout, and shadow */
.navbar {
  background-color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1000;
}

/* Wrapper for menu and nav links */
.menu-wrapper {
  position: relative;
}

/* Navigation links layout */
.nav-links {
  display: flex;
}

/* Navigation link styles */
.navbar a {
  padding: 14px 15px;
  color: white;
  text-decoration: none;
}

/* Navigation link hover effect */
.navbar a:hover {
  background-color: #1fbdec;
}

/* Hamburger menu button for mobile */
.hamburger {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* Search bar container */
.search-container {
  position: relative;
}

/* Search input styling */
#searchInput {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  outline: none;
}

/* Suggestions dropdown styling */
#suggestions {
  position: absolute;
  top: 35px;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  width: 200px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

/* Individual suggestion style */
#suggestions div {
  padding: 8px;
  cursor: pointer;
}

/* Suggestion hover effect */
#suggestions div:hover {
  background: #f1f1f1;
}

/* Responsive navigation for mobile screens */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    width: 130px;
    flex-direction: column;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  }

  .nav-links a {
    display: block;
    padding: 10px 14px;
    text-align: left;
  }

  /* Show nav links on hover or focus */
  .menu-wrapper:hover .nav-links,
  .menu-wrapper:focus-within .nav-links {
    display: flex;
  }
}

/* Announcement bar styles: layout, colors, and shadow */
.announcement-bar {
  display: flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Announcement title section */
.announcement-title {
  background-color: #318ef2;
  color: white;
  padding: 9px 20px;
  font-weight: bold;
  white-space: nowrap;
}

/* Announcement content area */
.announcement-content {
  background: white;
  flex: 1;
  overflow: hidden;
  padding: 10px;
}

/* Scrolling text animation for announcements */
.scroll-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  white-space: nowrap;
}

/* Icon color in announcement */
.scroll-text i {
  color: #d81b60;
  margin-right: 10px;
}

/* Keyframes for scrolling text leftwards */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause scroll animation on hover */
.announcement-content:hover .scroll-text {
  animation-play-state: paused;
}

/* Main container for page content */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* Grid layout for featured boxes */
.featured-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  margin-top: 10px;
}
.featured-grid-1 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  margin-top: 10px;
}


/* Individual featured box styles */
.featured-box {
  display: block;
  width: 220px;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease-in-out;
}

/* Featured box hover effect: rises up */
.featured-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 14px rgba(97, 46, 46, 0.25);
}

/* Featured box active effect: pressed down */
.featured-box:active {
  transform: translateY(5px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

/* Different background colors for featured boxes */
.featured-box.yellow {
  background: #687310;
}
.featured-box.blue {
  background: #4285f4;
}
.featured-box.red {
  background: #ea4335;
}
.featured-box.white {
  background: #cb923d;
  color: #ffffff;
}

/* Main content grid layout */
.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Section styles for content blocks */
section {
  background-color: white;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
}

/* Section heading styles */
section h2 {
  margin-top: 0;
  font-size: 1.25em;
  background-color: #d80707bd;
  color: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  text-align: center;
}

/* List styles for items */
ul {
  list-style-type: none;
  padding: 0;
}
ul li {
  padding: 8px 1px;
  border-bottom: 1px solid #b5c3cd;
}
ul li a {
  color: #0000ee;
  text-decoration: none;
}
ul li a:hover {
  text-decoration: underline;
}

/* Footer styles: top and bottom sections */
.footer-top {
  background-color: #1a75bb;
  color: white;
  padding: 30px 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
}
.footer-container h3 {
  margin: 0;
  font-size: 2em;
  text-decoration: underline;
}
.footer-section {
  flex: 1 1 250px;
  margin: 10px;
}
.footer-section h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  color: white;
  text-decoration: none;
}
.footer-section ul li a:hover {
  text-decoration: underline;
}
.footer-bottom {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.85em;
}

/* Ads container: sticky ad position */
.ads-container {
  position: fixed;
  top: 100px;
  right: 10px;
  width: 160px;
  z-index: 9999;
}

/* Responsive ad container for tablets */
@media (max-width: 1024px) {
  .ads-container {
    position: static;
    margin: 10px auto;
    width: 100%;
    text-align: center;
  }
}

/* Hide ads on small mobile screens */
@media (max-width: 768px) {
  .ads-container {
    display: none;
  }
}

/* Highlight NEW badges */

/* NEW badge with pulse animation */
.new-badge {
  background: #ff3b3b; /* Red background */
  color: #ffffff; /* White text */
  font-size: 10px; /* Small font size */
  font-weight: bold; /* Bold text */
  padding: 2px 6px; /* Padding inside badge */
  border-radius: 12px; /* Rounded corners */
  margin-left: 8px; /* Space to the left */
  box-shadow: 0 2px 8px rgba(255, 59, 59, 0.3); /* Soft shadow */
  letter-spacing: 1px; /* Space between letters */
  animation: pulse 1.5s infinite; /* Pulse effect animation */
}

/* Pulse animation for .new-badge */
@keyframes pulse {
  0% {
    transform: scale(1); /* Normal size */
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); /* Initial shadow */
  }
  70% {
    transform: scale(1.1); /* Slightly bigger */
    box-shadow: 0 0 10px 5px rgba(255, 59, 59, 0); /* Glow effect */
  }
  100% {
    transform: scale(1); /* Back to normal */
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); /* Remove shadow */
  }
}

/* NEW badge with wave animation */
.new-badge2 {
  background: #ff3b3b; /* Red background */
  color: #ffffff; /* White text */
  font-size: 11px; /* Slightly larger font */
  font-weight: bold; /* Bold text */
  padding: 2px 10px; /* More padding */
  border-radius: 12px; /* Rounded corners */
  margin-left: 8px; /* Space to the left */
  box-shadow: 0 2px 8px rgba(255, 59, 59, 0.3); /* Soft shadow */
  letter-spacing: 1px; /* Space between letters */
  animation: wave 1.2s infinite; /* Wave effect animation */
  display: inline-block; /* Inline block for transform */
}

/* Wave animation for .new-badge2 */
@keyframes wave {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-10deg) scale(1.1); }
  40%  { transform: rotate(10deg) scale(1.1); }
  60%  { transform: rotate(-10deg) scale(1.1); }
  80%  { transform: rotate(10deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* NEW badge with flag hoisting and waving animation */
.new-badge3 {
  background: #ff3b3b; /* Red background */
  color: #ffffff; /* White text */
  font-size: 11px; /* Slightly larger font */
  font-weight: bold; /* Bold text */
  padding: 2px 10px; /* More padding */
  border-radius: 12px; /* Rounded corners */
  margin-left: 8px; /* Space to the left */
  box-shadow: 0 2px 8px rgba(255, 59, 59, 0.3); /* Soft shadow */
  letter-spacing: 1px; /* Space between letters */
  display: inline-block; /* Inline block for transform */
  animation: flagHoist 2s ease-out forwards, wave 1.2s 2s infinite; /* Hoist up, then wave */
}

/* Keyframes for flag hoisting (moving up) */
@keyframes flagHoist {
  0%   { transform: translateY(40px); opacity: 0; }
  80%  { transform: translateY(-5px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Keyframes for flag waving (side-to-side rotation) */
@keyframes wave {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-10deg); }
  40%  { transform: rotate(10deg); }
  60%  { transform: rotate(-10deg); }
  80%  { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* End of CSS file */