/* style.css */

/* Giữ nguyên màu trắng cho h1 trong header nếu cần override */
header h1 {
  color: white !important;
}

/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.75;
  font-size: 18px;
  color: #333;
  background-color: #fff;
}

/* Header & nav */
header {
  background: #2d5c39;
  color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

header img {
  height: 70px;
}

/* Chỉ màu trắng cho nav a trong header */
nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: text-decoration 0.3s ease;
}

nav a:hover, nav a:focus {
  text-decoration: underline;
  outline: none;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #fff; /* nền trắng để chữ dễ đọc */
  color: #333; /* màu chữ tối cho nội dung */
  border-radius: 8px;
}

/* Headings */
h1, h2 {
  color: #2d5c39; /* màu xanh đậm, rất rõ trên nền trắng */
}

h1 {
  font-size: 42px;
  margin-bottom: 20px;

  /* Ghi đè nếu có h1 màu trắng do global */
  color: #2d5c39 !important;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

/* Sections */
section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Paragraph and lists */
p {
  margin-bottom: 16px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* Forms */
form {
  max-width: 600px;
  background: #fafafa;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

form input[type=text],
form input[type=email],
form input[type=tel],
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  resize: vertical;
  font-size: 16px;
}

form button {
  background: #2d5c39;
  color: white;
  padding: 12px 20px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

form button:hover, form button:focus {
  background-color: #1e3f27;
  outline: none;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 15px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 10px;
    padding-left: 0;
  }
  nav a {
    display: inline-block;
    margin: 0 10px 10px 0;
  }
}

/* Phần header thêm các lớp .header-left, .header-center, .header-right nếu có */
.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-left h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #e7ffe7;
}

.header-left p {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  color: #e7ffe7;
}

.header-center img {
  height: 120px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  gap: 20px;
}

.header-right a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: text-decoration 0.3s ease;
}

.header-right a:hover,
.header-right a:focus {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-left,
  .header-center,
  .header-right {
    margin-bottom: 10px;
  }
  .header-right {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
  }

  form input, form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }

  form button {
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #2d5c39;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  form button:hover {
    background-color: #1e3f27;
  }
.cta-button {
  display: inline-block;
  background-color: #2d5c39;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #1e3f27;
}
}
