:root {
  --brand: #0d6efd;
  --brand-dark: #0a1f44;
  --brand-navy: #0f2247;
  --brand-gold: #c9a24b;
  --brand-green: #1f9d55;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: #f8f9fb;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ==========================================
   Hero Slider (custom "Revolution"-style slider)
   ========================================== */
.hero-slider {
  position: relative;
  height: 640px;
  overflow: hidden;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
  z-index: 1;
}

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

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 7s ease-out;
}

/* Ken Burns zoom effect while a slide is active */
.hero-slide.active .hero-slide-bg {
  transform: scale(1.12);
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,31,68,0.82) 0%, rgba(10,31,68,0.55) 55%, rgba(10,31,68,0.35) 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-slide-content .eyebrow,
.hero-slide-content h1,
.hero-slide-content h2,
.hero-slide-content p,
.hero-slide-content .hero-btns {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.hero-slide.active .eyebrow       { transition-delay: .15s; }
.hero-slide.active h1             { transition-delay: .32s; }
.hero-slide.active p              { transition-delay: .48s; }
.hero-slide.active .hero-btns     { transition-delay: .64s; }

.hero-slide.active .eyebrow,
.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .hero-btns {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-content .eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 600;
  color: #7fb1ff;
  margin-bottom: .75rem;
}

.hero-slide-content h1,
.hero-slide-content h2 {
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-slide-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
  max-width: 520px;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}

.hero-arrow:hover { background: rgba(255,255,255,0.22); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Progress bar (autoplay timer) */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  width: 0%;
  z-index: 6;
}

@media (max-width: 767px) {
  .hero-slider { height: 520px; }
  .hero-slide-content h1, .hero-slide-content h2 { font-size: 2rem; }
  .hero-arrow { display: none; }
}

.search-card {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: #fff;
}

.search-card .form-label {
  color: #333;
}

@media (max-width: 767px) {
  .search-card {
    margin-top: -32px;
  }
}

/* Property cards */
.property-card {
  border: none;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.property-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

.badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

/* ==========================================
   Section titles (serif heading + gold underline)
   ========================================== */
.section-title {
  text-align: center;
  margin-bottom: .5rem;
}

.section-title h2 {
  font-weight: 700;
  color: var(--brand-navy);
  position: relative;
  display: inline-block;
  padding-bottom: .6rem;
  margin-bottom: .4rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand-gold);
}

.section-title p {
  color: #6c757d;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================
   Featured Opportunities cards
   ========================================== */
.opportunity-card {
  border: none;
  border-radius: .9rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(10,31,68,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

.opportunity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(10,31,68,0.14);
}

.opportunity-img-wrap {
  position: relative;
}

.opportunity-img-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.opportunity-badge-status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-green);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 50px;
}

.opportunity-badge-status.taken {
  background: #6c757d;
}

.opportunity-badge-price {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .45rem 1rem;
  border-radius: .5rem;
}

.opportunity-body {
  padding: 1.25rem 1.25rem 1rem;
}

.opportunity-category {
  display: inline-block;
  background: #eef1f6;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 50px;
  margin-bottom: .6rem;
}

.opportunity-body h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

.opportunity-body h5 a {
  color: var(--brand-navy);
  text-decoration: none;
}

.opportunity-body h5 a:hover {
  color: var(--brand);
}

.opportunity-location {
  color: #6c757d;
  font-size: .88rem;
  margin-bottom: .9rem;
}

.opportunity-footer {
  border-top: 1px solid #eee;
  padding-top: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: #444;
}

.opportunity-footer a {
  color: var(--brand-gold);
  font-weight: 600;
  text-decoration: none;
}

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

/* ==========================================
   Why Invest section
   ========================================== */
.why-invest-card {
  display: block;
  background: #f8f9fb;
  border-radius: .9rem;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: left;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.why-invest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(10,31,68,0.1);
  border-color: rgba(201,162,75,0.4);
  background: #fff;
}

.why-invest-card i {
  font-size: 1.9rem;
  color: var(--brand-navy);
  margin-bottom: 1rem;
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}

.why-invest-card:hover i {
  color: var(--brand-gold);
  transform: scale(1.08);
}

.why-invest-card h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: .6rem;
}

.why-invest-card p {
  color: #6c757d;
  font-size: .9rem;
  margin-bottom: 0;
}

.why-invest-title-link {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color .2s ease;
}

.why-invest-title-link:hover {
  color: var(--brand-gold);
}

/* ==========================================
   CTA banner
   ========================================== */
.cta-banner {
  position: relative;
  background: linear-gradient(rgba(10,20,45,0.88), rgba(10,20,45,0.88)),
              url('../images/dummy/cta-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
}

.cta-banner h1,
.cta-banner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin-bottom: .75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

/* ==========================================
   Footer (dark, 4-column)
   ========================================== */
.site-footer {
  background: #1a1a1a;
  color: #b7b7b7;
  padding: 3.5rem 0 0;
}

.site-footer h6 {
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  font-size: .8rem;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}

.footer-brand span {
  color: var(--brand-gold);
}

.site-footer p,
.site-footer li,
.site-footer a {
  font-size: .88rem;
  color: #b7b7b7;
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
}

.site-footer ul li {
  margin-bottom: .55rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2867b2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .5rem;
  font-size: .95rem;
}

.footer-newsletter {
  display: flex;
  border-radius: .4rem;
  overflow: hidden;
}

.footer-newsletter input {
  border: 1px solid #3a3a3a;
  background: #222;
  color: #fff;
  padding: .6rem .8rem;
  flex-grow: 1;
  font-size: .85rem;
}

.footer-newsletter input::placeholder {
  color: #888;
}

.footer-newsletter button {
  background: var(--brand-gold);
  border: none;
  color: #1a1a1a;
  padding: 0 1rem;
}

.footer-bottom {
  border-top: 1px solid #2e2e2e;
  margin-top: 2.5rem;
  padding: 1.1rem 0;
  font-size: .8rem;
}

.footer-bottom a {
  color: #b7b7b7;
  margin-left: 1.25rem;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}
/* ==========================================
   Navbar link hover (animated gold underline)
   ========================================== */
.nav-link-hover {
  position: relative;
  color: #333 !important;
  font-weight: 500;
  padding: .5rem .75rem !important;
  transition: color .2s ease;
}

.nav-link-hover::after {
  content: '';
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .25rem;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-link-hover:hover,
.nav-link-hover.active {
  color: var(--brand-navy) !important;
}

.nav-link-hover:hover::after,
.nav-link-hover.active::after {
  transform: scaleX(1);
}

.agent-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* Property details gallery */
.gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: .75rem;
}

.gallery-thumb img {
  height: 90px;
  object-fit: cover;
  border-radius: .5rem;
  cursor: pointer;
  opacity: .7;
}

.gallery-thumb img.active,
.gallery-thumb img:hover {
  opacity: 1;
  outline: 2px solid var(--brand);
}

/* Admin */
.admin-sidebar {
  min-height: 100vh;
  background: var(--brand-dark);
}

.admin-sidebar a {
  color: #cdd6e6;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
