/*
 * style.css — complement layer on top of nasiha-core.css + Bootstrap 5
 * Only rules not covered by nasiha-core.css live here.
 */

/* ===== SPINNER / PAGE LOADER ===== */
.spinner-wrpr {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.spinner-wrpr.hidden {
  opacity: 0;
  pointer-events: none;
}
.spinner {
  width: 50px;
  height: 50px;
  position: relative;
}
.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #b89788;
  opacity: 0.6;
  position: absolute;
  top: 0; left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}
.double-bounce2 {
  animation-delay: -1s;
}
@keyframes sk-bounce {
  0%, 100% { transform: scale(0); }
  50%       { transform: scale(1); }
}

/* ===== VARIABLE ALIASES (backward compat with inline styles on inner pages) ===== */
:root {
  --primary:       #b89788;
  --primary-dark:  #a97e6b;
  --primary-light: #f5ede9;
  --dark:          #1a2d5a;
  --dark2:         #1a2d5a;
  --text:          #657786;
  --text-light:    #999;
  --border:        #e8edf2;
  --light:         #f8f9fc;
}

/* ===== BOOTSTRAP .btn-primary OVERRIDE ===== */
.btn-primary {
  background-color: #b89788 !important;
  border-color: #a97e6b !important;
  color: #fff !important;
  border-radius: 25px !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 10px 25px !important;
  transition: 0.3s !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #a97e6b !important;
  border-color: #a97e6b !important;
  color: #fff !important;
}
.btn-outline-white, .btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 25px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 25px;
  display: inline-block;
  transition: 0.3s;
  cursor: pointer;
}
.btn-outline-white:hover, .btn-outline:hover {
  background: #fff;
  color: #b89788;
}

/* ===== SECTION SPACING ===== */
.section { padding: 100px 0; }

/* ===== HERO BANNER PADDING FIX ===== */
.hero-banner-2 {
  padding-top: 180px;
  padding-bottom: 120px;
}

/* ===== SERVICE ITEM CARDS ===== */
#services-section-one.style-4 .service-item {
  padding: 35px 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  margin-bottom: 30px;
  display: block;
  transition: box-shadow .3s, transform .3s;
}
#services-section-one.style-4 .service-item:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  transform: translateY(-4px);
  background: #fff;
}

/* ===== TEAM ITEM IMAGE ===== */
#team-section-one .team-item img {
  border-bottom: 5px solid #b89788;
  width: 100%;
  object-fit: cover;
  max-height: 300px;
}

/* ===== PAGE BANNER (inner pages) ===== */
.page-banner {
  background: #1a2d5a;
  color: #fff;
  padding: 160px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 0;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: 2.6rem; font-weight: 600; margin-bottom: 14px; }
.page-banner .breadcrumb { color: rgba(255,255,255,.6); font-size: .88rem; background: none; justify-content: center; }
.page-banner .breadcrumb-item a { color: #b89788; }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,.6); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ===== CONTACT PAGE ===== */
.contact-info-box {
  background: #f8f9fc;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
}
.contact-info-box i { color: #b89788; font-size: 1.5rem; margin-bottom: 12px; display: block; }

/* ===== BLOG SECTION (frontend) ===== */
#blog-section-one {
  padding: 100px 0 50px;
}
#blog-section-one .blog-filter-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
#blog-section-one .blog-filter-btn {
  padding: 7px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: all .3s;
}
#blog-section-one .blog-filter-btn:hover,
#blog-section-one .blog-filter-btn.active {
  background: #b89788;
  border-color: #b89788;
  color: #fff;
}
#blog-section-one .blog-item {
  overflow: hidden;
  margin-bottom: 50px;
}
#blog-section-one .blog-item .image {
  border-radius: 5px;
  overflow: hidden;
}
#blog-section-one .blog-item .blog-img-placeholder {
  width: 100%;
  height: 130px;
  background: #f0ece9;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ccc;
}
#blog-section-one .blog-item .contents {
  padding-top: 5px;
}
.small-primary {
  font-size: 14px;
  color: #b89788;
  margin-bottom: 5px;
  display: block;
  font-weight: 400;
  text-decoration: none;
  transition: color .3s;
}
.small-primary:hover { color: #1a2d5a; }
h3.blog-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a2d5a;
  margin: 0 0 15px;
  line-height: 1.4;
  transition: color .3s;
}
a:hover h3.blog-title { color: #b89788; }
.blog-meta {
  font-size: 12px;
  text-transform: uppercase;
  color: #657786;
  letter-spacing: 0.5px;
}
.blog-meta a { color: #b89788; text-decoration: none; }
.blog-meta a:hover { color: #1a2d5a; }
.blog-excerpt {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  line-height: 1.6;
}
.blog-empty {
  text-align: center;
  padding: 60px;
  color: #999;
}
.blog-empty i { font-size: 3rem; color: #ddd; display: block; margin-bottom: 16px; }

/* ===== BLOG CARDS (admin-style, legacy) ===== */
.blog-card-wrap {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  margin-bottom: 30px;
  transition: box-shadow .3s, transform .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card-wrap:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); transform: translateY(-4px); }
.blog-card-wrap img { width: 100%; height: 210px; object-fit: cover; }
.blog-card-wrap .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-wrap .category { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #b89788; font-weight: 700; }
.blog-card-wrap h3 { font-size: 18px; margin: 8px 0 10px; }
.blog-card-wrap h3 a { color: #1a2d5a; transition: color .3s; }
.blog-card-wrap h3 a:hover { color: #b89788; }
.blog-card-wrap .meta { font-size: 13px; color: #999; margin-bottom: 12px; }

/* ===== FORM STYLES ===== */
.form-control:focus {
  border-color: #b89788;
  box-shadow: 0 0 0 .2rem rgba(184,151,136,.2);
}

/* ===== ALERT STYLES ===== */
.alert { border-radius: 6px; padding: 14px 20px; margin-bottom: 20px; font-size: .9rem; }
.alert-success { background: #edf7ed; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error   { background: #fdecea; color: #c62828; border: 1px solid #ffcdd2; }

/* ===== FOOTER BG: suppress missing nasiha img ===== */
.footer-one {
  background: #34323d;
}

/* ===== STICKY HEADER active state supplement ===== */
.header-one.sticky.active {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===== MOBILE NAV OVERLAY ===== */
@media (max-width: 991px) {
  .header-one .header-nav .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26,45,90,.97);
    padding: 20px 0;
    z-index: 999;
  }
  .header-one .header-nav .menu.open { display: block; }
  .header-one .header-nav .menu ul { margin: 0; }
  .header-one .header-nav .menu > ul > li { display: block; }
  .header-one .header-nav .menu > ul > li > a { padding: 10px 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-toggler {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
  }
}
@media (min-width: 992px) {
  .nav-toggler { display: none; }
  .header-one .header-nav .menu { display: block !important; }
}

/* ===== UTILITY ===== */
.gap-3 { gap: 1rem; }
.text-primary-brand { color: #b89788; }
