* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0a1c2e;
  /* original - #800000 */
  --secondary-color: #06121f;
  --text-color: #333;
  --border-radius: 16px;
  --text-c-highlight: #3399ff;
  --accent-c-1: #a3d9a5;
  --accent-c-2: #f8f8f8;
  --shadow-color: rgba(0, 0, 0, 0.04);
  --shadow-color-strong: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

body {
  margin-top: 70px;
  height: 100vh;
  background-color: #fff6ec;
  line-height: 1.6;
  scroll-behavior: smooth;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.container {
  display: flex;
  margin: 0 auto;
  margin-top: 25px;
  max-width: 1280px;
  max-height: 750px;
  gap: 24px;
  padding: 0 20px;
}

.sidebar-container {
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  padding-top: 0;
  height: 650px;
  overflow-y: hidden;
  flex-basis: 320px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px var(--shadow-color-strong);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
  margin-top: 0;
  position: sticky;
  top: 0;
  background-color: white;
  align-self: center;
  width: 100%;
  z-index: 10;
  text-transform: uppercase;
  cursor: default;
  font-weight: 800;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary-color);
  padding-top: 15px;
}

.sidebar {
  overflow-y: auto;
  scrollbar-width: none;
  /* scrollbar-color: var(--primary-color) transparent; */
}

.sidebar::-webkit-scrollbar {
  width: 0;
}
/* 
.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background-color: transparent;
} */

.group-card {
  background-color: var(--accent-c-2);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed), border-left var(--transition-speed);
}

.group-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px var(--shadow-color);
  border-left: 4px solid var(--secondary-color);
}

.group-card:active {
  transform: translateY(0);
}

.group-card h3 {
  color: var(--text-color);
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1rem;
}

.group-card img {
  /* border-radius: 50%; */
  width: 50px;
  height: 50px;
  margin-right: 15px;
  object-fit: cover;
  /* border: 2px solid rgba(76, 0, 0, 0.1); */
}

.logo-container {
  background-color: white;
  border-radius: 50%;
  margin-right: 15px;
}

.content-area {
  flex: 1;
}

.detail-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 35px;
  box-shadow: 0 10px 30px var(--shadow-color-strong);
  max-width: 800px;
  margin: 0 auto;
  display: none;
  background: linear-gradient(
    145deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.detail-card.active {
  display: block;
}

.detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  justify-content: center;
}

.group-logo {
  width: 100px;
  margin: 0 auto;
  height: 100px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}

.detail-title h2 {
  color: var(--text-c-highlight);
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
  font-weight: 800;
}

.group-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.group-icon-container {
  background: white;
  margin-right: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.detail-image {
  width: 100%;
  margin: 0 auto;
  display: block;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.detail-section {
  margin-bottom: 25px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 20px;
}

.animators {
  margin-top: 20px;
}

.detail-section h3 {
  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;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.animator-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.member {
  display: flex;
  align-items: center;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition-speed);
}

.member:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.button-container {
  text-align: center;
  margin-top: 25px;
}

.report-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.report-btn:hover {
  background-color: var(--secondary-color);
  color: var(--text-c-highlight);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.report-btn:active {
  transform: translateY(0);
}

.welcome-message {
  text-align: justify;
  background-color: white;
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-color-strong);
  padding: 20px;
  margin-bottom: 20px;
}

.welcome-message h2 {
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.welcome-message p {
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .container {
    flex-direction: column;
    max-width: 90%;
    max-height: none;
  }

  .sidebar-container {
    width: 100%;
    margin-right: 0;
    height: auto;
    max-height: 450px;
    flex-basis: auto;
  }

  .detail-card {
    max-width: 100%;
  }
}

/* Medium Tablets */
@media (max-width: 768px) {
  .member-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .animator-list {
    grid-template-columns: 1fr;
  }

  .detail-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .detail-title {
    font-size: small;
  }

  .group-icon-container {
    margin-right: 0;
  }

  .sidebar-container {
    padding: 15px;
  }

  .sidebar-header {
    padding-top: 0;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .container {
    max-width: 95%;
    gap: 0;
    padding: 0 10px;
  }

  .welcome-message {
    padding-top: 0;
  }

  .sidebar-header {
    padding-top: 10px;
  }

  .member-list {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 25px 15px;
  }

  .sidebar-header h2 {
    font-size: 1.4rem;
  }

  .detail-title h2 {
    font-size: 1.3rem;
  }

  .group-card {
    padding: 12px;
  }

  .group-card img {
    width: 40px;
    height: 40px;
  }

  .detail-section {
    padding: 15px;
  }
}

/* Very Small Screens */
@media (max-width: 350px) {
  .sidebar-header {
    padding-top: 10px;
  }

  .report-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* CSS for section title */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
  font-weight: 600;
  margin-top: 1rem !important; /* Adding !important to override other styles */
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--text-c-highlight)
  );
  border-radius: 2px;
}

/* Tablet */
@media (max-width: 768px) {
  .section-title {
    margin-top: 3rem; /* Slightly less space for tablets */
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section-title {
    margin-top: 2rem; /* Less space for mobile */
  }
}

/* Scroll Animation for reveal effect */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
