/* ============================================
   Secure Life Finance — Custom Stylesheet
   ============================================ */

/* ── Variables ───────────────────────────── */
:root {
  --primary: #0a3d62;
  --primary-dark: #072d48;
  --accent: #1e88e5;
  --accent-light: #e3f2fd;
  --gold: #f9a825;
  --gold-dark: #f57f17;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f8f9fc;
  --white: #ffffff;
  --border: #e0e7ef;
  --shadow: 0 8px 30px rgba(10, 61, 98, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 61, 98, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ── Cookie Consent ──────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  animation: slideUp 0.4s ease;
}

.cookie-consent p a {
  color: var(--gold);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* ── Top Bar ─────────────────────────────── */
.topbar {
  background: var(--primary-dark);
  color: #ccc;
  font-size: 13px;
  padding: 7px 0;
}

.topbar a {
  color: #cfd8dc;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Navbar ──────────────────────────────── */
.main-navbar {
  background: var(--primary) !important;
  padding: 12px 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.main-navbar.scrolled {
  background: rgba(10, 61, 98, 0.97) !important;
  padding: 8px 0;
  backdrop-filter: blur(10px);
}

.logo-img {
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.dropdown-menu-custom {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
}

.dropdown-menu-custom .dropdown-item {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu-custom .dropdown-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ── Hero Section ────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5276 50%, var(--accent) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero company name (above badge) */
.hero-company-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.company-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-shadow: 0 0 30px rgba(249, 168, 37, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
  display: inline-block;
  border-bottom: 4px solid var(--gold);
  padding-bottom: 8px;
}

.company-sub {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  opacity: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(249, 168, 37, 0.2);
  color: var(--gold);
  border: 1px solid rgba(249, 168, 37, 0.4);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--gold);
}

.hero-text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

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

.hero-stat .stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.hero-stat .stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 35px;
}

.hero-card .form-control,
.hero-card .form-select {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
}

.hero-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero-card .form-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
}

.hero-card .form-select option {
  color: #333;
  background: #fff;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #fff;
  bottom: 50px;
  left: 10%;
}

/* ── Section Styles ──────────────────────── */
.section-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
}

/* ── Service Cards ───────────────────────── */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Image header */
.service-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #eef4fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}

/* Fallback icon (used where no image) */
.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: #fff;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Card body */
.service-card-body {
  padding: 22px 24px 24px;
}

.service-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.service-card .card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  transition: var(--transition);
}

.service-card .card-link:hover {
  gap: 10px;
}

/* ── Why Choose Us ───────────────────────── */
.why-section {
  background: var(--bg-light);
}

.feature-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.feature-item h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
}

.stat-card .number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.stat-card .label {
  font-size: 13px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* ── Testimonials ────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  margin: 10px;
  border-left: 4px solid var(--accent);
}

.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-name {
  font-weight: 700;
  font-size: 15px;
}

.author-loc {
  font-size: 12px;
  color: var(--text-muted);
}


/* ── Write a Review Section ──────────────── */
.write-review-section {
  background: linear-gradient(180deg, #f0f6ff 0%, #f8fbff 100%);
}

.review-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(30, 90, 180, 0.1);
  border: 1px solid rgba(30, 136, 229, 0.08);
}

/* Photo upload circle */
.review-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--accent);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.review-photo-wrap:hover {
  background: #d6eaff;
  border-style: solid;
}

.review-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Star picker */
.star-picker {
  display: flex;
  gap: 6px;
}

.star-btn {
  font-size: 36px;
  color: #dde4f0;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  user-select: none;
}

.star-btn.active,
.star-btn:hover {
  color: var(--gold);
  transform: scale(1.15);
}

.rating-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  min-height: 22px;
}

/* ── CTA Section ─────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ── Form Styles ─────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
}

/* ── Page Hero ───────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 70px 0;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb-item.active {
  color: var(--gold);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Service Page ────────────────────────── */
.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.eligibility-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.eligibility-list li:last-child {
  border: none;
}

.eligibility-list li i {
  color: var(--accent);
  margin-right: 8px;
}

/* ── About Page ──────────────────────────── */
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
  color: #fff;
}

/* ── Blog Page ───────────────────────────── */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card .category-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 10px;
}

/* ── Contact Page ────────────────────────── */
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
}

/* ── Admin Panel ─────────────────────────── */
.admin-sidebar {
  min-height: 100vh;
  background: var(--primary);
  width: 260px;
  flex-shrink: 0;
}

.admin-sidebar .sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 12px 20px !important;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  margin: 2px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.admin-sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  flex: 1;
  background: var(--bg-light);
  min-height: 100vh;
  padding: 24px;
}

.stat-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-widget-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.stat-widget .value {
  font-size: 28px;
  font-weight: 800;
}

.stat-widget .title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Legal Pages ─────────────────────────── */
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

/* ── Footer ──────────────────────────────── */
.main-footer {
  background: #061929;
}

.footer-heading {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-text {
  color: #8fa3b1;
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #8fa3b1;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: #8fa3b1;
  font-size: 14px;
}

.footer-contact li i {
  color: var(--gold);
  width: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact a {
  color: #8fa3b1;
  text-decoration: none;
}

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.07);
}

.footer-legal-link {
  color: #6c8394;
  font-size: 12.5px;
  text-decoration: none;
  margin-left: 14px;
  transition: var(--transition);
}

.footer-legal-link:hover {
  color: var(--gold);
}

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #8fa3b1;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: #fff;
}

/* ── Utilities ───────────────────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.bg-light-custom {
  background: var(--bg-light);
}

.text-primary-custom {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }

  .admin-sidebar {
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    display: none !important;
  }

  .hero-stats {
    gap: 15px;
  }
}