/* ==========================================================================
   Kansara Matrimony — theme
   ========================================================================== */

:root {
  --brand-red: #c0272d;
  --brand-red-dark: #9c1f24;
  --brand-green: #6fae2e;
  --brand-green-dark: #558a22;
  --brand-cream: #fff8f2;
  --text-dark: #2c2418;
  --text-muted: #766f66;
  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #fff;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
}

/* ---------------- Header ---------------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.site-logo img {
  height: 56px;
  width: auto;
}

.site-logo-fallback {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand-red);
}

.site-logo-fallback em {
  color: var(--brand-green);
  font-style: normal;
}

.main-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: .5rem 1rem;
  transition: color .2s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--brand-red);
}

.nav-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.btn-brand {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  font-weight: 600;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  transition: background-color .2s ease, transform .15s ease;
}

.btn-brand:hover {
  background-color: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-brand {
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green-dark);
  font-weight: 600;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  background: transparent;
  transition: all .2s ease;
}

.btn-outline-brand:hover {
  background-color: var(--brand-green);
  color: #fff;
}

/* ---------------- Logged-in user menu ---------------- */
.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all .2s ease;
}

.icon-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-red);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  padding: 0 3px;
}

/* ---------------- Notification dropdown ---------------- */
.notification-dropdown {
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
  padding: .5rem;
  margin-top: .6rem !important;
  min-width: 300px;
  max-width: 340px;
}

.notification-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem .6rem;
  border-radius: 10px;
  transition: background-color .15s ease;
}

.notification-item:hover {
  background-color: var(--brand-cream);
}

.notification-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2f0ec;
  color: #2c2418;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.notification-body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.notification-text {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
}

.notification-time {
  font-size: .78rem;
  color: var(--text-muted);
}

.notification-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem;
  margin-top: .3rem;
  border-top: 1px solid #eee;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-red);
}

.notification-view-all:hover {
  color: var(--brand-red-dark);
}

.notification-item-full {
  border-bottom: 1px solid #f3f1ed;
  border-radius: 0;
  padding: 1rem .5rem;
}

.notification-item-full:last-child {
  border-bottom: none;
}

@media (max-width: 991.98px) {
  .notification-dropdown {
    min-width: 260px;
  }
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50px;
  padding: .3rem .9rem .3rem .3rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.user-menu-toggle:hover,
.user-menu-toggle[aria-expanded="true"] {
  border-color: var(--brand-green);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-green));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  color: var(--text-dark);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  font-size: .7rem;
  color: var(--text-muted);
  transition: transform .2s ease;
}

.user-menu-toggle[aria-expanded="true"] .user-caret {
  transform: rotate(180deg);
}

.user-dropdown {
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
  padding: .6rem;
  margin-top: .6rem !important;
  min-width: 220px;
}

.user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

.user-dropdown .dropdown-item i {
  width: 18px;
  color: var(--brand-green-dark);
}

.user-dropdown .dropdown-item:hover {
  background-color: var(--brand-cream);
}

.user-dropdown .dropdown-divider {
  margin: .4rem 0;
}

.user-dropdown .logout-item {
  background-color: var(--brand-red);
  color: #fff;
  font-weight: 700;
  justify-content: center;
}

.user-dropdown .logout-item i {
  color: #fff;
}

.user-dropdown .logout-item:hover {
  background-color: var(--brand-red-dark);
  color: #fff;
}

@media (max-width: 991.98px) {
  .user-actions {
    margin-top: 1rem;
    justify-content: center;
  }

  .user-name {
    max-width: none;
  }

  .user-dropdown {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .nav-actions {
    margin-top: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn {
    text-align: center;
  }

  .main-nav {
    text-align: center;
    margin-top: .5rem;
  }
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--brand-cream) 0%, #fff 60%);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  position: relative;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

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

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1px solid #eee;
  padding: .4rem .9rem;
  border-radius: 50px;
  font-size: .85rem;
  color: var(--brand-green-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(192, 39, 45, .15);
}

.hero-image img {
  display: block;
}

/* ---------------- Search / CTA card ---------------- */
.search-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .08);
  padding: 1.75rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
}

.search-card .form-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-muted);
}

.search-card select,
.search-card .form-control {
  border-radius: 10px;
  padding: .6rem .75rem;
}

.search-card .btn-brand {
  width: 100%;
  padding: .7rem;
  font-size: 1rem;
}

/* ---------------- Sections ---------------- */
.section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .eyebrow {
  color: var(--brand-green-dark);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .8rem;
}

.section-title h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-top: .4rem;
}

.section-alt {
  background-color: var(--brand-cream);
}

/* Feature cards */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.6rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(192, 39, 45, .12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}

.feature-card h5 {
  font-weight: 700;
  margin-bottom: .6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 0;
}

/* Profile / success story cards */
.profile-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  height: 100%;
}

.profile-card .profile-photo {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-card .profile-body {
  padding: 1.1rem 1.2rem;
}

.profile-card h6 {
  font-weight: 700;
  margin-bottom: .2rem;
}

.profile-card .profile-meta {
  color: var(--text-muted);
  font-size: .85rem;
}

/* Steps */
.step {
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-heading);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-radius: 24px;
  color: #fff;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 0 auto;
}

.cta-banner h3 {
  font-weight: 700;
  margin-bottom: .6rem;
}

.cta-banner p {
  opacity: .9;
  margin-bottom: 1.5rem;
}

.cta-banner .btn {
  background: #fff;
  color: var(--brand-red);
  border-radius: 50px;
  font-weight: 700;
  padding: .7rem 2rem;
}

.cta-banner .btn:hover {
  background: var(--brand-cream);
}

/* ---------------- Stay Connected ---------------- */
.stay-connected {
  background: var(--brand-cream);
  color: var(--text-dark);
  padding: 4.5rem 0;
}

.stay-connected .eyebrow-light {
  color: var(--brand-green-dark);
}

.stay-connected .section-title h2 {
  color: var(--text-dark);
}

.stay-connected-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 900px;
  margin: 0 auto 1rem;
  text-align: center;
  line-height: 1.7;
}

.stay-connected-block {
  background: #fff;
  border: 1px solid #ece7dd;
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.stay-connected-block h4 {
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--brand-red);
}

.stay-connected-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stay-connected-list li {
  padding: .5rem 0;
  border-bottom: 1px solid #f0ece3;
  color: var(--text-dark);
  font-size: .95rem;
  line-height: 1.6;
}

.stay-connected-list li:last-child {
  border-bottom: none;
}

.stay-connected-list li i {
  color: var(--brand-green);
  margin-right: .6rem;
}

.stay-connected-steps li strong {
  color: var(--brand-red);
  display: inline;
}

.stay-connected-cta-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.stay-connected-btn {
  background: var(--brand-red);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  padding: .8rem 2.4rem;
  display: inline-block;
  margin: .5rem 0 2rem;
  transition: transform .15s ease, background-color .15s ease;
}

.stay-connected-btn:hover {
  background: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.stay-connected-signoff {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .stay-connected {
    padding: 3rem 0;
  }

  .stay-connected-block {
    padding: 1.4rem;
  }
}

/* ---------------- Contact page ---------------- */
.contact-section {
  background: var(--brand-cream);
  padding: 4.5rem 0;
}

.contact-form-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

.contact-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-dark);
  margin-bottom: .3rem;
}

.contact-input {
  background: #f4f2ee;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  padding: .7rem .9rem;
}

.contact-input:focus {
  background: #fff;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 .2rem rgba(111, 174, 46, .15);
}

.contact-info-text {
  text-align: center;
  padding: 0 1rem;
}

.contact-info-lead {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-info-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.contact-info-text i {
  color: var(--brand-green-dark);
  margin-right: .3rem;
}

.contact-info-text a {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: underline;
}

.contact-info-text a:hover {
  color: var(--brand-red-dark);
}

@media (max-width: 991.98px) {
  .contact-info-text {
    text-align: center;
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  .contact-section {
    padding: 3rem 0;
  }
}

.forgot-password-link {
  display: inline-block;
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--brand-red);
  font-weight: 600;
}

.forgot-password-link:hover {
  color: var(--brand-red-dark);
  text-decoration: underline;
}

/* ---------------- Edit detail modal ---------------- */
.edit-form-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-dark);
  margin-bottom: .3rem;
}

.edit-form-input {
  background: #f4f2ee;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  padding: .55rem .75rem;
}

.edit-form-input:focus {
  background: #fff;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 .2rem rgba(111, 174, 46, .15);
}

/* ---------------- Register page ---------------- */
.register-section {
  position: relative;
  background: var(--brand-cream);
  padding: 3.5rem 0;
}

.register-overlay {
  display: none;
}

.register-container {
  position: relative;
  z-index: 1;
}

.register-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
}

.register-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .3rem;
}

.register-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.register-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-dark);
  margin-bottom: .3rem;
}

.register-input {
  background: #f4f2ee;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  padding: .65rem .85rem;
}

.register-input:focus {
  background: #fff;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 .2rem rgba(111, 174, 46, .15);
}

.register-radio-group {
  padding-top: .4rem;
}

.register-radio-group .form-check-label {
  font-weight: 500;
}

.register-submit-bar {
  display: block;
  width: auto;
  margin: 2rem auto 0;
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .65rem 2.2rem;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(192, 39, 45, .2);
  transition: background-color .2s ease, transform .15s ease;
}

.register-submit-bar:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .register-card {
    padding: 1.4rem;
  }

  .register-submit-bar {
    width: 100%;
    margin-top: 1.5rem;
  }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #201a14;
  color: #cfc7bd;
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer .footer-brand {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.site-footer .footer-brand em {
  color: var(--brand-green);
  font-style: normal;
}

.site-footer .footer-text {
  font-size: .9rem;
  line-height: 1.6;
  color: #a99f92;
}

.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: 1px;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
}

.site-footer .footer-links li {
  margin-bottom: .6rem;
  color: #a99f92;
}

.site-footer .footer-links a {
  color: #a99f92;
  transition: color .2s ease;
}

.site-footer .footer-links a:hover {
  color: var(--brand-green);
}

.site-footer hr {
  border-color: #3a322a;
  margin: 2rem 0 1.2rem;
}

.site-footer .footer-bottom {
  text-align: center;
  font-size: .85rem;
  color: #877e72;
}

/* ---------------- Profile page ---------------- */
.profile-header {
  background: #f6f4f1;
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid #ece8e2;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .3rem;
}

.profile-subtitle {
  color: var(--text-muted);
  margin-bottom: 0;
}

.profile-summary-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
  padding: 2rem;
}

.profile-photo-frame {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #f2f0ec;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #f6f4f1;
}

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

.profile-photo-frame i {
  font-size: 9rem;
  color: #2c2418;
}

.profile-basic-info p {
  margin-bottom: .6rem;
  font-size: 1.02rem;
  color: var(--text-dark);
}

.profile-basic-info .label {
  color: #3a5a8c;
  font-weight: 600;
  margin-right: .3rem;
}

.download-link {
  display: inline-flex;
  color: #3a7ac9;
  font-size: 1.6rem;
  margin-top: .2rem;
  transition: color .2s ease;
}

.download-link:hover {
  color: var(--brand-red);
}

.profile-progress .progress-title {
  color: var(--brand-green-dark);
  font-weight: 700;
  margin-bottom: .5rem;
}

.profile-progress-bar {
  height: 26px;
  border-radius: 50px;
  background-color: #eee;
  overflow: hidden;
}

.profile-progress-bar .progress-bar {
  background-color: var(--brand-green);
  font-weight: 700;
  font-size: .8rem;
}

@media (max-width: 767.98px) {
  .profile-summary-card {
    padding: 1.4rem;
    text-align: center;
  }

  .profile-basic-info {
    text-align: left;
    margin-top: 1.2rem;
  }
}

/* ---------------- Personal information card ---------------- */
.personal-info-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
  padding: 2rem;
}

.personal-info-title {
  color: var(--brand-green-dark);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: .7rem;
}

.personal-info-divider {
  border-top: 1px solid #eee;
  opacity: 1;
  margin-bottom: 1.4rem;
}

.info-subsection-heading {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.info-subsection-heading i:first-child {
  color: var(--brand-green-dark);
  font-size: 1rem;
}

.info-subsection-heading .edit-icon {
  color: var(--brand-green-dark);
  font-size: .8rem;
  margin-left: .2rem;
}

.info-subsection-heading .edit-icon:hover {
  color: var(--brand-red);
}

.info-grid {
  display: flex;
  flex-direction: column;
  font-size: .85rem;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  padding: .5rem 0;
  border-bottom: 1px solid #f3f1ed;
}

.info-row:last-child {
  border-bottom: none;
}

.info-col {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  padding-right: 1rem;
}

.info-label {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 190px;
}

.info-value {
  color: #3a5a8c;
}

.info-row.single-col {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
}

.info-row.single-col .info-label {
  min-width: 190px;
}

.profile-photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.gallery-thumb {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-frame.clickable,
.gallery-thumb.clickable {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.profile-photo-frame.clickable:hover,
.gallery-thumb.clickable:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* ---------------- Photo lightbox ---------------- */
.photo-lightbox .modal-content {
  background: #000;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.photo-lightbox .carousel-item img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}

.photo-lightbox .lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  opacity: .9;
}

.photo-lightbox .carousel-control-prev,
.photo-lightbox .carousel-control-next {
  width: 60px;
  opacity: .9;
}

.photo-lightbox .carousel-control-prev i,
.photo-lightbox .carousel-control-next i {
  font-size: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox .carousel-indicators {
  position: relative;
  margin-top: 0;
  padding: .8rem 0;
  background: #000;
}

.photo-lightbox .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background-color: transparent;
  opacity: 1;
  margin: 0 5px;
}

.photo-lightbox .carousel-indicators .active {
  background-color: #fff;
}

/* ---------------- Similar profiles sidebar ---------------- */
.similar-profiles-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}

.similar-profiles-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.similar-profile-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed #d8d2c8;
  transition: transform .15s ease;
}

.similar-profile-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.similar-profile-item:hover {
  transform: translateX(3px);
}

.similar-profile-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f2f0ec;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.similar-profile-photo i {
  font-size: 2.4rem;
  color: #2c2418;
}

.similar-profile-info {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.similar-profile-name {
  color: #3a7ac9;
  font-weight: 600;
  font-size: .95rem;
  white-space: normal;
}

.similar-profile-age,
.similar-profile-city {
  font-size: .85rem;
  color: var(--text-dark);
}

@media (max-width: 991.98px) {
  .similar-profiles-card {
    position: static;
  }
}

/* ---------------- Search page ---------------- */
.search-filter-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.filter-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.filter-divider {
  border-top: 1px solid #eee;
  opacity: 1;
  margin: 1rem 0;
}

.filter-toggle .form-check-label {
  font-size: .9rem;
  font-weight: 600;
}

.filter-group-title {
  font-weight: 700;
  font-size: .85rem;
  color: var(--brand-green-dark);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: .6rem;
  display: block;
}

.filter-group .form-check {
  margin-bottom: .4rem;
}

.filter-group .form-check-label {
  font-size: .85rem;
  color: var(--text-dark);
}

.filter-scroll-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: .4rem;
}

.filter-scroll-list::-webkit-scrollbar {
  width: 6px;
}

.filter-scroll-list::-webkit-scrollbar-thumb {
  background: #ddd8cf;
  border-radius: 10px;
}

.search-result-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.search-result-photo {
  width: 130px;
  height: 150px;
  border-radius: 10px;
  background: #f2f0ec;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.search-result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-photo i {
  font-size: 5rem;
  color: #2c2418;
}

.search-result-info {
  flex: 1 1 280px;
  min-width: 0;
}

.search-result-name {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.search-result-name a {
  color: #3a7ac9;
  transition: color .15s ease;
}

.search-result-name a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.search-result-details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .85rem;
  color: var(--text-dark);
}

.search-result-details li {
  margin-bottom: .3rem;
}

.search-result-action {
  flex-shrink: 0;
  align-self: center;
}

.btn-view-profile {
  background-color: #e58a1a;
  color: #fff;
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.btn-view-profile:hover {
  background-color: #c9760f;
  color: #fff;
}

.search-no-results {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  padding: 3rem;
  text-align: center;
}

.search-pagination .page-link {
  color: var(--brand-red);
  border-color: #eee;
}

.search-pagination .page-item.active .page-link {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.search-pagination .page-item.disabled .page-link {
  color: #ccc;
}

@media (max-width: 991.98px) {
  .search-filter-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .search-result-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .search-result-action {
    width: 100%;
  }

  .btn-view-profile {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .personal-info-card {
    padding: 1.4rem;
  }

  .info-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .info-label {
    min-width: auto;
    flex: 1 1 100%;
  }

  .info-row.single-col .info-label {
    min-width: auto;
    flex: 1 1 100%;
  }
}

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 767.98px) {
  .hero {
    padding: 2.5rem 0 3rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .search-card {
    margin-top: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-banner {
    padding: 2.2rem 1.4rem;
  }
}
