/* =========================================================
   WELCOME / BRANCH SELECT PAGE
   Theme:
   Primary Red: #CF2027
   Dark Black:  #050505
   ========================================================= */

body {
  margin: 0;
  padding: 0;
  background-color: #050505; /* Prevents white flash on mobile overscroll */
}

/* =========================================================
   WELCOME HERO
   ========================================================= */

.welcome-hero {
  min-height: 100vh;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 20px;
  padding: 40px 20px;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(207, 32, 39, 0.14),
      transparent 35%
    ),
    radial-gradient(circle at 80% 80%, rgba(207, 32, 39, 0.1), transparent 35%),
    linear-gradient(-45deg, #050505, #0d0d0d, #170708, #050505);

  background-size: 400% 400%;

  animation: welcomeGradient 18s ease infinite;

  border-radius: 0;

  position: relative;
  overflow: hidden;
}

/* Subtle red ambient glow */
.welcome-hero::before {
  content: "";

  position: absolute;
  width: 500px;
  height: 500px;

  top: -250px;
  left: -250px;

  background: rgba(207, 32, 39, 0.08);

  border-radius: 50%;

  filter: blur(100px);

  pointer-events: none;
}

/* =========================================================
   ANIMATED BACKGROUND
   ========================================================= */

@keyframes welcomeGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* =========================================================
   WELCOME INTRO
   ========================================================= */

.welcome-intro {
  text-align: center;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* Logo */
.welcome-logo {
  display: block;
  max-width: 180px; 
  height: auto;
  margin: 0 auto 15px;
  object-fit: contain;
  
  /* New background styles */
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
}

/* Main heading */
.welcome-intro h1 {
  font-size: 2rem;

  color: #ffffff;

  margin-bottom: 10px;

  font-weight: 700;

  letter-spacing: -0.5px;
}

/* Intro paragraph */
.welcome-intro p {
  color: #b8b8b8;

  font-size: 1.15rem;

  margin-bottom: 0;

  line-height: 1.6;
}

/* =========================================================
   BRANCH GRID
   ========================================================= */

.branch-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(280px, 1fr));

  gap: 40px;

  width: 100%;

  max-width: 1000px;

  position: relative;
  z-index: 1;
}

/* =========================================================
   BRANCH CARD
   ========================================================= */

.branch-card {
  display: flex;
  flex-direction: column;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 20px;

  overflow: hidden;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

/* =========================================================
   BRANCH CARD HOVER
   ========================================================= */

.branch-card:hover {
  transform: translateY(-8px);

  border-color: rgba(207, 32, 39, 0.65);

  background: linear-gradient(
    145deg,
    rgba(207, 32, 39, 0.09),
    rgba(255, 255, 255, 0.035)
  );

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(207, 32, 39, 0.16);
}

/* =========================================================
   BRANCH CARD IMAGE
   ========================================================= */

.branch-card-image {
  height: 140px;

  background-size: cover;

  background-position: center;

  position: relative;
}

/* Image overlay */
.branch-card-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0) 30%,
    rgba(5, 5, 5, 0.95) 100%
  );
}

/* =========================================================
   BRANCH CARD BODY
   ========================================================= */

.branch-card-body {
  padding: 28px 28px 32px;

  display: flex;

  flex-direction: column;

  gap: 10px;

  flex: 1;
}

/* Card title */
.branch-card-body h2 {
  color: #ffffff;

  font-size: 1.5rem;

  display: flex;

  align-items: center;

  gap: 10px;

  margin: 0;
}

/* Card title icon */
.branch-card-body h2 i {
  color: #cf2027;

  filter: drop-shadow(0 0 8px rgba(207, 32, 39, 0.35));
}

/* Card description */
.branch-card-body p {
  color: #b2b2b2;

  flex: 1;

  margin-bottom: 10px;

  line-height: 1.6;
}

/* =========================================================
   BRANCH BUTTON
   ========================================================= */

.branch-card-body .btn {
  align-self: flex-start;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 12px 24px;

  border-radius: 50px;

  font-weight: 600;

  color: #ffffff;

  background: #cf2027;

  border: 1px solid #cf2027;

  box-shadow: 0 6px 18px rgba(207, 32, 39, 0.2);

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Button hover */
.branch-card-body .btn:hover {
  background: #e02b32;

  color: #ffffff;

  transform: translateX(4px);

  box-shadow: 0 8px 22px rgba(207, 32, 39, 0.35);
}

/* Button icon */
.branch-card-body .btn i {
  transition: transform 0.3s ease;
}

.branch-card-body .btn:hover i {
  transform: translateX(3px);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .welcome-hero {
    padding: 50px 20px;

    background-size: 500% 500%;
  }

  .branch-grid {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .welcome-intro h1 {
    font-size: 1.8rem;
  }

  .welcome-intro p {
    font-size: 1rem;
  }

  .branch-card-body {
    padding: 24px 22px 28px;
  }
}

/* =========================================================
   SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 480px) {
  .welcome-hero {
    padding: 40px 15px;
  }

  .welcome-logo {
    max-width: 140px; /* Adjust this for mobile size */
    height: auto;
    width: 100%;
  }

  .welcome-intro h1 {
    font-size: 1.6rem;
  }

  .branch-card-image {
    height: 125px;
  }

  .branch-card-body h2 {
    font-size: 1.3rem;
  }

  .branch-card-body .btn {
    width: 100%;

    justify-content: center;
  }
}
