/* =========================================================
   Study Befikar — Loan Home (Redesign)
   Colour theme carried over from the original loanHome.css
========================================================= */

:root {
  --lh-teal: #287781;
  --lh-teal-dark: #195057;
  --lh-teal-light: #4ED0E1;
  --lh-teal-soft: #59898E33;
  --lh-teal-pale: #E4F7FA;
  --lh-pink: #A12456;
  --lh-pink-pale: #FDF0F4;
  --lh-yellow: #917B1A;
  --lh-yellow-pale: #FFF6E1;
  --lh-text: #424242;
  --lh-muted: #606267;
  --lh-border: #E0E6E3;
  --lh-white: #ffffff;
  --lh-soft-bg: #FAFAFA;
  --lh-gradient: linear-gradient(90deg, #195057 0%, #4ED0E1 100%);
  --lh-shadow: 0 10px 30px rgba(24, 63, 68, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.lh-page {
  margin-top: 90px;
  font-family: 'Buenos-Aires';
  color: var(--lh-text);
  background: var(--lh-white);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .lh-page { margin-top: 0px; }
}

.lh-page a { text-decoration: none; color: inherit; }
.lh-page button { font: inherit; cursor: pointer; }

.lh-container {
  width: 94%;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.lh-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:16px 22px;
    border-radius:14px;
    font-weight:700;
    font-size:15px;
    text-decoration:none;
    transition:.3s ease;
    position:relative;
    overflow:hidden;
}

.lh-btn:hover { transform: translateY(-2px); }

.lh-btn-primary{
    background:linear-gradient(135deg,#00897b,#0d6e73);
    color:#fff;
    box-shadow:0 12px 30px rgba(0,137,123,.25);
}

.lh-btn-primary:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 35px rgba(0,137,123,.35);
}

.lh-btn-primary svg{
    transition:.3s;
}

.lh-btn-primary:hover svg{
    transform:translateX(4px);
}

.lh-btn-outline{
    background:#fff;
    border:2px solid #0d6e73;
    color:#0d6e73;
}

.lh-btn-outline:hover{
    background:#0d6e73;
    color:#fff;
    transform:translateY(-4px);
    box-shadow:0 12px 25px rgba(13,110,115,.2);
}

.lh-btn-outline:hover svg{
    stroke:#fff;
}

.lh-btn-soft{
    background:#e8f8f7;
    color:#0d6e73;
    border:1px solid #33f3e6;
}

.lh-btn-soft:hover{
    background:#d7f3f0;
    transform:translateY(-4px);
}

.lh-btn-highlight{
    background:linear-gradient(135deg,#ffbf5f,#ff9340);
    color:#fff;
    box-shadow:0 12px 28px rgba(255,152,0,.35);
}

.lh-btn-highlight:hover{
    transform:translateY(-4px) scale(1.02);
}

.lh-btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--lh-white);
}

/* ---------- Section heading helper ---------- */

.lh-section {
  padding: 30px 0;
}

.lh-heading-center {
  text-align: center;
  margin-bottom: 34px;
}

.lh-heading-center h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--lh-text);
  margin-bottom: 10px;
}

.lh-heading-center p {
  font-size: 17px;
  font-weight: 400;
  color: var(--lh-muted);
  max-width: 680px;
  margin: 0 auto;
}

.lh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lh-teal-soft);
  color: var(--lh-teal);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}

/* =========================================================
   HERO
========================================================= */

.lh-hero {
  padding: 44px 0 24px;
  background: linear-gradient(180deg, #F5FBFB 0%, #FFFFFF 70%);
}

.lh-hero-route {
  font-size: 12px;
  font-weight: 700;
  color: var(--lh-teal);
  margin-bottom: 16px;
}

.lh-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.lh-hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--lh-text);
  margin-bottom: 18px;
}

.lh-hero h1 span { color: var(--lh-teal); }

.lh-hero-desc {
  font-size: 17px;
  color: var(--lh-muted);
  max-width: 520px;
  margin-bottom: 26px;
}

.lh-hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--lh-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--lh-white);
}

.lh-hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px;
  border-right: 1px solid var(--lh-border);
}

.lh-hero-feature:last-child { border-right: none; }

.lh-hero-feature svg { flex: 0 0 auto; color: var(--lh-teal); width: 22px; height: 22px; }

.lh-hero-feature strong {
  display: block;
  font-size: 13px;
  color: var(--lh-text);
}

.lh-hero-feature span {
  display: block;
  font-size: 11px;
  color: var(--lh-muted);
  margin-top: 2px;
}

.lh-hero-btns{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-top:28px;
}

.lh-hero-btns .lh-btn{
    flex:1 1 calc(50% - 8px);
    min-width:240px;
}

.lh-hero-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--lh-shadow);
}

.lh-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lh-hero-stats {
  position: absolute;
  top: 130px;
  right: 16px;
  display: grid;
  gap: 12px;
  width: 190px;
}

.lh-hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.lh-hero-stat svg { color: var(--lh-teal); width: 22px; height: 22px; flex: 0 0 auto; }

.lh-hero-stat strong {
  display: block;
  color: var(--lh-teal-dark);
  font-size: 18px;
  line-height: 1.1;
}

.lh-hero-stat span {
  display: block;
  font-size: 10px;
  color: var(--lh-muted);
}

@media (max-width: 1024px) {
  .lh-hero-grid { grid-template-columns: 1fr; }
  .lh-hero-features { grid-template-columns: repeat(2, 1fr); }
  .lh-hero-feature:nth-child(2) { border-right: none; }
  .lh-hero-feature { border-bottom: 1px solid var(--lh-border); }
  .lh-hero h1 { font-size: 32px; }
  .lh-hero-image-wrap { min-height: 280px; }
}

/* =========================================================
   PERFECT MATCH (5 cards)
========================================================= */

.lh-match {
  background: linear-gradient(180deg, #ffffff, #F7FCFC);
  border: 1px solid var(--lh-border);
  border-radius: 20px;
  padding: 30px 24px;
}

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

.lh-match-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--lh-border);
  background: var(--lh-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lh-match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lh-shadow);
  border-color: var(--lh-teal);
}

.lh-match-icon {
  flex: 0 0 50px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lh-teal-pale);
  color: var(--lh-teal);
}

.lh-match-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--lh-text);
}

.lh-match-card p {
  font-size: 14px;
  color: var(--lh-muted);
}

@media (max-width: 1024px) {
  .lh-match-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lh-match-grid { grid-template-columns: 1fr; }
}

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

.lh-country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.lh-country-card {
  border: 1px solid var(--lh-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--lh-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lh-country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lh-shadow);
  border-color: var(--lh-teal);
}

.lh-country-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lh-country-flag{
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lh-country-title strong { font-size: 20px; color: var(--lh-text); }

.lh-country-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.lh-country-details small,
.lh-country-processing small {
  display: block;
  color: var(--lh-muted);
  font-size: 14px;
  margin-bottom: 3px;
}

.lh-country-details strong,
.lh-country-processing strong {
  font-size: 16px;
  color: var(--lh-text);
}

.lh-country-processing { margin-bottom: 14px; }

.lh-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lh-teal);
  font-size: 13px;
  font-weight: 700;
}

.lh-country-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--lh-teal-pale);
  border: 1px dashed var(--lh-teal);
}

.lh-country-more p {
  font-size: 12.5px;
  color: var(--lh-muted);
  margin: 10px 0 14px;
}

@media (max-width: 1024px) {
  .lh-country-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lh-country-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CHOOSE YOUR LOAN OPTION (4 strip cards)
========================================================= */

.lh-loan-option-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lh-loan-option-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--lh-border);
  background: var(--lh-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lh-loan-option-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--lh-shadow);
}

.lh-loan-option-mini .icon-wrap {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lh-white);
}

.lh-loan-option-mini:nth-child(odd) .icon-wrap { background: var(--lh-gradient); }
.lh-loan-option-mini:nth-child(even) .icon-wrap { background: linear-gradient(90deg, #A12456, #D96B94); }

.lh-loan-option-mini h4 {
  font-size: 16px;
  margin-bottom: 3px;
  color: var(--lh-text);
}

.lh-loan-option-mini p {
  font-size: 14px;
  color: var(--lh-muted);
}

@media (max-width: 1024px) {
  .lh-loan-option-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lh-loan-option-strip { grid-template-columns: 1fr; }
}

/* =========================================================
   COMPARE / FAQ / PROCESS ROW
========================================================= */

.lh-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}

.lh-panel {
  border: 1px solid var(--lh-border);
  border-radius: 18px;
  padding: 24px;
  background: var(--lh-white);
}

.lh-panel h3 {
  color: var(--lh-teal);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* --- Compare loan types --- */

.lh-compare-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.lh-compare-tab {
  padding: 9px 16px;
  border-radius: 30px;
  border: 1px solid var(--lh-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--lh-muted);
  background: var(--lh-soft-bg);
}

.lh-compare-tab.active {
  background: var(--lh-gradient);
  color: var(--lh-white);
  border-color: transparent;
}

.lh-compare-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.lh-compare-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.lh-compare-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--lh-text);
}

.lh-compare-list li svg {
  flex: 0 0 auto;
  color: var(--lh-teal);
  width: 18px;
  height: 18px;
}

.lh-compare-illustration {
  width: 100%;
  border-radius: 14px;
  min-height: 150px;
  object-fit: cover;
}

.lh-compare-btn {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .lh-compare-body { grid-template-columns: 1fr; }
}

/* --- FAQ --- */

.lh-faq-list { display: grid; gap: 10px; }

.lh-faq-item {
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  overflow: hidden;
}

.lh-faq-question {
  width: 100%;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--lh-white);
  border: 0;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lh-text);
}

.lh-faq-plus {
  color: var(--lh-teal);
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.lh-faq-item.open .lh-faq-plus { transform: rotate(45deg); }

.lh-faq-answer {
  display: none;
  padding: 0 16px 14px;
  color: var(--lh-muted);
  font-size: 16px;
  background: var(--lh-teal-pale);
}

.lh-faq-item.open .lh-faq-answer { display: block; }

.lh-faq-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--lh-teal);
  font-size: 13px;
  font-weight: 700;
}

/* --- Process panel --- */

.lh-panel {
  display: flex;
  flex-direction: column;
}

.lh-panel-process {
  height: auto;
}

.lh-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lh-process-step {
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--lh-soft-bg);
}

.lh-step-number {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lh-gradient);
  color: var(--lh-white);
  font-weight: 800;
  font-size: 13px;
}

.lh-process-step svg {
  color: var(--lh-teal);
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
}

.lh-process-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--lh-text);
}

.lh-process-step span {
  display: block;
  font-size: 13px;
  color: var(--lh-muted);
}

@media (max-width: 1200px) {
  .lh-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .lh-process-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   CTA STRIP
========================================================= */

.lh-cta-strip {
  border-radius: 20px;
  padding: 30px 32px;
  background: var(--lh-gradient);
  color: var(--lh-white);
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 0.75fr) auto;
  gap: 20px;
  align-items: center;
}

.lh-cta-copy h3 { font-size: 22px; margin-bottom: 6px; }
.lh-cta-copy p { font-size: 15px; color: #DCF3F5; }

.lh-cta-stat {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 16px;
}

.lh-cta-stat strong { display: block; font-size: 21px; }
.lh-cta-stat span { display: block; font-size: 13px; color: #DCF3F5; }

.lh-cta-actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 1024px) {
  .lh-cta-strip { grid-template-columns: 1fr 1fr; }
  .lh-cta-copy { grid-column: 1 / -1; }
  .lh-cta-actions { grid-column: 1 / -1; flex-direction: row; }
}

/* =========================================================
   PARTNERS
========================================================= */

.lh-partners {
  border: 1px solid var(--lh-border);
  border-radius: 20px;
  padding: 30px 26px;
}

.lh-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.lh-partner-group {
  padding: 0 22px;
  border-right: 1px solid var(--lh-border);
}

.lh-partner-group:last-child { border-right: none; }

.lh-partner-group h4 {
  color: var(--lh-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.lh-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.lh-partner-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .lh-partner-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .lh-partner-group { border-right: none; }
}
@media (max-width: 560px) {
  .lh-partner-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   GENERIC RESPONSIVE TEXT SCALING
========================================================= */

@media (max-width: 640px) {
  .lh-heading-center h2 { font-size: 24px; }
  .lh-heading-center p { font-size: 13px; }
  .lh-section { padding: 34px 0; }
}
