/* ========== Global Reset ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

/* ========== Background Section ========== */
.counter-section {
  min-height: 70vh;
  background: url('/images/banner-3.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  position: relative;
}

/* ========== Semi-transparent Overlay Panel ========== */
.counter-overlay {
  background: rgba(255, 255, 255, 0);  /* Transparent background */
  backdrop-filter: blur(6px);         /* Glass blur effect */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  padding: 50px;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* Soft shadow */
  margin-right: 500px; /* Shift panel to the left on desktop */
  margin-top: 150px;
}

/* ========== Grid Layout for Counters ========== */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 30px;                             /* Spacing between boxes */
  border-radius: 12px;
  overflow: hidden;
}

/* ========== Individual Counter Box ========== */
.counter-box {
  display: flex;
  flex-direction: column;     /* Stack number and label vertically */
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);  /* Semi-transparent border */
  border-radius: 12px;
  background: transparent;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.15); /* Inner glow */
  color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

/* ========== Hover Effect ========== */
.counter-box:hover {
  border-color: #fff;
  box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.5),
              inset 0 0 12px rgba(255, 255, 255, 0.3);
}

/* ========== Number Styling ========== */
.counter-number {
  font-size: clamp(28px, 6vw, 48px);  /* Responsive scaling */
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  margin-bottom: 8px;
  white-space: nowrap;  /* Prevent wrapping of large numbers */
  display: inline-block;
}

/* ========== "+" Sign for Non-Year Numbers ========== */
.counter-number.with-plus::after {
  content: "+";
  margin-left: 2px;
  font-weight: bold;
  font-size: 1em;
  white-space: nowrap;
}

/* ========== Label Styling ========== */
.counter-label {
  font-size: clamp(14px, 2vw, 18px);  /* Responsive scaling */
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ========== Tablet and Narrow Laptop Fixes ========== */
@media (max-width: 992px) {
  .counter-overlay {
    margin-right: 0;       /* Remove side offset */
    margin-top: 60px;
  }
}

/* ========== Mobile Layout Adjustments ========== */
@media (max-width: 480px) {
  .counter-grid {
    grid-template-columns: 1fr; /* Stack vertically */
  }

  .counter-box {
    padding: 30px 12px;
  }

  .counter-box:not(:last-child) {
    margin-bottom: 20px;
  }

  .counter-overlay {
    padding: 30px 20px;
  }

  .counter-number {
    font-size: clamp(24px, 9vw, 38px);
  }

  .counter-label {
    font-size: clamp(12px, 4.5vw, 16px);
  }
}
