/* ============================================================
   Shubhaam Matrimony — style.css  (New Demo Style)
   Cream + Deep Blue + Orange palette
============================================================ */

:root {
  --blue: #073f87;
  --blue2: #062f69;
  --orange: #f45116;
  --orange2: #ff7a18;
  --gold: #f2a72b;
  --cream: #fff;
  --cream2: #fff1d9;
  --ink: #143d78;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans Tamil", "Latha", "Arial", sans-serif;
  line-height: 1.5;
}

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

button,
select,
input {
  font: inherit;
}

/* Required Field Red Asterisk */
.req-star, .required-star {
  color: #dc2626 !important;
  font-weight: 800 !important;
  margin-left: 2px !important;
}

.container {
  width: min(94%, 1180px) !important;
  margin: auto !important;
}

/* ── HEADER ── */
header {
  height: 88px;
  background: #fffaf1;
  border-bottom: 1px solid #efd8b8;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  width: 205px;
  height: 76px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

nav a {
  font-size: 13px;
  font-weight: 800;
  color: #343434;
  text-decoration: none;
  white-space: nowrap;
}

nav a.active,
nav a:hover {
  color: var(--orange);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropbtn {
  cursor: pointer;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(145, 81, 22, 0.12);
  z-index: 1000;
  border-radius: 8px;
  border: 1px solid #edcfaa;
  top: 100%;
  margin-top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-weight: 700;
  font-size: 12px;
  white-space: normal;
  border-bottom: 1px solid #f9eee0;
}

.nav-dropdown-content a:last-child {
  border-bottom: none;
}

.nav-dropdown-content a:hover {
  background-color: #fff4ed;
  color: var(--orange);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.nav-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── LANGUAGE SELECTOR ── */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: transparent;
  border: 1px solid #edcfaa;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  height: 38px;
}

.lang-btn:hover {
  background: #fff8ee;
  border-color: var(--orange);
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #edcfaa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(145, 81, 22, 0.12);
  z-index: 1000;
  min-width: 100px;
  overflow: hidden;
}

.lang-dropdown.show {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
  text-align: left;
}

.lang-dropdown a:hover {
  background: #fff4ed;
  color: var(--orange);
}

/* ── BUTTONS ── */
.btn {
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 0;
  transition: .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--orange);
  color: var(--orange);
}

.btn-outline:hover {
  background: #fff4ed;
}

.btn-orange {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: #fff;
}

.btn-orange:hover {
  background: #d4470c;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 30%, #fff 0, #fff7e8 32%, transparent 53%),
    linear-gradient(90deg, #fff8e9 0, #fff8e9 45%, #ffdba6 100%);
  display: grid;
}

.hero-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-grid {
  min-height: 405px;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}

.hero-copy {
  padding: 25px 0 25px 35px;
  position: relative;
  z-index: 2;
  order: 1;
}

.eyebrow {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: Georgia, "Noto Serif Tamil", serif;
  font-size: 49px;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--orange);
}

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

.hero p {
  font-size: 15px;
  line-height: 1.65;
  color: #4d4d4d;
  margin: 12px 0 18px;
  max-width: 470px;
}

.hero p.hero-quote {
  font-family: Georgia, "Noto Serif Tamil", serif;
  font-size: 21px;
  background: linear-gradient(90deg, var(--orange), #db2777, var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 800;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  gap: 28px;
}

.stat {
  padding-right: 24px;
  border-right: 1px solid #eabf8c;
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  font-size: 27px;
  color: var(--blue);
  display: block;
}

.stat small {
  font-size: 11px;
  color: #555;
}



.hero-photo {
  height: 405px;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  order: 2;
}

.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── QUICK SEARCH ── */
.search-wrap {
  position: relative;
  margin-top: 0;
  padding: 0 0 28px;
}

.search-box {
  background: linear-gradient(135deg, #063e86, #084c9d);
  border-radius: 18px;
  box-shadow: 0 8px 20px #183e6d3d;
  padding: 21px 22px 24px;
  color: #fff;
  position: relative;
}

.search-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-title h2 {
  font-family: Georgia, "Noto Serif Tamil", serif;
  color: #ffb52d;
  font-size: 28px;
  margin: 0;
}

.search-title a {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 12px;
}

.field label {
  font-size: 11px;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
  color: #e2e8f0;
}

.field select,
.field input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #31405a;
  padding: 0 10px;
  outline: none;
}

.search-bottom {
  display: grid;
  grid-template-columns: 170px 1fr 160px;
  align-items: end;
  gap: 20px;
  margin-top: 12px;
}

.lamp {
  height: 80px;
  object-fit: contain;
  object-position: left bottom;
}

.search-button {
  height: 43px;
  background: #ff5b13;
  border: 0;
  color: #fff;
  border-radius: 7px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: .2s;
}

.search-button:hover {
  background: #d4470c;
}

/* ── FEATURES ── */
.features {
  padding: 0 0 16px;
}

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

.feature {
  min-height: 150px;
  background: linear-gradient(180deg, #fffdf9, #fff8eb);
  border: 1px solid #f0d6ae;
  border-radius: 14px;
  box-shadow: 0 3px 10px #9d612215;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px #9d612230;
}

.feature::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -12px;
  width: 55px;
  height: 55px;
  border: 2px solid #ff9c4b;
  border-radius: 45% 0 0 0;
  opacity: .55;
}

.feature img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 5px;
}

.feature h3 {
  font-size: 14px;
  color: var(--orange);
  margin: 4px 0 7px;
}

.feature p {
  font-size: 11px;
  line-height: 1.55;
  color: #555;
  margin: 0;
}

/* ── PROFILES SECTION ── */
.section {
  padding: 14px 0 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: Georgia, "Noto Serif Tamil", serif;
  color: var(--blue);
  font-size: 27px;
  margin: 0;
}

.view-all {
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}

.view-all:hover {
  background: var(--blue);
  color: #fff;
}

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

.profile {
  background: #fffdf9;
  border: 1px solid #edcfaa;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 5px 12px #91511618;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px #9151162a;
}

.profile-image {
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ribbon {
  position: absolute;
  left: 6px;
  top: 7px;
  background: #f34e13;
  color: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
}

.heart {
  position: absolute;
  right: 7px;
  top: 7px;
  background: rgba(255, 255, 255, .53);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #f34e13;
  cursor: pointer;
  border: 0;
  font-size: 15px;
  transition: background .2s;
}

.heart:hover {
  background: rgba(255, 255, 255, .85);
}

.profile h3 {
  font-size: 15px;
  color: var(--blue);
  margin: 9px 4px 4px;
}

.profile p {
  font-size: 10px;
  line-height: 1.55;
  color: #555;
  margin: 0 4px 7px;
}

.tags {
  display: flex;
  gap: 5px;
  margin: 0 4px 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 8px;
  padding: 4px 6px;
  border-radius: 5px;
  background: #fff0e6;
  color: #f04f19;
  border: 1px solid #ffd0ba;
}

.tag.blue {
  background: #edf4ff;
  color: #1f5eac;
  border-color: #c9dcf7;
}

.profile-footer {
  display: flex;
  gap: 6px;
}

.profile-btn {
  flex: 1;
  background: #ff5b13;
  border: 0;
  color: #fff;
  border-radius: 6px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s;
}

.profile-btn:hover {
  background: #d4470c;
}

.chat {
  width: 32px;
  border: 1px solid #ff5b13;
  background: #fff;
  color: #ff5b13;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: .2s;
}

.chat:hover {
  background: #fff4ed;
}

/* ── WHY CHOOSE US ── */
.why {
  padding: 16px 0 22px;
  border-top: 1px solid #f1dcc0;
}

.why-title {
  text-align: center;
  color: var(--blue);
  font-family: Georgia, "Noto Serif Tamil", serif;
  font-size: 25px;
  margin: 0 0 18px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #f1c994;
  border-bottom: 1px solid #f1c994;
}

.why-item {
  text-align: center;
  padding: 12px 13px;
  border-right: 1px solid #f0cda3;
  min-height: 130px;
}

.why-item:last-child {
  border-right: 0;
}

.why-item img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  margin: 0 auto 5px;
}

.why-item h4 {
  margin: 4px 0;
  color: var(--blue);
  font-size: 12px;
}

.why-item p {
  font-size: 9px;
  line-height: 1.55;
  margin: 0;
  color: #555;
}

/* ── CTA BANNER ── */
.cta {
  margin: 0 auto;
  border: 1px solid #e9b979;
  border-radius: 18px;
  min-height: 130px;
  overflow: hidden;
  background: linear-gradient(90deg, #fff0d1, #ffdd9e);
  display: grid;
  grid-template-columns: 28% 45% 27%;
  align-items: center;
}

.cta-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: left center;
}

.cta-copy {
  padding: 10px 18px;
}

.cta-copy h2 {
  font-family: Georgia, "Noto Serif Tamil", serif;
  color: #bd3910;
  font-size: 25px;
  margin: 0 0 6px;
}

.cta-copy p {
  font-size: 10px;
  margin: 0;
  color: #555;
}

.cta-action {
  display: flex;
  justify-content: center;
}

/* ── FOOTER ── */
footer {
  margin-top: 22px;
  background: linear-gradient(135deg, #043778, #07458f);
  color: #fff;
  padding: 24px 0 12px;
  position: relative;
  overflow: hidden;
}



.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.2fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.footer-logo {
  width: 190px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 7px;
}

footer h4 {
  color: #ffb52d;
  font-size: 14px;
  margin: 8px 0 12px;
}

footer p,
footer a {
  font-size: 10px;
  line-height: 1.8;
  color: #fff;
  text-decoration: none;
  margin: 0;
}

footer a {
  display: block;
}

footer a:hover {
  color: var(--gold);
}

.social {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.social span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
}

.social span:hover {
  background: var(--orange);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, .21);
  margin-top: 18px;
  padding-top: 9px;
  text-align: center;
  font-size: 9px;
  position: relative;
  z-index: 2;
}

/* ── RESPONSIVE UTILITIES ── */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.responsive-grid-1-16 {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  align-items: start;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

/* ── RESPONSIVE ── */

@media (max-width: 1000px) {
  nav {
    gap: 14px;
  }

  .logo {
    width: 170px;
  }

  .nav {
    gap: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .search-fields {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-bottom {
    grid-template-columns: 120px 1fr 150px;
  }

  .profiles,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-item:nth-child(3) {
    border-right: 0;
  }

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

  .responsive-grid-2,
  .responsive-grid-1-16,
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  header {
    height: auto;
  }

  .nav {
    padding: 7px 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo {
    width: 140px;
    height: auto;
    flex-shrink: 0;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible;
    padding: 6px 0;
  }

  nav a {
    font-size: 11px;
  }




  .nav-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
  }

  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .lang-btn {
    padding: 6px 8px;
    font-size: 11px;
    height: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before,
  .hero::after {
    top: 300px;
    width: 45px;
    background-size: 45px 262px;
  }

  .hero-copy {
    padding: 20px 18px;
    order: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 32px;
    text-align: left;
    margin: 0 0 12px;
  }

  .hero p {
    text-align: left;
    margin: 12px 0 18px;
  }

  .hero-photo {
    height: 300px;
    order: 1;
    margin: 0 -20px;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 22px;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 11px;
    padding: 10px 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .stats {
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
  }

  .stat {
    padding-right: 12px;
  }

  .search-fields {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-bottom {
    grid-template-columns: 1fr;
  }

  .lamp {
    height: 55px;
  }

  .feature-grid,
  .profiles {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-item:nth-child(3) {
    border-right: 1px solid #f0cda3;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .cta-img {
    height: 140px;
  }

  .cta-action {
    padding: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 115px;
  }

  .nav-actions .btn {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .hide-mobile {
    display: none;
  }

  .profiles,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 16px 14px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: row;
  }

  .search-fields {
    grid-template-columns: 1fr 1fr;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .search-title h2 {
    font-size: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffaf1;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: auto;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#preloader img {
  width: 80px;
  height: auto;
  animation: preloader-pulse 1.4s infinite ease-in-out;
}

.preloader-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(244, 81, 22, 0.18);
  border-top-color: #f45116;
  border-radius: 50%;
  animation: preloader-spin 0.75s linear infinite;
}

@keyframes preloader-pulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

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

/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(180deg, #073f87 0%, #03244e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -4px 22px rgba(5, 36, 78, 0.45);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10000;
    padding-left: 2px;
    padding-right: 2px;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav .nav-item {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.5px;
    flex: 1;
    height: 100%;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav a i,
  .mobile-bottom-nav .nav-item i {
    font-size: 17px;
    color: #93c5fd;
    font-style: normal;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav .nav-item:hover,
  .mobile-bottom-nav .nav-item.active {
    color: #ffffff;
  }

  .mobile-bottom-nav a.active i,
  .mobile-bottom-nav a:hover i,
  .mobile-bottom-nav .nav-item.active i,
  .mobile-bottom-nav .nav-item:hover i {
    color: #ff7a18;
    transform: translateY(-2px);
  }

  .mobile-bottom-nav a.active::before,
  .mobile-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, #f45116, #ff7a18);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 8px rgba(244, 81, 22, 0.9);
  }
}

/* ═══════════════════════════════════
   HOW IT WORKS SECTION
═══════════════════════════════════ */
.how-it-works-sec {
  padding: 30px 0 32px;
  background: linear-gradient(180deg, #ffffff 0%, #fffcf6 50%, #ffffff 100%);
  position: relative;
}

.sec-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 22px;
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff4ed;
  color: var(--orange);
  border: 1px solid #ffd8c2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sec-title {
  font-family: Georgia, "Noto Serif Tamil", serif;
  font-size: 34px;
  color: var(--blue);
  margin: 0 0 10px;
  line-height: 1.2;
}

.sec-title span {
  color: var(--orange);
}

.sec-desc {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.hiw-card {
  background: #ffffff;
  border: 1px solid #f1e4d0;
  border-radius: 18px;
  padding: 20px 16px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(157, 97, 34, 0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(7, 63, 135, 0.12);
  border-color: #fbd6a3;
}

.hiw-step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 13px;
  font-weight: 900;
  color: #cbd5e1;
  font-family: Georgia, serif;
}

.hiw-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.hiw-card:hover .hiw-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, #ffedd5 0%, #fbd6a3 100%);
}

.hiw-card h3 {
  font-family: Georgia, "Noto Serif Tamil", serif;
  font-size: 19px;
  color: var(--blue);
  margin: 0 0 10px;
  font-weight: 700;
}

.hiw-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════
   FAQS SECTION
═══════════════════════════════════ */
.faqs-sec {
  padding: 30px 0 32px;
  background: #fdfaf5;
  border-top: 1px solid #f4ebd9;
  border-bottom: 1px solid #f4ebd9;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e9dfcf;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item.active {
  border-color: #fbd6a3;
  box-shadow: 0 6px 20px rgba(244, 81, 22, 0.08);
}

.faq-btn {
  width: 100%;
  padding: 13px 18px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 16px;
  font-family: inherit;
  transition: background 0.2s;
}

.faq-btn:hover {
  background: #fffdf9;
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item.active .faq-question {
  color: var(--orange);
}

.faq-icon-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.3s ease, background 0.2s, color 0.2s;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq-content {
  padding: 0 18px 14px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

.faq-support-box {
  margin-top: 20px;
  background: #ffffff;
  border: 1px dashed #fbd6a3;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.faq-support-box p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.faq-support-box p strong {
  color: var(--blue);
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .hiw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hiw-grid {
    grid-template-columns: 1fr;
  }
  .sec-title {
    font-size: 26px;
  }
  .faq-btn {
    padding: 16px 18px;
  }
  .faq-question {
    font-size: 14.5px;
  }
  .faq-content {
    padding: 0 18px 18px;
    font-size: 13.5px;
  }
}

/* ═══════════════════════════════════
   PWA INSTALLATION UI & ALWAYS-VISIBLE OPTIONS
═══════════════════════════════════ */
.btn-install-app {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: 1px solid #059669;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.btn-install-app:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

@media (max-width: 600px) {
  .btn-install-app span {
    display: none;
  }
  .btn-install-app {
    padding: 6px 8px;
  }
  .btn-install-app svg {
    margin-right: 0 !important;
  }
}

.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 12px 30px rgba(7, 63, 135, 0.18);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  animation: pwaSlideUp 0.35s ease-out;
  max-width: 360px;
}

@keyframes pwaSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-install-banner img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pwa-install-content {
  flex: 1;
  text-align: left;
}

.pwa-install-content strong {
  font-size: 13.5px;
  color: #073f87;
  display: block;
  line-height: 1.3;
}

.pwa-install-content small {
  font-size: 11.5px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-btn-install {
  background: var(--orange);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.pwa-btn-install:hover {
  background: #d4470c;
}

.pwa-btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.pwa-btn-close:hover {
  color: #334155;
}

/* Floating Pill Button */
.pwa-floating-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  border: 1.5px solid #10b981;
  color: #065f46;
  border-radius: 50px;
  padding: 8px 16px 8px 10px;
  font-size: 12px;
  font-weight: 800;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pwa-floating-btn img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.pwa-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

@media (max-width: 700px) {
  .pwa-install-banner {
    bottom: 75px;
    right: 14px;
    left: 14px;
    max-width: none;
  }
  .pwa-floating-btn {
    bottom: 75px;
    left: 14px;
    right: auto;
  }
}

/* PWA Instruction Modal */
.pwa-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pwa-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.pwa-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 420px;
  padding: 24px 20px;
  z-index: 2;
  text-align: center;
  animation: pwaModalZoom 0.25s ease-out;
}

@keyframes pwaModalZoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.pwa-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.pwa-modal-close-btn:hover {
  color: #1e293b;
}

.pwa-modal-icon-wrap img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 12px;
}

.pwa-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #073f87;
  margin: 0 0 6px 0;
}

.pwa-modal-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

.pwa-modal-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.pwa-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #334155;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #073f87;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.pwa-modal-done-btn {
  background: var(--orange);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  margin-top: 18px;
  transition: background 0.2s;
}

.pwa-modal-done-btn:hover {
  background: #d4470c;
}

/* Completely hide all PWA install prompts & triggers when installed or running standalone */
@media (display-mode: standalone), (display-mode: window-controls-overlay), (display-mode: minimal-ui) {
  .pwa-install-trigger,
  .btn-install-app,
  .pwa-install-banner,
  .pwa-floating-btn,
  #pwaInstallBanner,
  #pwaFloatingBtn,
  #pwaModal {
    display: none !important;
  }
}

html.pwa-installed .pwa-install-trigger,
html.pwa-installed .btn-install-app,
html.pwa-installed .pwa-install-banner,
html.pwa-installed .pwa-floating-btn,
html.pwa-installed #pwaInstallBanner,
html.pwa-installed #pwaFloatingBtn,
html.pwa-installed #pwaModal,
body.pwa-installed .pwa-install-trigger,
body.pwa-installed .btn-install-app,
body.pwa-installed .pwa-install-banner,
body.pwa-installed .pwa-floating-btn,
body.pwa-installed #pwaInstallBanner,
body.pwa-installed #pwaFloatingBtn,
body.pwa-installed #pwaModal {
  display: none !important;
}

/* ═══════════════════════════════════
   FLOATING WHATSAPP CHAT WIDGET
═══════════════════════════════════ */
.whatsapp-floating-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.25s ease, filter 0.25s ease;
  user-select: none;
}

.whatsapp-floating-widget:hover {
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-badge {
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.whatsapp-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  animation: wa-pulse 1.8s infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.whatsapp-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  position: relative;
  flex-shrink: 0;
  transition: box-shadow 0.25s;
}

.whatsapp-floating-widget:hover .whatsapp-icon-btn {
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
}

.whatsapp-svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

@media (max-width: 768px) {
  .whatsapp-floating-widget {
    bottom: 78px;
    right: 16px;
  }
  .whatsapp-badge {
    display: none;
  }
  .whatsapp-icon-btn {
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  }
  .whatsapp-svg {
    width: 26px;
    height: 26px;
  }
}

/* ── HIDE CODEIGNITER DEBUG TOOLBAR ── */
#toolbarContainer,
#debug-icon,
.ci-debug-toolbar,
[id^="ci-debug-"],
#debug-bar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}