/* GLOBAL RESET & TYPOGRAPHY */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
  font-size: 17px;
  scroll-behavior: smooth;
}
/* LAYOUT CONTAINER */
header, nav, main, footer {
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
}
/* HEADER STYLING */
header {
  display: flex;
  align-items: center;           /* Vertical center alignment */
  justify-content: flex-start;   /* Align items left */
  gap: 20px;                    /* Space between logo and heading */
  padding: 30px 1rem 20px 1rem; /* Padding with extra bottom spacing */
  background: linear-gradient(90deg, #ffe5b4 0%, #ffffff 60%, #c3d9ff 100%);
  /* Removed text-align:center since flex is used */
}
/* Logo image */
header img {
  display: block;         /* Remove inline-block extra space */
  max-height: 80px;       /* Adjust as needed to align with text */
  width: auto;
  margin: 0;
}
/* Heading next to logo */
header h1 {
  margin: 0;
  font-size: 1.8rem;       /* Adjust size as per design */
  color: #1e2d49;
  padding-left: 12px;
  border-left: 6px solid #ffd87a;
  background: #f8fbff;
  border-radius: 6px;
  display: inline-block;
  font-weight: bold;
}
/* NAVIGATION MENU */
nav {
  max-width: 1000px;
  margin: 0 auto 30px auto; /* Center nav below header with bottom margin */
  padding: 0 1rem;
}
nav ul {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping instead of scrolling */
  gap: 1rem;
  list-style-type: none;
  padding: 0;
  margin: 20px auto;
  justify-content: center;
  background: #f5f7fd;
  border-radius: 14px;
  box-shadow: 0 1px 8px #e0e7f9;
  position: relative; /* For dropdown submenu positioning */
}
nav li {
  flex-shrink: 0;
  position: relative; /* For submenu positioning */
}
nav a {
  display: block;
  color: #29559b;
  text-decoration: none;
  background: #fffdf5;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px #f8eecf inset;
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
  cursor: pointer;
}
nav a:hover {
  background: #ffe3bb;
  color: #d84b00;
  box-shadow: 0 2px 8px #fadbc5;
}
/* Active navigation link styling for consistent visibility */
nav a[aria-current="page"],
nav a.active {
  color: #d84b00 !important;
  background: #ffe3bb;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px #fadbc5;
  text-decoration: underline;
  border-bottom: 2px solid #d08400;
  transition: background-color 0.3s ease, color 0.3s ease;
}
nav a[aria-current="page"]:hover,
nav a.active:hover {
  background-color: #ffd48a;
  color: #b13800 !important;
  box-shadow: 0 2px 10px #f6c69f;
}
/* Dropdown submenu styling */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0;
  margin: 0;
  list-style: none;
  top: 100%;
  left: 0;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}
.dropdown-menu.open {
  display: block;
}
.dropdown-menu li {
  position: relative;
}
.dropdown-menu li ul.dropdown-menu {
  top: 0;
  left: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* MAIN STYLING */
main {
  padding-bottom: 3rem;
}
/* PRODUCT LIST GRID */
.products-list, .product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding-bottom: 2rem;
}
.product-block {
  background: linear-gradient(145deg, #fffdf3 0%, #eff7fc 100%);
  border: 2px solid #ffe1b6;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  padding: 20px;
  text-align: center;
  max-width: 240px;
  min-width: 180px;
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-block:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #29559b;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.product-block img {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 14px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(220, 190, 120, 0.1);
}
.product-block b {
  display: inline-block;
  font-size: 1.2rem;
  color: #144687;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
/* TABLE STYLES */
table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px;
  border: 1px solid #e3e8f0;
  text-align: left;
}
th {
  background: linear-gradient(90deg, #ffeec0 0%, #cbe8fa 100%);
  color: #1a3061;
  font-weight: 700;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
img {
  max-width: 120px;
  height: auto;
  border-radius: 6px;
}
/* FOOTER STYLING */
footer {
  background: linear-gradient(to right, #29559b, #f6b200);
  color: #fff;
  text-align: center;
  padding: 22px 10px;
  margin-top: 40px;
  font-size: 1rem;
}
footer a {
  color: #222;
  background: #ffd700;
  padding: 3px 6px;
  margin: 0 5px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  background: #fff;
  color: #1a3061;
}
/* RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 950px) {
  .products-list, .product-row {
    flex-direction: column;
    align-items: center;
  }
  .product-block {
    width: 90vw;
    max-width: 480px;
  }
}
@media screen and (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    white-space: normal;
  }
  h1, h2, h3 {
    font-size: 1.2rem;
  }
  th, td {
    font-size: 0.97rem;
    padding: 8px 6px;
  }
  footer {
    font-size: 0.92rem;
  }
  header {
    flex-direction: column;
    align-items: center;
    padding: 20px 1rem;
    text-align: center;
  }
  header h1 {
    font-size: 1.4rem;
  }
  header img {
    max-height: 60px;
    margin-bottom: 10px;
  }
}
.site-header {
  text-align: center; /* Center align logo and tagline */
  padding: 16px 0;
}
.site-logo {
  max-width: 180px;
  height: auto;
  margin: 0 auto; /* Center horizontally */
  display: block;
}
.tagline {
  font-size: 1rem;
  color: #555;
  margin-top: 8px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Optional: Horizontal layout on wider screens */
@media (min-width: 900px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .tagline {
    margin-top: 0;
  }
}
