/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fefefe;
  color: #333;
  line-height: 1.6;
}

/* Header & Navigation */
header {
    
  background: linear-gradient(to right, #ff758c, #ff7eb3);
  padding: 20px 10px;
  color: white;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    display: flex;
    justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 10px;
}

nav ul li {
  margin: 5px 10px;
}

nav ul li a {
  text-decoration: none;
  color: #ff5d8f;
  font-weight: 600;
  padding: 5px 10px;
  transition: 0.3s;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #ffeff4;
}

/* Section Styling */
main {
  padding: 30px 15px;
}

section {
  margin-bottom: 50px;
}

section h2 {
  text-align: center;
  align-items: center;
 justify-content: center;
  margin-bottom: 20px;
  color: #ff5d8f;
  font-size: 1.6rem;
  border-bottom: 2px solid #ffb6c1;
  display: inline-block;
  padding-bottom: 5px;
}

section h3 {
  text-align: center;
    justify-content: center;
  margin-top: 20px;
  color: #444;
}

ul {
  margin-left: 20px;
  margin-top: 10px;
}

li {
  margin-bottom: 8px;
}

/* Form & Buttons */
form {
  background: #fff6f9;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(255, 99, 132, 0.15);
}

form label,
form select,
form button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
}

form select,
form button {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

form button {
  background-color: #ff5d8f;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background-color: #e04e7d;
}

#result {
  margin-top: 10px;
  font-weight: bold;
  color: #d6336c;
}

/* Accordion */
.accordion {
  background-color: #ffe4ec;
  color: #333;
  cursor: pointer;
  padding: 15px;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  border: none;
  outline: none;
  transition: 0.3s;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: bold;
}

.accordion:hover {
  background-color: #ffd1e0;
}

.panel {
  padding: 0 15px 15px;
  background-color: #fff;
  display: none;
  border-left: 5px solid #ff5d8f;
  border-radius: 0 0 6px 6px;
  margin-bottom: 15px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.product-card {
  background-color: #fff0f6;
  border: 1px solid #fddde6;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 105, 135, 0.1);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  color: #d63384;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.product-card a {
  background-color: #ff5d8f;
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.product-card a:hover {
  background-color: #c9184a;
}

/* Responsive Fix */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  form {
    width: 100%;
  }
}


.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;
}
