/* --- Cleaned and Consolidated CSS for the Platform --- */

/* Hero Section */
.hero-section {
  background: linear-gradient(to right, #252d48e6, rgba(35, 38, 42, 0.9)), url('../assets/home.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  color: #fff;
  text-align: center;
  position: relative;
}
.hero-section h2 {
  font-size: 2rem;
  color: #edf0f6;
  margin-bottom: 0.7rem;
}
.hero-section p {
  font-size: 1.1rem;
  color: rgb(239, 239, 241);
  margin-bottom: 1.5rem;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  background: #0955a0;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #1259a7; }
.btn-outline {
  background: #fff;
  border: 2px solid #1976d2;
  color: #1976d2;
  padding: 0.65rem 1.4rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-outline:hover { background: #eaf2fb; }

/* Product Grid & Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60,90,120,0.09);
  display: flex;
  padding: 20px;
  margin-bottom: 24px;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid #e7e7ef;
  box-sizing: border-box;
  word-break: break-word;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(30, 50, 90, 0.12);
}
.product-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ddd;
}
.product-info { flex: 1; }
.product-title {
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  font-weight: 700;
  color: #123470;
}
.product-desc {
  font-size: 0.96rem;
  color: #555;
  margin-bottom: 12px;
}
.product-meta {
  font-size: 0.94rem;
  color: #6a6a82;
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.product-actions button {
  margin-right: 10px;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.96rem;
  cursor: pointer;
}
.edit-btn { background: #fcb900; color: #fff; }
.delete-btn { background: #e94444; color: #fff; }

/* Modal Content Responsive */
.modal-content {
  max-width: 95vw;
  box-sizing: border-box;
}

/* Buttons and Form Elements Accessibility */
button,
.btn-primary, .btn-outline, .btn-cancel, .edit-btn, .delete-btn {
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.2;
}
input, button, select, textarea {
  font-size: 1rem;
  min-height: 44px;
  box-sizing: border-box;
}

/* Header & Navigation */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(45, 86, 155, 0.06);
}
.logo-area { display: flex; align-items: center; gap: 1rem; }
.logo { height: 140px; width: auto; }
.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #283046;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav .logout:hover { color: #1a73e8; }
.main-nav .logout { color: #e8505b; font-weight: 600; }

/* Layout & Sidebar */
.layout {
  display: flex;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  max-width: 1200px;
}
.sidebar {
  min-width: 180px;
  background: #f1f4f8;
  padding: 2rem 1rem;
  border-radius: 0 0 1.5rem 0;
  box-shadow: 1px 0 6px rgba(55, 95, 155, 0.04);
}
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin-bottom: 1.2rem; }
.sidebar a {
  color: #455a7c;
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  display: block;
  transition: background 0.2s, color 0.2s;
}
.sidebar a:hover { background: #e6eef9; color: #1674e6; }

.content {
  flex: 1;
  padding: 2rem 2.5rem;
  background: #fff;
  border-radius: 0 1.5rem 1.5rem 0;
  box-shadow: 0 2px 12px rgba(45, 86, 155, 0.07);
  margin: 2rem 0 2rem 2rem;
  min-height: 500px;
}

.footer {
  margin-top: 3rem;
  text-align: center;
  color: #789;
  font-size: 0.99rem;
  padding: 1.2rem 0 1.7rem 0;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { min-width: 100%; border-radius: 0 0 1.5rem 1.5rem; margin-bottom: 1rem; }
  .content { margin: 0; border-radius: 0 0 1.5rem 1.5rem; }
}
@media (max-width: 768px) {
  .main-header .container { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .main-nav { flex-wrap: wrap; gap: 0.6rem; }
  .main-nav a { padding: 0.4rem 0.6rem; font-size: 0.95rem; }
  .product-grid { grid-template-columns: 1fr; }
  .order-list { flex-direction: column; align-items: stretch; }
  .product-card, .order-card { width: 100%; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-card { flex-direction: column; align-items: stretch; min-width: 0; }
  .product-img { width: 100%; height: auto; max-width: 100%; }
  .main-header { flex-direction: column; height: auto; padding: 0.8rem; gap: 0.6rem; }
  .main-nav { flex-direction: column; gap: 0.5rem; width: 100%; align-items: flex-start; }
  .main-nav a { margin-left: 0; margin-bottom: 0.5rem; }
  .main-header .container { flex-direction: column; gap: 0.9rem; align-items: flex-start; }
  .logo { font-size: 1.18rem; }
  .footer { padding: 0.6rem 0 1rem 0; }
}

/* --- Add more page-specific and utility styles as needed --- */

/* --- Contact Us Page Styles --- */
.contact-section {
  padding: 4rem 1.5rem;
  background: #f7fafd;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #123470;
}
.contact-section p {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #556;
}
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.contact-info {
  flex: 1 1 280px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(60,90,120,0.05);
}
.contact-info h4 {
  margin-top: 0;
  color: #1a3353;
}
.contact-form {
  flex: 1 1 380px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(60,90,120,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.7rem;
  border: 1px solid #d8e0ef;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9fbfd;
}
.contact-form button.btn-primary {
  background: #0f71c2;
  color: #fff;
  padding: 0.8rem;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button.btn-primary:hover {
  background: #125ba1;
}
@media (max-width: 768px) {
  .contact-grid { flex-direction: column; }
}

/* --- About Us Page Styles --- */
.about-section {
  padding: 4rem 1.5rem;
  background: #f8fafd;
  text-align: center;
}
.about-section h2 {
  font-size: 2rem;
  color: #123470;
  margin-bottom: 1rem;
}
.about-section .intro {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
  color: #445;
}
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}
.about-box {
  flex: 1 1 280px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(60,90,120,0.05);
  text-align: left;
}
.about-box h4 {
  color: #1458a3;
  margin-bottom: 0.7rem;
}
.about-box p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .about-grid { flex-direction: column; align-items: center; }
}
