/* One Main Capital Clone - Exact Styles */

/* ================= Variables ================= */
:root {
  /* Exact Colors from Source */
  --omf-sky: #2659D9;
  --omf-sky-light: #E9F0FF;
  --omf-sun: #FFE05C;
  --omf-black: #1F1F21;
  --omf-white: #FFFFFF;
  --omf-grey-light: #F4F4F4;
  --omf-grey-medium: #E5E7EB;
  --omf-grey-dark: #353535;
  --text-primary: #1F1F21;
  --text-secondary: #353535;

  /* Layout */
  --container-max: 1536px;
  --container-padding: 80px;
  --header-height: 63px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-button: rgba(31, 31, 33, 0.1) 0px 4px 16px 0px, rgba(31, 31, 33, 0.2) 0px 2px 4px 0px;
  --shadow-card: rgba(0, 0, 0, 0.2) 0px 10px 30px 0px, rgba(0, 0, 0, 0.2) 0px 1px 3px 0px;
}

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

html {
  font-family: 'Merchant', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

body {
  background-color: var(--omf-white);
  color: var(--omf-black);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

/* ================= Typography ================= */
h1 {
  font-size: 50px;
  line-height: 60px;
  font-weight: 300;
}

h2 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 300;
}

h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 300;
}

p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
}

.text-xl {
  font-size: 24px;
  line-height: 32px;
}

.text-2xl {
  font-size: 28px;
  line-height: 36px;
}

.text-3xl {
  font-size: 36px;
  line-height: 40px;
}

.text-4xl {
  font-size: 42px;
  line-height: 48px;
}

.text-5xl {
  font-size: 50px;
  line-height: 60px;
}

.font-bold {
  font-weight: 500;
}

.font-medium {
  font-weight: 400;
}

/* ================= Utilities ================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
}

.text-omf-sky {
  color: var(--omf-sky);
}

.text-omf-sun {
  color: var(--omf-sun);
}

.text-omf-black {
  color: var(--omf-black);
}

.bg-omf-sky {
  background-color: var(--omf-sky);
}

.bg-omf-sky-light {
  background-color: var(--omf-sky-light);
}

.bg-omf-white {
  background-color: var(--omf-white);
}

.bg-omf-black {
  background-color: var(--omf-black);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

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

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

.text-sm {
  font-size: 14px;
  line-height: 20px;
}

.text-xs {
  font-size: 12px;
  line-height: 16px;
}

.text-lg {
  font-size: 18px;
  line-height: 28px;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-green-500 {
  color: #22c55e;
}

.text-white {
  color: white;
}

.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.rounded-lg {
  border-radius: 8px;
}

.rounded-xl {
  border-radius: 16px;
}

.rounded-2xl {
  border-radius: 24px;
}

.rounded-3xl {
  border-radius: 30px;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-2 {
  border-width: 2px;
  border-style: solid;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-transparent {
  border-color: transparent;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.space-y-2>*+* {
  margin-top: 0.5rem;
}

.space-y-3>*+* {
  margin-top: 0.75rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.space-y-6>*+* {
  margin-top: 1.5rem;
}

.space-y-8>*+* {
  margin-top: 2rem;
}

.leading-tight {
  line-height: 1.25;
}

.underline {
  text-decoration: underline;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

.transition-all {
  transition: all 0.2s ease;
}

.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:shadow-lg:hover {
  box-shadow: var(--shadow-lg);
}

.flex-none {
  flex: none;
}

.flex-1 {
  flex: 1;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.object-cover {
  object-fit: cover;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

/* ================= Grid ================= */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ================= Hero Section ================= */
.hero-section {
  position: relative;
  width: 100%;
}

/* Mobile Hero Layout */
.hero-mobile {
  display: flex;
  flex-direction: column;
  background-color: var(--omf-white);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-mobile {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--omf-white) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content-mobile {
  padding: 0 20px 32px;
  text-align: center;
  background-color: var(--omf-white);
  margin-top: -20px;
  position: relative;
  z-index: 5;
}

/* Mobile Specific Overrides - Comprehensive Mobile Responsiveness */
@media (max-width: 1279px) {

  /* ===== Mobile Header ===== */
  .omf-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50px !important;
    z-index: 100 !important;
    background-color: var(--omf-white) !important;
    border-bottom: 1px solid var(--omf-grey-medium);
  }

  /* Add body padding to account for fixed header */
  body {
    padding-top: 50px;
  }

  /* ===== Mobile Navigation Overlay ===== */
  #mainNav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: var(--omf-sky) !important;
    z-index: 200 !important;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex !important;
    flex-direction: column !important;
    padding: 80px 24px 24px !important;
    overflow-y: auto;
  }

  #mainNav.active {
    transform: translateX(0);
  }

  #mainNav nav,
  #mainNav>nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  #mainNav a.block {
    display: block;
    padding: 16px 0;
    font-size: 24px;
    font-weight: 400;
    color: var(--omf-white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
  }

  #mainNav .btn {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
  }

  #mainNav .btn-primary {
    background-color: var(--omf-sun);
    color: var(--omf-sky);
  }

  /* Close Button Styling */
  #mobileMenuBtn.active {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 300;
    color: var(--omf-white) !important;
  }

  /* ===== Hero Section Mobile ===== */
  .hero-mobile-stack {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
  }

  .hero-mobile-stack>div:first-child {
    margin-top: 0 !important;
  }

  /* Remove large padding-top on mobile hero */
  .pt-\[350px\] {
    padding-top: 0 !important;
  }

  /* Hero text container */
  section.relative .container {
    position: relative;
    margin-top: -60px;
    /* Overlap onto hero image */
    z-index: 10;
  }

  section.relative .bg-gradient-to-t {
    padding-top: 40px;
  }

  /* Hero text box styling */
  section.relative .bg-white {
    background: var(--omf-white);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  }

  /* ===== Typography Mobile ===== */
  h1 {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  h2 {
    font-size: 24px !important;
    line-height: 30px !important;
  }

  h3 {
    font-size: 20px !important;
    line-height: 26px !important;
  }

  .text-4xl {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  .text-5xl {
    font-size: 32px !important;
    line-height: 38px !important;
  }

  .text-xl {
    font-size: 18px !important;
    line-height: 26px !important;
  }

  .text-2xl {
    font-size: 20px !important;
    line-height: 28px !important;
  }

  /* ===== Container Padding ===== */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ===== Grid & Layout Stacking ===== */
  .grid,
  .md\:grid-cols-2,
  .md\:grid-cols-3,
  .md\:grid-cols-4,
  .lg\:grid-cols-2,
  .lg\:grid-cols-3,
  .lg\:grid-cols-4,
  .lg\:grid-cols-6 {
    grid-template-columns: 1fr !important;
  }

  .gap-8 {
    gap: 1.5rem;
  }

  .gap-12 {
    gap: 2rem;
  }

  /* ===== Sections Vertical Padding ===== */
  .py-16 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* ===== Buttons Mobile ===== */
  .btn {
    font-size: 18px;
    padding: 14px 20px;
  }

  .btn-lg {
    height: 52px;
    font-size: 18px;
  }

  /* ===== Features Bar Mobile ===== */
  .bg-omf-sky.py-8 .grid {
    gap: 1.5rem !important;
  }

  .bg-omf-sky.py-8 .flex.gap-4 {
    align-items: flex-start;
  }

  /* ===== Cards Mobile ===== */
  .md\:items-start.md\:text-left {
    text-align: center !important;
    align-items: center !important;
  }

  /* ===== Footer Mobile ===== */
  .footer-nav {
    padding: 2rem 0;
  }

  .footer-nav .grid {
    gap: 1.5rem !important;
  }

  .footer-nav h5 {
    font-size: 16px;
    margin-bottom: 0.5rem;
  }

  .footer-nav ul {
    font-size: 14px;
    line-height: 24px;
  }

  /* Footer bottom section */
  .footer-nav .mt-8 {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
  }

  .footer-nav .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Social icons */
  .footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
  }

  .footer-social a img {
    width: 24px;
    height: 24px;
  }

  /* ===== Hide Elements on Mobile ===== */
  .hidden.lg\:block,
  .lg\:block {
    display: none !important;
  }

  /* ===== Review Cards Mobile ===== */
  .max-w-5xl .bg-white {
    padding: 1.25rem;
  }

  /* ===== Loan Amount Section Mobile ===== */
  .text-5xl.lg\:text-6xl {
    font-size: 36px !important;
    line-height: 42px !important;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lg\:text-5xl {
    font-size: 50px;
    line-height: 60px;
  }

  .lg\:text-4xl {
    font-size: 42px;
    line-height: 48px;
  }

  .lg\:text-3xl {
    font-size: 36px;
    line-height: 40px;
  }

  .lg\:text-2xl {
    font-size: 28px;
    line-height: 36px;
  }

  .lg\:max-w-xl {
    max-width: 36rem;
  }

  .lg\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .lg\:pt-\[10\%\] {
    padding-top: 10%;
  }

  .lg\:bg-none {
    background: none;
  }

  .lg\:bg-transparent {
    background-color: transparent;
  }

  .lg\:text-6xl {
    font-size: 60px;
    line-height: 72px;
  }
}

@media (min-width: 1280px) {
  .xl\:block {
    display: block;
  }

  .xl\:hidden {
    display: none;
  }
}

/* ================= Components ================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 400;
  border-radius: 24px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  font-size: 20px;
  line-height: 28px;
  border: none;
}

.btn-lg {
  height: 56px;
  padding: 0 24px;
  font-size: 20px;
}

.btn-primary {
  background-color: var(--omf-sky);
  color: var(--omf-white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  box-shadow: 0px 8px 32px rgba(31, 31, 33, .15), 0px 4px 8px rgba(31, 31, 33, .25);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--omf-sun);
  color: var(--omf-sky);
  box-shadow: var(--shadow-button);
}

.btn-secondary:hover {
  box-shadow: 0px 8px 32px rgba(31, 31, 33, .15), 0px 4px 8px rgba(31, 31, 33, .25);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--omf-black);
  border: 2px solid var(--omf-black);
}

.btn-outline:hover {
  background-color: var(--omf-black);
  color: var(--omf-white);
}

/* Header */
.header {
  position: relative;
  z-index: 50;
  background-color: var(--omf-white);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--omf-black);
  font-weight: 400;
  font-size: 16px;
}

.nav-link:hover {
  background-color: var(--omf-sky-light);
  color: var(--omf-sky);
}

/* Footer */
.footer {
  background-color: var(--omf-black);
  color: var(--omf-white);
}

.footer-nav {
  background-color: var(--omf-sky);
  padding: 4rem 0;
  color: var(--omf-white);
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-nav h5 {
  color: var(--omf-sun);
  font-weight: 400;
  margin-bottom: 1rem;
  font-size: 18px;
}

.footer-nav ul {
  font-size: 14px;
  line-height: 28px;
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cards */
.hero-card {
  background-color: var(--omf-white);
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

/* Numbered circles */
.number-circle {
  width: 28px;
  height: 28px;
  background-color: var(--omf-sun);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
}

/* Focus states */
input:focus,
button:focus,
a:focus {
  outline: 2px solid var(--omf-sky);
  outline-offset: 2px;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  h1 {
    font-size: 36px;
    line-height: 42px;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .btn {
    font-size: 16px;
    padding: 10px 16px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .pt-\[350px\] {
    padding-top: 300px;
  }
}

/* Hero section specific */
.pt-\[350px\] {
  padding-top: 350px;
}

@media (min-width: 1024px) {
  .lg\:pt-\[10\%\] {
    padding-top: 10%;
  }
}

/* Background gradient for mobile hero */
.bg-gradient-to-t {
  background: linear-gradient(to top, white, transparent);
}

/* H styles for sections that need bolder text */
section h2.font-bold,
section h3.font-bold {
  font-weight: 500;
}

/* Trustpilot green stars */
.text-green-500 svg {
  fill: #00b67a;
  color: #00b67a;
}

/* Additional helper classes */
.min-h-\[600px\] {
  min-height: 600px;
}

.h-\[500px\] {
  height: 500px;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-20 {
  width: 5rem;
}

.h-20 {
  height: 5rem;
}

.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

.w-32 {
  width: 8rem;
}

.h-1 {
  height: 0.25rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

/* Fix for image in circle clip */
.clip-path-circle {
  clip-path: circle(48%);
}

/* Header Scrolled State */
.header.scrolled {
  background-color: rgba(15, 15, 26, 0.98) !important;
  /* Dark background */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: var(--omf-white);
}

.header.scrolled .nav-link {
  color: var(--omf-white);
}

.header.scrolled .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--omf-sun);
}

.header.scrolled .btn-outline {
  border-color: var(--omf-white);
  color: var(--omf-white);
}

.header.scrolled .btn-outline:hover {
  background-color: var(--omf-white);
  color: var(--omf-black);
}

/* Ensure logo visibility on dark background if needed (inverted filter) */
.header.scrolled img[src*="onemain-vertical.svg"] {
  filter: brightness(0) invert(1);
}

/* ================= Admin Panel Styles ================= */

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f3f4f6;
}

.admin-main {
  flex: 1;
  padding: 2rem;
  margin-left: 260px;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* Admin Sidebar */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.admin-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-nav-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-left: 3px solid var(--omf-sun);
}

.admin-sidebar-footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 101;
  padding: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
}

/* Stats Cards */
.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--omf-black);
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background-color: #f9fafb;
}

.admin-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #f9fafb;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-approved {
  background-color: #d1fae5;
  color: #065f46;
}

.status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header button {
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
}

/* Additional Colors */
.bg-yellow-100 {
  background-color: #fef3c7;
}

.text-yellow-600 {
  color: #d97706;
}

.bg-green-100 {
  background-color: #d1fae5;
}

.text-green-600 {
  color: #059669;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.text-red-600 {
  color: #dc2626;
}

.bg-purple-100 {
  background-color: #ede9fe;
}

.text-purple-700 {
  color: #6d28d9;
}

.text-red-300 {
  color: #fca5a5;
}

.bg-green-50 {
  background-color: #ecfdf5;
}

.text-green-700 {
  color: #047857;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.text-red-700 {
  color: #b91c1c;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.text-blue-600 {
  color: #2563eb;
}

/* Mobile Admin Responsive */
@media (max-width: 1023px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4rem;
  }

  .admin-menu-toggle {
    display: block;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Grid cols for responsive */
@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Max widths */
.max-w-6xl {
  max-width: 72rem;
}

.max-w-3xl {
  max-width: 48rem;
}

/* Focus ring for forms */
.focus\:ring-omf-sky:focus {
  --tw-ring-color: var(--omf-sky);
  box-shadow: 0 0 0 3px rgba(38, 89, 217, 0.2);
}

.focus\:border-omf-sky:focus {
  border-color: var(--omf-sky);
}

/* Col span utilities */
.col-span-2 {
  grid-column: span 2 / span 2;
}

@media (min-width: 768px) {
  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }
}

/* Min height for sections */
.min-h-\[80vh\] {
  min-height: 80vh;
}

/* Animation for loading spinner */
.animate-spin {
  animation: spin 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-omf-sky {
  --tw-gradient-stops: #00aeef, var(--tw-gradient-to, rgba(0, 174, 239, 0));
}

.to-blue-700 {
  --tw-gradient-to: #1d4ed8;
}

/* ================= Mobile & Responsive Fixes ================= */

/* Admin Table Responsiveness */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {

  /* Admin Header Stacking */
  .admin-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Fix admin toggle overlap */
  .admin-menu-toggle {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
  }

  /* Make admin main content clear the fixed header/toggle */
  .admin-main {
    padding-top: 4rem;
  }

  /* Dashboard card spacing */
  .grid {
    gap: 1.5rem;
  }

  /* Trim Promo contrast fix */
  .bg-gradient-to-br.from-omf-sky.to-blue-700 p {
    color: rgba(255, 255, 255, 0.9) !important;
  }
}

/* ================= Partners Slider ================= */
.partners-slider {
  background: white;
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--omf-grey-medium);
  border-bottom: 1px solid var(--omf-grey-medium);
}

.partners-track {
  display: flex;
  width: calc(200px * 22);
  /* 200px per logo approx * 11 logos * 2 sets */
  animation: scroll 40s linear infinite;
}

.partner-logo {
  flex: 0 0 200px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.partner-logo-lg img {
  max-height: 120px !important;
  max-width: none !important;
  width: auto !important;
}

.partner-logo-lg {
  flex: 0 0 400px !important;
  /* Double width slot */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-200px * 11));
    /* Scroll by width of one full set */
  }
}

@media (max-width: 768px) {
  .partner-logo {
    flex: 0 0 150px;
    padding: 0 20px;
  }

  .partners-track {
    width: calc(150px * 22);
    animation-duration: 30s;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-150px * 11));
    }
  }
}