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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f8f9fa;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
  font-weight: 600;
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

/* Navigation */
nav {
  background: #34495e;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 900px;
  margin: 0 auto;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s;
  font-size: 0.95em;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.2);
}

/* Category colors */
.being { border-left: 4px solid #c9a227; }
.thinking { border-left: 4px solid #e84a5f; }
.relating { border-left: 4px solid #ff847c; }
.collaborating { border-left: 4px solid #e85d04; }
.acting { border-left: 4px solid #6b2737; }

.being-bg { background-color: #c9a227; }
.thinking-bg { background-color: #e84a5f; }
.relating-bg { background-color: #ff847c; }
.collaborating-bg { background-color: #e85d04; }
.acting-bg { background-color: #6b2737; }

/* Main content */
main {
  background: white;
  padding: 40px;
  margin: 20px auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

main h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

main h3 {
  color: #34495e;
  margin: 30px 0 15px 0;
}

main p {
  margin-bottom: 15px;
  text-align: justify;
}

/* Category cards on home page */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.category-card {
  padding: 25px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-card h3 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 1.4em;
}

.category-card p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95em;
  text-align: left;
}

/* Skill list on category pages */
.skill-list {
  list-style: none;
}

.skill-list li {
  margin: 15px 0;
}

.skill-link {
  display: block;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

.skill-link:hover {
  background: #e9ecef;
  transform: translateX(10px);
}

.skill-link h4 {
  color: #2c3e50;
  margin-bottom: 5px;
}

.skill-link p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}

/* Exercise cards */
.exercise {
  background: #f8f9fa;
  padding: 25px;
  margin: 25px 0;
  border-radius: 8px;
}

.exercise h4 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.exercise-section {
  margin: 15px 0;
}

.exercise-section strong {
  color: #34495e;
  display: block;
  margin-bottom: 5px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9em;
  color: #666;
}

.breadcrumb a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
}

/* Introduction sections */
.intro-section {
  margin: 30px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
}

.intro-section h3 {
  margin-top: 0;
  color: #2c3e50;
}

/* Back link */
.back-link {
  display: inline-block;
  margin: 20px 0;
  color: #3498db;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  color: #666;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6em;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  main {
    padding: 20px;
    margin: 10px;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
}
