/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f7fa;
  color: #333;
  line-height: 1.6;
  padding-bottom: 40px;
}

/* Header */
header {
  background: #007bff;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

header h2 {
  font-size: 1.5rem;
  font-weight: bold;
}

nav.desktop-menu {
  display: flex;
  gap: 1.5rem;
}

nav.desktop-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s;
}

nav.desktop-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Ensure 6 blobs on large screens, with proper boxed layout */
#courierGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  transition: all 0.3s ease;
  padding: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  #courierGrid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

/* Boxed Layout for general content */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Card styling */
.courier-card {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.courier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.2);
}

.courier-card .logo-holder {
  background-color: #e9ecef;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #888;
}

.courier-card .font-medium {
  font-weight: 600;
  font-size: 1rem;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #007bff;
  padding: 1rem;
  text-align: center;
  position: absolute;
  top: 60px;
  right: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu a {
  color: white;
  padding: 0.5rem 0;
  text-decoration: none;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav.desktop-menu {
    display: none;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }
}

/* Search input styling */
input[type="text"] {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  margin: 0 auto 2rem;
  display: block;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 1rem;
  transition: 0.3s;
}

input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* When search active */
#courierGrid.search-active {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

#courierGrid .courier-card {
  width: auto;
}

/* Footer */
.footer {
  background-color: #002c6f;
  color: #fff;
  padding: 2rem 1rem 1rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  flex: 1 1 250px;
}

.footer-logo h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: #ccd6f6;
  line-height: 1.6;
}

.footer-links, .footer-contact {
  flex: 1 1 200px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccd6f6;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-contact p {
  margin: 0.3rem 0;
  color: #ccd6f6;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Ensure tracking page styles only apply to content within the 'main' element */
main {
  padding: 2rem 0;
  background-color: #f4f7fa;
  max-width: 1200px;
  margin: 0 auto;
}

main h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #002c6f;
  text-align: center;
  margin-bottom: 1.5rem;
}

.main .logo-box {
  text-align: center;
  margin: 1.5rem 0;
}

main .logo-box img {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

/* Tracking Section */
main .tracking-section {
  text-align: center;
  margin-top: 2rem;
}

main .tracking-section input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 1rem;
}

main .tracking-section button {
  background: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}

main .tracking-section button:hover {
  background: #0056b3;
}

main #countdown {
  font-weight: bold;
  color: #e11d48;
  margin-top: 10px;
}

/* Instructions Section */
main .instructions,
main .customer-info,
main .company-info,
main .suggestion {
  background-color: #f8f9fb;
  border-left: 4px solid #007bff;
  padding: 1.25rem;
  margin-top: 2rem;
  border-radius: 12px;
}

/* Customer Service Info */
main .customer-info ul {
  list-style: none;
  padding-left: 0;
}

main .customer-info li {
  margin-bottom: 0.5rem;
}

main .customer-info a,
main .suggestion a {
  color: #007bff;
  text-decoration: none;
}

main .customer-info a:hover,
main .suggestion a:hover {
  text-decoration: underline;
}

main .company-info p {
  margin-bottom: 1rem;
}

main .suggestion p {
  text-align: center;
}

/* Countdown timer styling */
#countdown {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff0000;
}
