* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0a1c2e;
  --secondary-color: #06121f;
  --text-color: #333;
  --text-c-highlight: #3399ff; 
  --accent-color: #f8f8f8;
  --shadow-color: rgba(0, 0, 0, 0.06);
  --shadow-strong: rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

body {
  margin-top: 80px;
  background-color: #fffaf0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: var(--text-color);
}

.container {
  display: flex;
  max-width: 1300px;
  margin: 30px auto;
  gap: 30px;
  padding: 0 20px;
  flex-direction: row-reverse;
}

.containerheading {
  text-align: center;
  margin: 2rem 0;
}

.section-title {
  font-weight: 600;
    font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--text-c-highlight)
  );
  border-radius: 3px;
}

.sidebar-container {
  flex: 0 0 350px;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px var(--shadow-strong);
  display: flex;
  height: 650px;
  flex-direction: column;
  overflow: hidden;
  order: -1;
}

.section-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 20px 5px;
  border: none;
  background: var(--primary-color);
  position: sticky;
  top: 0;
}

.section-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: var(--secondary-color);
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.section-tab:hover {
  color: var(--text-c-highlight);
}

.section-tab.active {
  background: var(--secondary-color);
  color: var(--text-c-highlight);
  box-shadow: 0 3px 8px var(--shadow-color);
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  color: var(--text-c-highlight);
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--primary-color);
  border-bottom: 2px solid var(--text-c-highlight);
}

.sidebar {
  flex: 1;
  background-color: var(--primary-color);
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.team-list.hidden {
  display: none;
}

.group-card {
  display: flex;
  align-items: center;
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  border-left: 5px solid var(--text-color);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.group-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
}

.content-area {
  flex: 1;
}

.welcome-message {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px var(--shadow-strong);
  text-align: center;
}

.welcome-message h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
}

.welcome-message p {
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: justify;
}

.detail-card {
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px var(--shadow-strong);
  margin: 0 auto;
  max-width: 800px;
  display: none;
}

.detail-card.active {
  display: block;
}

.detail-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.detail-title h2 {
  color: var(--text-c-highlight);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

.group-photo-container {
  margin-bottom: 30px;
  text-align: center;
}

.detail-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.no-image-placeholder {
  max-width: 600px;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  border-radius: 10px;
  color: var(--text-color);
  font-weight: 600;
  text-align: center;
}

.detail-section {
  padding: 10px;
}

.detail-section h3 {
  color: var(--text-c-highlight);
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.member-list {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row-label {
  color: var(--text-c-highlight);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.row-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.member {
  align-items: center;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition-speed);
}

.member:hover {
  background: rgba(255, 255, 255, 0.2);
}

.member-name {
  font-weight: 600;
  color: white;
  margin-bottom: 5px;
}

.member-role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.missing-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.missing-member {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: background-color var(--transition-speed);
}

.missing-member:hover {
  background: rgba(255, 255, 255, 0.2);
}

.team-note,
.no-members {
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column-reverse;
    max-width: 95%;
  }

  .sidebar-container {
    flex: 0 0 auto;
    max-height: 450px;
    order: 0;
  }

  .content-area {
    min-height: auto;
  }

  .row-members,
  .missing-members {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .section-tab {
    font-size: 0.95rem;
  }

  .detail-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .row-members,
  .missing-members {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .welcome-message,
  .detail-card {
    padding: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .group-card h3 {
    font-size: 1rem;
  }
}
