/* =============================================================
   Blog & Resources — Hosn Theme
   Sectioned per-category layout with cinematic hero
   ============================================================= */

:root {
  --bl-gold: #f3ce34;
  --bl-gold-soft: rgba(243, 206, 52, 0.12);
  --bl-gold-dim: rgba(243, 206, 52, 0.35);
  --bl-dark: #0a0a0a;
  --bl-dark-2: #111111;
  --bl-line: rgba(255, 255, 255, 0.08);
  --bl-text: #f5f5f5;
  --bl-text-dim: rgba(245, 245, 245, 0.72);
  --bl-text-mute: rgba(245, 245, 245, 0.5);
  --bl-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bl-ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

.bl-page-wrap {
  background:
    radial-gradient(ellipse 60% 40% at 15% 18%, rgba(243, 206, 52, 0.05), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 38%, rgba(109, 76, 255, 0.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 62%, rgba(243, 206, 52, 0.04), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 82%, rgba(243, 206, 52, 0.05), transparent 60%),
    var(--bl-dark);
  background-attachment: fixed;
  color: var(--bl-text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  position: relative;
}
.bl-page-wrap .gold { color: var(--bl-gold); }
.bl-page-wrap section { width: 100%; position: relative; }

section {
  padding: 100px 80px 0px;
  position: relative;
  overflow: hidden;
}

/* Decorative diamonds */
.bl-page-wrap .top-left-image,
.bl-page-wrap .top-right-ai-image {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: blOrbDrift 14s ease-in-out infinite;
}
.bl-page-wrap .top-left-image { left: 0; top: 30%; }
.bl-page-wrap .top-right-ai-image {
  right: 5%; top: 40%;
  animation-duration: 16s;
  animation-delay: -3s;
}
.bl-page-wrap .top-left-image img,
.bl-page-wrap .top-right-ai-image img { display: block; height: auto; max-width: 100%; }
@keyframes blOrbDrift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

/* Shared pill */
.bl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--bl-gold-dim);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--bl-gold);
  background: var(--bl-gold-soft);
  text-transform: uppercase;
  width: max-content;
}
.bl-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bl-gold);
  box-shadow: 0 0 10px var(--bl-gold);
  animation: blPulse 2s ease-in-out infinite;
}
@keyframes blPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.3); }
}

/* =============================================================
   HERO
   ============================================================= */
.bl-hero {
  position: relative;
  padding: 180px 80px 120px;
  overflow: hidden;
}

.bl-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bl-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  will-change: transform;
}
.bl-mesh-orb-1 {
  width: 520px; height: 520px;
  background: var(--bl-gold);
  top: -180px; left: 8%;
  animation: blMesh1 18s ease-in-out infinite;
}
.bl-mesh-orb-2 {
  width: 460px; height: 460px;
  background: #6d4cff;
  top: -120px; right: 10%;
  opacity: 0.18;
  animation: blMesh2 22s ease-in-out infinite;
}
.bl-mesh-orb-3 {
  width: 600px; height: 600px;
  background: var(--bl-gold);
  bottom: -260px; left: 30%;
  opacity: 0.15;
  animation: blMesh3 20s ease-in-out infinite;
}
@keyframes blMesh1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 40px) scale(1.12); } }
@keyframes blMesh2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 60px) scale(1.08); } }
@keyframes blMesh3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -40px) scale(1.1); } }

.bl-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 206, 52, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 206, 52, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.bl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.bl-hero-title {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
}
.bl-hero-title .gold { font-weight: 700; }
.bl-hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--bl-text-dim);
  max-width: 720px;
  margin: 0;
  font-weight: 300;
}
.bl-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bl-gold);
  color: var(--bl-dark);
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  margin-top: 12px;
  box-shadow: 0 8px 24px rgba(243, 206, 52, 0.22);
  transition: transform 0.3s var(--bl-ease), box-shadow 0.3s ease, background 0.3s ease;
}
.bl-hero-btn:hover {
  transform: translateY(-3px);
  background: #ffd84a;
  box-shadow: 0 14px 32px rgba(243, 206, 52, 0.4);
}
.bl-hero-btn .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.4s var(--bl-ease);
}
.bl-hero-btn:hover .material-symbols-outlined { transform: translateY(3px); }

/* =============================================================
   CATEGORY SECTIONS
   ============================================================= */
.bl-section {
  padding: 70px 80px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.bl-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.bl-section-head {
  margin-bottom: 40px;
  max-width: 760px;
}
.bl-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--bl-text-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.bl-section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.3px;
}
.bl-section-title .gold { font-weight: 700; }
.bl-section-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--bl-text-dim);
  margin: 0;
  font-weight: 300;
}

/* Coming-soon state */
.bl-coming-soon {
  padding: 28px 0 12px;
}

/* Cards grid */
.bl-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Card */
.bl-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #131313, #0d0d0d);
  border: 1px solid var(--bl-line);
  transition: transform 0.5s var(--bl-ease-smooth), border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}
.bl-card:hover {
  border-color: var(--bl-gold-dim);
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--bl-gold-dim) inset;
}
.bl-card-link {
  display: block;
  color: inherit;
  height: 100%;
}

.bl-card-hidden { display: none; }
.bl-card.is-revealed {
  animation: blCardReveal 0.6s var(--bl-ease-smooth) both;
}
@keyframes blCardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bl-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0c0c;
}
.bl-card-img,
.bl-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--bl-ease-smooth), filter 0.6s ease;
  filter: saturate(0.92);
}
.bl-card:hover .bl-card-img,
.bl-card:hover .bl-card-media img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.bl-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.7) 100%);
  pointer-events: none;
}
.bl-card-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--bl-gold);
  color: var(--bl-dark);
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.bl-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bl-card-title {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.bl-card:hover .bl-card-title { color: var(--bl-gold); }
.bl-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bl-text-mute);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--bl-line);
}
.bl-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--bl-text-mute);
  letter-spacing: 0.3px;
}
.bl-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--bl-text-mute);
}
.bl-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--bl-gold);
  position: relative;
  white-space: nowrap;
}
.bl-card-arrow {
  display: inline-block;
  transition: transform 0.35s var(--bl-ease);
}
.bl-card:hover .bl-card-arrow { transform: translateX(6px); }

/* Load more button */
.bl-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.bl-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--bl-text);
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s var(--bl-ease);
}
.bl-load-more:hover {
  border-color: var(--bl-gold);
  color: var(--bl-gold);
  background: rgba(243, 206, 52, 0.05);
  transform: translateY(-2px);
}
.bl-load-more .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.3s var(--bl-ease);
}
.bl-load-more:hover .material-symbols-outlined { transform: translateY(2px); }
.bl-load-more[hidden] { display: none; }

/* =============================================================
   CTA — matches SMM / Web Dev / App Dev pattern
   ============================================================= */
.bl-cta-wrapper {
  background: #f3ce34;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.bl-cta-section {
  background: transparent;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}
.bl-cta-section h2 {
  color: #151515;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.bl-cta-section > p {
  color: #151515;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 auto 36px;
  font-weight: 400;
  max-width: 640px;
}
.bl-cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.bl-cta-btn-dark,
.bl-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.bl-cta-btn-dark { background: #151515; color: #fff; }
.bl-cta-btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.bl-cta-btn-outline {
  background: transparent;
  color: #151515;
  border: 2px solid #151515;
}
.bl-cta-btn-outline:hover {
  background: #151515;
  color: #f3ce34;
  transform: translateY(-3px);
}
.bl-cta-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #151515;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}
.bl-cta-status-item { display: inline-flex; align-items: center; }
.bl-cta-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1f7a34;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(31, 122, 52, 0.2);
}
.bl-cta-status-sep { opacity: 0.5; color: #151515; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
  .bl-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-page-wrap .top-left-image img,
  .bl-page-wrap .top-right-ai-image img { max-width: 220px; }
}

@media (max-width: 1024px) {
  .bl-hero { padding: 140px 40px 90px; }
  .bl-section { padding: 70px 40px; }
  .bl-page-wrap .top-left-image,
  .bl-page-wrap .top-right-ai-image { opacity: 0.55; }
  .bl-page-wrap .top-left-image img,
  .bl-page-wrap .top-right-ai-image img { max-width: 170px; }
}

@media (max-width: 768px) {
  .bl-hero { padding: 110px 22px 70px; }
  .bl-hero-title { font-size: 44px; }
  .bl-hero-desc { font-size: 16px; }
  .bl-section { padding: 60px 22px; }
  .bl-section-title { font-size: 30px; }
  .bl-cards-grid { grid-template-columns: 1fr; gap: 22px; }
  .bl-card-body { padding: 20px 22px 22px; }
  .bl-card-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bl-cta-section { padding: 60px 24px; }
  .bl-cta-section h2 { font-size: 32px; margin-bottom: 18px; }
  .bl-cta-section > p { font-size: 16px; margin-bottom: 28px; }
  .bl-cta-btn-dark,
  .bl-cta-btn-outline { padding: 14px 28px; font-size: 13px; }
  .bl-cta-status { font-size: 13px; gap: 8px; }
}

@media (max-width: 640px) {
  .bl-page-wrap .top-left-image,
  .bl-page-wrap .top-right-ai-image { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
