/* ==========================================================================
   Daftardar Core - Banks Directory & Single Bank Template Stylesheet
   Brand Visual Identity: Navy (#0d253f), Gold (#b98a2e), Light Gold (#f3c94f),
   Cream (#faf5e9), Sand (#e7d7ae), Ink (#1d2733), Line (#d8cdb4), Paper (#fffdf8).
   ========================================================================== */

/* 1. Page Hero */
.dr-banks-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 50px 20px 42px;
  position: relative;
  text-align: center;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%) 1;
  box-shadow: 0 8px 24px rgba(13, 37, 63, 0.15);
}

.dr-banks-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.dr-banks-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 201, 79, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(243, 201, 79, 0.35);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.dr-banks-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.25;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
}

.dr-banks-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream);
  max-width: 780px;
  margin: 0 auto 30px auto;
  font-weight: 500;
}

/* 4-Stat Bar */
.dr-banks-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 205, 180, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 820px;
  margin: 0 auto;
}

.dr-banks-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dr-banks-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(216, 205, 180, 0.25);
}

.dr-banks-stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.2;
}

.dr-banks-stat-lbl {
  font-size: 12.5px;
  color: #c9d8df;
  font-weight: 700;
  margin-top: 3px;
}

/* 2. Sticky Filter & Search Bar */
.dr-banks-filter-bar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--cream);
  border-bottom: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(13, 37, 63, 0.05);
  padding: 14px 20px;
}

.dr-banks-filter-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Category Pills */
.dr-banks-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.dr-banks-pills-wrap::-webkit-scrollbar {
  height: 4px;
}

.dr-banks-pills-wrap::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.dr-filter-pill {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui, 'Cairo', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dr-filter-pill:hover {
  border-color: var(--gold);
  background: #ffffff;
  color: var(--navy);
}

.dr-filter-pill.active {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(13, 37, 63, 0.2);
}

.dr-filter-pill .pill-count {
  font-size: 11.5px;
  background: rgba(185, 138, 46, 0.18);
  padding: 1px 7px;
  border-radius: 10px;
  color: inherit;
}

.dr-filter-pill.active .pill-count {
  background: rgba(243, 201, 79, 0.25);
  color: var(--gold-light);
}

/* Search & Counter */
.dr-banks-search-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.dr-banks-search-box {
  position: relative;
  width: 260px;
}

.dr-banks-search-input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  font-family: var(--font-ui, 'Cairo', sans-serif);
  font-size: 13.5px;
  color: var(--ink);
  direction: rtl;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dr-banks-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 46, 0.15);
}

.dr-banks-search-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.dr-banks-live-counter {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  background: var(--sand);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* 3. Banks Cards Grid */
.dr-banks-section {
  padding: 40px 20px 70px;
  background: var(--cream);
}

.dr-banks-container {
  max-width: 1240px;
  margin: 0 auto;
}

.dr-banks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1199px) {
  .dr-banks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .dr-banks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .dr-banks-grid {
    grid-template-columns: 1fr;
  }
}

/* Bank Card */
.dr-bank-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(13, 37, 63, 0.04);
}

.dr-bank-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(13, 37, 63, 0.1);
}

/* Card Top: Logo & Category */
.dr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  min-height: 56px;
}

.dr-bank-logo-wrap {
  width: 120px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dr-bank-logo-img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.dr-bank-monogram {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(13, 37, 63, 0.2);
}

.dr-card-cat-badge {
  background: var(--navy);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Card Body: Names */
.dr-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dr-bank-name-ar {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 4px 0;
}

.dr-bank-name-en {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  margin: 0 0 16px 0;
  direction: ltr;
  text-align: right;
}

/* Card Meta */
.dr-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  margin-top: auto;
  margin-bottom: 16px;
}

.dr-meta-dot {
  color: var(--gold);
  font-weight: 900;
}

/* Card CTA Button */
.dr-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, #966f21 100%);
  color: #ffffff !important;
  font-family: var(--font-ui, 'Cairo', sans-serif);
  font-size: 14px;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(185, 138, 46, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.dr-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(185, 138, 46, 0.45);
  color: #ffffff !important;
}

/* No Results State */
.dr-banks-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  grid-column: 1 / -1;
}

.dr-empty-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.dr-empty-desc {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   4. Single Bank Template Styles (/banks/xxx/)
   ========================================================================== */
.single-bank-main {
  background: var(--cream);
  min-height: 80vh;
  padding-bottom: 70px;
}

/* Single Bank Hero */
.dr-bank-single-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 44px 20px 38px;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%) 1;
}

.dr-bank-single-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.dr-single-breadcrumb {
  font-size: 13.5px;
  font-weight: 700;
  color: #9fb6c1;
  margin-bottom: 18px;
}

.dr-single-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.dr-single-breadcrumb a:hover {
  color: var(--gold-light);
}

.dr-single-breadcrumb .sep {
  margin: 0 8px;
  color: rgba(216, 205, 180, 0.4);
}

.dr-single-breadcrumb .current {
  color: var(--gold-light);
}

.dr-single-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dr-single-hero-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dr-single-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--paper);
  border: 2px solid var(--gold);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.dr-single-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dr-single-bank-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.dr-single-bank-en {
  font-size: 14px;
  color: #c9d8df;
  font-weight: 600;
  margin: 0 0 10px 0;
  direction: ltr;
  text-align: right;
}

.dr-single-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dr-single-badge-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 205, 180, 0.3);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
}

.dr-single-badge-pill.gold {
  background: rgba(185, 138, 46, 0.25);
  border-color: var(--gold);
  color: var(--gold-light);
}

.dr-single-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cheques Gallery Section */
.dr-cheques-gallery-wrap {
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 20px;
}

.dr-section-headline {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 8px 0;
}

.dr-section-subline {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 26px 0;
}

.dr-cheques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dr-cheque-preview-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(13, 37, 63, 0.05);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.dr-cheque-preview-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.dr-cheque-img-holder {
  background: #f1ebd8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dr-cheque-img-holder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.dr-cheque-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dr-cheque-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.dr-cheque-dims-tag {
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.dr-btn-simulator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #966f21 100%);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(185, 138, 46, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: auto;
}

.dr-btn-simulator:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(185, 138, 46, 0.45);
  color: #ffffff !important;
}

/* Styled SEO Content Box */
.dr-bank-seo-content {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.dr-bank-seo-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 16px rgba(13, 37, 63, 0.04);
}

.dr-bank-seo-box h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin: 0 0 20px 0;
  display: inline-block;
}

.dr-bank-seo-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 14px 0;
}

.dr-bank-seo-box p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.dr-bank-seo-box a {
  color: var(--gold) !important;
  text-decoration: underline;
  font-weight: 700;
}

.dr-bank-seo-box a:hover {
  color: #966f21 !important;
}

/* Bottom CTA Banner */
.dr-bank-cta-banner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.dr-bank-cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #071727 100%);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(13, 37, 63, 0.15);
}

.dr-bank-cta-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-light);
  margin: 0 0 10px 0;
}

.dr-bank-cta-desc {
  font-size: 15.5px;
  color: #c9d8df;
  max-width: 680px;
  margin: 0 auto 26px auto;
}

.dr-bank-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dr-btn-gold-cta {
  background: linear-gradient(135deg, var(--gold) 0%, #966f21 100%);
  color: #ffffff !important;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(185, 138, 46, 0.4);
  transition: transform 0.15s;
}

.dr-btn-gold-cta:hover {
  transform: translateY(-1px);
}

.dr-btn-outline-light {
  background: transparent;
  border: 1.5px solid var(--gold-light);
  color: var(--gold-light) !important;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
}

.dr-btn-outline-light:hover {
  background: rgba(243, 201, 79, 0.12);
}

@media (max-width: 768px) {
  .dr-banks-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .dr-banks-stat-item:nth-child(2)::after {
    display: none;
  }
  .dr-banks-filter-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .dr-banks-search-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .dr-banks-search-box {
    width: 100%;
    flex: 1;
  }
  .dr-single-hero-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .dr-single-hero-actions {
    width: 100%;
  }
  .dr-single-hero-actions a {
    width: 100%;
    text-align: center;
  }
}
