/* Modern clean blog post / article page */

:root {
  --bp-primary: #012a6c;
  --bp-primary-dark: #0a1e4a;
  --bp-accent: #e891b9;
  --bp-text: #2c3e50;
  --bp-muted: #5a6c7d;
  --bp-border: #e8edf4;
  --bp-bg: #f4f7fb;
  --bp-white: #ffffff;
  --bp-max: 760px;
  --bp-radius: 14px;
  --bp-radius-sm: 10px;
  --bp-shadow: 0 4px 24px rgba(1, 42, 108, 0.06);
  --bp-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.75;
  color: var(--bp-text);
  background: var(--bp-bg);
}

/* Back to blog */
.btb-bar {
  background: var(--bp-white);
  border-bottom: 1px solid var(--bp-border);
  padding: 11px 0;
}

.btb-bar a {
  color: var(--bp-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s var(--bp-ease);
}

.btb-bar a:hover {
  color: var(--bp-accent);
}

/* Header */
.blog-header {
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
  border-bottom: 1px solid var(--bp-border);
  padding: 52px 0 36px;
}

.article-header {
  max-width: var(--bp-max);
  margin: 0 auto 28px;
  text-align: left;
}

.article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-primary);
  background: rgba(1, 42, 108, 0.06);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--bp-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.article-subtitle {
  font-size: 1.05rem;
  color: var(--bp-muted);
  margin: 0;
  line-height: 1.65;
}

.article-meta-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: var(--bp-max);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--bp-border);
  font-size: 0.9rem;
  color: var(--bp-muted);
}

.article-meta-bottom .meta-item i {
  margin-right: 6px;
  color: var(--bp-accent);
}

/* Hero image */
.image-container {
  max-width: 920px;
  margin: 0 auto;
}

.article-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow);
}

/* Layout */
.main-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 16px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

.blog-content {
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 36px;
  box-shadow: var(--bp-shadow);
}

.content-wrapper {
  max-width: var(--bp-max);
}

/* Article text */
.blog-content p {
  margin-bottom: 1.1rem;
  color: var(--bp-text);
}

.blog-content h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--bp-primary);
  margin: 2.2rem 0 0.85rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bp-border);
  letter-spacing: -0.01em;
}

.blog-content h2:first-of-type {
  margin-top: 1.5rem;
}

.blog-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bp-primary);
  margin: 1.6rem 0 0.75rem;
}

.blog-content a {
  color: var(--bp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--bp-ease);
}

.blog-content a:hover {
  color: var(--bp-accent);
}

.blog-content .highlight {
  background: linear-gradient(135deg, rgba(1, 42, 108, 0.04) 0%, rgba(232, 145, 185, 0.06) 100%);
  border-left: 3px solid var(--bp-accent);
  border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
  padding: 18px 20px;
  margin: 1.6rem 0;
  font-size: 0.98rem;
  color: var(--bp-muted);
}

.blog-content .highlight:before {
  display: none;
}

/* Gallery */
.image-gallery {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bp-border);
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bp-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.gallery-subtitle {
  font-size: 0.95rem;
  color: var(--bp-muted);
  margin-bottom: 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--bp-radius-sm);
  box-shadow: var(--bp-shadow);
  transition: transform 0.22s var(--bp-ease), box-shadow 0.22s var(--bp-ease);
  cursor: zoom-in;
}

.article-image.gallery-clickable {
  cursor: zoom-in;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(1, 42, 108, 0.1);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s var(--bp-ease);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.02);
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bp-border);
}

.share-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bp-border);
  border-radius: 50%;
  color: var(--bp-primary);
  text-decoration: none;
  font-size: 0.9rem;
  background: var(--bp-bg);
  transition: background 0.2s var(--bp-ease), color 0.2s var(--bp-ease), border-color 0.2s var(--bp-ease);
}

.share-btn:hover {
  background: var(--bp-primary);
  color: #fff;
  border-color: var(--bp-primary);
}

/* Author */
.author-bio {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bp-border);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--bp-shadow);
}

.author-details h4 {
  margin: 0 0 2px;
  font-size: 1rem;
  color: var(--bp-primary);
}

.author-title {
  font-size: 0.85rem;
  color: var(--bp-accent);
  font-weight: 600;
}

.author-bio > p {
  font-size: 0.92rem;
  color: var(--bp-muted);
  margin: 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--bp-shadow);
}

.sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bp-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bp-border);
}

.small-post-card {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bp-border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--bp-ease);
}

.small-post-card:hover {
  opacity: 0.85;
}

.small-post-card:last-child {
  border-bottom: none;
}

.small-post-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--bp-radius-sm);
  flex-shrink: 0;
}

.small-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bp-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}

.small-post-meta {
  font-size: 0.75rem;
  color: var(--bp-muted);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--bp-border);
}

.category-item:last-child {
  border-bottom: none;
}

.category-name {
  font-size: 0.9rem;
  color: var(--bp-primary);
  transition: color 0.2s var(--bp-ease);
}

.category-name:hover {
  color: var(--bp-accent);
}

/* More stories */
.more-stories,
.related-posts {
  background: var(--bp-white);
  border-top: 1px solid var(--bp-border);
  padding: 56px 0;
}

.more-stories .section-title,
.related-posts .section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bp-primary);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  overflow: hidden;
  background: var(--bp-white);
  box-shadow: var(--bp-shadow);
  transition: transform 0.22s var(--bp-ease), box-shadow 0.22s var(--bp-ease);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(1, 42, 108, 0.08);
}

.post-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-card-content {
  padding: 18px;
}

.post-card-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-accent);
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bp-primary);
  margin-bottom: 8px;
}

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--bp-muted);
  margin-bottom: 10px;
}

.post-card-meta {
  font-size: 0.78rem;
  color: var(--bp-muted);
  margin-bottom: 12px;
}

.read-more-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bp-primary);
  text-decoration: none;
  border: 1px solid var(--bp-border);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bp-bg);
  transition: background 0.2s var(--bp-ease), color 0.2s var(--bp-ease), border-color 0.2s var(--bp-ease);
}

.read-more-btn:hover {
  background: var(--bp-primary);
  color: #fff;
  border-color: var(--bp-primary);
}

/* Album lightbox */
body.bp-album-open {
  overflow: hidden;
}

.bp-album {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.bp-album__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 42, 108, 0.92);
}

.bp-album__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 56px 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bp-album__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--bp-ease);
}

.bp-album__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.bp-album__counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bp-album__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--bp-ease), opacity 0.2s var(--bp-ease);
}

.bp-album__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.bp-album__prev {
  left: 16px;
}

.bp-album__next {
  right: 16px;
}

.bp-album__stage {
  margin: 0;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bp-album__image {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  width: auto;
  height: auto;
  border-radius: var(--bp-radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.bp-album__caption {
  margin-top: 14px;
  max-width: 760px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bp-album__thumbs {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 920px;
  margin-top: 18px;
  padding: 10px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.bp-album__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s var(--bp-ease), border-color 0.2s var(--bp-ease);
}

.bp-album__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-album__thumb:hover,
.bp-album__thumb.is-active {
  opacity: 1;
  border-color: var(--bp-accent);
}

@media (max-width: 767px) {
  .bp-album__panel {
    padding: 52px 12px 16px;
  }

  .bp-album__nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .bp-album__prev {
    left: 8px;
  }

  .bp-album__next {
    right: 8px;
  }

  .bp-album__image {
    max-height: calc(100vh - 260px);
  }

  .bp-album__thumb {
    width: 52px;
    height: 40px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .main-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .blog-content {
    padding: 22px 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .article-meta-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
