/* =====================================================
   KEMBANG.ASIA
   SECTION BUSINESS
   Fail: CSS/business.css

   Fungsi:
   1. Reka bentuk seksyen Business
   2. Paparan kad berita responsif
   3. Navigasi halaman
   4. Paparan desktop, tablet dan telefon

   Semua CSS dihadkan kepada BUSINESS.
   ===================================================== */


/* =====================================================
   MULA: BUSINESS ROOT
   ===================================================== */

#business-component {
  --business-card: #121217;
  --business-border: rgba(255, 255, 255, 0.09);
  --business-text: #f5f5f7;
  --business-muted: #a5a5b0;
  --business-accent: #b96cff;

  width: 100%;
  padding: 32px 0 24px;
  color: var(--business-text);
  box-sizing: border-box;
}

#business-component *,
#business-component *::before,
#business-component *::after {
  box-sizing: border-box;
}

/* =====================================================
   TAMAT: BUSINESS ROOT
   ===================================================== */


/* =====================================================
   MULA: CONTAINER
   ===================================================== */

#business-component .business-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   TAMAT: CONTAINER
   ===================================================== */


/* =====================================================
   MULA: HEADER
   ===================================================== */

#business-component .business-header {
  margin-bottom: 24px;
}

#business-component .business-header h2 {
  margin: 0;

  color: var(--business-text);

  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
}

/* =====================================================
   TAMAT: HEADER
   ===================================================== */


/* =====================================================
   MULA: NEWS WRAPPER
   ===================================================== */

#business-component .business-news-wrapper {
  position: relative;
  width: 100%;
}

/* =====================================================
   TAMAT: NEWS WRAPPER
   ===================================================== */


/* =====================================================
   MULA: NEWS GRID
   Desktop: 3 kolum
   ===================================================== */

#business-component .business-news-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 26px 22px;
  width: 100%;
}

/* =====================================================
   TAMAT: NEWS GRID
   ===================================================== */


/* =====================================================
   MULA: NEWS CARD
   ===================================================== */

#business-component .business-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  color: var(--business-text);
  text-decoration: none;

  background: var(--business-card);
  border: 1px solid var(--business-border);
  border-radius: 14px;

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

#business-component .business-card:hover {
  transform: translateY(-4px);

  border-color: rgba(185, 108, 255, 0.5);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25);
}

#business-component .business-card:focus-visible {
  outline: 2px solid var(--business-accent);
  outline-offset: 4px;
}

/* =====================================================
   TAMAT: NEWS CARD
   ===================================================== */


/* =====================================================
   MULA: IMAGE WRAPPER
   ===================================================== */

#business-component .business-image-wrapper {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  background: #1b1b22;
}

#business-component .business-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

#business-component .business-card:hover .business-image {
  transform: scale(1.045);
}

/* =====================================================
   TAMAT: IMAGE WRAPPER
   ===================================================== */


/* =====================================================
   MULA: IMAGE FALLBACK
   ===================================================== */

#business-component .business-image-fallback {
  display: flex;

  width: 100%;
  height: 100%;

  align-items: center;
  justify-content: center;

  padding: 12px;

  color: var(--business-accent);

  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;

  background:
    radial-gradient(
      circle at center,
      rgba(185, 108, 255, 0.12),
      transparent 70%
    ),
    #15151b;
}

/* =====================================================
   TAMAT: IMAGE FALLBACK
   ===================================================== */


/* =====================================================
   MULA: CARD BODY
   ===================================================== */

#business-component .business-card-body {
  display: flex;
  flex-direction: column;

  flex: 1;

  padding: 16px;
}

#business-component .business-card-title {
  margin: 0 0 14px;

  color: var(--business-text);

  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

/* =====================================================
   TAMAT: CARD BODY
   ===================================================== */


/* =====================================================
   MULA: CARD METADATA
   ===================================================== */

#business-component .business-card-meta {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  gap: 6px 10px;

  margin-top: auto;
  padding-top: 10px;

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  font-size: 12px;
  line-height: 1.5;
}

#business-component .business-source {
  color: var(--business-accent);
  font-weight: 700;
}

#business-component .business-date {
  color: var(--business-muted);
}

/* =====================================================
   TAMAT: CARD METADATA
   ===================================================== */


/* =====================================================
   MULA: STATUS
   ===================================================== */

#business-component .business-status {
  grid-column: 1 / -1;

  margin: 0;
  padding: 28px 12px;

  color: var(--business-muted);

  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* =====================================================
   TAMAT: STATUS
   ===================================================== */


/* =====================================================
   MULA: NAVIGATION BUTTONS
   ===================================================== */

#business-component .business-page-button {
  position: absolute;
  z-index: 5;
  top: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  padding: 0;

  color: #ffffff;
  font-size: 20px;

  background: rgba(25, 25, 32, 0.88);

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

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

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

#business-component .business-page-button:hover:not(:disabled) {
  background: var(--business-accent);
  border-color: var(--business-accent);
}

#business-component .business-page-button:active:not(:disabled) {
  transform: translateY(-50%) scale(0.94);
}

#business-component .business-page-button:focus-visible {
  outline: 2px solid var(--business-accent);
  outline-offset: 4px;
}

#business-component .business-page-button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#business-component .business-prev {
  left: -26px;
}

#business-component .business-next {
  right: -26px;
}

/* =====================================================
   TAMAT: NAVIGATION BUTTONS
   ===================================================== */


/* =====================================================
   MULA: PAGE INFO
   ===================================================== */

#business-component .business-page-info {
  margin-top: 22px;

  color: var(--business-muted);

  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* =====================================================
   TAMAT: PAGE INFO
   ===================================================== */


/* =====================================================
   MULA: TABLET
   ===================================================== */

@media (max-width: 900px) {

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

  #business-component .business-prev {
    left: -14px;
  }

  #business-component .business-next {
    right: -14px;
  }

  #business-component .business-page-button {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

}

/* =====================================================
   TAMAT: TABLET
   ===================================================== */


/* =====================================================
   MULA: MOBILE
   ===================================================== */

@media (max-width: 600px) {

  #business-component {
    padding: 26px 0 20px;
  }

  #business-component .business-container {
    padding: 0 14px;
  }

  #business-component .business-header {
    margin-bottom: 18px;
  }

  #business-component .business-header h2 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }

  #business-component .business-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #business-component .business-card {
    border-radius: 10px;
  }

  #business-component .business-card-body {
    padding: 10px;
  }

  #business-component .business-card-title {
    margin-bottom: 10px;

    font-size: 13px;
    line-height: 1.45;
  }

  #business-component .business-card-meta {
    gap: 4px 7px;
    padding-top: 8px;

    font-size: 10px;
  }

  #business-component .business-page-button {
    width: 36px;
    height: 36px;

    font-size: 15px;
  }

  #business-component .business-prev {
    left: -10px;
  }

  #business-component .business-next {
    right: -10px;
  }

  #business-component .business-page-info {
    margin-top: 18px;
    font-size: 12px;
  }

}

/* =====================================================
   TAMAT: MOBILE
   ===================================================== */


/* =====================================================
   TAMAT: SECTION BUSINESS
   ===================================================== */
