/* styles.css */
:root {
  --color-text-primary: #000000;
  --color-text-secondary: #333333;
  --color-bg-page: #ffffff;
  --color-accent: #c6a355; /* Approximate from common templates, or we can use the pink/red from the screenshot */
  --color-logo-pink: #d7a9af; /* From the screenshot, the logo has a muted pink/red blocks */
  --font-serif: 'Georgia', serif;
  --font-sans: 'Arial', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  text-align: center;
  padding: 40px 0 20px;
}

.logo-container {
  display: inline-block;
  margin-bottom: 20px;
  width: 100%;
}

.logo-image {
  max-width: 800px;
  width: 100%;
  height: auto;
}

/* Navigation */
.main-nav {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: bold;
  font-size: 18px;
}

.main-nav a:hover {
  color: var(--color-logo-pink);
}

.main-nav a.active,
.footer-nav a.active {
  color: var(--color-text-primary);
  border-bottom: 2px solid var(--color-logo-pink);
  padding-bottom: 5px;
}

.search-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #000;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 5px;
}

.search-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -4px;
  width: 6px;
  height: 2px;
  background-color: #000;
  transform: rotate(45deg);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 60px;
}

.pagination {
  display: flex;
  gap: 10px;
  list-style: none;
}

.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #f0f0f0;
  text-decoration: none;
  color: #666;
  font-family: var(--font-serif);
  font-size: 16px;
  transition: border-color 0.2s;
}

.page-number.active {
  font-weight: bold;
  color: #000;
}

.page-number:hover:not(.active) {
  border-color: #ccc;
}

.page-info {
  font-size: 16px;
  color: #666;
  font-family: var(--font-serif);
}

/* Breadcrumbs */
.breadcrumbs {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-bottom: 40px;
}

/* Layout */
.content-wrapper {
  display: flex;
  gap: 40px;
}

.main-content {
  flex: 1;
}

.sidebar {
  width: 300px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  margin-bottom: 15px;
  font-weight: bold;
}

h1 {
  font-size: 28px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}

p {
  margin-bottom: 20px;
  text-align: justify;
}

/* Grid for Issues */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.issue-item {
  text-align: center;
}

.issue-item a {
  text-decoration: none;
  color: var(--color-text-primary);
}

.issue-item img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.issue-item img:hover {
  transform: scale(1.02);
}

.issue-title {
  font-size: 14px;
  font-weight: bold;
}

/* News Items */
.news-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.news-item img {
  width: 200px;
  height: auto;
  align-self: flex-start;
}

.news-content h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.news-meta {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
}

.read-more {
  text-decoration: none;
  color: var(--color-text-primary);
  font-style: italic;
  font-size: 14px;
}

.read-more:hover {
  text-decoration: underline;
}

/* Sidebar Widgets */
.widget {
  margin-bottom: 30px;
  text-align: center;
}

.widget h3 {
  font-size: 18px;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.widget img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.footer-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  margin-bottom: 30px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: bold;
  font-size: 18px;
}

/* =========================================
   ISSUE DETAIL LAYOUT
   ========================================= */

.issue-detail-header {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
}

.issue-cover-col {
    flex: 0 0 250px;
}

.issue-cover-col img {
    width: 100%;
    height: auto;
    border: 1px solid #eaeaea;
    margin-bottom: 15px;
}

.issue-price {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    font-family: Georgia, serif;
}

.issue-buy-btn {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-family: Georgia, serif;
}

.issue-buy-btn:hover {
    color: #e57373;
}

.issue-intro-col {
    flex: 1;
}

.issue-intro-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
}

.issue-intro-subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
    font-family: Georgia, serif;
}

.issue-intro-content p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Issue Sections */
.issue-section {
    margin-bottom: 40px;
}

.issue-section-title {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #000;
}

.issue-article-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.issue-article-thumb {
    flex: 0 0 150px;
}

.issue-article-thumb img {
    width: 100%;
    height: auto;
    border: 1px solid #eaeaea;
}

.issue-article-content {
    flex: 1;
}

.issue-article-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.issue-article-title a {
    color: #000;
    text-decoration: none;
}

.issue-article-title a:hover {
    color: #e57373;
}

.issue-article-subtitle {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.issue-article-author {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.issue-article-excerpt p {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

.issue-read-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    font-style: italic;
}

.issue-read-more:hover {
    color: #e57373;
}
.footer-logo {
  display: flex;
  align-items: center;
}

.back-to-top {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 40px;
  height: 40px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #666;
  font-size: 20px;
  transition: background-color 0.2s;
}

.back-to-top:hover {
  background-color: #e9e9e9;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .issues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-item {
    flex-direction: column;
  }
  .news-item img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .issues-grid {
    grid-template-columns: 1fr;
  }
  .main-nav ul {
    flex-wrap: wrap;
  }
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 320px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1;
  border-top: 2px solid var(--color-logo-pink);
  left: 0;
  top: 100%;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: bold;
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: var(--color-logo-pink);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Article Page specific */
.breadcrumbs {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-bottom: 30px;
  font-family: var(--font-serif);
}

.article-header {
  margin-bottom: 20px;
}

.article-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.article-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  font-style: italic;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* Share Icons */
.share-entry {
  margin-top: 50px;
  margin-bottom: 50px;
}

.share-entry h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: bold;
}

.share-icons {
  display: flex;
  gap: 15px;
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  transition: opacity 0.2s;
}

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

/* Article Sidebar Grid */
.sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sidebar-grid-item img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  transition: transform 0.2s;
}

.sidebar-grid-item:hover img {
  transform: scale(1.02);
}

.sidebar-grid-item p {
  font-size: 11px;
  line-height: 1.3;
  margin-top: 5px;
  color: #333;
}

/* Article Split Layout */
.article-split-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.article-left-col {
  flex: 1;
}

.article-right-col {
  flex: 1;
  text-align: right;
}

.article-right-col img {
  max-width: 100%;
  height: auto;
}

.article-tags {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: 14px;
}

@media (max-width: 768px) {
  .article-split-layout {
    flex-direction: column-reverse;
  }
}
