/* ============================================================
   SAW FINLAND — Main Stylesheet
   Brand: Navy #1E3A5F | Gold #F59E0B | White #FFFFFF | Light #F8FAFC
   Font: Inter (Google Fonts)
   ============================================================ */

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

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2332;
  background: #ffffff;
}
/* Accessibility Font Controls */

.font-controls{
    display:flex;
    align-items:center;
    gap:6px;
    margin-right:18px;
}

.font-controls button{
    background:none;
    border:none;
    color:#fff;
    cursor:pointer;
    font-weight:700;
    transition:.2s;
    padding:2px 4px;
}

.font-controls button:nth-child(1){
    font-size:12px;
}

.font-controls button:nth-child(2){
    font-size:16px;
}

.font-controls button:nth-child(3){
    font-size:22px;
}

.font-controls button:hover{
    color:#FFD54F;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:    #1E3A5F;
  --navy-dark: #152a47;
  --navy-light: #2a4f7c;
  --gold:    #F59E0B;
  --gold-light: #FCD34D;
  --white:   #FFFFFF;
  --light:   #F8FAFC;
  --light2:  #EEF2F7;
  --text:    #1a2332;
  --text-muted: #64748b;
  --border:  #e2e8f0;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 2px 12px rgba(30,58,95,0.08);
  --shadow-md: 0 4px 24px rgba(30,58,95,0.12);
  --shadow-lg: 0 8px 40px rgba(30,58,95,0.16);
  --transition: 0.22s ease;
  --max-width: 1200px;
}

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Top Bar ──────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.topbar a:hover { color: var(--gold); }
.topbar-socials { display: flex; gap: 14px; align-items: center; }
.topbar-socials a { font-size: 0.85rem; }

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(30,58,95,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name { font-size: 1.1rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.nav-logo-sub { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--light2);
  color: var(--navy);
  font-weight: 600;
}

.nav-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(21,42,71,0.82) 0%,
    rgba(21,42,71,0.55) 55%,
    rgba(21,42,71,0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 0;
}

.hero-flag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

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

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Quick Nav Pills ──────────────────────────────────────── */
.quick-nav {
  background: var(--navy);
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-nav::-webkit-scrollbar { display: none; }

.quick-nav .container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: max-content;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.quick-pill:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}

/* ── Topic Cards Grid ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.topic-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.topic-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--light2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.topic-card:hover .card-icon { background: #dbeafe; }

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap var(--transition);
  margin-top: 4px;
}
.card-link:hover { gap: 10px; color: var(--gold); }
.card-link::after { content: '→'; }

/* ── Surfi Banner ─────────────────────────────────────────── */
.surfi-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.surfi-banner-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.surfi-banner-text p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 480px;
}
.surfi-banner-text span { color: var(--gold); font-weight: 600; }

/* ── Latest Guides ────────────────────────────────────────── */
.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.guide-card-img {
  height: 180px;
  background: var(--light2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.guide-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.guide-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--light2);
  color: var(--navy);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.guide-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ── Inner Page Hero ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0 52px;
  color: var(--white);
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
}

/* ── Content Sections ─────────────────────────────────────── */
.content-block { max-width: 820px; margin: 0 auto; }
.content-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light2);
}
.content-block h2:first-child { margin-top: 0; }
.content-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
.content-block p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-block ul {
  list-style: none;
  margin-bottom: 20px;
}
.content-block ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.7;
}
.content-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* ── Info Box ─────────────────────────────────────────────── */
.info-box {
  background: #EFF6FF;
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box.gold { background: #FFFBEB; border-color: var(--gold); }
.info-box.green { background: #F0FDF4; border-color: #16a34a; }
.info-box strong { color: var(--navy); display: block; margin-bottom: 6px; font-size: 0.9rem; }
.info-box p { margin: 0; font-size: 0.9rem; }

/* ── Step Cards ───────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-body p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Link Cards ───────────────────────────────────────────── */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.link-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.link-card:hover { border-color: var(--navy); background: var(--white); box-shadow: var(--shadow); }
.link-card .lc-icon { font-size: 1.4rem; }
.link-card .lc-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.link-card .lc-sub { font-size: 0.78rem; color: var(--text-muted); }
.link-card .lc-url { font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-top: 4px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  color: rgba(255,255,255,0.8);
}
.footer-social:hover { background: var(--gold); color: var(--navy); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 14px; border-radius: 8px; }
  /* Keep navbar sticky on mobile too — DO NOT set position:relative here */

  .hero-content { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }

  .cards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .surfi-banner { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr 1fr; }
  .topbar .container { justify-content: center; }
  .topbar-left { display: none; }
}

/* ============================================================
   UPGRADE STYLES — Sliders, Mobile Bottom Nav, Ad Box, Categories
   ============================================================ */

/* ── Ad Box ───────────────────────────────────────────────── */
.ad-box {
  background: var(--light2);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.ad-box span { font-size: 0.7rem; opacity: 0.6; }
.ad-section { padding: 16px 0; background: var(--white); }

/* ── Category Feature Cards ───────────────────────────────── */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: opacity var(--transition);
  opacity: 0;
}
.category-card.study::after  { background: #3B82F6; }
.category-card.work::after   { background: #10B981; }
.category-card.apt::after    { background: #F59E0B; }

.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.category-card:hover::after { opacity: 1; }

.cat-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.category-card.study .cat-icon  { background: #EFF6FF; }
.category-card.work .cat-icon   { background: #F0FDF4; }
.category-card.apt .cat-icon    { background: #FFFBEB; }

.cat-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}
.cat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.cat-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Slider Section ───────────────────────────────────────── */
.slider-section { padding: 48px 0 40px; }
.slider-section + .slider-section { padding-top: 0; }

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.slider-header-left { display: flex; align-items: center; gap: 12px; }

.slider-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.slider-icon.blue   { background: #EFF6FF; }
.slider-icon.green  { background: #F0FDF4; }
.slider-icon.amber  { background: #FFFBEB; }
.slider-icon.navy   { background: #EEF2F7; }
.slider-icon.red    { background: #FEF2F2; }

.slider-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.slider-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.slider-nav { display: flex; gap: 8px; }
.slider-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--navy);
  transition: all var(--transition);
  flex-shrink: 0;
}
.slider-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Scroll container */
.slider-track-wrap {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.slider-track:active { cursor: grabbing; }
.slider-track::-webkit-scrollbar { display: none; }

/* Slide Cards */
.slide-card {
  flex: 0 0 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slide-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.slide-card-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}
.slide-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.slide-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.slide-card-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.tag-blue   { background: #EFF6FF; color: #1D4ED8; }
.tag-green  { background: #F0FDF4; color: #15803D; }
.tag-amber  { background: #FFFBEB; color: #B45309; }
.tag-navy   { background: #EEF2F7; color: var(--navy); }
.tag-red    { background: #FEF2F2; color: #B91C1C; }

/* Mandatory Cards section */
.mandatory-section {
  background: linear-gradient(135deg, #0F2744 0%, var(--navy) 100%);
  padding: 52px 0;
}
.mandatory-section .slider-title { color: var(--white); }
.mandatory-section .slider-subtitle { color: rgba(255,255,255,0.6); }
.mandatory-section .slider-btn { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--white); }
.mandatory-section .slider-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.mandatory-card {
  flex: 0 0 240px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(4px);
}
.mandatory-card:hover { background: rgba(255,255,255,0.13); border-color: var(--gold); transform: translateY(-2px); }
.mandatory-card .mc-icon { font-size: 2rem; }
.mandatory-card .mc-title { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.mandatory-card .mc-desc { font-size: 0.78rem; color: rgba(255,255,255,0.65); line-height: 1.5; flex: 1; }
.mandatory-card .mc-price {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 4px;
  align-self: flex-start;
}

/* Government section */
.govt-section { background: var(--light); padding: 52px 0; }

/* ── Sticky Mobile Bottom Nav ─────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 2000;
  box-shadow: 0 -4px 20px rgba(30,58,95,0.1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav .mbn-inner {
  display: flex;
  align-items: stretch;
  height: 58px;
}

.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 4px;
  transition: all var(--transition);
  border-top: 2px solid transparent;
  position: relative;
}
.mbn-item:hover, .mbn-item.active {
  color: var(--navy);
  border-top-color: var(--navy);
}
.mbn-item.highlight {
  color: var(--gold);
}
.mbn-item.highlight:hover { color: #D97706; border-top-color: var(--gold); }

.mbn-icon { font-size: 1.2rem; line-height: 1; }

/* Add bottom padding to body on mobile to avoid content hidden behind bottom nav */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 68px; }
  .category-cards { grid-template-columns: 1fr; gap: 14px; }
  .slide-card { flex: 0 0 180px; }
  .mandatory-card { flex: 0 0 200px; }
}

@media (max-width: 480px) {
  .slide-card { flex: 0 0 160px; }
}

/* ============================================================
   SHARE BUTTON + RELATED POSTS SECTION
   ============================================================ */

/* ── Floating Share Bar (right side, desktop) ─────────────── */
.share-float {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-float-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.share-float-btn.fb   { background: #1877F2; }
.share-float-btn.wa   { background: #25D366; }
.share-float-btn.tw   { background: #1DA1F2; }
.share-float-btn.copy { background: var(--navy); }
.share-float-btn.copy.copied { background: #16a34a; }

.share-float-btn:hover { transform: scale(1.12); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.share-float-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
}

/* ── Inline Share Strip (inside page, below hero) ─────────── */
.share-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--light);
  border-radius: var(--radius);
  margin: 24px 0;
  flex-wrap: wrap;
}

.share-strip-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
  white-space: nowrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--white);
}
.share-btn.fb   { background: #1877F2; }
.share-btn.wa   { background: #25D366; }
.share-btn.tw   { background: #1a1a2e; }
.share-btn.copy { background: var(--navy); color: var(--white); }
.share-btn.copy.copied { background: #16a34a; }
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Related Posts / Categories at Bottom of Pages ────────── */
.related-section {
  background: var(--light);
  padding: 52px 0 48px;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-card .rc-icon { font-size: 1.5rem; }
.related-card .rc-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--light2);
  color: var(--navy);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.related-card .rc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.related-card .rc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.related-card .rc-arrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
}

/* ── Sticky Navbar fix — ensure it's always on top ────────── */
.navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}
/* Topbar is NOT sticky — only the navbar below it */

@media (max-width: 768px) {
  .share-float { display: none; }
  .share-strip { padding: 12px 16px; }
}

/* ── Surfi-style single Share Button ─────────────────────── */
.saw-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  font-family: inherit;
}
.saw-share-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}
.saw-share-btn:active {
  transform: translateY(0);
}

/* Hide old share strip and float — replaced by single button */
.share-strip,
.share-float { display: none !important; }

/* ============================================================
   SIMPLIFIED FOOTER + PARTNER SLIDER + ARTICLES SLIDER
   ============================================================ */

/* ── Simplified Footer ────────────────────────────────────── */
.footer-simple {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 36px 0 20px;
}

.footer-simple-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-simple-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-simple-brand img { height: 40px; width: auto; }
.footer-simple-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-simple-brand-tag {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.footer-simple-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-simple-nav a {
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-simple-nav a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.footer-simple-socials {
  display: flex;
  gap: 10px;
}
.footer-simple-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
}
.footer-simple-social:hover { background: var(--gold); color: var(--navy); }

.footer-simple-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-simple-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-simple-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-simple-bottom a:hover { color: var(--gold); }

/* ── Partners / Associates Slider ────────────────────────── */
.partners-section {
  background: var(--light);
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.partners-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.partners-track-wrap {
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  cursor: grab;
}
.partners-track:active { cursor: grabbing; }
.partners-track::-webkit-scrollbar { display: none; }

.partner-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.partner-pill:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.partner-pill .pp-icon { font-size: 1.1rem; }

/* ── Latest Articles Slider (no image, text only) ─────────── */
.articles-section {
  background: var(--white);
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}

.article-card {
  flex: 0 0 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--light2);
  color: var(--navy);
  align-self: flex-start;
}
.article-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  flex: 1;
}
.article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-arrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}

@media (max-width: 768px) {
  .footer-simple-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-simple-bottom { flex-direction: column; align-items: flex-start; }
  .article-card { flex: 0 0 220px; }
}

/* ============================================================
   STICKY NAV — DEFINITIVE FIX
   The #site-nav div wraps both topbar + navbar.
   Making the wrapper sticky ensures both stay at the top.
   ============================================================ */

#site-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1100 !important;
  /* Override any inherited overflow that breaks sticky */
}

/* The inner .navbar no longer needs its own sticky — parent handles it */
.navbar {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}

/* ── Privacy Policy Table ─────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.content-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.content-block table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
}
.content-block table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.content-block table tr:nth-child(even) td { background: var(--light); }

/* ── Partners section — white background for clarity ─────── */
.partners-section {
  background: var(--white) !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Cookie Banner (global, injected by JS) ───────────────── */
#cookie-banner a { color: var(--gold); text-decoration: underline; }

/* ── Footer tagline (replaces nav pills) ─────────────────── */
.footer-simple-tagline p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}
