/* ============================================================
   WAYS2RAISE — MASTER BRAND CSS
   Apply to every page via <link rel="stylesheet" href="brand.css">
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:   #1A1464;
  --pink:   #E91E8C;
  --blue:   #00AEEF;
  --green:  #8DC63F;
  --yellow: #FFD700;
  --white:  #FFFFFF;
  --light:  #F8F9FA;
  --dark:   #111111;
  --hero-gradient: linear-gradient(135deg, #00AEEF 0%, #7B2FBE 30%, #E91E8C 60%, #8DC63F 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  padding-top: 68px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.w2r-nav {
  background: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
/* Ensure both nav variants are always sticky — cannot be overridden */
.w2r-nav--loggedin,
.w2r-nav--loggedout {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

.w2r-nav .nav-logo img {
  height: 42px;
  width: auto;
}

.w2r-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 auto;
}

.w2r-nav .nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.w2r-nav .nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.w2r-nav .nav-links a.active {
  color: var(--yellow);
}

.w2r-nav .nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-signup {
  background: var(--pink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-signup:hover { background: #c91578; transform: translateY(-1px); }

.btn-login {
  background: transparent;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 25px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-login:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Avatar button for logged-in users */
.nav-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-avatar-btn:hover { opacity: 0.85; }
.nav-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E91E8C, #7B2D8B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  overflow: hidden;
  flex-shrink: 0;
}
.nav-avatar-name {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--navy);
  padding: 20px 24px 30px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu ul { list-style: none; }
.nav-mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-mobile-menu ul li a {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 0;
}
.nav-mobile-menu .mobile-ctas {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.nav-mobile-menu .mobile-ctas a { flex: 1; text-align: center; }

@media (max-width: 900px) {
  .w2r-nav .nav-links { display: none; }
  .w2r-nav .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 220px;
  list-style: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 2000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu li a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Mobile menu section label + divider */
.mobile-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--yellow);
  padding: 16px 0 6px;
  border-bottom: none !important;
}
.mobile-divider {
  border-bottom: 2px solid rgba(255,255,255,0.15) !important;
  padding: 0 !important;
  margin: 8px 0;
}

/* ============================================================
   PAGE HERO (inner pages — not the homepage)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 70px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background image layer — same teens hiking photo as homepage */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/teens_hill_hiking.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

/* Vibrant gradient overlay — matches homepage exactly */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,174,239,0.95) 0%, rgba(233,30,140,0.85) 55%, rgba(141,198,63,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Blob decorations inside hero */
.page-hero .blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  z-index: 2;
}
.page-hero .blob-1 { width: 200px; height: 200px; background: #fff; top: -60px; left: -60px; }
.page-hero .blob-2 { width: 150px; height: 150px; background: #fff; bottom: -40px; right: 80px; }
.page-hero .blob-3 { width: 80px; height: 80px; background: var(--yellow); top: 20px; right: 200px; opacity: 0.2; }

.page-hero .hero-pill {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.page-hero h1 span { color: var(--yellow); }

.page-hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 3;
}

/* Decorative shapes in hero */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.hero-shapes .shape {
  position: absolute;
  font-size: 22px;
  opacity: 0.35;
  color: #fff;
  font-weight: 900;
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section-white {
  background: #fff;
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}

.section-light {
  background: var(--light);
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}

.section-navy {
  background: var(--navy);
  padding: 70px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-pink {
  background: var(--pink);
  padding: 70px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-blue {
  background: var(--blue);
  padding: 70px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-label.blue { background: var(--blue); }
.section-label.green { background: var(--green); }
.section-label.navy { background: var(--navy); }
.section-label.yellow { background: var(--yellow); color: var(--navy); }

.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title.white { color: #fff; }

.section-subtitle {
  font-size: 16px;
  color: #555;
  max-width: 640px;
  margin-bottom: 40px;
}

.section-subtitle.white { color: rgba(255,255,255,0.85); }

/* ============================================================
   BLOB BACKGROUND DECORATIONS (white sections)
   ============================================================ */
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blobs .b {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.blobs .b1 { width: 280px; height: 280px; background: var(--pink); top: -80px; left: -80px; }
.blobs .b2 { width: 200px; height: 200px; background: var(--blue); bottom: -60px; right: -60px; }
.blobs .b3 { width: 120px; height: 120px; background: var(--green); top: 40%; left: 60%; }
.blobs .b4 { width: 80px; height: 80px; background: var(--yellow); top: 20%; right: 15%; opacity: 0.12; }

.blobs .sym {
  position: absolute;
  font-size: 28px;
  font-weight: 900;
  opacity: 0.12;
  color: var(--pink);
}
.blobs .sym.blue { color: var(--blue); }
.blobs .sym.green { color: var(--green); }
.blobs .sym.navy { color: var(--navy); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary:hover { background: #c91578; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,30,140,0.35); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 30px;
  border: 2.5px solid var(--navy);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 30px;
  border: 2.5px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.w2r-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 240px; }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--pink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.45); }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s;
}
.footer-socials a:hover { background: var(--pink); }

.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-legal a:hover { color: var(--pink); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner p { font-size: 14px; color: rgba(255,255,255,0.85); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--blue); text-decoration: underline; }
.cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-accept {
  background: var(--green); color: #fff; font-weight: 700;
  padding: 8px 20px; border-radius: 20px; border: none; cursor: pointer; font-size: 14px;
}
.cookie-banner .btn-decline {
  background: transparent; color: rgba(255,255,255,0.7); font-weight: 600;
  padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; font-size: 14px;
}

/* ============================================================
   MOBILE-FIRST GLOBAL RESPONSIVE STYLES
   Added: overnight mobile pass
   ============================================================ */

/* ── Base: prevent horizontal overflow on all pages ── */
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ── Horizontal Scroll Carousel (reusable) ── */
.w2r-carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.w2r-carousel::-webkit-scrollbar { display: none; }
.w2r-carousel > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
/* Carousel wrapper with fade edges */
.w2r-carousel-wrap {
  position: relative;
}
.w2r-carousel-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 12px;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
  pointer-events: none;
}

/* ── Touch-friendly tap targets ── */
@media (max-width: 768px) {
  a, button, [role="button"], input[type="submit"], input[type="button"] {
    min-height: 44px;
  }
}

/* ── Page hero sections ── */
@media (max-width: 768px) {
  .page-hero, .hero-section, .hero {
    padding: 48px 20px 36px !important;
    text-align: center;
  }
  .page-hero h1, .hero-section h1, .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    line-height: 1.25;
  }
  .page-hero p, .hero-section p, .hero p {
    font-size: 1rem !important;
    max-width: 100% !important;
  }
}

/* ── Section padding ── */
@media (max-width: 768px) {
  section, .section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .container, .page-container, .inner, .content-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }
}

/* ── Auto-responsive grids ── */
@media (max-width: 640px) {
  /* Any 2+ column grid becomes single column unless it's a carousel */
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Buttons on mobile ── */
@media (max-width: 480px) {
  .btn-primary, .btn-secondary, .btn-white, .btn-outline-white {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
  .btn-group, .cta-buttons, .hero-ctas, .button-row {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
}

/* ── Tables: horizontal scroll wrapper ── */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
  }
}

/* ── Forms ── */
@media (max-width: 600px) {
  .form-row, .form-grid, .input-row {
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
  }
  input, select, textarea {
    width: 100%;
    font-size: 16px !important; /* prevents iOS zoom */
  }
}

/* ── Cards ── */
@media (max-width: 640px) {
  .card, .guide-card, .article-card, .grant-card, .local-card {
    border-radius: 16px !important;
  }
}

/* ── Back to top button (global) ── */
.w2r-back-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 500;
  transition: opacity 0.2s, transform 0.2s;
}
.w2r-back-top.visible {
  display: flex;
}
.w2r-back-top:hover {
  background: var(--pink);
  transform: translateY(-2px);
}

/* ── Nav mobile improvements ── */
@media (max-width: 900px) {
  .w2r-nav {
    padding: 0 16px !important;
  }
  .nav-logo img {
    height: 32px !important;
  }
}

/* ── Mobile menu full-screen feel ── */
@media (max-width: 480px) {
  .nav-mobile-menu {
    padding: 16px !important;
  }
  .nav-mobile-menu ul li a {
    font-size: 17px !important;
    padding: 14px 0 !important;
  }
}

/* ── Lesson / course cards in carousel on mobile ── */
@media (max-width: 768px) {
  .courses-grid.w2r-carousel > .course-card,
  .courses-grid.w2r-carousel > .lesson-card {
    width: 260px;
    min-width: 260px;
  }
}

/* ── Stats / summary rows ── */
@media (max-width: 600px) {
  .stats-row, .summary-row, .log-summary {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

/* ── Filter tabs: horizontal scroll on mobile ── */
@media (max-width: 768px) {
  .filter-tabs, .tab-bar, .category-tabs, .gf-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-tabs::-webkit-scrollbar,
  .tab-bar::-webkit-scrollbar,
  .category-tabs::-webkit-scrollbar,
  .gf-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs button, .tab-bar button, .category-tabs button, .gf-tabs button {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* ── Modals / overlays ── */
@media (max-width: 600px) {
  .modal, .overlay-box, .dialog-box {
    margin: 16px !important;
    width: calc(100% - 32px) !important;
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* ── Typography scale ── */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.5rem, 7vw, 2.2rem) !important; }
  h2 { font-size: clamp(1.25rem, 5.5vw, 1.8rem) !important; }
  h3 { font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important; }
  p, li { font-size: 15px; line-height: 1.65; }
}

/* ── "Best viewed on a larger screen" banner ── */
.desktop-only-notice {
  display: none;
  background: #FFF8E1;
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  gap: 10px;
  align-items: center;
}
@media (max-width: 768px) {
  .desktop-only-notice {
    display: flex;
  }
}

/* ── Log Out button in logged-in nav ─────────────────────────────────────── */
.btn-logout-nav {
  background: transparent;
  color: rgba(255,255,255,0.75) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-logout-nav:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}
.btn-logout-mobile {
  width: 100%;
  text-align: center;
  margin-top: 4px;
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  background: transparent !important;
  font-family: inherit;
  cursor: pointer;
}

/* ── Upgrade / Premium Resources nav buttons ── */
.btn-upgrade-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #7B2FBE, #E91E8C);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  box-shadow: 0 2px 10px rgba(123,47,190,0.3);
}
.btn-upgrade-nav:hover { opacity: 0.88; }

.btn-premium-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1A1464 !important;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  box-shadow: 0 2px 10px rgba(255,165,0,0.3);
}
.btn-premium-nav:hover { opacity: 0.88; }

.btn-upgrade-mobile, .btn-premium-mobile {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ── Back to Top Button ─────────────────────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c2bd9 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(108, 43, 217, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  font-family: inherit;
  padding: 0;
}
#backToTop.btt-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  box-shadow: 0 6px 22px rgba(108, 43, 217, 0.65);
  transform: translateY(-3px);
}
#backToTop:active {
  transform: scale(0.94);
}
#backToTop .btt-arrow {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}
#backToTop .btt-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 480px) {
  #backToTop {
    bottom: 18px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  #backToTop .btt-arrow {
    font-size: 20px;
  }
}

/* ============================================================
   MOBILE CARD CAROUSELS — Full Site Pass
   All major card grid classes become horizontal swipe carousels
   on screens ≤ 768px. Cards get a fixed width so they're
   comfortable to swipe. A fade-out on the right hints at more.
   ============================================================ */

/* ── Carousel wrapper: adds the right-edge fade hint ── */
.w2r-carousel-outer {
  position: relative;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
}
.w2r-carousel-outer::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 16px;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(244,246,255,0.95));
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {

  /* ── Convert all major card grids to horizontal carousels ── */
  .articles-grid,
  .cards-grid,
  .courses-grid,
  .destinations-grid,
  .downloads-grid,
  .feature-grid,
  .guides-grid,
  .hub-cards-grid,
  .hub-grid,
  .ideas-grid,
  .lessons-grid,
  .lib-cat-grid,
  .pricing-grid,
  .reassure-grid,
  .saved-grid,
  .skills-grid,
  .steps-grid,
  .stories-grid,
  .testi-grid,
  .toolkit-grid,
  .tools-grid,
  .whats-new-grid,
  .why-grid,
  .quotes-grid,
  .resources-grid,
  .links-grid,
  .info-grid,
  .feelings-grid,
  .products-grid,
  .sell-grid,
  .unlock-grid,
  .support-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    padding-bottom: 16px !important;
    padding-right: 48px !important; /* room for fade */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Reset any grid-specific properties */
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    align-items: stretch;
    flex-wrap: nowrap !important;
  }

  .articles-grid::-webkit-scrollbar,
  .cards-grid::-webkit-scrollbar,
  .courses-grid::-webkit-scrollbar,
  .destinations-grid::-webkit-scrollbar,
  .downloads-grid::-webkit-scrollbar,
  .feature-grid::-webkit-scrollbar,
  .guides-grid::-webkit-scrollbar,
  .hub-cards-grid::-webkit-scrollbar,
  .hub-grid::-webkit-scrollbar,
  .ideas-grid::-webkit-scrollbar,
  .lessons-grid::-webkit-scrollbar,
  .lib-cat-grid::-webkit-scrollbar,
  .pricing-grid::-webkit-scrollbar,
  .reassure-grid::-webkit-scrollbar,
  .saved-grid::-webkit-scrollbar,
  .skills-grid::-webkit-scrollbar,
  .steps-grid::-webkit-scrollbar,
  .stories-grid::-webkit-scrollbar,
  .testi-grid::-webkit-scrollbar,
  .toolkit-grid::-webkit-scrollbar,
  .tools-grid::-webkit-scrollbar,
  .whats-new-grid::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar,
  .quotes-grid::-webkit-scrollbar,
  .resources-grid::-webkit-scrollbar,
  .links-grid::-webkit-scrollbar,
  .info-grid::-webkit-scrollbar,
  .feelings-grid::-webkit-scrollbar,
  .products-grid::-webkit-scrollbar,
  .sell-grid::-webkit-scrollbar,
  .unlock-grid::-webkit-scrollbar,
  .support-grid::-webkit-scrollbar { display: none; }

  /* ── All direct children of carousel grids: fixed card width ── */
  .articles-grid > *,
  .cards-grid > *,
  .courses-grid > *,
  .destinations-grid > *,
  .downloads-grid > *,
  .feature-grid > *,
  .guides-grid > *,
  .hub-cards-grid > *,
  .hub-grid > *,
  .ideas-grid > *,
  .lessons-grid > *,
  .lib-cat-grid > *,
  .pricing-grid > *,
  .reassure-grid > *,
  .saved-grid > *,
  .skills-grid > *,
  .steps-grid > *,
  .stories-grid > *,
  .testi-grid > *,
  .toolkit-grid > *,
  .tools-grid > *,
  .whats-new-grid > *,
  .why-grid > *,
  .quotes-grid > *,
  .resources-grid > *,
  .links-grid > *,
  .info-grid > *,
  .feelings-grid > *,
  .products-grid > *,
  .sell-grid > *,
  .unlock-grid > *,
  .support-grid > * {
    flex: 0 0 auto !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    scroll-snap-align: start;
  }

  /* ── Wider cards for grids that typically have fewer, bigger items ── */
  .pricing-grid > *,
  .skills-grid > *,
  .destinations-grid > * {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }

  /* ── Narrower cards for small icon-style grids ── */
  .why-grid > *,
  .steps-grid > *,
  .reassure-grid > * {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
  }

  /* ── "Swipe to see more" hint label ── */
  .w2r-swipe-hint {
    display: block !important;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7B2FBE;
    text-align: center;
    margin-top: -4px;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    opacity: 0.75;
  }
}

/* Hide swipe hint on desktop */
.w2r-swipe-hint {
  display: none;
}

/* ── Ensure page body doesn't clip carousel overflow ── */
@media (max-width: 768px) {
  .page-container,
  .inner,
  .content-wrap,
  .section-inner,
  .hub-container,
  .lib-section-inner,
  .features-section,
  .compare-section {
    overflow-x: visible !important;
  }
}

/* ── Download card grid — stack to single column on mobile ── */
@media (max-width: 600px) {
  .download-grid {
    grid-template-columns: 1fr !important;
  }
}
