/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9fafb; /* Light gray background */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #2c3e50; /* Dark slate for text, good readability */
}

/* Topbar (Header) */
.topbar {
  background: #e3f2fd;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
  border-bottom: 1px solid #bbdefb;
  transition: background-color 0.3s ease;
}

.topbar:hover {
  background-color: #d0e7ff;
}

.logo img {
  width: 120px;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.toggle-btn {
  font-size: 28px;
  background: none;
  border: none;
  color: #1e3a8a;
  display: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-btn:hover {
  color: #2563eb;
}

/* Content area */
.content {
  flex: 1;
}

/* Heading */
h1 {
  margin-bottom: 32px;
  text-align: center;
  font-weight: 700;
  color: #1e3a8a;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 10px;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 18px 14px;
  transition: box-shadow 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.15);
}

.product-card img {
  width: 100%;
  height: 10rem;
  border-radius: 8px;
  object-fit: cover;
}

.product-card p {
  margin: 18px 0 12px 0;
  font-weight: 600;
  color: #1e3a8a;
  font-size: 1rem;
}

.product-card button,
.product-card a.btn {
  padding: 10px 18px;
  background: #90caf9;
  border: none;
  border-radius: 8px;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.product-card button:hover,
.product-card a.btn:hover {
  background: #64b5f6;
  color: #0d47a1;
}

/* About Section */
.about-products {
  margin: 40px 20px;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08);
}

.about-products h2 {
  color: #1e3a8a;
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.about-products p {
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 20px;
}

.product-details {
  display: block;
 /* grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;*/
}

.product-details h3 {
  color: #1e3a8a;
  font-size: 18px;
  margin-bottom: 8px;
}

.product-details p {
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #e3f2fd;
  color: #1e3a8a;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  user-select: none;
  box-shadow: 0 -2px 6px rgba(30, 58, 138, 0.1);
  border-top: 1px solid #bbdefb;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.footer:hover {
  background-color: #d0e7ff;
}

/* Responsive */
@media (max-width: 768px) {
  .toggle-btn {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    background: #e3f2fd;
    top: 60px;
    right: 20px;
    width: 220px;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 17px;
    color: #1e3a8a;
  }

  .about-products {
    margin: 20px 12px;
    padding: 20px;
  }

  .product-details {
    grid-template-columns: 1fr;
  }
}

/* Generic Button */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: #90caf9;
  color: #1e3a8a;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: #64b5f6;
  color: #0d47a1;
}




/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: #e3f2fd;
  width: 220px;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #1e3a8a;
}

.dropdown-menu a:hover {
  background: #bbdefb;
}

/* DESKTOP HOVER */
/*@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}*/
/* Desktop dropdown – click controlled */
@media (min-width: 769px) {
  .dropdown-menu {
    display: none;
  }

  .dropdown-menu.active {
    display: block;
  }
}


/* MOBILE */
@media (max-width: 768px) {

  /*.toggle-btn {
    display: block;
  }
*/
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background: #e3f2fd;
    width: 260px;
    border-radius: 8px;
    padding: 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 10px;
    width: auto; 
  }

  .dropdown-menu.active {
    display: block;
  }
}
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
    position: static;
    background: transparent;
  }

  .dropdown-menu.active {
    display: block;
  }
}
