:root{
  /* Color palette */
  --orange: rgb(205 144 81);   
  --grey-green: rgb(80 95 91);    
  --off-white: rgb(247 246 242);  
  --tan: rgb(225 199 172);  
  --brown-green: rgb(143 134 93); 
  --teal: rgb(67 180 192);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.78);
  --shadow: 0 10px 28px rgba(0,0,0,.28);
}

body{
  margin: 0;
  font-family: "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('seven_bg_home.jpg') center / cover no-repeat;
    opacity: 0.9;
    z-index: -2;
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 700px at 50% 10%, rgba(0,0,0,.35), rgba(0,0,0,.40));
  z-index: -1;
}
/* Container for the cards */
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 50px 18px 60px;
  width: min(1100px, 92%);
  margin: 0 auto;
}

.card {
  background-color: rgba(80, 95, 91, 0.82);
  border: 1px solid rgba(255 255 255 / 0.14);
  border-radius: 12px;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: var(--shadow);
  padding: 28px;
  width: min(100%, 760px);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* List Styling */
.card ol {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card li {
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

.card li::marker {
  color: var(--teal);
  font-weight: 700;
}

.card li strong {
  color: var(--orange);
  font-weight: 700;
}

@media (max-width: 640px) {
  .card {
    padding: 18px;
  }
}

/* Reset the list and set up the counter */
.card ol {
  list-style: none; /* Removes the default 1. 2. 3. */
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: rank; /* Creates a custom counter */
}

/* The Grid Row for each Moral */
.card li {
  display: grid;
  grid-template-columns: 32px 1fr auto; /* [Icon] [Text] [Score Badge] */
  gap: 14px;
  align-items: center;
  
  background: rgba(255 255 255 / 0.08);
  border: 1px solid rgba(255 255 255 / 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  
  transition: background 0.18s ease, transform 0.18s ease;
}

/* The Icon Number */
.card li::before {
  counter-increment: rank;
  content: counter(rank);
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--teal);
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* The Moral Description */
.moral-text {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

/* The Score/Rank Badge */
.moral-score {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.moral-score strong {
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .card li {
    grid-template-columns: 28px 1fr; /* Drop the auto column */
    grid-template-rows: auto auto;
    padding: 12px;
  }
  
  /* Move the score under the text on small screens */
  .moral-score {
    grid-column: 2; 
    justify-self: start;
    margin-top: 4px;
  }
}

/* --- Tab Navigation Styling --- */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: translateY(-1px);
}

/* Active State for the clicked tab */
.tab-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Tab Content Hiding/Showing --- */
.tab-content {
  display: none; /* Hides everything by default */
  animation: fadeSlideUp 0.3s ease forwards;
}

.tab-content.active-tab {
  display: block; /* Shows only the active one */
}

/* Smooth transition when a new tab is opened */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}