/* ==========================================================================
   Capital Trust Bank of Siw — Shared Stylesheet
   ========================================================================== */

:root{
  --navy: #0B2E59;
  --navy-dark: #071d3a;
  --royal: #1E88E5;
  --gold: #D4AF37;
  --gold-light: #e6c766;
  --soft-gray: #F8F9FA;
  --success: #1e9e5a;
  --warning: #e08a1e;
  --danger: #d9483f;
}

body{
  font-family: 'Inter', 'Poppins', sans-serif;
  color: #333;
  background: #fff;
}
h1,h2,h3,h4{
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy-dark);
}

a{ text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar{
  background: var(--navy-dark);
  color: #cfd8e8;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar i{ color: var(--gold); margin-right: 6px; }
.topbar a{ color: #cfd8e8; }

/* ---------- Navbar ---------- */
.navbar-custom{
  background: var(--navy);
  padding: 16px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.navbar-custom .nav-link{
  color: #e7ecf5 !important;
  font-weight: 500;
  margin: 0 8px;
  transition: color .2s ease;
}
.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover{ color: var(--gold-light) !important; }
.brand-logo-icon{
  background: var(--gold);
  color: var(--navy);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.brand-name{
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  font-family: 'Poppins', sans-serif;
}
.brand-name small{
  display:block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 600;
}
.btn-login{
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 30px;
  padding: 6px 22px;
  font-weight: 500;
}
.btn-login:hover{ background: var(--gold); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn-gold{
  background: var(--gold);
  color: var(--navy-dark);
  border: 1px solid var(--gold);
  font-weight: 600;
  border-radius: 6px;
  padding: 12px 28px;
  transition: all .2s ease;
}
.btn-gold:hover{
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212,175,55,0.25);
}
.btn-outline-gold{
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  font-weight: 600;
  border-radius: 6px;
  padding: 12px 28px;
  transition: all .2s ease;
}
.btn-outline-gold:hover{ background: var(--gold); color: var(--navy-dark); }
.btn-navy{
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  font-weight: 600;
  border-radius: 6px;
  padding: 12px 28px;
  transition: all .2s ease;
}
.btn-navy:hover{ background: var(--navy-dark); color: #fff; }

/* ---------- Hero (homepage) ---------- */
.hero{
  background:
    linear-gradient(100deg, rgba(7,29,58,0.93) 0%, rgba(7,29,58,0.78) 40%, rgba(7,29,58,0.3) 75%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
  padding: 100px 0 60px;
  position: relative;
}
.hero h1{ color:#fff; font-weight: 700; font-size: 2.75rem; margin-bottom: 20px; }
.hero p.lead{ color: #d7deec; max-width: 520px; font-size: 1.05rem; }

/* Stats bar under hero */
.stats-bar{
  background: var(--navy-dark);
  color: #fff;
  padding: 30px 0;
}
.stats-bar .stat-num{
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--gold-light);
}
.stats-bar .stat-label{
  font-size: 0.85rem;
  color: #b9c3d6;
}

/* Simple sub-page hero banner */
.page-hero{
  background:
    linear-gradient(100deg, rgba(7,29,58,0.95) 0%, rgba(30,136,229,0.75) 100%),
    url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-hero h1{ color:#fff; font-weight:700; }
.page-hero p{ color:#d7deec; max-width:600px; margin: 10px auto 0; }
.breadcrumb-light a{ color:#d7deec; }
.breadcrumb-light .active{ color: var(--gold-light); }

/* ---------- Feature strip ---------- */
.feature-strip{
  background: var(--navy);
  border-radius: 14px;
  position: relative;
  z-index: 5;
  padding: 40px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.feature-strip.overlap{ margin-top: -80px; }
.feature-item{ color: #fff; text-align: center; }
.feature-item i{ font-size: 1.9rem; color: var(--gold); margin-bottom: 12px; display:block; }
.feature-item h6{ font-weight: 600; margin-bottom: 6px; }
.feature-item p{ color: #b9c3d6; font-size: 0.85rem; margin-bottom: 0; }

/* ---------- Section helpers ---------- */
.section-eyebrow{
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}
.section-title{ font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; }
.title-underline{ width: 60px; height: 3px; background: var(--gold); margin: 0 auto 20px; }
.title-underline.start{ margin: 0 0 20px; }
.bg-soft{ background: var(--soft-gray); }

/* ---------- Service / feature cards ---------- */
.service-card{
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px 25px;
  height: 100%;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover{
  box-shadow: 0 15px 30px rgba(11,33,73,0.1);
  transform: translateY(-4px);
}
.service-icon{
  width: 55px; height: 55px; border-radius: 10px;
  background: #fbf1de;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon i{ color: var(--gold); font-size: 1.5rem; }
.service-card h5{ font-weight: 600; color: var(--navy-dark); }
.service-card p{ color: #6c757d; font-size: 0.9rem; }
.learn-more{ color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.learn-more i{ margin-left: 4px; }
.learn-more:hover{ color: var(--gold); }

/* Icon-list (checkmarks for feature lists) */
.icon-list{ list-style:none; padding:0; margin:0; }
.icon-list li{ display:flex; align-items:flex-start; gap:10px; margin-bottom: 14px; }
.icon-list i{ color: var(--success); margin-top: 4px; }

/* Pricing / product cards */
.product-card{
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover{ box-shadow: 0 15px 30px rgba(11,33,73,0.1); transform: translateY(-4px); }
.product-card .product-head{
  background: var(--navy);
  color: #fff;
  padding: 24px;
}
.product-card.featured .product-head{ background: var(--gold); color: var(--navy-dark); }
.product-card .product-body{ padding: 24px; }
.product-card .price{ font-family:'Poppins',sans-serif; font-weight:700; font-size:1.8rem; color: var(--navy-dark); }
.badge-featured{
  background: var(--gold); color: var(--navy-dark); font-weight:600;
  font-size: 0.7rem; letter-spacing: 1px; padding: 5px 12px; border-radius: 20px;
}

/* ---------- Security banner ---------- */
.security-banner{ background: var(--navy); color: #fff; padding: 45px 0; }
.security-icon{
  width: 55px; height: 55px; border-radius: 50%;
  background: rgba(212,175,55,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.security-icon i{ color: var(--gold); font-size: 1.6rem; }
.security-banner h5{ font-weight: 600; margin-bottom: 4px; }
.security-banner p{ color: #b9c3d6; margin-bottom: 0; font-size: 0.9rem; }

.security-feature{
  text-align:center; padding: 30px 20px; border-radius: 10px; background:#fff;
  border: 1px solid #eee; height:100%;
}
.security-feature i{ font-size: 2rem; color: var(--royal); margin-bottom: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; border-radius: 16px; padding: 50px; text-align:center;
}
.cta-banner h2{ color:#fff; }
.cta-banner p{ color:#c7d1e3; }

/* ---------- Forms ---------- */
.form-control, .form-select{
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid #dfe3ea;
}
.form-control:focus, .form-select:focus{
  border-color: var(--royal);
  box-shadow: 0 0 0 0.2rem rgba(30,136,229,0.15);
}
.form-label{ font-weight: 500; font-size: 0.9rem; color: var(--navy-dark); }

.contact-info-card{
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 40px 30px;
}
.contact-info-card .info-item{ display:flex; gap:14px; margin-bottom: 24px; align-items:flex-start; }
.contact-info-card .info-item i{
  width: 42px; height: 42px; border-radius: 8px;
  background: rgba(212,175,55,0.15); color: var(--gold);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.map-placeholder{
  height: 260px; border-radius: 14px; overflow:hidden;
}

/* ---------- Auth (login) card ---------- */
.auth-wrap{
  min-height: calc(100vh - 250px);
  display:flex; align-items:center; justify-content:center;
  background: var(--soft-gray);
  padding: 60px 15px;
}
.auth-card{
  background:#fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(11,33,73,0.12);
  max-width: 440px; width:100%; padding: 45px 40px;
}
.auth-card .brand-logo-icon{ margin: 0 auto 14px; }
.auth-tabs{ display:flex; background:#f1f3f6; border-radius: 30px; padding: 4px; margin-bottom: 26px; }
.auth-tabs a{
  flex:1; text-align:center; padding: 8px 0; border-radius: 30px; font-weight:600; font-size:0.9rem;
  color:#6c757d;
}
.auth-tabs a.active{ background: var(--navy); color:#fff; }
.form-check-label{ font-size:0.85rem; }
.biometric-btn{
  border:1px dashed #d0d6e0; border-radius:10px; padding:14px; text-align:center;
  color: var(--navy); font-weight:500; font-size:0.9rem; display:block; margin-top: 16px;
}
.biometric-btn i{ font-size:1.3rem; display:block; margin-bottom:6px; color: var(--royal); }

/* ---------- Team / about ---------- */
.value-card{ text-align:center; padding: 30px 15px; }
.value-card i{
  width: 65px; height:65px; border-radius:50%;
  background:#fbf1de; color: var(--gold);
  display:flex; align-items:center; justify-content:center; margin: 0 auto 16px; font-size:1.6rem;
}
.team-card{ text-align:center; }
.team-card img{ border-radius: 12px; margin-bottom: 14px; width:100%; object-fit:cover; height:260px; }
.team-card h6{ font-weight:600; margin-bottom:2px; }
.team-card span{ color: var(--gold); font-size:0.85rem; }
.timeline{ border-left: 2px solid #e5e9f0; margin-left: 10px; padding-left: 30px; }
.timeline-item{ position:relative; padding-bottom: 34px; }
.timeline-item::before{
  content:''; position:absolute; left:-36px; top:2px; width:14px; height:14px; border-radius:50%;
  background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px #e5e9f0;
}
.timeline-item .year{ color: var(--gold); font-weight:700; font-size:0.85rem; }

/* ---------- Dashboard (internet banking) ---------- */
.dash-body{ background: var(--soft-gray); }
.dash-topbar{
  background:#fff; border-bottom: 1px solid #eaeef3;
  padding: 12px 0; position: sticky; top:0; z-index: 100;
}
.dash-search{
  background:#f1f3f6; border-radius: 30px; padding: 8px 18px; font-size:0.9rem; min-width:220px;
}
.dash-icon-btn{
  width:42px; height:42px; border-radius:50%; background:#f1f3f6;
  display:flex; align-items:center; justify-content:center; position:relative; color: var(--navy);
}
.dash-icon-btn .dot{
  position:absolute; top:8px; right:9px; width:8px; height:8px; border-radius:50%; background: var(--danger);
  border:1.5px solid #fff;
}
.dash-avatar{ width:42px; height:42px; border-radius:50%; object-fit:cover; }

.dash-sidebar{
  background: var(--navy-dark); color:#b9c3d6; min-height: calc(100vh - 65px);
  width: 250px; flex-shrink:0; padding: 24px 0;
}
.dash-sidebar .nav-link{
  color:#b9c3d6; padding: 11px 24px; font-size:0.92rem; border-left:3px solid transparent;
  display:flex; align-items:center; gap:12px;
}
.dash-sidebar .nav-link i{ font-size:1.05rem; width:20px; }
.dash-sidebar .nav-link:hover{ background: rgba(255,255,255,0.04); color:#fff; }
.dash-sidebar .nav-link.active{
  background: rgba(212,175,55,0.1); color: var(--gold-light); border-left-color: var(--gold);
}
.dash-sidebar .sidebar-heading{
  text-transform:uppercase; font-size:0.7rem; letter-spacing:1px; color:#6d7994;
  padding: 18px 24px 8px;
}

.dash-main{ flex:1; min-width:0; padding: 28px; }
.summary-card{
  background:#fff; border-radius: 14px; padding: 22px; border:1px solid #eef0f4; height:100%;
}
.summary-card .icon-wrap{
  width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  margin-bottom: 14px; font-size:1.2rem;
}
.summary-card .label{ color:#8a93a6; font-size:0.82rem; }
.summary-card .amount{ font-family:'Poppins',sans-serif; font-weight:700; font-size:1.5rem; color: var(--navy-dark); }
.summary-card .trend{ font-size:0.78rem; font-weight:600; }
.trend.up{ color: var(--success); }
.trend.down{ color: var(--danger); }

.chart-card{ background:#fff; border-radius:14px; padding:22px; border:1px solid #eef0f4; }

.quick-action{
  background:#fff; border-radius:12px; padding:18px 10px; text-align:center; border:1px solid #eef0f4;
  height:100%; transition: all .2s ease;
}
.quick-action:hover{ box-shadow: 0 10px 20px rgba(11,33,73,0.08); transform: translateY(-3px); }
.quick-action i{ font-size:1.4rem; color: var(--royal); display:block; margin-bottom:8px; }
.quick-action span{ font-size:0.78rem; color:#495166; font-weight:500; }

.txn-table thead th{
  color:#8a93a6; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.5px; font-weight:600;
  border-bottom: 1px solid #eef0f4; padding: 12px 10px;
}
.txn-table tbody td{ padding: 14px 10px; font-size:0.88rem; vertical-align:middle; border-bottom:1px solid #f4f5f8; }
.txn-icon{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:0.95rem; flex-shrink:0;
}
.status-pill{ font-size:0.75rem; font-weight:600; padding: 4px 12px; border-radius: 20px; }
.status-pill.completed{ background:#e5f6ed; color: var(--success); }
.status-pill.pending{ background:#fdf1e2; color: var(--warning); }
.status-pill.failed{ background:#fbe9e8; color: var(--danger); }

/* ---------- Transfer stepper ---------- */
.stepper{ display:flex; justify-content:space-between; max-width:600px; margin: 0 auto 40px; position:relative; }
.stepper::before{
  content:''; position:absolute; top:20px; left:0; right:0; height:2px; background:#e5e9f0; z-index:0;
}
.step{ position:relative; z-index:1; text-align:center; flex:1; }
.step .step-circle{
  width:42px; height:42px; border-radius:50%; background:#fff; border:2px solid #e5e9f0;
  display:flex; align-items:center; justify-content:center; margin:0 auto 8px; font-weight:700; color:#8a93a6;
}
.step.active .step-circle, .step.done .step-circle{ background: var(--navy); border-color: var(--navy); color:#fff; }
.step.done .step-circle{ background: var(--success); border-color: var(--success); }
.step span{ font-size:0.8rem; color:#8a93a6; font-weight:500; }
.step.active span, .step.done span{ color: var(--navy-dark); }
.transfer-card{ background:#fff; border-radius:16px; border:1px solid #eef0f4; padding: 36px; max-width: 640px; margin:0 auto; }
.beneficiary-pill{
  border:1px solid #e5e9f0; border-radius:10px; padding:14px; display:flex; align-items:center; gap:12px;
  cursor:pointer; transition: all .2s ease;
}
.beneficiary-pill:hover, .beneficiary-pill.selected{ border-color: var(--royal); background:#f4f9fe; }
.beneficiary-pill img, .beneficiary-pill .avatar{
  width:38px; height:38px; border-radius:50%; background: var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:600; font-size:0.85rem; flex-shrink:0;
}

/* ---------- Admin Panel ---------- */
.admin-topbar{ border-top: 3px solid var(--gold); }
.admin-badge{
  background:#fbf1de; color:#8a6d1a; font-size:0.72rem; font-weight:600;
  padding:5px 12px; border-radius:20px; align-items:center;
}
.admin-sidebar{ background: #051428; }
.admin-sidebar .nav-link.active{
  background: rgba(212,175,55,0.12); color: var(--gold-light); border-left-color: var(--gold);
}
.kpi-card{
  background:#fff; border-radius:14px; padding:22px; border:1px solid #eef0f4; height:100%;
}
.kpi-card .icon-wrap{
  width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  margin-bottom:14px; font-size:1.2rem;
}
.kpi-card .label{ color:#8a93a6; font-size:0.82rem; }
.kpi-card .amount{ font-family:'Poppins',sans-serif; font-weight:700; font-size:1.5rem; color: var(--navy-dark); }
.avatar-sm{
  width:34px; height:34px; border-radius:50%; background:var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:600; font-size:0.75rem; flex-shrink:0;
}
.risk-badge{ font-size:0.72rem; font-weight:600; padding:4px 10px; border-radius:20px; }
.risk-badge.low{ background:#e5f6ed; color:var(--success); }
.risk-badge.medium{ background:#fdf1e2; color:var(--warning); }
.risk-badge.high{ background:#fbe9e8; color:var(--danger); }

/* ---------- Registration: account type picker ---------- */
.account-choice{ cursor:pointer; margin:0; }
.account-choice-card{
  border:2px solid #e5e9f0; border-radius:12px; padding:24px 16px; text-align:center; transition: all .2s ease;
}
.account-choice-card i{ font-size:1.7rem; color: var(--gold); display:block; margin-bottom:10px; }
.account-choice input:checked + .account-choice-card{
  border-color: var(--navy); background:#f4f7fb; box-shadow: 0 6px 16px rgba(11,46,89,0.08);
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-dark); color: #b9c3d6; padding-top: 60px; }
.site-footer h6{ color:#fff; font-weight:600; text-transform:uppercase; letter-spacing:1px; font-size:0.9rem; margin-bottom:20px; }
.site-footer p, .site-footer li{ font-size:0.9rem; color:#b9c3d6; }
.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom:10px; }
.footer-links a{ color:#b9c3d6; transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover{ color: var(--gold-light); padding-left:4px; }
.footer-contact li{ display:flex; align-items:flex-start; gap:10px; margin-bottom:14px; }
.footer-contact i{ color: var(--gold); margin-top:3px; }
.social-icons{ display:flex; gap:10px; margin-top:20px; }
.social-icons a{
  width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,0.06); color:#fff;
  display:flex; align-items:center; justify-content:center; transition: all .2s ease;
}
.social-icons a:hover{ background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }
.footer-newsletter .form-control{
  border-radius:6px 0 0 6px; border:1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color:#fff;
}
.footer-newsletter .form-control::placeholder{ color:#8b96ab; }
.footer-newsletter .form-control:focus{ background: rgba(255,255,255,0.08); color:#fff; box-shadow:none; border-color: var(--gold); }
.footer-newsletter .btn-gold{ border-radius:0 6px 6px 0; padding:10px 18px; }
.footer-divider{ border-color: rgba(255,255,255,0.1); margin:40px 0 0; }
.footer-bottom{ padding:20px 0; font-size:0.85rem; color:#8b96ab; }
.footer-bottom a{ color:#8b96ab; }
.footer-bottom a:hover{ color: var(--gold-light); }
.payment-icons i{ font-size:1.4rem; color:#8b96ab; margin-left:12px; }

@media (max-width: 991.98px){
  .dash-sidebar{ position:fixed; left:-260px; top:65px; z-index:200; transition: left .25s ease; }
  .dash-sidebar.show{ left:0; }
}
@media (max-width: 767.98px){
  .hero{ padding: 60px 0 40px; text-align:center; }
  .hero p.lead{ margin-left:auto; margin-right:auto; }
  .feature-strip.overlap{ margin-top: -60px; }
  .auth-card{ padding: 32px 24px; }
}
