/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Global Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9fafe;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: sticky; top: 0;
  background: #2c3e50;
  padding: 15px 30px;
  display: flex; justify-content: space-between;
  align-items: center; z-index: 1000;
}
.nav-logo { color: white; font-size: 1.5em; font-weight: bold; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; }

/* Sections */
.section { padding: 40px 20px; max-width: 900px; margin: auto; }
.section h1, .section h2, .section h3 { text-align: center; margin-bottom: 20px; }
.section h1 { font-size: 2em; }
.section h2 { font-size: 1.8em; color: #34495e; }

/* Form */
#hairForm { max-width: 500px; margin: auto; }
.form-group { margin-bottom: 15px; }
.form-group label { font-weight: bold; display: block; margin-bottom: 5px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px;
}
#hairForm button {
  width: 100%; padding: 12px; background: #2ecc71; color: white;
  font-weight: bold; border: none; border-radius: 6px; cursor: pointer;
  margin-top: 10px;
}
#hairForm button:hover { background: #27ae60; }
#hairResult {
  margin-top: 20px; padding: 15px;
  background: #e8f5e9; border-left: 6px solid #2ecc71;
  font-size: 1.2em; font-weight: bold; text-align: center;
}

/* Tables */
table {
  width: 100%; border-collapse: collapse;
  margin-top: 20px;
}
table th, table td {
  border: 1px solid #ccc; padding: 8px;
}
table th { background: #f0f0f0; }

/* Tips */
.tip-group { margin: 20px 0; background: #fff; padding: 20px;
  border-left: 5px solid #3498db; border-radius: 6px;
}
.tip-group h3 { margin-bottom: 10px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: #fff; border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 20px; text-align: center;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 5px 0; }
.card a {
  display: inline-block; margin-top: 10px; padding: 8px 15px;
  background: #3498db; color: white; text-decoration: none;
  border-radius: 5px;
}
.card a:hover { background: #2980b9; }
/* Beautification Tips Section */
#beauty h2 {
  text-align: center;
  font-size: 1.8em;
  color: #8e44ad;
  margin-bottom: 30px;
}

#beauty .tip-group {
  background: #fff0f6;
  border-left: 5px solid #d63384;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

#beauty .tip-group h3 {
  color: #c0392b;
  margin-bottom: 10px;
}

#beauty ul {
  padding-left: 20px;
}

#beauty .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

#beauty .card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#beauty .card h3 {
  color: #2980b9;
}

#beauty .card p {
  margin: 5px 0;
}

#beauty .card a {
  display: inline-block;
  margin-top: 10px;
  background: #3498db;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
}

#beauty .card a:hover {
  background: #2c3e50;
}
.accordion {
  background-color: #f1f1f1;
  color: #444;
  cursor: pointer;
  padding: 15px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: background 0.3s ease;
  font-size: 1rem;
  border-radius: 6px;
  margin-bottom: 10px;
  font-weight: bold;
}

.accordion:hover {
  background-color: #ddd;
}

.panel {
  padding: 0 15px 15px;
  background-color: #fff;
  display: none;
  overflow: hidden;
  border-left: 5px solid #8e44ad;
  border-radius: 0 0 6px 6px;
  margin-bottom: 20px;
}

.panel ul {
  padding-left: 20px;
  list-style: disc;
  margin-top: 10px;
}


/* problem and solution */

.hair-problems {
  padding: 50px 20px;
  background-color: #f7f7f7;
  font-family: 'Segoe UI', sans-serif;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
}

.problem-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  padding: 20px;
}

.problem-content h3 {
  color: #1a1a1a;
  margin-bottom: 15px;
}

.problem-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.text-left {
  flex: 1;
  padding-right: 20px;
  min-width: 220px;
}

.text-left p {
  margin-bottom: 8px;
  font-size: 16px;
  color: #333;
}

.image-right {
  flex: 1;
  text-align: right;
  min-width: 200px;
}

.image-right img {
  max-width: 180px;
  border-radius: 10px;
}

.treatment-box {
  background: #e8f5e9;
  padding: 15px;
  border-left: 4px solid #4caf50;
  border-radius: 8px;
}

.treatment-box h4 {
  margin-top: 0;
  color: #2e7d32;
}

.product-card {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 15px;
}

.product-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.product-card div {
  font-size: 14px;
  color: #444;
}
