/* ==========================================================================
   BHARANI INTERNATIONAL MODERN SCHOOL (CBSE)
   Student Life Section Stylesheet (student-life.css)
   Advanced Design System for student-life.html
   ========================================================================== */

/* 1. Main Showcase Wrapper */
.sl-showcase-wrap {
  /* padding-bottom: 2.5rem; */
}

/* 2. Intro Showcase Section (2-Column Split) */
.sl-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF8 100%);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 12px 35px -5px rgba(28, 15, 7, 0.06), 0 2px 8px -1px rgba(217, 119, 6, 0.05);
  position: relative;
  overflow: hidden;
}

.sl-intro-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #D97706 0%, #F59E0B 100%);
}

.sl-intro-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sl-intro-title {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.sl-intro-lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #4A3B32;
  margin: 0;
}

.sl-intro-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(28, 15, 7, 0.16);
  border: 2px solid rgba(217, 119, 6, 0.25);
  background-color: var(--color-cream-bg, #FFFDF8);
  aspect-ratio: 4 / 3;
}

.sl-intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-intro-media:hover .sl-intro-img {
  transform: scale(1.04);
}

/* 3. Section Headers */
.sl-section-header {
  margin-top: 4.5rem;
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.sl-section-title {
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.sl-section-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #4A3B32;
  max-width: 880px;
  margin: 0.25rem 0 1rem 0;
}

/* 4. Core Activities Cards Grid (With Real Images) */
.sl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
  margin-bottom: 3.5rem;
}

.sl-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFDF9 100%);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(28, 15, 7, 0.06), 0 2px 6px -1px rgba(217, 119, 6, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.sl-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 22px 45px -8px rgba(28, 15, 7, 0.15), 0 10px 20px -4px rgba(217, 119, 6, 0.2);
}

/* Card Visual Header Image */
.sl-card-media {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #201108;
}

.sl-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.96);
}

.sl-card:hover .sl-card-thumb {
  transform: scale(1.06);
  filter: brightness(1.02);
}

.sl-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(28, 15, 7, 0.45) 100%);
  pointer-events: none;
}

.sl-card-badge-floating {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.8rem;
  border-radius: 30px;
  background: rgba(32, 17, 8, 0.85);
  backdrop-filter: blur(8px);
  color: #FDE68A;
  border: 1px solid rgba(217, 119, 6, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Card Content Container */
.sl-card-content {
  padding: 1.8rem 1.85rem 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sl-card-header {
  margin-bottom: 1.15rem;
}

.sl-card-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sl-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.22);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}

.sl-card:hover .sl-card-icon {
  transform: translateY(-2px) scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-color: #D97706;
  color: #FFFFFF;
  box-shadow: 0 10px 24px -2px rgba(217, 119, 6, 0.4);
}

.sl-card-icon svg {
  width: 24px;
  height: 24px;
}

.sl-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sl-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D97706;
}

.sl-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.sl-card:hover .sl-card-title {
  color: #92400E;
}

.sl-card-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.22) 0%, rgba(217, 119, 6, 0.05) 100%);
  margin-bottom: 1.15rem;
}

.sl-card-body {
  flex: 1;
  margin-bottom: 1.35rem;
}

.sl-card-text {
  font-size: 0.98rem;
  line-height: 1.78;
  color: #4A3B32;
  margin: 0;
}

.sl-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.sl-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.75rem;
  border-radius: 30px;
  background: rgba(217, 119, 6, 0.08);
  color: #92400E;
  border: 1px solid rgba(217, 119, 6, 0.16);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sl-card:hover .sl-card-tag {
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.3);
}

.sl-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #D97706;
}

/* 5. Clubs Showcase Section */
.sl-clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.sl-club-card {
  background: #FFFFFF;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 16px;
  padding: 1.85rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 18px rgba(28, 15, 7, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-club-card:hover {
  transform: translateY(-6px);
  border-color: #D97706;
  box-shadow: 0 16px 36px -6px rgba(28, 15, 7, 0.12), 0 6px 16px -2px rgba(217, 119, 6, 0.16);
}

.sl-club-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.sl-club-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.1);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.sl-club-card:hover .sl-club-icon-box {
  transform: scale(1.1);
  background: #D97706;
  color: #FFFFFF;
}

.sl-club-icon-box svg {
  width: 22px;
  height: 22px;
}

.sl-club-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: rgba(217, 119, 6, 0.08);
  color: #B45309;
}

.sl-club-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.sl-club-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #5C4A3E;
  margin: 0;
}

/* 6. House System Cards — FIXED TO PREVENT BADGE & TITLE OVERLAP */
.sl-house-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.sl-house-card {
  border-radius: 18px;
  padding: 2.2rem 1.85rem;
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgba(28, 15, 7, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 6px solid;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sl-house-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -6px rgba(28, 15, 7, 0.14);
}

.sl-house-ganga {
  border-top-color: #DC2626;
}

.sl-house-ganga .sl-house-badge {
  background: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.sl-house-yamuna {
  border-top-color: #2563EB;
}

.sl-house-yamuna .sl-house-badge {
  background: rgba(37, 99, 235, 0.12);
  color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.sl-house-narmadha {
  border-top-color: #16A34A;
}

.sl-house-narmadha .sl-house-badge {
  background: rgba(22, 163, 74, 0.12);
  color: #15803D;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.sl-house-cauvery {
  border-top-color: #EAB308;
}

.sl-house-cauvery .sl-house-badge {
  background: rgba(254, 240, 138, 0.45);
  color: #713F12;
  border: 1.5px solid rgba(234, 179, 8, 0.55);
}

/* FIXED: Stack badge cleanly on top of title so they NEVER collide */
.sl-house-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.sl-house-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.8rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.sl-house-badge .color-dot {
  width: 8px;
  height: 8px;
  margin-right: 0;
  box-shadow: none;
}

.sl-house-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sl-house-purpose {
  font-size: 0.96rem;
  color: #4A3B32;
  line-height: 1.7;
  margin: 0;
}

/* 7. House Visual Photo Banner */
.sl-house-banner {
  border-radius: 18px;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  box-shadow: 0 12px 35px -6px rgba(28, 15, 7, 0.12);
  border: 2px solid rgba(217, 119, 6, 0.2);
  max-height: 380px;
}

.sl-house-banner-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.sl-house-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(28, 15, 7, 0.82) 100%);
  padding: 2.5rem 2rem 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sl-house-banner-tag {
  color: #FFFDF8;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.sl-house-banner-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F59E0B;
}

/* 8. House Table Styling — Vibrant House Color Theming */
.sl-table-wrap {
  background: #FFFFFF;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(28, 15, 7, 0.08), 0 2px 8px rgba(217, 119, 6, 0.04);
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  transition: box-shadow 0.3s ease;
}

.sl-table-wrap:hover {
  box-shadow: 0 16px 36px -4px rgba(28, 15, 7, 0.12);
}

.sl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
}

.sl-table thead {
  background: linear-gradient(135deg, #2B170B 0%, #1C0F07 100%);
  border-bottom: 2px solid var(--color-gold, #D97706);
}

.sl-table th {
  padding: 1.15rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #FDE68A;
}

.sl-table td {
  padding: 1.25rem 1.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #3B2B20;
  vertical-align: middle;
  transition: background 0.25s ease;
}

.sl-table tbody tr:last-child td {
  border-bottom: none;
}

/* Row-specific Vibrant House Color Styles */
.sl-row-ganga {
  border-left: 6px solid #DC2626;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.07) 0%, rgba(254, 242, 242, 0.5) 28%, #FFFFFF 100%);
}

.sl-row-ganga:hover td {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.13) 0%, rgba(254, 242, 242, 0.9) 35%, #FFFFFF 100%);
}

.sl-row-yamuna {
  border-left: 6px solid #2563EB;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.07) 0%, rgba(239, 246, 255, 0.5) 28%, #FFFFFF 100%);
}

.sl-row-yamuna:hover td {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.13) 0%, rgba(239, 246, 255, 0.9) 35%, #FFFFFF 100%);
}

.sl-row-narmadha {
  border-left: 6px solid #16A34A;
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.07) 0%, rgba(240, 253, 244, 0.5) 28%, #FFFFFF 100%);
}

.sl-row-narmadha:hover td {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.13) 0%, rgba(240, 253, 244, 0.9) 35%, #FFFFFF 100%);
}

.sl-row-cauvery {
  border-left: 6px solid #EAB308;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.2) 0%, rgba(254, 249, 195, 0.6) 28%, #FFFFFF 100%);
}

.sl-row-cauvery:hover td {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.32) 0%, rgba(254, 249, 195, 0.95) 35%, #FFFFFF 100%);
}

/* House Column Identity (Shield Icon + House Name) */
.sl-table-house {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.house-shield {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sl-table tbody tr:hover .house-shield {
  transform: scale(1.12);
}

.house-shield svg {
  width: 17px;
  height: 17px;
}

.shield-red {
  background: rgba(220, 38, 38, 0.15);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.shield-blue {
  background: rgba(37, 99, 235, 0.15);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.shield-green {
  background: rgba(22, 163, 74, 0.15);
  color: #16A34A;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.shield-yellow {
  background: rgba(250, 204, 21, 0.3);
  color: #A16207;
  border: 1.5px solid #EAB308;
}

.house-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.name-red {
  color: #991B1B;
}

.name-blue {
  color: #1E40AF;
}

.name-green {
  color: #166534;
}

.name-yellow {
  color: #854D0E;
}

/* Vibrant Color Pills */
.sl-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.sl-table tbody tr:hover .sl-color-pill {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pill-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.pill-red {
  background: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
  border: 1.5px solid rgba(220, 38, 38, 0.35);
}

.swatch-red {
  background-color: #DC2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.65);
}

.pill-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1D4ED8;
  border: 1.5px solid rgba(37, 99, 235, 0.35);
}

.swatch-blue {
  background-color: #2563EB;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.65);
}

.pill-green {
  background: rgba(22, 163, 74, 0.12);
  color: #15803D;
  border: 1.5px solid rgba(22, 163, 74, 0.35);
}

.swatch-green {
  background-color: #16A34A;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.65);
}

.pill-yellow {
  background: rgba(254, 240, 138, 0.6);
  color: #713F12;
  border: 1.5px solid #EAB308;
}

.swatch-yellow {
  background-color: #FACC15;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.95), 0 0 0 1px #EAB308;
}

.sl-purpose-text {
  font-size: 0.94rem;
  color: #4A3B32;
  line-height: 1.6;
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dot-red {
  background-color: #DC2626;
}

.dot-blue {
  background-color: #2563EB;
}

.dot-green {
  background-color: #16A34A;
}

.dot-yellow {
  background-color: #FACC15;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px #EAB308;
}

/* 9. House Activities Grid (5 Cards Balanced Symmetrically Without Gaps) */
.sl-activities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.75rem;
}

.sl-activity-card:nth-child(1),
.sl-activity-card:nth-child(2),
.sl-activity-card:nth-child(3) {
  grid-column: span 2;
}

.sl-activity-card:nth-child(4),
.sl-activity-card:nth-child(5) {
  grid-column: span 3;
}

@media (max-width: 991px) {
  .sl-activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sl-activity-card:nth-child(1),
  .sl-activity-card:nth-child(2),
  .sl-activity-card:nth-child(3),
  .sl-activity-card:nth-child(4) {
    grid-column: span 1;
  }

  .sl-activity-card:nth-child(5) {
    grid-column: span 2;
  }
}

.sl-activity-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFDF8 100%);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 16px;
  padding: 1.85rem;
  box-shadow: 0 4px 18px rgba(28, 15, 7, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-activity-card:hover {
  transform: translateY(-6px);
  border-color: #D97706;
  box-shadow: 0 18px 40px -6px rgba(28, 15, 7, 0.12), 0 8px 16px -2px rgba(217, 119, 6, 0.14);
}

.sl-act-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.sl-act-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.12);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sl-activity-card:hover .sl-act-icon {
  background: #D97706;
  color: #FFFFFF;
  transform: scale(1.08);
}

.sl-act-icon svg {
  width: 22px;
  height: 22px;
}

.sl-act-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  margin: 0;
  line-height: 1.3;
}

.sl-act-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #4A3B32;
  margin: 0;
}

/* 10. Responsive Rules */
@media (max-width: 1024px) {
  .sl-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .sl-intro-grid {
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .sl-cards-grid,
  .sl-clubs-grid,
  .sl-activities-grid,
  .sl-house-grid {
    grid-template-columns: 1fr;
  }

  .sl-activity-card {
    grid-column: span 1 !important;
  }

  .sl-card-media {
    height: 190px;
  }

  /* Transform House Table into Compact, Colorful Cards on Mobile */
  .sl-table-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin-top: 1.25rem;
    margin-bottom: 2.75rem;
  }

  .sl-table {
    display: block;
    width: 100%;
  }

  .sl-table thead {
    display: none;
  }

  .sl-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .sl-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0.65rem;
    column-gap: 0.5rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 12px rgba(28, 15, 7, 0.04);
  }

  .sl-table td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
  }

  .sl-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
  }

  .sl-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
  }

  .sl-table td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px dashed rgba(0, 0, 0, 0.1) !important;
    padding-top: 0.6rem !important;
  }

  .sl-table-house {
    gap: 0.55rem;
  }

  .house-shield {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .house-shield svg {
    width: 14px;
    height: 14px;
  }

  .house-name {
    font-size: 0.98rem;
  }

  .sl-color-pill {
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .pill-swatch {
    width: 8px;
    height: 8px;
  }

  .sl-purpose-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4A3B32;
    display: block;
  }
}