@import url('./blogs.css');

/* ===== BLOG DETAILS PAGE STYLES ===== */

/* ---- Reset & Base ---- */
main.bd-main {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.bd-main .bd-section-block {
  margin-bottom: 32px;
  width: 100%;
  max-width: 100%;
}

/* ---- Container ---- */
.bd-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 40px 0 40px;
  box-sizing: border-box;
}

/* ---- Header Section ---- */
.bd-header {
  margin-bottom: 40px;
}

.bd-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 24px;
  width: 100%;
}

.bd-back-link {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  font-family: Satoshi, 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #505056 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  transition: color 0.2s ease !important;
}

.bd-back-link:hover {
  color: #85BD56 !important;
}

.bd-back-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  border: 1px solid #EBEAEA !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08), inset 0 0 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
}

.bd-back-link:hover .bd-back-icon {
  border-color: #85BD56 !important;
  box-shadow: inset 0 0 0 1px #85BD56, 0 4px 12px rgba(133, 189, 86, 0.25) !important;
  transform: translateY(-1px) !important;
}

.bd-back-link:hover .bd-back-icon svg path {
  fill: #85BD56 !important;
}

.bd-detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.bd-detail-breadcrumb span {
  color: #69686E;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-title {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 56px;
  color: #85BD56;
  margin-bottom: 18px;
  max-width: 1280px;
}

.bd-subtitle {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #69686E;
  max-width: 100%;
  margin-bottom: 28px;
}

/* ---- Meta Row ---- */
.bd-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bd-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.bd-author-text {
  display: flex;
  flex-direction: column;
}

.bd-author-name {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #060612;
}

.bd-author-date {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #69686E;
}

.bd-meta-divider {
  width: 1px;
  height: 28px;
  background: #E0E0E0;
}

.bd-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #69686E;
}

.bd-meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FFF3EB;
}

/* ---- Hero Image ---- */
.bd-hero-image {
  width: 100%;
  max-width: 1280px;
  height: 508px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 48px 0;
  background: lightgray 50% / cover no-repeat;
}

.bd-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Article Body ---- */
.bd-body {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.bd-body h2 {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 56px;
  color: #060612;
  margin-bottom: 16px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
}

.bd-body h2.bd-heading-intro {
  font-size: 44px;
  font-weight: 500;
  line-height: 56px;
  color: #060612;
}

.bd-body p {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #69686E;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
}

.bd-body p.bd-orange {
  color: #FF6B00;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
}

/* ---- Leaf List ---- */
.bd-list-heading {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #060612;
  margin-bottom: 12px;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
}

.bd-leaf-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  width: 100%;
  max-width: 100%;
}

.bd-leaf-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: #69686E;
  padding: 6px 0;
}

.bd-leaf {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- Split Images ---- */
.bd-split-images {
  display: flex;
  gap: 32px;
  margin: 40px 0;
  width: 100%;
  max-width: 1280px;
}

.bd-split-card {
  width: 624px;
  max-width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
  background: lightgray 50% / cover no-repeat;
}

.bd-split-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
  .bd-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .bd-title {
    font-size: 36px;
    line-height: 46px;
  }

  .bd-body h2 {
    font-size: 32px;
    line-height: 42px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bd-container {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 100px;
  }

  .bd-title {
    font-size: 28px;
    line-height: 38px;
  }

  .bd-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .bd-hero-image {
    height: 280px;
    margin-bottom: 32px;
  }

  .bd-meta-row {
    gap: 12px;
  }

  .bd-meta-divider {
    display: none;
  }

  .bd-body h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .bd-body h2.bd-heading-intro {
    font-size: 24px;
    line-height: 34px;
  }

  .bd-split-images {
    flex-direction: column;
    gap: 16px;
  }

  .bd-split-card {
    width: 100%;
    height: 280px;
  }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  main.bd-main {
    padding: 0 20px;
  }
  .bd-container {
    padding: 20px 0 0 0;
  }
  .bd-header {
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .app-back-link span:last-child,
  .bd-back-link span:last-child {
    display: none !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .bd-title {
    font-size: 24px;
    line-height: 34px;
  }

  .bd-subtitle {
    font-size: 15px;
  }

  .bd-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bd-body h2 {
    font-size: 20px;
    line-height: 28px;
  }
}

.app-back-link, .bd-back-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  font-family: Satoshi, 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #505056 !important;
  letter-spacing: 0.05em !important;
  transition: color 0.2s ease !important;
}

.app-back-link:hover, .bd-back-link:hover {
  color: #85BD56 !important;
}

.app-back-icon, .bd-back-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  border: 1px solid #EBEAEA !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08), inset 0 0 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
}

.app-back-link:hover .app-back-icon, .bd-back-link:hover .bd-back-icon {
  border-color: #85BD56 !important;
  box-shadow: inset 0 0 0 1px #85BD56, 0 4px 12px rgba(133, 189, 86, 0.25) !important;
  transform: translateY(-1px) !important;
}

.app-back-link:hover .app-back-icon svg path, .bd-back-link:hover .bd-back-icon svg path {
  fill: #85BD56 !important;
}
