/* --- Biến toàn cục & Reset --- */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --bg-color: #f4f7f6;
  --text-color: #333;
  --border-radius: 8px;
  --font-family: 'Helvetica Neue', Arial, sans-serif;
  --spacing: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.2;
}

/* --- Container chung --- */
.site-header, .layout, .footer-cols, .copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing);
}

/* --- Header --- */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-name {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.tagline {
  color: #7f8c8d;
  font-style: italic;
  margin: 0.5rem 0 1.5rem;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* --- Main Layout --- */
.layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

main {
  flex: 1;
}

.sidebar {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  align-self: start;
  width: 100%;
}

/* --- Sections --- */
section, article {
  margin-bottom: 3rem;
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

article p, section p {
  margin-bottom: 1rem;
}

figure {
  margin: 2rem 0;
}

figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Cards (Giá trị & Đội ngũ) --- */
.value-list, .team-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card, .member {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover, .member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Form Liên Hệ --- */
.contact-form {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.contact-form label {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.contact-form button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* --- Sidebar --- */
.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-color);
}

.recent {
  margin-bottom: 2rem;
}

.recent li {
  margin-bottom: 1rem;
}

.recent li::before {
  content: "→";
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-color);
  color: #ecf0f1;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.site-footer p {
  color: #bdc3c7;
  font-size: 0.9rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* --- Responsive Breakpoints --- */

/* Tablet */
@media (min-width: 768px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
  
  .tagline {
    width: 100%;
    margin-top: 0;
  }
  
  .main-nav {
    width: 100%;
    margin-top: 1rem;
  }
  
  .main-nav ul {
    justify-content: flex-start;
  }

  .value-list, .team-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form button {
    width: auto;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
  }

  .tagline {
    width: auto;
    margin: 0 0 0 2rem;
    flex-grow: 1;
  }

  .main-nav {
    width: auto;
    margin-top: 0;
  }

  .layout {
    flex-direction: row;
    align-items: flex-start;
  }
  
  main {
    flex: 3;
  }
  
  .sidebar {
    flex: 1;
    position: sticky;
    top: 2rem;
  }

  .value-list, .team-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

