@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600;700&family=Open+Sans:wght@400;600&display=swap");

/* ═══════════════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════════════ */
:root {
  --ocean-teal: #4a9b9b;
  --deep-sea: #2c5f5f;
  --aqua-blue: #7bc4c4;
  --warm-sand: #f5f1e8;
  --coral: #ff7f7f;
  --white: #ffffff;
  --text-dark: #1e2d2d;
  --text-mid: #4a5568;
  --text-soft: #718096;
  --border: rgba(74, 155, 155, 0.15);
  --card-shadow: 0 4px 24px rgba(44, 95, 95, 0.09);
  --card-hover: 0 16px 48px rgba(44, 95, 95, 0.16);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════
   RESET / BASE
═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════
   HERO / COVER
═══════════════════════════════════════════════════ */
.cover-section {
  position: relative;
  height: 58vh;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #7bc4c4 0%, #4a9b9b 50%, #2c5f5f 100%);
}

.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
  background: linear-gradient(135deg, #7bc4c4 0%, #4a9b9b 50%, #2c5f5f 100%);
}

/* subtle Ken Burns on load */
.cover-section:hover .cover__img {
  transform: scale(1);
}

/* multi-layer overlay: dark top strip + teal gradient bottom */
.cover-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 55, 55, 0.55) 0%,
    rgba(28, 55, 55, 0.15) 45%,
    rgba(44, 95, 95, 0.75) 100%
  );
  z-index: 1;
}

/* decorative diagonal slash at bottom */
.cover-section::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 2;
}

.cover__overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 40px 72px;
  color: white;
  animation: heroIn 0.8s ease both;
  background: linear-gradient(135deg, #f8f4ec 0%, #e8e2d8 50%, #d8d2c8 100%);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua-blue);
  margin-bottom: 12px;
}

.cover__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--aqua-blue);
  opacity: 0.7;
}

.cover__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  max-width: 700px;
  margin: 0;
}

.cover__title em {
  font-style: italic;
  color: var(--aqua-blue);
}

/* ═══════════════════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════════════════ */
.blog-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 96px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════
   SECTION LABEL (shared utility)
═══════════════════════════════════════════════════ */
.section-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean-teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.section-label::after {
  content: "";
  height: 1px;
  width: 40px;
  background: var(--aqua-blue);
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════
   POSTS FEED
═══════════════════════════════════════════════════ */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Article Card ── */
.blog-post {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  animation: cardIn 0.6s ease both;
}

.blog-post:nth-child(1) {
  animation-delay: 0.05s;
}
.blog-post:nth-child(2) {
  animation-delay: 0.12s;
}
.blog-post:nth-child(3) {
  animation-delay: 0.19s;
}
.blog-post:nth-child(4) {
  animation-delay: 0.26s;
}
.blog-post:nth-child(5) {
  animation-delay: 0.33s;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-post:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover);
}

/* featured image */
.post-thumbnail {
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--warm-sand);
}

.post-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.blog-post:hover .post-thumbnail img {
  transform: scale(1.04);
}

/* card body */
.blog-post__body {
  padding: 32px 36px 36px;
}

/* category pill */
.post-category {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(74, 155, 155, 0.1);
  color: var(--ocean-teal);
  border: 1px solid rgba(74, 155, 155, 0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

/* title */
.entry-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 14px;
}

.entry-title a {
  color: var(--text-dark);
  text-decoration: none;
  background-image: linear-gradient(var(--ocean-teal), var(--ocean-teal));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition:
    background-size 0.4s ease,
    color 0.3s ease;
}

.entry-title a:hover {
  color: var(--deep-sea);
  background-size: 100% 2px;
}

/* meta */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Open Sans", sans-serif;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.entry-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--aqua-blue);
  flex-shrink: 0;
}

/* excerpt */
.entry-content {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
}

/* read more */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ocean-teal);
  text-decoration: none;
  transition:
    gap var(--transition),
    color var(--transition);
}

.read-more::after {
  content: "→";
  transition: transform var(--transition);
}

.read-more:hover {
  color: var(--deep-sea);
  gap: 14px;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* entry footer */
.entry-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── No Posts ── */
.no-posts {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-soft);
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
}

.no-posts .no-posts__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* ═══════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 48px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: white;
}

.pagination .page-numbers:hover {
  background: var(--ocean-teal);
  color: white;
  border-color: var(--ocean-teal);
}

.pagination .page-numbers.current {
  background: var(--deep-sea);
  color: white;
  border-color: var(--deep-sea);
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--text-soft);
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.sidebar-widget__title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--deep-sea);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--warm-sand);
  position: relative;
}

.sidebar-widget__title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--ocean-teal);
}

/* CTA widget */
.sidebar-cta {
  background: linear-gradient(
    145deg,
    var(--ocean-teal) 0%,
    var(--deep-sea) 100%
  );
  color: white;
  text-align: center;
  padding: 36px 24px;
}

.sidebar-cta .sidebar-widget__title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta .sidebar-widget__title::after {
  background: var(--aqua-blue);
}

.sidebar-cta p {
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 20px;
}

.sidebar-cta .btn-cta {
  display: inline-block;
  background: white;
  color: var(--deep-sea);
  padding: 11px 28px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-cta .btn-cta:hover {
  background: var(--warm-sand);
  transform: translateY(-2px);
}

/* Recent posts widget */
.sidebar-recent-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.sidebar-recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-recent-post:first-child {
  padding-top: 0;
}

.sidebar-recent-post:hover {
  transform: translateX(4px);
}

.sidebar-recent-post img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-recent-post__text .title {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-recent-post__text .date {
  font-family: "Open Sans", sans-serif;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Tags widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--warm-sand);
  color: var(--deep-sea);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.tag-cloud a:hover {
  background: var(--ocean-teal);
  color: white;
  border-color: var(--ocean-teal);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .blog-page-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 28px 80px;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .blog-page-wrap {
    padding: 40px 20px 64px;
  }

  .cover__overlay {
    padding: 0 20px 64px;
  }

  .cover-section::after {
    height: 50px;
  }

  .blog-post__body {
    padding: 24px 22px 28px;
  }

  .cover__title {
    font-size: 2rem;
  }
}
