/* --------------------------------------------------------------------------
   10. BRANCHES SECTION
   -------------------------------------------------------------------------- */
.branches-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background-color: #0f172a; /* Dark base in case images fail completely */
}

/* Background Image & Overlay */
.branches-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.branches-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(13, 39, 100, 0.88) 0%, 
    rgba(12, 42, 110, 0.94) 100%
  );
  z-index: 2;
}

.section-container {
  position: relative;
  z-index: 3;
}

/* Light typography for dark background header */
.light-title h2 {
  color: #ffffff !important;
}

.light-title p {
  color: #cbd5e1 !important;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 3.5rem;
}

.branch-card {
  background: #ffffff;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.branch-img-wrapper {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: #cbd5e1;
}

.branch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.branch-card:hover .branch-img {
  transform: scale(1.06);
}

.branch-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--accent-orange, #ef7d20);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.branch-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.branch-content h3 {
  font-family: 'Poppins', sans-serif;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.branch-city {
  color: var(--accent-orange, #ef7d20);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.branch-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.branch-footer {
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
  margin-top: auto;
}

.btn-branch-call {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-branch-call:hover {
  color: var(--accent-orange, #ef7d20);
  transform: translateX(3px);
}