
/* ==========================================
   1. Reset & Global Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Khmer OS Battambang', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f7f6;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  flex: 1;
}

/* ==========================================
   2. Header & Navigation Bar
   ========================================== */
header {
  background-color: #0d47a1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
}

.logo {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0d47a1;
  background-color: #ffca28;
  font-weight: bold;
}

/* ==========================================
   3. Hero Banner Section (index.html)
   ========================================== */
.hero-section {
  background: linear-gradient(135deg, #0d47a1 0%, #1e88e5 100%);
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 0 0 16px 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.2);
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 25px auto;
  color: #e3f2fd;
}

.cta-btn {
  display: inline-block;
  background-color: #ffca28;
  color: #0d47a1;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: #ffb300;
}

/* ==========================================
   4. About Section & Common Cards (index & about)
   ========================================== */
.about-section {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  margin-bottom: 30px;
}

.about-section h2 {
  color: #0d47a1;
  font-size: 1.6rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.about-section h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background-color: #ffca28;
  margin-top: 5px;
  border-radius: 2px;
}

.intro {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 30px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.history-card {
  background: #f9fbfd;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e1e8ed;
  border-left: 5px solid #0d47a1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.history-card h3 {
  color: #0d47a1;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.history-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================
   5. Stats Section (index.html)
   ========================================== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}

.stat-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border-bottom: 3px solid #ffca28;
}
.stat-item h3 {
  color: #0d47a1;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.stat-item p {
  color: #666;
  font-weight: 500;
}

/* ==========================================
   6. Team Members Page (team.html)
   ========================================== */
.page-title {
  text-align: center;
  margin: 40px 0 30px 0;
}

.page-title h2 {
  color: #0d47a1;
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-title p {
  color: #666;
  font-size: 1.1rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.member-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(13, 71, 161, 0.15);
}

.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e3f2fd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card h3 {
  color: #0d47a1;
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.role {
  display: inline-block;
  background-color: #ffca28;
  color: #0d47a1;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 15px;
  margin-bottom: 12px;
}

.member-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================
   7. Footer Section
   ========================================== */
footer {
  background-color: #0d47a1;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  font-size: 0.9rem;
}

/* ==========================================
   8. Responsive Design (Mobile)
   ========================================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .about-section {
    padding: 25px 20px;
  }
}