/* ==========================================================================
   Data Science Club (DSC KAU) - Registration Portal Style
   Theme: Precision palette from official 2026-2027 announcement poster
   Typography: IBM Plex Sans Arabic ONLY
   Layout: Compact Single-Screen Design (Fits completely on Laptop & Mobile)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Core Brand Colors from Flyer */
  --bg-dark-top: #071520;
  --bg-dark-mid: #0b2d36;
  --bg-dark-bottom: #05141c;
  
  --coral-primary: #FF6F43;
  --coral-dark: #E85628;
  --coral-light: #FFDACD;
  --coral-text: #B83A14;
  --coral-glow: rgba(255, 111, 67, 0.45);

  --teal-primary: #26BA9B;
  --teal-dark: #19947A;
  --teal-light: #C7F2E7;
  --teal-text: #0E6855;
  --teal-glow: rgba(38, 186, 155, 0.45);

  --blue-primary: #154575;
  --blue-dark: #0D2C4D;
  --blue-light: #B4CEEB;
  --blue-text: #0A243F;
  --blue-glow: rgba(21, 69, 117, 0.55);

  /* Surface & Glassmorphism */
  --glass-bg: rgba(14, 38, 54, 0.65);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-blur: blur(16px);

  /* Text Colors */
  --text-white: #FFFFFF;
  --text-offwhite: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Fast & Snappy Transitions (150-250ms) */
  --ease-fast: ease-out;
  --ease-smooth: cubic-bezier(0.2, 0, 0.2, 1);
  --trans-speed: 180ms;
  --click-speed: 80ms;
}

/* --------------------------------------------------------------------------
   Global Reset & Mandatory Font Enforcement
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark-top);
  background: radial-gradient(circle at 50% 30%, #0c3641 0%, #071e27 45%, #05141c 100%);
  color: var(--text-white);
  overflow-x: hidden;
  position: relative;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Atmospheric Lighting & Background Canvas
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.6;
  will-change: transform;
}

.glow-top {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(38, 186, 155, 0.25) 0%, transparent 70%);
}

.glow-center {
  top: 35%;
  right: 15%;
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, rgba(38, 186, 155, 0.2) 0%, rgba(21, 69, 117, 0.3) 60%, transparent 80%);
}

.glow-coral {
  top: 50%;
  left: 30%;
  width: 440px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 111, 67, 0.16) 0%, transparent 70%);
}

.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.88;
}

/* --------------------------------------------------------------------------
   Page Wrapper (Single-Screen Fit, Compact & Luxurious Layout)
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem 0.45rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header & Club Identity
   -------------------------------------------------------------------------- */
.club-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin-bottom: 0.85rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease-out;
}

.logo-container:hover {
  transform: translateY(-2px);
}

.logo-container:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.club-logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(38, 186, 155, 0.25));
  transition: transform 180ms ease-out, filter 180ms ease-out;
}

.logo-container:hover .club-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 6px 18px rgba(38, 186, 155, 0.45));
}

.club-year-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #7EF3DC;
  background: rgba(38, 186, 155, 0.12);
  border: 1px solid rgba(38, 186, 155, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(38, 186, 155, 0.14);
  border: 1px solid rgba(38, 186, 155, 0.35);
  color: #79F2D8;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #26BA9B;
  box-shadow: 0 0 8px #26BA9B;
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(38, 186, 155, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(38, 186, 155, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(38, 186, 155, 0); }
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-offwhite);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transform: scale(1.08);
}

.sound-toggle-btn:active {
  transform: scale(0.92);
  transition-duration: 80ms;
}

/* --------------------------------------------------------------------------
   Hero Announcement Section (Kept Large & Prominent as Requested)
   -------------------------------------------------------------------------- */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.announcement-section {
  text-align: center;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-bottom: 2.25rem; /* Comfortable, eye-pleasing breathing distance between title and cards */
}

.hero-heading {
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  max-width: 950px;
  margin: 0 auto;
}

.highlight-coral {
  color: var(--coral-primary);
  display: inline-block;
  position: relative;
  text-shadow: 0 0 35px rgba(255, 111, 67, 0.5);
}

.year-pill-wrapper {
  margin-top: 0.45rem;
}

.year-pill {
  display: inline-block;
  background: rgba(14, 38, 54, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.25rem 1.2rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Registration Cards Grid (Compact, Concise & Single-Screen Balanced)
   Order: Right-to-Left: المجتمع (1) -> فريق العمل (2) -> قادة الأقسام (3)
   -------------------------------------------------------------------------- */
.cards-section {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 1.15rem;
  flex-shrink: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; /* Reduced gap between cards */
  align-items: stretch;
  position: relative;
  direction: rtl;
}

/* Strict Right-to-Left Order */
.card-community {
  order: 1; /* Right in RTL */
  background: linear-gradient(180deg, #26BA9B 0%, #1E9D83 55%, #157E69 100%);
  box-shadow: 0 12px 28px rgba(21, 126, 105, 0.38);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.card-team {
  order: 2; /* Center in RTL */
  background: linear-gradient(180deg, #FF6F43 0%, #F55928 55%, #E14817 100%);
  box-shadow: 0 12px 28px rgba(225, 72, 23, 0.38);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.card-leaders {
  order: 3; /* Left in RTL */
  background: linear-gradient(180deg, #154575 0%, #10385F 55%, #0B2947 100%);
  box-shadow: 0 12px 28px rgba(11, 41, 71, 0.42);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.card-community:hover {
  box-shadow: 0 18px 38px rgba(30, 157, 131, 0.6), 0 0 28px rgba(38, 186, 155, 0.4);
}

.card-team:hover {
  box-shadow: 0 18px 38px rgba(245, 89, 40, 0.6), 0 0 28px rgba(255, 111, 67, 0.4);
}

.card-leaders:hover {
  box-shadow: 0 18px 38px rgba(17, 62, 107, 0.6), 0 0 26px rgba(21, 69, 117, 0.35);
}

/* --------------------------------------------------------------------------
   Individual Registration Card Design (Immediate 150ms Hover Elevation)
   -------------------------------------------------------------------------- */
.registration-card {
  position: relative;
  border-radius: 20px;
  padding: 1.5rem 1.25rem 1.25rem; /* Clean balanced padding */
  display: flex;
  flex-direction: column;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
  overflow: visible;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.18);
  height: 100%;
  will-change: transform;
}

.registration-card:hover {
  transform: translateY(-5px);
}

.registration-card:active {
  transform: translateY(-2px);
  transition-duration: 70ms;
}

/* Card Content Details */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.card-description {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 0.65rem;
  min-height: 3.7rem;
  max-width: 275px;
}

.card-actions-wrapper {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-actions-wrapper .target-badge-wrapper {
  order: 1;
  margin-bottom: 0.75rem;
}

.card-actions-wrapper .join-btn {
  order: 2;
  margin-top: 0;
}

.target-badge-wrapper {
  margin-bottom: 0.75rem;
}

.target-badge {
  font-size: 0.78rem;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  display: inline-block;
  padding: 0.18rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Direct Action Buttons (Immediate 150ms Hover to White, 70ms Click)
   -------------------------------------------------------------------------- */
.join-btn {
  margin-top: auto; /* Solidly anchored to the bottom */
  width: 100%;
  max-width: 220px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
  will-change: transform, background-color, color, box-shadow;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.join-btn svg {
  transition: transform 150ms ease-out;
}

.join-btn:hover {
  transform: translateY(-2px);
}

.join-btn:hover svg {
  transform: translateX(-4px);
}

/* Immediate tactile click/press response (70ms) */
.join-btn:active {
  transform: scale(0.95) translateY(0);
  transition-duration: 70ms;
}

/* Community Button */
.btn-community {
  background-color: var(--teal-light);
  color: var(--teal-text);
  transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}

.btn-community:hover {
  background-color: #FFFFFF;
  color: #0E6855;
  box-shadow: 0 4px 16px rgba(199, 242, 231, 0.55);
}

/* Team Button */
.btn-team {
  background-color: var(--coral-light);
  color: var(--coral-text);
  transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}

.btn-team:hover {
  background-color: #FFFFFF;
  color: #C0360D;
  box-shadow: 0 4px 16px rgba(255, 218, 205, 0.55);
}

/* Leaders Button */
.btn-leaders {
  background-color: var(--blue-light);
  color: var(--blue-text);
  transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}

.btn-leaders:hover {
  background-color: #FFFFFF;
  color: #0B2947;
  box-shadow: 0 4px 16px rgba(180, 206, 235, 0.55);
}

/* --------------------------------------------------------------------------
   Slogan Banner Section (Compact & Well Positioned)
   -------------------------------------------------------------------------- */
.slogan-section {
  text-align: center;
  margin: 0.25rem auto 0.65rem;
  flex-shrink: 0;
}

.slogan-pill {
  display: inline-block;
  background: rgba(14, 38, 54, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.35rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}

.slogan-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 186, 155, 0.45);
}

.slogan-pill:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}

.slogan-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Footer Section (Compact & Grounded)
   -------------------------------------------------------------------------- */
.club-footer {
  margin-top: auto;
  padding: 0.35rem 0 0.25rem;
  text-align: center;
  flex-shrink: 0;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

.footer-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.social-badge:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--teal-primary);
  transform: scale(1.04);
}

.social-badge:active {
  transform: scale(0.95);
  transition-duration: 80ms;
}

.footer-info {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: rgba(14, 38, 54, 0.95);
  border: 1px solid rgba(38, 186, 155, 0.4);
  color: #FFFFFF;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  animation: toastIn 0.35s var(--ease-spring) forwards, toastOut 0.35s ease 2.7s forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

/* --------------------------------------------------------------------------
   Responsive Layout & Mobile Optimization (Spacious & Balanced)
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) and (min-width: 769px) {
  .page-wrapper {
    padding: 0.6rem 1.25rem 0.4rem;
  }
  .cards-grid {
    gap: 1rem;
  }
  .registration-card {
    padding: 1.75rem 1rem 1rem;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .card-description {
    font-size: 0.8rem;
    min-height: 3.5rem;
  }
  .join-btn {
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
  }
}

/* Mobile Devices (Comfortable, Compact, Perfectly Balanced for 3 Cards) */
@media (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .page-wrapper {
    padding: 0.65rem 1rem 0.5rem;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .club-header {
    padding: 0.2rem 0 0.45rem;
    margin-bottom: 0.55rem;
  }

  .club-logo-img {
    height: 34px;
    max-width: 180px;
  }

  .sound-toggle-btn {
    width: 30px;
    height: 30px;
  }

  .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    width: 100%;
  }

  /* Balanced breathing space above and below headline */
  .announcement-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.2rem 0 0;
    margin: 0.65rem 0 1.25rem;
    gap: 0.4rem;
    width: 100%;
    flex: unset;
  }

  /* Main headline enlarged on mobile as requested */
  .hero-heading {
    font-size: clamp(2.05rem, 6.8vw, 2.55rem);
    line-height: 1.22;
    font-weight: 800;
    margin: 0;
  }

  .year-pill-wrapper {
    margin-top: 0.2rem;
  }

  .year-pill {
    font-size: 0.82rem;
    padding: 0.22rem 1rem;
  }

  .cards-section {
    margin: 0 0 0.65rem;
    width: 100%;
    flex: unset;
    flex-shrink: 0;
  }

  .cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0.95rem; /* Comfortable, elegant breathing space between boxes */
    width: 100%;
  }

  .registration-card {
    padding: 0.85rem 1.15rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    width: 100%;
    margin: 0;
    height: auto;
  }

  .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.18rem;
    text-align: right;
  }

  .card-description {
    font-size: 0.79rem;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.45rem;
    min-height: unset;
    max-width: 100%;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Actions wrapper: button + badge side-by-side on the same line */
  .card-actions-wrapper {
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    direction: rtl;
  }

  /* Compact button width on the right (order: 1 in RTL) */
  .card-actions-wrapper .join-btn {
    order: 1;
    width: auto;
    max-width: unset;
    margin: 0;
    padding: 0.38rem 0.95rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 999px;
  }

  /* Major / College badge to the LEFT of the button (order: 2 in RTL) */
  .card-actions-wrapper .target-badge-wrapper {
    order: 2;
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .card-actions-wrapper .target-badge {
    font-size: 0.74rem;
    font-weight: 500;
    color: #FFFFFF;
    padding: 0.22rem 0.65rem;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-block;
  }

  .slogan-section {
    margin: 0.2rem auto 0.45rem;
  }

  .slogan-pill {
    padding: 0.28rem 1.15rem;
  }

  .slogan-text {
    font-size: 0.8rem;
  }

  .club-footer {
    margin-top: auto;
    padding: 0.25rem 0 0.15rem;
  }

  .footer-divider {
    margin-bottom: 0.25rem;
  }

  .social-badge {
    font-size: 0.74rem;
    padding: 0.2rem 0.7rem;
  }

  .footer-info {
    font-size: 0.68rem;
  }
}

/* Extra small screens or shorter mobile viewports (e.g. landscape or iPhone SE) */
@media (max-width: 380px), (max-height: 700px) and (max-width: 768px) {
  .hero-heading {
    font-size: 1.85rem;
  }
  .announcement-section {
    margin-bottom: 0.55rem;
    gap: 0.25rem;
  }
  .registration-card {
    padding: 0.6rem 0.85rem;
  }
  .cards-grid {
    gap: 0.65rem;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-description {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
  }
  .card-actions-wrapper .join-btn {
    padding: 0.32rem 0.8rem;
    font-size: 0.78rem;
  }
  .card-actions-wrapper .target-badge {
    padding: 0.18rem 0.55rem;
    font-size: 0.7rem;
  }
}
