/* ============================================================
   1. CORE RESET & THEME VARIABLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-white: #ffffff;
  --bg-alt: #fbfaf8;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.2);
  --text-dark: #121214;
  --text-muted: #55555e;
  --primary-red: #e62b4a;
  --primary-dark: #1f2226;
  --footer-bg: #0d0d0e;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-text: #fcfaf8;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1380px;
  --soft-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --smooth-easeInOut: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ============================================================
   2. 1ST BLOCK: HEADING & INTRODUCTORY PARAGRAPH
   ============================================================ */
.post-intro-section {
  padding: 70px 0 45px 0;
  background-color: var(--bg-white);
}

.post-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.post-main-title span.dot {
  color: var(--primary-red);
}

.post-description {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 1280px;
}

.post-description strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* ============================================================
   3. 2ND BLOCK: TWO IMAGE BOXES WITH DUAL SLIDING CAROUSELS
   ============================================================ */
.post-media-section {
  padding: 20px 0 45px 0;
  background-color: var(--bg-white);
}

.two-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.media-slider-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #111111;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  width: 100%;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Base slide styling */
.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 2.4s var(--smooth-easeInOut), opacity 2.4s var(--smooth-easeInOut);
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
}

.slide-item.active {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
  z-index: 2;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Horizontal slide classes */
.slide-horizontal .slide-item {
  transform: translateX(-100%);
}
.slide-horizontal .slide-item.slide-out {
  transform: translateX(100%);
  opacity: 0;
}

/* Vertical slide classes */
.slide-vertical .slide-item {
  transform: translateY(100%);
}
.slide-vertical .slide-item.slide-out {
  transform: translateY(-100%);
  opacity: 0;
}

/* ============================================================
   4. 3RD BLOCK: RED LINE, METADATA BAR & PORTFOLIO BUTTON
   ============================================================ */
.meta-bar-section {
  padding: 0 0 90px 0;
  background-color: var(--bg-white);
}

.red-divider-line {
  width: 100%;
  height: 2px;
  background-color: var(--primary-red);
  margin-bottom: 22px;
}

.meta-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.meta-tags-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.meta-tags-text strong {
  font-weight: 700;
  color: var(--text-dark);
}

.btn-portfolio-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background-color: #000000;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.35s var(--soft-ease);
  border-radius: 5px;
}

.btn-portfolio-square:hover {
  background-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 43, 74, 0.25);
}

/* ============================================================
   5. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 768px) {
  .post-intro-section {
    padding: 50px 0 30px 0;
  }

  .two-box-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .meta-bar-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-portfolio-square {
    width: 100%;
    text-align: center;
  }

  .meta-bar-section {
    padding-bottom: 60px;
  }
}

@media (max-width: 600px) {
  .post-description {
    font-size: 1.05rem;
    line-height: 1.65;
  }
}