* {
  box-sizing: border-box;
}

.ad-slot {
  margin: 1.5rem 0;
  text-align: center;
}

.ad-slot__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.35rem;
}

.ad-slot--header {
  margin: 0 0 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #eee;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 1.5rem;
  background-color: #FF6600;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  width: 350px;
  height: auto;
  max-width: 100%;
  display: block;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.site-header__nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  color: #1a2b4c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-header__search input {
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  order: 2;
}

.site-header__menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1a2b4c;
  border-radius: 2px;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #ddd;
  color: #666;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.lead-story {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.lead-story__link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.lead-story__image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.lead-story__overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 80%;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.lead-story__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1rem, 4.5vw, 2rem);
  color: #fff;
  line-height: 1.25;
}

.lead-story__date {
  margin: 0;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  color: #eee;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.view-all-news {
  text-align: center;
  margin: 2rem 0;
}

.view-all-news__btn {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  background-color: #FF6600;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
}

.view-all-news__btn:hover {
  background-color: #e65c00;
}

.article-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-card__title {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.25rem;
}

.article-meta {
  font-size: 0.8rem;
  color: #666;
}

.article-meta a {
  color: #666;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.article-byline .article-meta {
  margin: 0;
}

.article-meta__photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.home-sidebar {
  border-left: 1px solid #ddd;
  padding-left: 1.5rem;
}

.home-sidebar__heading {
  margin-top: 0;
  text-transform: uppercase;
  font-size: 1rem;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 0.5rem;
}

.most-read-list {
  padding-left: 1.25rem;
}

.most-read-list li {
  margin-bottom: 0.75rem;
}

.featured-articles-list {
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}

.featured-articles-list li {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .author-box {
    padding: 1rem;
    gap: 0.9rem;
  }

  .author-box__photo {
    width: 56px;
    height: 56px;
  }

  .home-sidebar {
    border-left: none;
    border-top: 1px solid #ddd;
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header__logo {
    order: 1;
    flex: 1 1 0;
    min-width: 210px;
  }

  .site-header__logo img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .site-header__menu-toggle {
    display: flex;
    order: 2;
    flex-shrink: 0;
  }

  .site-header__search {
    order: 3;
    flex-basis: 100%;
    margin-top: 0.75rem;
  }

  .site-header__search input {
    width: 100%;
    box-sizing: border-box;
  }

  .lead-story__overlay {
    max-width: 92%;
  }

  .site-header__nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__nav a {
    padding: 0.65rem 0;
    border-top: 1px solid rgba(26, 43, 76, 0.15);
  }
}

@media (max-width: 480px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

.article-category {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #b00;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.admin-edit-link {
  display: inline-block;
  float: right;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}

.admin-edit-link:hover {
  background: #444;
}

.article-detail__title {
  font-size: 2.25rem;
  margin: 0.25rem 0 0.5rem;
}

.article-detail__image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 1rem 0 0;
}

.article-detail__image-caption {
  margin: 0 0 1rem;
  padding: 0.5rem 0.9rem;
  background: #f7f7f7;
  border-left: 3px solid #FF6600;
  font-size: 0.85rem;
  color: #555;
}

.article-detail__excerpt {
  font-size: 1.15rem;
  font-style: italic;
  color: #333;
}

.article-detail__body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-detail__body p {
  margin: 0 0 1.25rem;
}

.static-page {
  max-width: 800px;
  margin: 0 auto;
}

.static-page__body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.static-page__body p {
  margin: 0 0 1.25rem;
}

.article-detail__audio {
  width: 100%;
  margin: 1rem 0;
}

.article-gallery--single {
  margin: 1.5rem 0;
  text-align: center;
}

.article-gallery--single img {
  width: 100%;
  max-width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.article-gallery--masonry {
  column-count: 2;
  column-gap: 0.75rem;
  margin: 1.5rem 0;
}

.article-gallery--masonry img {
  width: 100%;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  break-inside: avoid;
}

@media (min-width: 600px) {
  .article-gallery--masonry {
    column-count: 3;
  }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__figure {
  margin: 0;
  max-width: 90vw;
  text-align: center;
}

.gallery-lightbox__image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-lightbox__caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-lightbox__nav--prev {
  left: 1rem;
}

.gallery-lightbox__nav--next {
  right: 1rem;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: #f7f7f7;
  border-top: 3px solid #1a1a1a;
}

.author-box__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__info {
  min-width: 0;
}

.author-box__name {
  margin: 0 0 0.4rem;
}

.author-box__bio {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font-size: 0.9rem;
}

.like-btn:hover {
  border-color: #FF6600;
  color: #FF6600;
}

.like-btn.is-liked {
  border-color: #e0245e;
  color: #e0245e;
  background: #fdecf0;
}

.like-btn:disabled {
  cursor: default;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-links__label {
  font-size: 0.85rem;
  color: #666;
  margin-right: 0.25rem;
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.share-icon--facebook { background: #1877f2; }
.share-icon--x { background: #000; }
.share-icon--linkedin { background: #0a66c2; }
.share-icon--instagram { background: #c8336e; }
.share-icon--copy { background: #555; }

.share-icon:hover {
  opacity: 0.85;
}

.share-icon.is-copied {
  outline: 2px solid #1a1a1a;
}

.not-found {
  text-align: center;
  padding: 3rem 0;
}

.page-title {
  text-transform: uppercase;
  border-bottom: 3px solid #1a1a1a;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pagination a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: bold;
}

.pagination span {
  color: #666;
  font-size: 0.9rem;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #1a1a1a;
}

.author-header__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-header__name {
  margin: 0 0 0.5rem;
}

.author-header__bio {
  color: #555;
  margin: 0;
}
