/* ================================
   Comic Neue – Regular
   ================================ */
@font-face {
  font-family: 'Comic Neue';
  src: url('/fonts/Comic_Neue/ComicNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ================================
   Comic Neue – Bold
   ================================ */
@font-face {
  font-family: 'Comic Neue';
  src: url('/fonts/Comic_Neue/ComicNeue-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ================================
   Comic Neue – Italic
   ================================ */
@font-face {
  font-family: 'Comic Neue';
  src: url('/fonts/Comic_Neue/ComicNeue-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ================================
   Comic Neue – Bold Italic
   ================================ */
@font-face {
  font-family: 'Comic Neue';
  src: url('/fonts/Comic_Neue/ComicNeue-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Comic Neue', cursive, sans-serif;
}

html {
  font-size: 16px; 
}

main {
  flex: 1;
}

 
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff, #b1cfe6);
  color: #333;
  font-family: 'Comic Neue', sans-serif;
  font-size: 1rem;       
  line-height: 1.6;
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* ================================
   Typography Scale (Responsive)
   ================================ */

h1 {
  font-size: clamp(1.2rem, 6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
}

p, li, input, button {
  font-size: 1.2rem;
}

small {
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────── */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 5rem;
  gap: 0.6rem;
  position: relative;
  background: linear-gradient(135deg, #f3f9ff 0%, #fff8e1 100%);
}

.hero-text {
  flex: 1 1 450px;
  max-width: 550px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #0d89df;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #333;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: clamp(1.3rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #555;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: #fff8e1;
  color: #333;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  margin: 8px 0;
}

.btn.secondary {
  background: #0a8bde;
  color: #fff;
  box-shadow: 0 5px 15px rgba(100, 181, 246, 0.4);
  margin: 8px 0;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Image */
.hero-image {
  flex: 1 1 400px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  animation: float 3s ease-in-out infinite;
}


/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ================================
   ABOUT PAGE
================================ */

.about-section {
  max-width: 750px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: left;
}

.about-section h2 {
  margin-bottom: 1rem;
  color: #0a2a43;
}

.about-section p {
  margin-bottom: 1.2rem;
  color: #4a5b6b;
  line-height: 1.7;
}

/* Soft background variation */
.alt-bg {
  background: #f3f9ff;
  padding: 2rem;
  border-radius: 16px;
}

/* Image control */
.about-image {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.about-image img {
  max-width: 320px;
  width: 100%;
}

/* ─────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .tagline p {
  font-size: clamp(1.6rem, 2vw, 1.4rem);
  }

  .hero-image {
    max-width: 350px;
    /* margin-bottom: 2rem; */
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .tagline {
    font-size: clamp(2rem, 2.7vw, 1.5rem);
  }

  .hero-text p {
    font-size: clamp(1.5rem, 2vw, 1.2rem);
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1.2rem;
  }

}

/* ================================
   MAIN NAVIGATION (Desktop + Mobile)
   ================================ */
.main-nav {
  background: linear-gradient(135deg, #f3f9ff 0%, #fff8e1 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d89df;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

/* Desktop horizontal menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #4a5b6b;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.2s ease;
  display: block;
}

.nav-menu a:hover {
  background: #f3f9ff;
  color: #0d89df;
}

.nav-menu a[aria-current="page"] {
  background: #fff8e1;
  color: #333;
  font-weight: 700;
}

/* ================================
   MOBILE MENU TOGGLE
   ================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0d89df;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #f3f9ff;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid #0d89df;
  outline-offset: 2px;
}

.close-icon {
  color: #e74c3c;
}

/* ================================
   MOBILE RESPONSIVE (Nav Only)
   ================================ */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.8rem 1rem;
    position: relative;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f3f9ff 0%, #fff8e1 100%);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 16px 16px;
    border-top: 2px solid #f3f9ff;
    z-index: 1000000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.25s ease-out;
  }

  .nav-menu a {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
  }

  .nav-menu a:hover {
    background: #f3f9ff;
  }

  .nav-menu a[aria-current="page"] {
    background: #fff8e1;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.2rem;
  }

  .mobile-menu-toggle {
    font-size: 1.3rem;
  }
}

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

/* ================================
   CTA BUTTONS
   ================================ */
.btn-primary {
  background: #0a8bde;
  color: #fff;
  box-shadow: 0 5px 15px rgba(100, 181, 246, 0.4);
}

.btn-secondary {
  background: #f3f9ff;
  color: #0a2a43;
  box-shadow: 0 4px 12px rgba(13, 137, 223, 0.15);
  border: 2px solid #0d89df;
}

.btn-primary:hover {
  background: #0980c8;
  box-shadow: 0 8px 20px rgba(100, 181, 246, 0.6);
}

.btn-secondary:hover {
  background: #e0f2fe;
  box-shadow: 0 8px 20px rgba(13, 137, 223, 0.25);
}

/* ================================
   LAST UPDATED TIMESTAMP
   ================================ */
.last-updated {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ================================
   FOOTER ENHANCEMENTS
   ================================ */
.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────────
   PRECIFIO FEATURES TIMELINE (BRANDED)
   ───────────────────────────────────────────── */

.features-timeline {
  background: linear-gradient(180deg, #fff8e1 0%, #f3f9ff 100%);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.features-timeline h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 4.5rem;
  color: #0a2a43;
}

/* ─────────────────────────────────────────────
   TIMELINE CONTAINER
   ───────────────────────────────────────────── */

.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Base vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: rgba(10,139,222,0.15);
}

/* ─────────────────────────────────────────────
   TIMELINE ITEMS
   ───────────────────────────────────────────── */

.timeline-item {
  display: flex;
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade-in animation */
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Odd = right card, even = left card */
.timeline-item:nth-child(odd) {
  justify-content: flex-end;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

/* ─────────────────────────────────────────────
   CONTENT CARD
   ───────────────────────────────────────────── */

.timeline-content {
  background: #ffffff;
  padding: 1.6rem 1.8rem;
  width: 44%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(10,139,222,0.12);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover lift */
.timeline-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(10,139,222,0.22);
}

.timeline-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: #0a2a43;
}

.timeline-content p {
  color: #4a5b6b;
  line-height: 1.6;
}

.timeline-content em {
  color: #0a8bde;
  font-style: italic;
}

/* Connector pseudo line */
.timeline-content::before {
  content: "";
  position: absolute;
  top: 26px;
  width: 26px;
  height: 2px;
  background: rgba(10,139,222,0.35);
}

/* Connector for left/right cards */
.timeline-item:nth-child(odd) .timeline-content::before {
  right: -26px; /* points to the right */
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -26px; /* points to the left */
}

/* ─────────────────────────────────────────────
   ICON NODE
   ───────────────────────────────────────────── */

.timeline-icon {
  position: absolute;
  top: 16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0a8bde, #6ec1ff);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 2;
  box-shadow: 0 0 0 6px #fff8e1;
  transition: left 0.3s ease, right 0.3s ease;
}

/* Odd items (cards originally on right) */
.timeline-item:nth-child(odd) .timeline-icon {
  right: -84px; /* moves icon along connector, left of card */
  left: auto;
}

/* Even items (cards originally on left) */
.timeline-item:nth-child(even) .timeline-icon {
  left: -84px; /* same offset from the connector line */
  right: auto;
}


/* ─────────────────────────────────────────────
   MOBILE FALLBACK
   ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    justify-content: flex-start;
  }

  .timeline-icon {
    left: 20px !important;
    right: auto !important;
    transform: none;
  }

  .timeline-content {
    width: 100%;
    margin-left: 70px;
  }

  .timeline-content::before {
    display: none;
  }
}

/* Value Section */
.value {
  padding: 3rem 2rem;
  background: #e3f2fd;
}

.value h2 {
  margin-bottom: 1.5rem;
  color: #1976d2;
}

.value ul {
  list-style: none;
  max-width: 500px;
  margin: auto;
  text-align: left;
}

.value li {
  background: white;
  margin: 0.5rem 0;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.alt-link{
  margin: 5px 0;
}

.alt-link a {
   text-decoration: none;
  color: #1979d2;
  font-weight: 700;
}

/* ================================
   FEATURES PAGE STYLING
   ================================ */

/* Intro text below hero */
.features-intro {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  color: #4a5b6b;
  line-height: 1.7;
}

/* The grid container */
.features-grid {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

/* Each feature card */
.feature-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(13, 137, 223, 0.08);
  border: 1px solid rgba(177, 207, 230, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent line on each card */
.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d89df, #ffc107);
  border-radius: 20px 20px 0 0;
  opacity: 0.7;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(13, 137, 223, 0.15);
}

.feature-item h2 {
  font-size: 1.25rem;
  color: #0a2a43;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.feature-item p {
  font-size: 1rem;
  color: #4a5b6b;
  line-height: 1.6;
}

/* Number badge (optional - adds visual interest) */
.feature-item {
  counter-increment: feature;
}

.feature-item h2::before {
  content: counter(feature, decimal-leading-zero);
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d89df;
  opacity: 0.15;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* CTA section at bottom */
.features-cta {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f3f9ff 0%, #fff8e1 100%);
  border-radius: 24px;
}

.features-cta h2 {
  color: #0a2a43;
  margin-bottom: 1rem;
}

.features-cta p {
  color: #4a5b6b;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ================================
   SMALL HERO (for inner pages)
   ================================ */
.small-hero {
  padding: 2.5rem 2rem;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  min-height: auto;
}

.small-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.small-hero .tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================
   MOBILE RESPONSIVE (Features)
   ================================ */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 1rem;
  }

  .feature-item {
    padding: 1.5rem;
  }

  .feature-item h2::before {
    font-size: 2rem;
  }

  .features-cta {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  .features-intro {
    padding: 0 1rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    gap: 1rem;
  }

  .feature-item {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .feature-item h2 {
    font-size: 1.15rem;
  }
}

/* ================================
   LEGAL PAGES (Privacy / Terms)
================================ */

.legal-container,
.learn-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: left;
}

.legal-date {
  margin-bottom: 2rem;
  color: #555;
}

.learning-link{
 text-decoration: none;
  font-weight: 700;
  color: #1976d2;
}

.learning-link:hover{
   color: #2563eb;
   text-decoration: underline;
}

.legal-block,
.learn-card {
  margin-bottom: 2.2rem;
}

.legal-block h2 {
  margin-bottom: 0.6rem;
  color: #0a2a43;
}

.legal-block p {
  color: #4a5b6b;
  line-height: 1.7;
}

.legal-block ul {
  padding-left: 1.2rem;
}

.legal-block li {
  margin-bottom: 0.6rem;
  color: #4a5b6b;
}


/* ================================
   FAQ PAGE
================================ */


.faq-container {
  max-width: 900px;
  margin: auto;
  padding: 30px 20px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  margin-bottom: 5px;
}

.faq-item p {
  line-height: 1.6;
}


/* ================================
   BLOG PAGE
================================ */

.blog-card {
  background: linear-gradient(135deg, #fff8e1 0%, #f3f9ff 100%);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
  margin-bottom: 5px;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 14px;
  margin-bottom: 15px;
}

.blog-card a {
  font-weight: bold;
  color: #4a90e2;
  text-decoration: none;
}

.blog-content {
  max-width: 800px;
  margin: auto;
  padding: 30px 20px;
  line-height: 1.8;
  font-size: 16px;
  text-align: left;
}

.blog-content h2 {
  margin-top: 30px;
  font-size: 22px;
}

.blog-content p {
  margin: 15px 0;
}

.blog-content ul {
  margin: 10px 0 20px 20px;
}

.blog-content li {
  margin-bottom: 8px;
}

/* IMAGE SUPPORT */
.blog-image {
  margin-bottom: 20px;
}

.blog-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* MOBILE */
@media (max-width: 600px) {
  .blog-content {
    padding: 20px 15px;
  }
}


/* ================================
   CONTACT PAGE
================================ */

.contact-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.contact-intro {
  max-width: 600px;
  margin: 0.5rem auto 2.5rem;
  color: #4a5b6b;
  line-height: 1.7;
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

/* CARD */
.contact-card {
  background: #ffffff;
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(10,139,222,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(10,139,222,0.25);
}

.contact-card h3 {
  margin-bottom: 0.6rem;
  color: #0a8bde;
}

.contact-card p {
  margin-bottom: 0.6rem;
  color: #555;
}

.contact-card a {
  text-decoration: none;
  font-weight: 700;
  color: #1976d2;
}

/* Footer */
.footer {
  background: #f3e5f5;
  color: #333;
  padding: 50px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.footer h3,
.footer h4 {
  margin-bottom: 10px;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

.footer a {
  display: block;
  color: #333;
  text-decoration: none;
  margin: 6px 0;
  font-size: 14px;
  transition: 0.3s;
}

.footer a:hover {
  color: #1976d2;
  transform: translateX(4px);
  font-weight: 700;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  opacity: 0.7;
}


/* ─────────────────────────────────────────────
   AUTH HERO (SMALL VARIANT)
   ───────────────────────────────────────────── */
.small-hero {
  padding: 2rem 1.5rem;
  justify-content: center;
  text-align: center;
}

.small-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.small-hero .tagline {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  color: #444;
}

/* ─────────────────────────────────────────────
   AUTH FORMS (LOGIN / SIGNUP / RESET)
   ───────────────────────────────────────────── */

.auth-form {
  background: #ffffff;
  max-width: 420px;
  margin: 3rem auto 1.5rem;
  padding: 2.2rem 2rem;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(10, 139, 222, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 2px solid #e0e0e0;
  font-size: 1.1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Password Container */
.password-container {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.password-container input {
  width: 100%;
  padding: 12px 45px 12px 16px;   /* left padding for 🔒 feel, right for eye */
  box-sizing: border-box;
  font-size: 1rem;
}

/* Eye Icon */
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.25rem;
  color: #666;
  z-index: 10;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #333;
}

.auth-form input:focus {
  border-color: #0a8bde;
  box-shadow: 0 0 0 4px rgba(10, 139, 222, 0.15);
}

.auth-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.15rem;
}

/* AUTH PAGE LINKS */
.alt-link {
  margin-top: 0.8rem;
  font-size: 1rem;
}

.alt-link a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────
   UPGRADE PAGE
   ───────────────────────────────────────────── */

.upgrade-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  flex-wrap: wrap;
}

.plan {
  background: #ffffff;
  padding: 2rem;
  width: 280px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.plan h2 {
  color: #0a8bde;
  margin-bottom: 0.6rem;
}

.plan p {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

/* ===============================
   VIDEO EXPLAIN SECTION
================================ */

.video-explain {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #f3f9ff 0%, #fff8e1 100%);
  text-align: center;
}

.video-explain h2 {
  color: #0a2a43;
  margin-bottom: 0.8rem;
  font-size: 2.4rem;
}

.video-subtext {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.25rem;
  color: #4a5b6b;
  line-height: 1.7;
}

/* ===============================
   GRID
================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===============================
   CARD
================================ */

.video-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(10,139,222,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(10,139,222,0.25);
}

/* ===============================
   POSTER IMAGE
================================ */

.video-poster {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: block;
  object-fit: cover;
}

/* ===============================
   IFRAME VIDEO
================================ */

.video-card iframe {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: none;
}

/* ===============================
   TEXT
================================ */

.video-card h3 {
  margin-bottom: 0.4rem;
  color: #0a8bde;
  font-size: 1.25rem;
}

.video-card p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

/* ===============================
   CTA BUTTON (top left if used)
================================ */

.video-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 22px;
  background: #0a8bde;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(10, 139, 222, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.video-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 26px rgba(10, 139, 222, 0.5);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .video-explain h2 {
    font-size: 2rem;
  }

  .video-subtext {
    font-size: 1.1rem;
  }

  .video-btn {
    top: 1rem;
    left: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .video-explain {
    padding: 3.5rem 1.2rem;
  }

  .video-card {
    padding: 1.25rem;
  }
}

.hidden{
  display: none;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index:19999; 
}

/* Only show when not hidden */
.loader:not(.hidden) {
    display: flex;
}


.loader::after {
    content: '';
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #3498db; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


