/* EXAMHINT deferred-chrome */

/* Click-to-play YouTube facade â€” no player JS until user clicks */
.yt-lite {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #0f172a;
  overflow: hidden;
}
.yt-lite__btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}
.yt-lite__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-lite__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 14px;
  background: rgba(23, 35, 34, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.yt-lite__play::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}
.yt-lite__btn:hover .yt-lite__play,
.yt-lite__btn:focus-visible .yt-lite__play {
  background: #f00;
}
.yt-lite--playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vl-video-container .yt-lite,
.video-wrapper .yt-lite {
  position: absolute;
  inset: 0;
}


/**
 * Footer - Professional Educational Website Design
 * Clean, trustworthy layout for exam preparation platform
 */

/* ===== Base ===== */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #0c1222 100%);
  color: #94a3b8;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-top: auto;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer a:hover {
  color: #60a5fa;
}

/* ===== Container ===== */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* ===== Main Section ===== */
.footer-main {
  padding: 3.5rem 0 2.5rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

/* ===== Brand Block ===== */
.footer-brand {
  max-width: 360px;
}

.footer-connect {
  margin-top: 1.5rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.footer-logo-link:hover .footer-logo-img {
  opacity: 1;
}

.footer-tagline {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #94a3b8;
  font-weight: 400;
}

/* ===== Column Titles ===== */
.footer-col-title {
  color: #f1f5f9;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* ===== Footer Lists ===== */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0;
}

.footer-list li + li {
  margin-top: 0.5rem;
}

.footer-link {
  display: inline-block;
  padding: 0.3rem 0;
  color: #94a3b8;
  font-size: 1.0625rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #60a5fa;
  transform: translateX(3px);
}

/* ===== Social ===== */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 1.4rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  transform: translateY(-2px);
}

.footer-connect-text {
  margin: 0;
  font-size: 1.0625rem;
  color: #94a3b8;
}

/* ===== Bottom Bar ===== */
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.85rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-line {
  margin: 0;
  font-size: 1.0625rem;
  color: #94a3b8;
  text-align: center;
  padding: 0 0.25rem;
}

/* Override global span,a { display:block } so copyright stays on one line */
.footer-bottom-line .footer-copy-line,
.footer-bottom-line .footer-copyright-link {
  display: inline !important;
}
.footer-bottom-line .footer-copy-line { white-space: nowrap; }


.footer-copyright-link {
  color: #60a5fa;
  font-weight: 500;
}

.footer-copyright-link:hover {
  color: #93c5fd;
}

.footer-sep {
  color: #64748b;
  margin: 0 0.25rem;
  user-select: none;
}


/* ===== Back to Top ===== */
.back-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 12px;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.back-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  color: #fff;
}

/* ===== Tablet ===== */
@media (max-width: 991px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-main {
    padding: 3rem 0 2rem;
  }
}

/* ===== Mobile ===== */
@media (max-width: 599px) {
  .footer-main {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-container {
    padding: 0 1.25rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-connect {
    margin-top: 1.25rem;
  }

  .footer-connect .footer-col-title { text-align: center; }

  /* Study Material & Jobs & Exams side by side on mobile */
  .footer-col {
    text-align: left;
    min-width: 0;
  }

  .footer-col-title {
    text-align: left;
  }

  .footer-list {
    text-align: left;
  }

  .footer-link:hover {
    transform: none;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-connect-text {
    text-align: center;
  }

  .footer-bottom {
    padding: 0.5rem 0;
  }

  .footer-bottom-line {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0 0.15rem;
  }

  .footer-col-title { font-size: 1.0625rem; }
  .footer-link { font-size: 1.0625rem; }
  .footer-tagline { font-size: 1.0625rem; }
  .footer-connect-text { font-size: 1.0625rem; }

  .back-top-btn {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }
}


/**
 * HIGH CONVERSION FLOATING SHARE BAR
 * Mobile-only (max-width: 768px) sticky bottom bar
 * Optimized for exam/job websites - WhatsApp & Telegram focus
 * SEO: semantic HTML, aria-labels, no heavy libraries
 */

/* ===== DESKTOP: Left sidebar (hidden on mobile) ===== */
.floating-share-desktop {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
}

.floating-share-desktop .floating-share-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.35rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 0 14px 14px 0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-left: none;
}

.floating-share-desktop .floating-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.floating-share-desktop .floating-share-btn:hover {
  background: #f1f5f9;
}

.floating-share-desktop .floating-share-btn svg {
  width: 24px;
  height: 24px;
}

/* Desktop: hide on mobile */
@media (max-width: 768px) {
  .floating-share-desktop {
    display: none !important;
  }
}

/* ===== MOBILE: Bottom sticky bar (visible only on mobile) ===== */
.floating-share-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-share-mobile.hidden {
  transform: translateY(100%);
}

.floating-share-mobile .share-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.floating-share-mobile .share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 64px;
  min-width: 64px;
  padding: 0.5rem 0.35rem;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.floating-share-mobile .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.floating-share-mobile .share-btn:active {
  transform: translateY(0);
}

.floating-share-mobile .share-btn svg {
  width: 28px;
  height: 28px;
}

.floating-share-mobile .share-btn span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

/* Facebook - #1877f2 */
.floating-share-mobile .share-btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  color: #fff;
}

.floating-share-mobile .share-btn-facebook span {
  color: rgba(255, 255, 255, 0.95);
}

.floating-share-mobile .share-btn-facebook:hover {
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
}

/* WhatsApp - #25D366 */
.floating-share-mobile .share-btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
}

.floating-share-mobile .share-btn-whatsapp span {
  color: rgba(255, 255, 255, 0.95);
}

.floating-share-mobile .share-btn-whatsapp:hover {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Telegram - #0088cc */
.floating-share-mobile .share-btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: #fff;
}

.floating-share-mobile .share-btn-telegram span {
  color: rgba(255, 255, 255, 0.95);
}

.floating-share-mobile .share-btn-telegram:hover {
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

/* Copy Link - neutral gray */
.floating-share-mobile .share-btn-copy {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #fff;
}

.floating-share-mobile .share-btn-copy span {
  color: rgba(255, 255, 255, 0.95);
}

.floating-share-mobile .share-btn-copy:hover {
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.35);
}

.floating-share-mobile .share-btn-copy.copied {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Native Share - dark gray */
.floating-share-mobile .share-btn-native {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #fff;
}

.floating-share-mobile .share-btn-native span {
  color: rgba(255, 255, 255, 0.95);
}

.floating-share-mobile .share-btn-native:hover {
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.4);
}

/* Copy tooltip */
.floating-share-mobile .share-btn-copy .copy-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.35rem 0.75rem;
  background: #1e293b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.floating-share-mobile .share-btn-copy .copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.floating-share-mobile .share-btn-copy.show-tooltip .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

.floating-share-mobile .share-btn {
  position: relative;
}

/* Mobile only - show bottom bar */
@media (min-width: 769px) {
  .floating-share-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .floating-share-mobile {
    display: block;
  }

  /* Bottom padding reserved in layout critical CSS / floating-share.css via media query */
  main#main {
    padding-bottom: 90px;
  }
}

/* Dark mode */
html.dark .floating-share-mobile {
  background: rgba(15, 23, 42, 0.98);
  border-top-color: rgba(51, 65, 85, 0.9);
}

html.dark .floating-share-desktop .floating-share-bar {
  background: rgba(30, 41, 59, 0.97);
  border-color: rgba(51, 65, 85, 0.9);
}

html.dark .floating-share-desktop .floating-share-btn {
  color: #94a3b8;
}

html.dark .floating-share-desktop .floating-share-btn:hover {
  background: rgba(51, 65, 85, 0.6);
}
