/* ==========================================================================
   Application Detail Page Styles
   ========================================================================== */

/* Hero Section */
.app-hero-section {
    background: #ffffff;
    /* Reduced top padding even further to remove extra space */
    padding-top: clamp(10px, 2vw, 30px);
    padding-bottom: clamp(15px, 2vw, 30px);
    position: relative;
    overflow: hidden;
}

.app-hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(24, 107, 109, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

.app-hero-container {
    position: relative;
    z-index: 10;
}

/* Breadcrumbs */
.app-breadcrumbs {
    margin-bottom: 32px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-breadcrumbs a {
    color: #186B6D;
    text-decoration: none;
    transition: color 0.2s;
}

.app-breadcrumbs a:hover {
    color: #0d4d4e;
}

.app-breadcrumbs span {
    color: #9ca3af;
}

/* Grid Layouts */
.app-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    align-items: center;
}

/* Badges */
.app-badge-wrapper {
    margin-bottom: 16px;
}

.app-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e8f6f5;
    color: #186B6D;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(24, 107, 109, 0.15);
}

.app-tag-dot {
    width: 6px;
    height: 6px;
    background: #186B6D;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(24, 107, 109, 0.4);
}

.app-tag-dot-simple {
    width: 6px;
    height: 6px;
    background: #186B6D;
    border-radius: 50%;
}

/* Typography */
.app-hero-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 24px;
}

.app-hero-desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: #4b5563;
}

/* Images */
.app-hero-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.app-hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
}

.app-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Products Section */
.app-products-section {
    background: #ffffff;
    padding-top: clamp(40px, 5vw, 60px);
    padding-bottom: clamp(60px, 8vw, 96px);
}

.app-products-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.app-products-title {
    font-size: clamp(24px, 3.5vw, 40px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 900;
    color: #111827;
    margin-top: 8px;
}

.app-products-divider {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.app-products-divider-line {
    display: block;
    height: 4px;
    width: 40px;
    border-radius: 4px;
    background: #186B6D;
}

.app-products-divider-dot {
    display: block;
    height: 4px;
    width: 16px;
    border-radius: 4px;
    background: #186B6D;
    opacity: 0.4;
}

/* Product Cards */
.app-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.app-product-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.app-product-img-wrapper {
    background: #fafafa;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    height: 200px;
}

.app-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.app-product-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.app-product-spacer {
    flex-grow: 1;
    margin-bottom: 16px;
}

.app-product-link {
    font-size: 13px;
    font-weight: 700;
    color: #0d8383;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.app-product-card:hover .app-product-link {
    gap: 6px;
}

/* Empty State */
.app-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
}

.app-empty-text {
    color: #6b7280;
    font-size: 16px;
}

/* =========================================================
   RESPONSIVE OVERRIDES: Application Detail (Tablet & Mobile Only)
   ========================================================= */
@media (max-width: 1024px) {
  .app-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .app-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .app-hero-section {
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .app-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .app-hero-title {
    font-size: clamp(26px, 6vw, 36px);
    margin-bottom: 16px;
  }
  .app-hero-desc {
    font-size: 15px;
    line-height: 1.6;
  }
  .app-breadcrumbs {
    margin-bottom: 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  .app-products-section {
    padding-top: 36px;
    padding-bottom: 50px;
  }
  .app-products-header {
    margin-bottom: 32px;
  }
  .app-products-title {
    font-size: clamp(22px, 5vw, 28px);
  }
  .app-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .app-product-card {
    border-radius: 10px;
  }
  .app-product-img-wrapper {
    height: 160px;
    padding: 14px;
  }
  .app-product-info {
    padding: 16px;
  }
  .app-product-title {
    font-size: 15px;
  }
  .app-product-desc {
    font-size: 12.5px;
    margin-bottom: 12px;
  }
}
@media (max-width: 480px) {
  .app-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .app-product-img-wrapper {
    height: 180px;
  }
  .app-hero-img-wrapper {
    border-radius: 16px;
  }
}
