/* ==========================================================================
   Applications Page Styles - 4-Column Grid Layout
   ========================================================================== */

:root {
  --forest-dark: #0e3d2f;
  --forest-dark-hover: #144e3d;
  --wood: #b78a48;
  --wood-hover: #9d7338;
  --wood-light: #e5cbab;
}

/* ==========================================================================
   Section 1: Hero Banner
   ========================================================================== */
.applications-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 136px 0 92px;
  background: linear-gradient(90deg, rgba(8, 21, 16, 0.88) 0%, rgba(8, 21, 16, 0.58) 55%, rgba(8, 21, 16, 0.28) 100%),
              url("../images/about-banner.png") center right / cover no-repeat;
  overflow: hidden;
}

.products-hero__bg-fx {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 50%, rgba(183, 138, 72, 0.16) 0%, transparent 60%);
  pointer-events: none;
}

.products-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.products-hero__content {
  max-width: 640px;
  color: #ffffff;
}

.products-hero__kicker {
  margin: 0 0 10px;
  color: #e5cbab;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  line-height: 1.4;
}

.products-hero__title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.products-hero__subtitle {
  max-width: 580px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15.5px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.55;
}

.products-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.products-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.22s ease;
}

.products-hero__breadcrumb a:hover {
  color: #e5cbab;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.products-hero__breadcrumb span:last-child {
  color: #e5cbab;
  font-weight: 700;
}

/* Vertical Architectural Typography */
.products-hero__vertical-tag {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  color: rgba(229, 203, 171, 0.8);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 1.2;
  user-select: none;
}

.products-hero__vertical-tag span {
  display: block;
}

/* ==========================================================================
   Section 2: Applications Main Section (4-Column Grid Layout)
   ========================================================================== */
.applications-main-section {
  padding: 72px 0 100px;
  background: #ffffff;
}

/* Applications 4-Column Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

/* Pure Clean Application Card without Mask */
.application-card {
  position: static;
  background: #ffffff;
  border: 1px solid #ebe5dc;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

/* Overriding any index.css overlay or pseudo mask elements */
.application-card::after,
.application-card::before,
.application-card__img-wrap::after,
.application-card__img-wrap::before {
  display: none !important;
  content: none !important;
}

.application-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(14, 61, 47, 0.09);
  border-color: rgba(183, 138, 72, 0.5);
}

.application-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  position: relative;
  background: #f4f1eb;
}

.application-card__img-wrap img {
  position: static !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.application-card:hover .application-card__img-wrap img {
  transform: scale(1.06);
}

.application-card__body {
  padding: 16px 18px 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid #f2ede6;
  flex: 1;
}

.application-card__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--forest-dark);
  line-height: 1.35;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.application-card:hover .application-card__title {
  color: var(--wood);
}

/* ==========================================================================
   Section 3: Pagination
   ========================================================================== */
.applications-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfdad0;
  background: #ffffff;
  color: #2b3633;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.is-active):not(:disabled) {
  border-color: var(--wood);
  color: var(--wood);
  background: #faf8f5;
}

.pagination-btn.is-active {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  color: #ffffff;
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 40px;
  color: #8c9794;
  font-size: 13px;
  user-select: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .applications-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .applications-hero {
    min-height: 420px;
    padding: 110px 0 70px;
  }

  .products-hero__vertical-tag {
    display: none;
  }

  .applications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .applications-main-section {
    padding: 44px 0 64px;
  }

  .applications-hero {
    min-height: 360px;
    padding: 96px 0 56px;
  }

  .applications-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .application-card__title {
    font-size: 15px;
  }

  .application-card__body {
    padding: 15px 16px 16px;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}
