/* ==========================================================
   GLOBAL BASE — typography scale for every page
   ========================================================== */
html {
  font-size: 19px;
  scroll-behavior: smooth;
}

@media (max-width: 1024px) {
  html { font-size: 18px; }
}

@media (max-width: 767px) {
  html { font-size: 16px; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
}

/* ==========================================================
   ASK4LOANS — 3D DESIGN SYSTEM
   Pure CSS. No frameworks. Hardware-accelerated.
   ========================================================== */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Brand */
  --primary: #0000FF;
  --primary-dark: #0000cc;
  --primary-light: #4d4dff;
  --primary-glow: rgba(0, 0, 255, 0.35);

  /* Neutral */
  --secondary: #0a0a2e;
  --headline: #0d0d33;
  --body: #5a6070;
  --border: #e6e6f0;
  --light: #f5f5ff;
  --white: #ffffff;

  /* Accents */
  --accent-cyan: #00C2FF;
  --accent-violet: #7C3AED;
  --accent-orange: #FF6B35;
  --accent-green: #10B981;
  --accent-pink: #EC4899;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0000FF 0%, #4d4dff 100%);
  --grad-cyan: linear-gradient(135deg, #00C2FF 0%, #0000FF 100%);
  --grad-violet: linear-gradient(135deg, #7C3AED 0%, #0000FF 100%);
  --grad-orange: linear-gradient(135deg, #FF6B35 0%, #EC4899 100%);
  --grad-dark: linear-gradient(135deg, #0a0a2e 0%, #1a1a4d 100%);
  --grad-mesh: radial-gradient(circle at 20% 30%, rgba(0,0,255,0.15), transparent 40%),
               radial-gradient(circle at 80% 70%, rgba(0,194,255,0.12), transparent 40%),
               radial-gradient(circle at 50% 100%, rgba(124,58,237,0.10), transparent 45%);

  /* Shadows — 3D layered */
  --shadow-sm: 0 2px 8px rgba(10, 10, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 10, 46, 0.10);
  --shadow-lg: 0 20px 45px rgba(10, 10, 46, 0.14);
  --shadow-xl: 0 30px 70px rgba(10, 10, 46, 0.18);
  --shadow-glow: 0 20px 50px -10px var(--primary-glow);
  --shadow-inner: inset 0 1px 2px rgba(255,255,255,0.7);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Manrope', sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 100px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.4s;
  --dur-slow: 0.8s;
}
html {
  scroll-behavior: smooth;
}
/* ============ RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  /* No overflow-x — breaks sticky */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) var(--ease);
}

ul, ol { list-style: none; }

/* Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb {
  background: var(--grad-primary);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--headline);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(32px, 5vw, 62px); font-weight: 900; }
h2 { font-size: clamp(26px, 4vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 30px); }
h4 { font-size: clamp(18px, 2vw, 22px); }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ============ LAYOUT ============ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.grid-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
}

.section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

/* ============ BUTTONS — 3D MAGNETIC ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--r-pill);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  border: none;
  transition: transform var(--dur-med) var(--ease-spring),
              box-shadow var(--dur-med) var(--ease);
  transform-style: preserve-3d;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  white-space: nowrap;
}

/* Shine sweep */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  transition: left 0.7s var(--ease-out);
  z-index: 1;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }

.btn > * { position: relative; z-index: 2; }

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 10px 30px -8px var(--primary-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px -8px var(--primary-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -8px rgba(255, 255, 255, 0.3);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -8px var(--primary-glow);
}

.btn-dark {
  background: var(--headline);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -8px var(--primary-glow);
}

/* ============ SUB-HEADING ============ */
.sub-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  position: relative;
}

.sub-heading::before,
.sub-heading::after {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.sub-heading.light { color: #8f8fff; }

/* Arrow-left variant */
.sub-heading.arrow-left::before {
  width: 45px;
  height: 2px;
  background: var(--primary);
  opacity: 1;
  position: relative;
}
.sub-heading.arrow-left::after { display: none; }

/* ============ SECTION HEADINGS ============ */
.section-heading {
  text-align: center;
  margin-bottom: 65px;
  position: relative;
  z-index: 2;
}
.section-heading h2 { max-width: 780px; margin: 0 auto; }
.light-heading { color: var(--white); }

/* ============ 3D CARD BASE ============ */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out),
              box-shadow 0.6s var(--ease);
  will-change: transform;
  isolation: isolate;
}

.card-3d::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(0,0,255,0.6),
    rgba(0,194,255,0.4),
    rgba(124,58,237,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  z-index: -1;
  pointer-events: none;
}
.card-3d:hover::before { opacity: 1; }

/* ============ SCROLL-REVEAL ANIMATIONS ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="left"].is-visible { transform: translateX(0); }

[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal="scale"].is-visible { transform: scale(1); }

[data-reveal="flip"] { transform: perspective(1000px) rotateY(-25deg); }
[data-reveal="flip"].is-visible { transform: perspective(1000px) rotateY(0); }

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ============ SPLIT TEXT ANIMATION ============ */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-90deg);
  transform-origin: bottom;
  animation: charReveal 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.03s);
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* ============ FLOATING ANIMATION ============ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

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

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* ============ WAVE DIVIDER ============ */
.wave-divider {
  display: block;
  width: 100%;
  height: 80px;
  margin-top: -1px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

/* ============ DECORATIVE BLOBS ============ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: blob 12s ease-in-out infinite;
}

.blob--primary { background: var(--primary); }
.blob--cyan { background: var(--accent-cyan); }
.blob--violet { background: var(--accent-violet); }
.blob--orange { background: var(--accent-orange); }

/* ============ DOTTED GRID BG ============ */
.dot-grid {
  background-image: radial-gradient(circle, rgba(0,0,255,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-primary);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999 !important;
  opacity: 0;
  visibility: hidden;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 20px 40px -6px var(--primary-glow);
}

.scroll-top::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse-ring 2s ease-out infinite;
  pointer-events: none;
}

/* ============ PAGE HERO (shared) ============ */
.page-hero {
  position: relative;
  padding: 130px 0 150px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5ff 0%, #e6e6ff 50%, #f0f0ff 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,255,0.15), transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,255,0.15), transparent 70%);
  animation: floatSlow 10s ease-in-out infinite;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  color: var(--headline);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.03em;
}

.page-hero h1::after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  margin: 20px auto 0;
  background: var(--grad-primary);
  border-radius: 3px;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.breadcrumb {
  font-size: 15px;
  color: var(--body);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  padding: 8px 20px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  border: 1px solid rgba(0,0,255,0.1);
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .current { color: var(--headline); font-weight: 600; }

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1;
}

/* ============ GLASS CARD ============ */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

/* ============ NOISE TEXTURE OVERLAY ============ */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.3'/></svg>");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .grid-2 { gap: 45px; }
  .grid-7 { grid-template-columns: repeat(4, 1fr); }
  .page-hero { padding: 100px 0 120px; }
}

@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 35px; }
  .grid-7 { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .btn { padding: 13px 24px; font-size: 14px; }
  .page-hero { padding: 80px 0 100px; }
  .page-hero h1::after { width: 70px; height: 4px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ==========================================================
   GLOBAL RESPONSIVE OVERRIDES (MOBILE, TABLET, LAPTOP)
   ========================================================== */

/* 1. GLOBAL RESET FOR OVERFLOW (Stops horizontal scrolling) */
html, body {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* 2. TYPOGRAPHY & SPACING SCALES */
@media (max-width: 1024px) {
  html { font-size: 17px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  h1, .hero-title { font-size: clamp(32px, 8vw, 42px) !important; }
  h2, .section-title { font-size: clamp(26px, 6vw, 32px) !important; }
  h3 { font-size: clamp(20px, 5vw, 24px) !important; }
  p { font-size: 15px !important; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 12px; }
  .section { padding: 40px 0; }
  h1, .hero-title { font-size: clamp(28px, 8vw, 36px) !important; }
  h2, .section-title { font-size: clamp(24px, 6vw, 28px) !important; }
}

/* 3. FORCE STACKING OF GRIDS (Every 2-column layout becomes 1-column) */
@media (max-width: 900px) {
  /* Generic grids used across pages */
  .grid-2, 
  .hero-grid,
  .about-grid,
  .contact-grid,
  .calc-wrapper,
  .pl-hero-actions-inner,
  .footer-cta-inner,
  .expertise-grid,
  .skills-grid,
  .blog-layout,
  .trust-faq-grid,
  .blog-grid,
  .footer-grid,
  .process-cta-card,
  .blog-cta-card {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  /* Make sure images don't overflow their containers */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fix specific column orders on mobile */
  .about-image, 
  .skills-image, 
  .expertise-image, 
  .pl-hero-actions-inner {
    order: -1; /* Move images to the top on mobile */
  }
}

/* 4. NAVIGATION & HEADER FIXES */
@media (max-width: 1024px) {
  /* Ensure hamburger is visible */
  .hamburger { display: flex !important; z-index: 10000; }
  
  /* Hide desktop nav and show slide-out */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #0a0e27;
    padding: 100px 30px 40px;
    transition: right 0.4s ease;
    z-index: 9998;
    display: block;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 10px; }
  .nav-link { color: #fff; width: 100%; display: block; font-size: 18px; }
  
  /* Hide contact buttons in header */
  .header-actions { display: none !important; }
}

/* 5. MOBILE OVERRIDES FOR SPECIFIC COMPONENTS */
@media (max-width: 768px) {
  
  /* Tables (EMI / Loans pages) */
  .pl-table-wrap, .schedule-table-wrap {
    overflow-x: auto !important;
    display: block !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }
  .pl-table, .schedule-table {
    min-width: 600px; /* Forces scroll instead of squish */
  }

  /* CIBIL Popup */
  .cibil-row { grid-template-columns: 1fr !important; gap: 15px !important; }
  .cibil-modal { width: 95% !important; margin: 10px auto !important; padding: 0 !important; }
  .cibil-body { padding: 20px !important; }
  .cibil-amount-value { font-size: 32px !important; }
  
  /* Timeline and Process Steps */
  .process-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    padding-left: 20px !important;
  }
  .process-timeline::before { display: none !important; }
  .process-step {
    display: flex !important;
    flex-direction: row !important;
    text-align: left !important;
    gap: 20px !important;
    align-items: flex-start !important;
  }
  .process-dot { margin: 0 !important; flex-shrink: 0 !important; }

  /* Buttons */
  .btn, .cta-btn, .btn-primary, .btn-outline {
    width: 100% !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
  }
  
  /* Forms */
  .form-row-2 { grid-template-columns: 1fr !important; gap: 15px !important; }

  /* Footer Bottom */
  .footer-bottom-inner { flex-direction: column !important; text-align: center !important; }

  /* Blog Cards */
  .post-card { grid-template-columns: 1fr !important; gap: 15px !important; }
  .post-thumb { height: 200px !important; }
  
  /* Sidebar grids */
  .blog-sidebar { display: flex !important; flex-direction: column !important; width: 100% !important; gap: 20px !important; }
}

/* 6. FINAL SAFETY NET — Fixes any wild overflowing elements */
* {
  box-sizing: border-box;
}


/* =========================================
   FINAL UNIFIED MOBILE FIXES
   ========================================= */
@media (max-width: 768px) {
  
  /* 1. Global Overflow Fix (No side-scrolling) */
  html, body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* 2. Fix the Header */
  .header-container {
    padding: 10px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  /* Shrink the logo slightly */
  .header-logo img {
    max-height: 40px !important;
    width: auto !important;
  }

  /* Fix the "Check Eligibility" button in the header */
  .header-btn, .btn-check-eligibility, .header-actions .btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  /* 3. Fix the Ticker/Marquee (The scrolling orange text) */
  .ticker-wrap, .marquee, .top-bar {
    width: 100% !important;
    overflow: hidden !important;
    font-size: 12px !important;
  }

  /* 4. Fix the Main Hero Section */
  .hero-section, .page-hero {
    padding: 40px 15px !important;
  }

  /* The "Trusted by 5000+" badge */
  .trust-badge, .hero-badge {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto 20px auto !important;
    text-align: center !important;
  }

  /* 5. Adjust Typography */
  h1, .hero-title, .page-hero h1 {
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  h2, .section-title {
    font-size: clamp(24px, 6vw, 30px) !important;
    text-align: center !important;
  }

  p, .description, .hero-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    padding: 0 10px !important;
  }

  /* 6. Make Buttons Full-Width */
  .btn, .btn-primary, .btn-outline, button {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    font-size: 16px !important;
  }

  /* 7. Stack all grids into single columns */
  .grid-2, .grid-3, .grid-4, .hero-grid, .about-grid, 
  .contact-grid, .calc-wrapper, .footer-grid, .blog-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
  }

  /* 8. Fix Modals (CIBIL Popup) */
  .cibil-modal {
    width: 95% !important;
    margin: 10px auto !important;
    padding: 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  .cibil-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  .cibil-body {
    padding: 20px !important;
  }

  /* Make sure images don't overflow */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Force scroll-to-top to stay fixed in bottom right */
.scroll-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 999999 !important;
  display: flex !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
}

@media (max-width: 767px) {
  .scroll-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 46px !important;
    height: 46px !important;
  }
}

/* Force all hidden reveal content to show immediately */
[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Fix the edge carousel container */
.edge-carousel-section {
  padding: 40px 0 !important;
}
/* ==========================================================
   ULTIMATE SCROLL TO TOP UI FIX
   ========================================================== */
.scroll-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #F26522, #ff8534) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  z-index: 9999999 !important;
  box-shadow: 0 10px 30px -6px rgba(242, 101, 34, 0.6) !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.scroll-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.scroll-top:hover {
  transform: translateY(-6px) scale(1.08) !important;
  box-shadow: 0 20px 40px -6px rgba(242, 101, 34, 0.8) !important;
}

/* Remove the weird ring effect */
.scroll-top::after {
  display: none !important;
}

/* Fix the arrow icon size */
.scroll-top i,
.scroll-top svg {
  font-size: 22px !important;
  width: 22px !important;
  height: 22px !important;
  stroke-width: 3 !important;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .scroll-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 18px !important;
  }
}
