* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none
}

html {
  font-size: 16px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Arabic', sans-serif;
  line-height: 1.6;
  color: #2C3E50;
  background: #FDFCF5;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch
}

.fonts-loaded body {
  font-family: 'Comic Neue', 'Noto Sans Arabic', sans-serif
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10000
}

.navbar {
  background: #2C3E50;
  border-bottom: 5px solid #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 0 0 #000;
  width: 100%
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  color: #FDFCF5;
  text-decoration: none;
  white-space: nowrap;
  font-weight: bold
}

.logo-tagline {
  margin: 0;
  font-size: .75rem;
  color: #00A99D;
  font-weight: bold;
  letter-spacing: .5px;
  font-style: italic;
  white-space: nowrap
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-link {
  color: #FDFCF5;
  text-decoration: none;
  font-weight: bold;
  padding: .5rem .75rem;
  border-radius: 8px;
  display: block
}

.mobile-menu-btn,
.lang-btn {
  background: transparent;
  border: 3px solid #FDFCF5;
  border-radius: 8px;
  color: #FDFCF5;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center
}

.mobile-menu-btn {
  display: none;
  padding: .5rem;
  font-size: 1.5rem;
  min-width: 44px;
  min-height: 44px
}

.lang-btn {
  padding: .5rem 1rem;
  gap: .5rem
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 2rem;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border: 4px solid #000;
  border-radius: 15px;
  box-shadow: 4px 4px 0 0 #000;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 #000
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .15), 6px 6px 0 0 #000
}

.btn-primary {
  background: #00A99D;
  color: #fff
}

.btn-primary:hover {
  background: #009185
}

.page-hero {
  background: #2C3E50;
  background-image: radial-gradient(rgba(0, 0, 0, .08) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  color: #FDFCF5;
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 5px solid #000
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 4px 4px 0 #000;
  font-weight: bold;
  font-family: 'Changa', cursive
}

.page-hero p {
  font-size: 1.2rem;
  opacity: .9;
  max-width: 800px;
  margin: 0 auto
}

.accordion-container {
  margin: 2rem 0
}

.accordion-item {
  background: #fff;
  border: 4px solid #000;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 6px 6px 0 0 #000;
  overflow: hidden
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #00A99D;
  color: #fff;
  cursor: pointer;
  transition: all .3s ease;
  border: none;
  width: 100%;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Changa', cursive;
  text-align: left
}

.accordion-header:hover,
.accordion-header.active {
  background: #009185
}

.accordion-header:hover {
  transform: translateY(-2px)
}

.accordion-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00A99D;
  font-weight: bold;
  font-size: 1.3rem;
  transition: transform .3s ease
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg)
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 1.5rem
}

.accordion-content.active {
  max-height: 2000px;
  padding: 1.5rem
}

.accordion-content p,
.challenge-content p {
  margin-bottom: 1rem;
  line-height: 1.8
}

.accordion-content h4,
.challenge-content h4 {
  font-size: 1.2rem;
  color: #00A99D;
  margin-top: 1.5rem;
  margin-bottom: .8rem;
  font-weight: bold
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0
}

.overview-card,
.challenge-card {
  border: 4px solid #000;
  border-radius: 15px;
  box-shadow: 6px 6px 0 0 #000;
  transition: transform .2s ease
}

.overview-card {
  background: linear-gradient(135deg, #00A99D 0%, #009185 100%);
  padding: 1.5rem;
  color: #fff;
  text-align: center
}

.overview-card:hover,
.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 0 #000
}

.overview-card i {
  font-size: 2.5rem;
  margin-bottom: .5rem;
  display: block
}

.overview-card h3 {
  font-size: 1.1rem;
  margin: .5rem 0;
  font-weight: bold
}

.challenge-card {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem
}

.challenge-icon {
  width: 60px;
  height: 60px;
  background: #00A99D;
  border: 4px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #FDFCF5;
  margin-bottom: 1rem
}

.challenge-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2C3E50;
  font-weight: bold;
  font-family: 'Changa', cursive
}

.challenge-content strong {
  color: #2C3E50;
  font-weight: bold
}

.tip-box,
.alert-box,
.success-box {
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0
}

.tip-box {
  background: #FFF3CD;
  border: 4px solid #d39e00;
  border-right: 8px solid #d39e00
}

.alert-box {
  background: #FFD6D6;
  border: 4px solid #dc3545;
  border-right: 8px solid #dc3545
}

.success-box {
  background: #D4EDDA;
  border: 4px solid #28a745;
  border-right: 8px solid #28a745
}

.tip-box h5,
.alert-box h5,
.success-box h5 {
  color: #1a1a1a;
  font-weight: bold;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem
}

.tip-box h5 i {
  color: #d39e00
}

.alert-box h5 i {
  color: #dc3545
}

.success-box h5 i {
  color: #28a745
}

.tip-box p,
.alert-box p,
.success-box p {
  color: #1a1a1a
}

.conclusion-section,
.footer {
  background: #2C3E50;
  color: #FDFCF5;
  border-top: 5px solid #000;
  text-align: center
}

.conclusion-section {
  padding: 3rem 0;
  margin-top: 3rem
}

.conclusion-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0 #000;
  font-family: 'Changa', cursive
}

.conclusion-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 2rem
}

.toc-sidebar {
  position: fixed;
  right: -420px;
  top: 80px;
  width: 400px;
  max-height: calc(100vh - 100px);
  background: linear-gradient(180deg, #fff 0%, #F8F8F8 100%);
  border: 5px solid #000;
  border-radius: 15px 0 0 15px;
  box-shadow: -15px 8px 25px rgba(0, 0, 0, .25);
  transition: right .4s cubic-bezier(.68, -.55, .265, 1.55);
  overflow-y: auto;
  z-index: 999;
  padding: 0
}

.toc-sidebar.active {
  right: 0
}

.toc-sidebar::-webkit-scrollbar {
  width: 8px
}

.toc-sidebar::-webkit-scrollbar-track {
  background: #F0F0F0;
  border-radius: 10px
}

.toc-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00A99D 0%, #009185 100%);
  border-radius: 10px;
  border: 2px solid #F0F0F0
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #009185 0%, #007A6B 100%)
}

.toc-header {
  background: linear-gradient(135deg, #00A99D 0%, #009185 100%);
  color: #fff;
  padding: 1.5rem;
  border-bottom: 5px solid #000;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 0 0 #000
}

.toc-header h2 {
  font-size: 1.3rem;
  margin: 0;
  font-family: 'Changa', cursive;
  font-weight: bold;
  flex: 1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .1)
}

.toc-close-btn {
  background: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  color: #00A99D;
  font-weight: bold;
  box-shadow: 2px 2px 0 0 #000;
  font-size: 1.3rem
}

.toc-close-btn:hover {
  background: #00C9B0;
  transform: scale(1.15);
  box-shadow: 3px 3px 0 0 #000
}

.toc-close-btn:active {
  box-shadow: 1px 1px 0 0 #000
}

.toc-items {
  padding: 1.2rem;
  background: radial-gradient(circle at 0 0, rgba(0, 169, 157, .02) 0%, transparent 100%)
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
  background: linear-gradient(135deg, #00A99D 0%, #009185 100%);
  color: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.68, -.55, .265, 1.55);
  text-align: right;
  font-size: .95rem;
  font-weight: bold;
  box-shadow: 5px 5px 0 0 #000;
  position: relative;
  overflow: hidden
}

.toc-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .1) 50%, transparent 100%);
  opacity: 0
}

.toc-item:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 0 #000;
  padding-right: 1.4rem
}

.toc-item:hover .toc-icon {
  transform: scale(1.15)
}

.toc-item:hover::before {
  opacity: 1
}

.toc-item:active {
  box-shadow: 2px 2px 0 0 #000;
  transform: translateY(-1px)
}

.toc-item.active {
  background: linear-gradient(135deg, #00C9B0 0%, #00B5A0 100%);
  color: #FFF;
  border-color: #000;
  box-shadow: 5px 5px 0 0 #000
}

.toc-item.active .toc-icon {
  color: #fff
}

.toc-item.active::after {
  content: '✓';
  margin-left: .5rem;
  font-size: 1.2rem;
  font-weight: bold
}

.toc-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  color: #fff;
  transition: transform .3s ease
}

.toc-text {
  flex: 1;
  line-height: 1.4
}

.toc-toggle-btn {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #00A99D 0%, #009185 100%);
  border: 4px solid #000;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  z-index: 998;
  box-shadow: 6px 6px 0 0 #000;
  transition: all .3s cubic-bezier(.68, -.55, .265, 1.55);
  font-weight: bold
}

.toc-toggle-btn:hover {
  background: linear-gradient(135deg, #009185 0%, #007A6B 100%);
  transform: scale(1.12);
  box-shadow: 8px 8px 0 0 #000
}

.toc-toggle-btn:active {
  transform: scale(1.05);
  box-shadow: 3px 3px 0 0 #000
}

.toc-toggle-btn.active {
  background: linear-gradient(135deg, #00C9B0 0%, #00B5A0 100%);
  color: #FFF;
  right: 430px;
  box-shadow: 6px 6px 0 0 #000
}

.scroll-to-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: #00C9B0;
  border: 4px solid #000;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #FFF;
  z-index: 997;
  box-shadow: 4px 4px 0 0 #000;
  transition: all .3s ease;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.scroll-to-top-btn:hover {
  background: #00B5A0;
  transform: scale(1.1)
}

.scroll-to-top-btn:active {
  box-shadow: 2px 2px 0 0 #000
}

.swipeable-section {
  background: #F5F5F5;
  background-image: radial-gradient(rgba(0, 0, 0, .08) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  padding: 5rem 0 3rem;
  position: relative;
  overflow: visible
}

.cards-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  height: 750px;
  margin-bottom: 3rem;
  margin-top: 2rem;
  padding-top: 3rem;
  touch-action: pan-y;
  padding-bottom: 4rem;
  -webkit-overflow-scrolling: touch
}

.swipeable-card,
.swipeable-card::-webkit-scrollbar,
.card-content::-webkit-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none
}

.swipeable-card::-webkit-scrollbar,
.card-content::-webkit-scrollbar {
  display: none
}

.swipeable-card {
  position: absolute;
  width: 100%;
  max-width: 1400px;
  height: 650px;
  background: #fff;
  border: 5px solid #000;
  border-radius: 20px;
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, .15);
  opacity: 0;
  pointer-events: none;
  transform: scale(.85) translateX(120px);
  transition: all .4s cubic-bezier(.68, -.55, .265, 1.55);
  cursor: grab;
  user-select: none;
  padding: 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch
}

.swipeable-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateX(0);
  z-index: 10
}

.swipeable-card.prev {
  transform: scale(.85) translateX(-120px)
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start
}

.card-icon-large {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  text-align: left;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, .2))
}

.swipeable-card h2 {
  font-size: 2.2rem;
  margin-bottom: 1.3rem;
  color: #1a1a1a;
  font-family: 'Changa', cursive;
  font-weight: bold;
  border-bottom: 4px solid #00A99D;
  padding-bottom: .8rem
}

.card-content {
  flex: 1;
  overflow-y: auto;
  padding-right: .5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch
}

.card-content p {
  margin-bottom: .9rem;
  line-height: 2;
  color: #1a1a1a;
  font-size: 1.15rem
}

.card-content h4 {
  font-size: 1.35rem;
  color: #008c7d;
  margin-top: 1.2rem;
  margin-bottom: .6rem;
  font-weight: bold
}

.cards-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  direction: ltr;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15)
}

.nav-dots-container {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  direction: rtl;
  flex-direction: row-reverse;
}

.nav-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #fff;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 3px 3px 0 0 #000
}

.nav-dot.active {
  background: #00A99D;
  transform: scale(1.2)
}

.nav-dot:hover {
  transform: scale(1.1)
}

.card-nav-btn {
  position: static;
  width: 40px;
  height: 40px;
  border: 4px solid #000;
  background: #00A99D;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  z-index: 150;
  box-shadow: 4px 4px 0 0 #000;
  flex-shrink: 0;
}

.card-nav-btn:hover {
  background: #009185;
  transform: scale(1.1)
}

.card-nav-prev {
  order: -1;
}

.card-nav-next {
  order: 1;
}

.card-nav-btn:active {
  box-shadow: 2px 2px 0 0 #000
}

.card-scroll-hint {
  position: sticky;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 169, 157, 0.15);
  border: 2px solid rgba(0, 169, 157, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-top: 1.5rem;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  animation: scrollBounce 2s infinite ease-in-out
}

.card-content:hover .card-scroll-hint {
  opacity: 0.3
}

.card-scroll-hint i {
  color: #00A99D;
  font-size: 1.2rem
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(5px)
  }
}

.footer {
  padding: 2rem 0
}

/* ============================================
   RESPONSIVE DESIGN - Mobile Optimization
   ============================================ */

/* General Mobile Card Height Fix */
@media (max-width: 767px) {
  .swipeable-section {
    min-height: auto !important;
    padding: 2rem 0;
  }

  .cards-wrapper {
    height: auto !important;
    min-height: 450px;
    max-height: 70vh;
  }

  .swipeable-card {
    height: auto !important;
    max-height: 65vh !important;
    min-height: 400px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
  }

  .card-inner {
    height: auto !important;
    min-height: auto !important;
  }

  .card-content {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

/* Tall Screens Fix (like S24 Ultra) */
@media (max-width: 767px) and (min-height: 900px) {
  .swipeable-card {
    max-height: 70vh !important;
  }
}

/* Tablet and below (1024px) */
@media(max-width:1024px) {
  .swipeable-card {
    max-width: 90%;
    padding: 2rem
  }

  .card-icon-large {
    font-size: 3rem
  }
}

/* Extra Small Mobile (320px - 374px) */
@media (max-width: 374px) {
  html {
    font-size: 13px;
  }

  .page-hero {
    padding: 1.2rem 0 0.8rem;
  }

  .page-hero h1 {
    font-size: 1.15rem;
    line-height: 1.25;
    padding: 0 12px;
  }

  .page-hero p {
    font-size: 0.8rem;
    padding: 0 12px;
    line-height: 1.4;
  }

  .container {
    padding: 0 12px;
  }

  .swipeable-card {
    max-width: 97%;
    width: 97%;
    margin: 0 1.5%;
    padding: 0.9rem 0.9rem 1.3rem;
    border-width: 3px;
    font-size: 0.85rem;
  }

  .swipeable-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.35rem;
  }

  .card-icon-large {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }

  .card-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.45rem;
  }

  .card-content h4 {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .tip-box,
  .alert-box,
  .success-box {
    padding: 0.6rem;
    margin: 0.6rem 0;
    border-width: 2px;
    border-right-width: 3px;
  }

  .tip-box h5,
  .alert-box h5,
  .success-box h5 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }

  .tip-box p,
  .alert-box p,
  .success-box p {
    font-size: 0.7rem;
    line-height: 1.3;
    margin-top: 0.2rem;
  }

  .card-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .nav-dot {
    width: 9px;
    height: 9px;
    border-width: 2px;
  }

  .cards-navigation {
    gap: 0.35rem;
    padding: 6px 10px;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 200;
  }

  .conclusion-section h2 {
    font-size: 1.2rem;
  }

  .conclusion-section p {
    font-size: 0.85rem;
    padding: 0 12px;
  }

  .btn {
    height: 42px;
    font-size: 13px;
    padding: 0 0.9rem;
  }

  .toc-toggle-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .scroll-to-top-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    bottom: 75px;
  }
}

/* Small Mobile (375px - 413px) */
@media (min-width: 375px) and (max-width: 413px) {
  html {
    font-size: 13.5px;
  }

  .page-hero h1 {
    font-size: 1.2rem;
  }

  .page-hero p {
    font-size: 0.82rem;
  }

  .swipeable-card {
    max-width: 96%;
    width: 96%;
    margin: 0 2%;
    padding: 0.95rem 0.95rem 1.4rem;
  }

  .swipeable-card h2 {
    font-size: 1.1rem;
  }

  .card-icon-large {
    font-size: 1.7rem;
  }

  .card-content p {
    font-size: 0.82rem;
  }

  .card-content h4 {
    font-size: 0.88rem;
  }
}

/* Medium Mobile (414px - 479px) */
@media (min-width: 414px) and (max-width: 479px) {
  html {
    font-size: 14px;
  }

  .page-hero h1 {
    font-size: 1.25rem;
  }

  .page-hero p {
    font-size: 0.85rem;
  }

  .swipeable-card {
    max-width: 95%;
    width: 95%;
    margin: 0 2.5%;
    padding: 1rem 1rem 1.5rem;
  }

  .swipeable-card h2 {
    font-size: 1.13rem;
  }

  .card-icon-large {
    font-size: 1.75rem;
  }

  .card-content p {
    font-size: 0.84rem;
  }

  .card-content h4 {
    font-size: 0.9rem;
  }

  .card-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
}

/* Standard Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  html {
    font-size: 14.5px;
  }

  .page-hero h1 {
    font-size: 1.3rem;
  }

  .page-hero p {
    font-size: 0.88rem;
  }

  .swipeable-card {
    max-width: 94%;
    width: 94%;
    margin: 0 3%;
    padding: 1.1rem 1.1rem 1.6rem;
  }

  .swipeable-card h2 {
    font-size: 1.18rem;
  }

  .card-icon-large {
    font-size: 1.85rem;
  }

  .card-content p {
    font-size: 0.87rem;
  }

  .card-content h4 {
    font-size: 0.93rem;
  }

  .card-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .conclusion-section h2 {
    font-size: 1.35rem;
  }

  .conclusion-section p {
    font-size: 0.92rem;
  }

  .btn {
    height: 46px;
    font-size: 14.5px;
  }
}

/* Tablet and Mobile (768px and below) */
@media(max-width:768px) {
  html {
    font-size: 15px
  }

  .page-hero {
    padding: 1.5rem 0 1rem
  }

  .page-hero h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    padding: 0 15px
  }

  .page-hero p {
    font-size: .9rem;
    padding: 0 15px;
    line-height: 1.5
  }

  .container {
    padding: 0 15px
  }

  .challenge-card {
    padding: 1.5rem
  }

  .challenge-title {
    font-size: 1.4rem
  }

  .nav-links {
    display: none
  }

  .mobile-menu-btn {
    display: block
  }

  .swipeable-section {
    padding: 1.5rem 0 7rem;
    background-image: radial-gradient(rgba(0, 0, 0, .08) 1.5px, transparent 1.5px);
    background-size: 10px 10px
  }

  .cards-wrapper {
    height: auto;
    min-height: 500px;
    margin-bottom: 1.5rem
  }

  .swipeable-card {
    max-width: 94%;
    height: auto;
    min-height: auto;
    max-height: 55vh;
    padding: 1.3rem 1.3rem 2rem;
    width: 94%;
    margin: 0 3%;
    font-size: .9rem;
    border-width: 4px;
    box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .15);
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch
  }

  .swipeable-card.active,
  .swipeable-card.prev {
    transform: scale(1) translateX(0)
  }

  .card-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .card-nav-btn:hover {
    transform: scale(1.05)
  }

  .card-icon-large {
    font-size: 2rem;
    margin-bottom: .6rem
  }

  .swipeable-card h2 {
    font-size: 1.25rem;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom-width: 3px
  }

  .card-content {
    padding-right: .2rem
  }

  .card-content p {
    font-size: .875rem;
    line-height: 1.5;
    margin-bottom: .6rem
  }

  .card-content h4 {
    font-size: .95rem;
    margin-top: .7rem;
    margin-bottom: .4rem
  }

  .tip-box,
  .alert-box,
  .success-box {
    padding: .8rem;
    margin: .8rem 0;
    border-width: 3px;
    border-right-width: 5px;
    border-radius: 8px
  }

  .tip-box h5,
  .alert-box h5,
  .success-box h5 {
    font-size: .9rem;
    margin-bottom: .3rem
  }

  .tip-box p,
  .alert-box p,
  .success-box p {
    font-size: .8rem;
    line-height: 1.4;
    margin: 0;
    margin-top: .3rem
  }

  .cards-navigation {
    gap: .5rem;
    padding: 6px 10px;
    bottom: 25px;
    transform: translateX(-50%);
    margin: 0;
    z-index: 200
  }

  .nav-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
    box-shadow: 2px 2px 0 0 #000
  }

  .conclusion-section {
    padding: 1.5rem 0;
    margin-top: 2rem
  }

  .conclusion-section h2 {
    font-size: 1.5rem
  }

  .conclusion-section p {
    font-size: .95rem;
    padding: 0 15px;
    line-height: 1.6
  }

  .btn {
    height: 48px;
    font-size: 15px;
    padding: 0 1.3rem;
    border-width: 3px;
    box-shadow: 3px 3px 0 0 #000
  }

  .toc-sidebar {
    right: -100%;
    width: 85vw;
    top: 70px;
    max-height: calc(100vh - 80px);
    border-radius: 12px 0 0 12px
  }

  .toc-sidebar.active {
    right: 0
  }

  .toc-toggle-btn {
    top: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem
  }

  .toc-toggle-btn:hover {
    transform: scale(1.1)
  }

  .toc-toggle-btn.active {
    right: calc(85vw + 20px)
  }

  .toc-header {
    padding: 1.2rem;
    border-bottom-width: 4px
  }

  .toc-header h2 {
    font-size: 1.1rem
  }

  .toc-close-btn {
    width: 32px;
    height: 32px;
    border-width: 3px
  }

  .toc-items {
    padding: 1rem
  }

  .toc-item {
    padding: .9rem 1rem;
    margin-bottom: .7rem;
    font-size: .88rem;
    border-width: 3px;
    box-shadow: 3px 3px 0 0 #000
  }

  .toc-item:hover {
    box-shadow: 4px 4px 0 0 #000
  }

  .toc-item.active {
    box-shadow: 3px 3px 0 0 #000
  }

  .toc-icon {
    font-size: 1.4rem;
    width: auto
  }

  .scroll-to-top-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    bottom: 80px
  }
}

/* Legacy 480px support - kept for backward compatibility */
@media(max-width:480px) {
  html {
    font-size: 14px
  }

  .page-hero h1 {
    font-size: 1.3rem
  }

  .page-hero p {
    font-size: .85rem
  }

  .swipeable-section {
    background-image: radial-gradient(rgba(0, 0, 0, .08) 1.5px, transparent 1.5px);
    background-size: 10px 10px
  }

  .swipeable-card {
    padding: 1rem 1rem 1.5rem;
    max-width: 96%;
    width: 96%;
    margin: 0 2%;
    border-width: 3px;
    max-height: 80vh;
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
  }

  .card-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }

  .card-icon-large {
    font-size: 1.8rem;
    margin-bottom: .5rem
  }

  .swipeable-card h2 {
    font-size: 1.15rem;
    margin-bottom: .7rem;
    padding-bottom: .4rem
  }

  .card-content p {
    font-size: .85rem;
    line-height: 1.45;
    margin-bottom: .5rem
  }

  .card-content h4 {
    font-size: .9rem;
    margin-top: .6rem;
    margin-bottom: .3rem
  }

  .tip-box,
  .alert-box,
  .success-box {
    padding: .7rem;
    margin: .7rem 0;
    border-width: 2px;
    border-right-width: 4px
  }

  .tip-box h5,
  .alert-box h5,
  .success-box h5 {
    font-size: .85rem;
    margin-bottom: .25rem
  }

  .tip-box p,
  .alert-box p,
  .success-box p {
    font-size: .75rem;
    line-height: 1.35;
    margin-top: .25rem
  }

  .nav-dot {
    width: 10px;
    height: 10px;
    border-width: 2px
  }

  .cards-navigation {
    gap: .4rem;
    padding: 5px 8px;
    bottom: 20px;
    transform: translateX(-50%)
  }

  .conclusion-section h2 {
    font-size: 1.3rem
  }

  .conclusion-section p {
    font-size: .9rem
  }

  .btn {
    height: 45px;
    font-size: 14px;
    padding: 0 1rem
  }
}
