/* ============================================================
   myrscit.com — style.css
   Complete stylesheet for RS-CIT preparation website
   ============================================================ */

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

:root {
  --primary: #1a56db;
  --primary-dark: #1342b5;
  --primary-light: #e8f0fe;
  --primary-xlight: #f0f5ff;
  --accent: #f59e0b;
  --success: #059669;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f7ff;
  --bg-dark: #0f172a;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 86, 219, 0.09);
  --shadow-md: 0 8px 32px rgba(26, 86, 219, 0.13);
  --shadow-lg: 0 16px 48px rgba(26, 86, 219, 0.18);
  --nav-h: 64px;
  --font: 'Sora', sans-serif;
  --transition: all 0.22s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── SECTION BASE ── */
section {
  padding: 72px 0;
}

section.bg-white { background: var(--bg); }
section.bg-alt   { background: var(--bg-alt); }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-top: 5px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-success:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 0.95rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.78rem;
  border-radius: 7px;
}

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: transform 0.45s, opacity 0.45s;
  opacity: 0;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: none;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.09);
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
}

.nav-logo .brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: none;
  border: none;
  transition: background 0.2s;
}

.hamburger:hover {
  background: var(--primary-light);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#home {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, #eef2ff 0%, #f5f9ff 55%, #e8f8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,86,219,0.08), rgba(99,179,237,0.06));
}

.hero-shapes span:nth-child(1) { width: 500px; height: 500px; top: -160px; right: -100px; }
.hero-shapes span:nth-child(2) { width: 300px; height: 300px; bottom: -100px; left: -80px; }
.hero-shapes span:nth-child(3) { width: 160px; height: 160px; top: 38%; right: 22%; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(26,86,219,0.09);
}

.hero-badge .live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

#home h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

#home h1 .gradient-text {
  background: linear-gradient(135deg, #1a56db, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 440px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.73rem;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 28px 64px rgba(26,86,219,0.3);
  animation: float 4s ease-in-out infinite;
  position: relative;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.hero-ring-inner {
  width: 80%;
  height: 80%;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hero-ring-inner img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: contain;
}

.hero-ring-inner span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-float-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero-float-card {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-float-card .hfc-icon { font-size: 1.3rem; }
.hero-float-card .hfc-text strong { display: block; font-size: 0.72rem; }
.hero-float-card .hfc-text small { color: var(--text-muted); font-size: 0.64rem; }

.hero-float-card:nth-child(1) {
  top: 8%;
  left: -8%;
  animation: float 3.5s 0.5s ease-in-out infinite;
}

.hero-float-card:nth-child(2) {
  bottom: 8%;
  right: -5%;
  animation: float 4s 1s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   CARDS GRID — 4 col desktop, 2 col mobile
══════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #c7d7f8;
}

.card-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #d1d5db;
  letter-spacing: 0.04em;
}

.card-ribbon {
  position: absolute;
  top: 14px;
  right: -1px;
  background: var(--success);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px 3px 8px;
  border-radius: 5px 0 0 5px;
}

.card-icon { font-size: 1.8rem; line-height: 1; }
.card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.card p  { font-size: 0.77rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.card .btn { margin-top: auto; width: fit-content; }

/* Hidden cards (show more) */
.hidden-card { display: none; }

.show-more-wrap {
  text-align: center;
  margin-top: 28px;
}

/* Free Banner */
.free-banner {
  background: linear-gradient(135deg, var(--success), #047857);
  color: #fff;
  border-radius: 12px;
  padding: 13px 22px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════
   OLD PAPERS
══════════════════════════════════════════════ */
.papers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.paper-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: box-shadow 0.22s, border-color 0.22s;
}

.paper-item:hover {
  box-shadow: var(--shadow);
  border-color: #c7d7f8;
}

.paper-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.paper-year {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.paper-info h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.paper-info p  { font-size: 0.76rem; color: var(--text-muted); }

.papers-more { text-align: center; }

/* ══════════════════════════════════════════════
   TAB SWITCH — Admit Card & Result
══════════════════════════════════════════════ */
.tab-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin-bottom: 28px;
  background: var(--bg-alt);
}

.tab-btn {
  flex: 1;
  padding: 13px 20px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:first-child { border-radius: 10px 0 0 10px; }
.tab-btn:last-child  { border-radius: 0 10px 10px 0; }

.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.tab-pane {
  display: none;
  animation: tabFadeIn 0.3s ease;
}

.tab-pane.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.tab-card {
  background: linear-gradient(135deg, var(--primary-xlight) 0%, #fff 100%);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
}

.tab-card.green {
  background: linear-gradient(135deg, var(--success-light) 0%, #fff 100%);
}

.tab-card-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 14px; }
.tab-card h3   { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.tab-card p    { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.7; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-link-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: var(--transition);
  cursor: pointer;
}

.contact-link-card:hover {
  border-color: #c7d7f8;
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.clc-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clc-icon svg { width: 22px; height: 22px; }
.clc-icon.wa  { background: #dcfce7; color: #16a34a; }
.clc-icon.ig  { background: #fce7f3; color: #be185d; }

.clc-info h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.clc-info p  { font-size: 0.76rem; color: var(--text-muted); }

/* WhatsApp Message Box */
.wa-message-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}

.wa-message-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.wa-message-box .wa-hint {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.wa-textarea {
  width: 100%;
  min-height: 100px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  line-height: 1.6;
}

.wa-textarea:focus {
  border-color: var(--primary);
}

.wa-textarea.error {
  border-color: var(--danger);
}

.wa-send-btn {
  width: 100%;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.about-avatar-wrap { text-align: center; }

.about-avatar-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(26,86,219,0.13);
  overflow: hidden;
}

.about-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-badge {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 99px;
}

.about-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.about-info p {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.78;
  margin-bottom: 14px;
}

.about-address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.about-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.stat-item {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin-top: 22px;
}

.map-embed iframe { display: block; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-tagline { font-size: 0.83rem; }

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  transition: var(--transition);
}

.social-btn:hover { transform: translateY(-3px); }
.social-btn svg   { width: 18px; height: 18px; }
.social-btn.wa:hover { background: #25d366; }
.social-btn.ig:hover { background: linear-gradient(135deg, #f58529, #dd2a7b); }
.social-btn.yt:hover { background: #ff0000; }
.social-btn.tg:hover { background: #0088cc; }

.footer-divider {
  width: 60px;
  height: 1px;
  background: #1e293b;
}

.footer-bottom { font-size: 0.8rem; line-height: 1.9; }
.footer-credit { font-size: 0.77rem; margin-top: 4px; }
.footer-credit a { color: var(--primary); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* edited ftr */
/* Full-width divider — desktop only */
.full-footer-divider { display: none; }

/* Bottom bar: mobile = stacked & centered */
.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 0.8rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bar .footer-credit { margin-top: 0; }

/* Desktop */
@media (min-width: 992px) {
  .full-footer-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: #1e293b;
    margin: 28px 0 20px;
  }

  .footer-divider { display: none; } /* hide the short divider to avoid a double line */

  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-links { justify-content: flex-start; }
}

/* ══════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(26,86,219,0.38);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#back-to-top.show { display: flex; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 52px 0; }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
    animation: slideDown 0.25s ease;
  }

  .nav-links.open a {
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-inner  { grid-template-columns: 1fr; text-align: center; padding: 32px 0; }
  .hero-visual { display: none; }
  .hero-cta    { justify-content: center; }
  .trust-badges { justify-content: center; }
  .hero-sub    { margin-left: auto; margin-right: auto; }

  /* Cards — 2 columns on mobile */
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar-circle { width: 130px; height: 130px; }

  /* Papers */
  .paper-item { flex-direction: column; align-items: flex-start; }
  .paper-info { flex-direction: column; align-items: flex-start; }

  /* Tab */
  .tab-card { padding: 28px 18px; }

}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 16px 13px; }
  .card-icon { font-size: 1.4rem; }
  .card h3 { font-size: 0.82rem; }
  .tab-card h3 { font-size: 1.1rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.88rem; }
  .footer-socials { gap: 8px; }
}