:root {
  --primary-color: #000000;
  --accent-color: #333333;
  --bg-color: #f7f7f7;
  --content-bg: #ffffff;
  --card-bg: #ffffff;
  --text-color: #1a1a1a;
  --light-text: #666666;
  --border-color: #eeeeee;
  --header-bg: #ffffff;
  --footer-bg: #fafafa;
  --serif-font: 'Playfair Display', serif;
  --sans-font: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary-color: #ffffff;
  --accent-color: #e0e0e0;
  --bg-color: #121212;
  --content-bg: #1a1a1a;
  --card-bg: #242424;
  --text-color: #e0e0e0;
  --light-text: #999999;
  --border-color: #333333;
  --header-bg: #1a1a1a;
  --footer-bg: #111111;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--sans-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout Containers */
.wrapper {
  background: var(--content-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: var(--content-bg);
}

/* Header */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--sans-font);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -1.5px;
  color: #000;
}

.nav-menu {
  display: flex;
  gap: 15px;
  /* Tighter gap like reference */
}

.nav-menu li a {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-transform: none;
  /* Reference is not all caps */
}

.nav-menu li a:hover {
  color: var(--primary-color);
}

.theme-toggle,
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--light-text);
  padding: 0;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.theme-toggle:hover,
.search-toggle:hover {
  color: var(--primary-color);
}

.header-search {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.header-search.active {
  max-height: 100px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.header-search form {
  display: flex;
  gap: 10px;
}

.header-search input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--sans-font);
  outline: none;
}

.header-search button {
  background: var(--primary-color);
  color: var(--content-bg);
  border: none;
  padding: 0 30px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: block !important;
}

.header-icons {
  display: flex;
  gap: 15px;
  color: var(--light-text);
}

/* Mobile Menu Toggle Button - Hidden by default */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--content-bg);
  padding: 80px 30px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu li a {
  display: block;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.mobile-nav-menu li a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

/* Responsive: Show mobile menu on screens <= 991px */
@media (max-width: 991px) {

  /* Hide desktop menu */
  .desktop-menu {
    display: none !important;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Adjust header icons spacing */
  .header-icons {
    gap: 12px;
  }

  /* Smaller logo on mobile */
  .logo {
    font-size: 1.8rem;
  }

  .logo img {
    max-height: 35px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .mobile-menu-content {
    width: 100%;
  }

  .logo {
    font-size: 1.5rem;
  }
}

/* Top Tray - Horizontal scroll for all screens */
.top-tray-wrapper {
  width: 100%;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
}

.top-tray-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Default: Horizontal scroll with visible scrollbar */
.top-tray {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 10px 0;
}

.top-tray::-webkit-scrollbar {
  height: 6px;
}

.top-tray::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 3px;
}

.top-tray::-webkit-scrollbar-thumb {
  background: var(--light-text);
  border-radius: 3px;
}

.top-tray::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.tray-item {
  flex: 0 0 180px;
  height: 120px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tray-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tray-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tray-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 15px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.tray-info span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tray-item:hover img {
  transform: scale(1.1);
}

.tray-item:hover .tray-info {
  transform: translateY(0);
}

/* Navigation buttons - hidden by default */
.tray-nav {
  display: none;
}

/* Slider mode with auto-scroll: Only for screens 1300px - 1599px */
@media (min-width: 1300px) and (max-width: 1599px) {
  .top-tray-wrapper {
    padding: 20px 0;
  }

  .top-tray-container {
    max-width: 1300px;
    padding: 0 50px;
  }

  /* Hide scrollbar for slider mode */
  .top-tray {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .top-tray::-webkit-scrollbar {
    display: none;
  }

  .tray-item {
    flex: 0 0 220px;
    height: 160px;
  }

  /* Show navigation buttons */
  .tray-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .tray-nav:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
  }

  .tray-nav.prev {
    left: 0;
  }

  .tray-nav.next {
    right: 0;
  }

  .tray-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* Large screens (>= 1600px): Full width with scrollbar */
@media (min-width: 1600px) {
  .top-tray-wrapper {
    padding: 20px 0;
  }

  .top-tray-container {
    max-width: 100%;
    padding: 0 15px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .top-tray-wrapper {
    padding: 15px;
  }

  .tray-item {
    flex: 0 0 180px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .tray-item {
    flex: 0 0 160px;
    height: 130px;
  }
}


/* Magazine Featured Grid */
.featured-magazine {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  padding: 20px;
}

.featured-big {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--card-bg);
}

.featured-small-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-small {
  position: relative;
  height: 245px;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--card-bg);
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
}

.featured-content .category {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 10px;
}

.featured-content h2 {
  font-family: var(--sans-font);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.featured-small .featured-content h2 {
  font-size: 1.2rem;
}

/* Main Content Two-Column */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  padding: 20px;
}

/* Article List Item */
.article-list-item {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
}

.article-list-img {
  flex: 0 0 280px;
  height: 180px;
  overflow: hidden;
}

.article-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

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

.article-list-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-list-content p {
  color: var(--light-text);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.read-more {
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0.5px;
}

/* Sidebar */
.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  display: inline-block;
}

.search-box {
  margin-bottom: 30px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--sans-font);
}

/* Sidebar Widgets - New */
.sidebar-widget {
  margin-bottom: 40px;
}

/* Music Player */
.music-player {
  background: var(--bg-color);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

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

.player-thumb {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.player-text span {
  display: block;
}

.song-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.song-artist {
  font-size: 0.75rem;
  color: #888;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #000;
}

.player-controls .time {
  font-size: 0.7rem;
  color: #888;
}

/* Photo Album */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.album-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  transition: var(--transition);
}

.album-grid img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

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

.tag-link {
  font-size: 0.75rem;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  color: #555;
  transition: var(--transition);
}

.tag-link:hover {
  background: #000;
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  padding: 0 10px;
  transition: var(--transition);
  text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

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

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

/* Main Footer */
.main-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
}

.footer-grid h5 {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: #000;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  font-size: 0.85rem;
  color: #777;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: #000;
  padding-left: 5px;
}

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

.social-icons a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #999;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.8rem;
  color: #999;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb-item a {
  color: #777;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: #000;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 600;
}

.breadcrumb-separator {
  color: #ccc;
  font-size: 0.7rem;
}

/* Post Interaction Elements */
.section-heading {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #000;
  display: inline-block;
}

/* Tags & Share */
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 50px 0;
}

.post-tags .label,
.post-share .label {
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 10px;
}

.post-tags a {
  font-size: 0.85rem;
  color: #777;
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: 4px;
  margin-right: 5px;
  transition: var(--transition);
}

.post-tags a:hover {
  background: #000;
  color: #fff;
}

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

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #555;
  transition: var(--transition);
}

.share-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Related Posts */
.related-posts {
  margin-bottom: 60px;
}

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

.related-thumb {
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.related-item:hover img {
  transform: scale(1.05);
}

.related-item h5 {
  font-size: 1rem;
  line-height: 1.4;
}

.related-item h5 a {
  color: #222;
}

/* Comments Area */
.comments-area {
  background: #fcfcfc;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.comment-notes {
  font-size: 13px;
  margin-bottom: 15px;
  display: block;
}

input#wp-comment-cookies-consent {
  display: inline;
  width: inherit;
}

p.comment-form-cookies-consent {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  gap: 5px;
}

.comments-title {
  margin-bottom: 15px;
}

.comment-list .comment {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-list .children {
  margin-left: 50px;
  /* Indent replies */
  list-style: none;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.comment-body {
  display: flex;
  gap: 20px;
}

.comment-author img {
  border-radius: 50%;
  width: 50px;
  /* Slightly smaller */
  height: 50px;
  object-fit: cover;
}

.comment-content-wrap {
  flex: 1;
}

.comment-meta {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.comment-meta cite {
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  margin-right: 10px;
}

.comment-metadata {
  font-size: 0.8rem;
  color: #999;
}

.comment-metadata a {
  color: #999;
}

.comment-metadata a:hover {
  color: #000;
}

.comment-metadata:before {
  content: "•";
  margin-right: 10px;
  color: #ccc;
}

.comment-text p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.reply a {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.reply a:hover {
  color: var(--primary-color);
}

/* Comment Form */
.comment-form .form-group {
  margin-bottom: 20px;
}

.comment-form textarea,
.comment-form input {
  width: 100%;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
}

.comment-form textarea {
  height: 150px;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.submit-comment {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-comment:hover {
  background: #333;
}

/* Single Post Styles */
.single-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000;
}

.post-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-meta span {
  margin-right: 20px;
}

.post-featured-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 40px;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

.post-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.post-body p {
  margin-bottom: 25px;
}

.post-body blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  border-left: 4px solid #000;
  padding-left: 30px;
  margin: 40px 0;
  color: #555;
}

.post-body ul,
.post-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: #000;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.post-body h2 {
  font-size: 1.7rem;
}

.post-body h3 {
  font-size: 1.3rem;
}

.post-body h4 {
  font-size: 1rem;
}

.post-body h5 {
  font-size: 1rem;
}

.post-body a {
  color: #000;
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition);
}

.post-body a:hover {
  color: var(--light-text);
  text-decoration: none;
}

.post-body strong {
  font-weight: 700;
  color: #000;
}

.post-body em {
  font-style: italic;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 30px 0;
  display: block;
}

.post-body figure {
  margin: 30px 0;
}

.post-body figcaption {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Static Page Styles */
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1.2;
  color: #000;
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.page-body {
  font-size: 1.15rem;
  line-height: 2;
  color: #444;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 20px;
  padding-top: 10px;
}

.page-body p {
  margin-bottom: 30px;
}

.page-body h2 {
  color: #000;
  margin-top: 50px;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.form-group p {
  margin-bottom: 0;
}

form.wpcf7-form.init p {
  margin-bottom: 0;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
  display: none;
}

/* Policy & Content Pages */
.page-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #444;
}

.page-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #000;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000;
}

/* Contact Page Styles */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-side h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-form-side p {
  color: #666;
  margin-bottom: 40px;
}

.contact-info-side {
  padding-left: 40px;
  border-left: 1px solid #eee;
}

.info-item {
  margin-bottom: 30px;
}

.info-item h4 {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #000;
}

.info-item p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  height: 150px;
}

.submit-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background: #333;
}

/* 404 Error Page Styles */
.error-page {
  text-align: center;
  padding: 151px 0;
}

.error-code {
  font-family: 'Playfair Display', serif;
  font-size: 10rem;
  line-height: 1;
  color: #eee;
  margin-bottom: 20px;
  font-weight: 700;
}

.error-message h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #000;
}

.error-message p {
  color: #666;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.back-home {
  background: #000;
  color: #fff;
  padding: 15px 40px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
}

.back-home:hover {
  background: #333;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

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

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

  .article-list-item {
    flex-direction: column;
  }

  .article-list-img {
    flex: 0 0 auto;
    width: 100%;
  }
}

a.logo img {
  width: 175px;
}

a.logo img.logo-w {
  display: none;
}

[data-theme="dark"] a.logo img {
  display: none;
}

[data-theme="dark"] a.logo img.logo-w {
  display: block;
}

[data-theme="dark"] .nav-menu li a {
  color: #fff;
}

[data-theme="dark"] .footer-grid h5,
[data-theme="dark"] .read-more {
  color: #fff;
}

[data-theme="dark"] .sidebar-title {
  border-color: #dedddd;
}

[data-theme="dark"] .kira-featured-info h6 a {
  color: #f7f7f7 !important;
}

[data-theme="dark"] .comment-meta cite,
[data-theme="dark"] a {
  color: #fff;
}

[data-theme="dark"] .tag-link {
  background: #292929;
}

[data-theme="dark"] .comment-text p {
  color: #f0f0f0;
}

[data-theme="dark"] .page-numbers:hover,
[data-theme="dark"] .page-numbers.current {
  background: #585858;
}

[data-theme="dark"] .comments-area,
[data-theme="dark"] .main-footer {
  background: none;
}

[data-theme="dark"] .related-item h5 a,
[data-theme="dark"] .post-body strong,
[data-theme="dark"] .post-body a,
[data-theme="dark"] .post-body,
[data-theme="dark"] .post-body ul,
[data-theme="dark"] .post-body ul li,
[data-theme="dark"] .post-body ol li,
[data-theme="dark"] .post-body p {
  color: #fff;
}

[data-theme="dark"] .single-post-title,
[data-theme="dark"] .footer-links ul li a:hover,
[data-theme="dark"] .post-body h2,
[data-theme="dark"] .post-body h3,
[data-theme="dark"] .post-body h4,
[data-theme="dark"] .post-body h5,
[data-theme="dark"] .post-body h6,
[data-theme="dark"] .post-body a,
[data-theme="dark"] .page-body h3,
[data-theme="dark"] .page-body h4,
[data-theme="dark"] .page-body h5,
[data-theme="dark"] .page-body h6,
[data-theme="dark"] .page-body,
[data-theme="dark"] .page-title,
[data-theme="dark"] .page-body p,
[data-theme="dark"] .page-body,
[data-theme="dark"] .page-title {
  color: #fff;
}

a.logo {
  display: flex;
  padding: 10px 0;
}

p.logged-in-as {
  font-size: 13px;
  margin-bottom: 15px;
}

/* Ajax Comment Feedback */
.dear-ajax-feedback {
  font-size: 0.9rem;
  line-height: 1.5;
}

.dear-ajax-feedback.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.dear-ajax-feedback.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.ajax-loader {
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 1500px) {
  .tray-item {
    height: 100px;
  }
}

@media (max-width: 1024px) {
  a.logo img {
    width: 135px;
  }
}


@media (max-width: 768px) {
  .top-tray-wrapper {
    padding: 10px;
  }

  .top-tray {
    padding: 0;
  }

  .container {
    padding: 0 10px;
  }

  .featured-big {
    height: 350px;
  }

  .featured-content {
    padding: 15px;
  }

  .featured-content h2 {
    font-size: 20px;
  }

  .main-layout {
    padding-top: 0 !important;
  }

  .article-list-item {
    gap: 10px;
  }

  .article-list-content h3 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 5px;
  }

  .contact-wrap {
    display: block;
  }

  .contact-info-side {
    padding: 0;
    border: 0;
  }

  .article-list-content p {
    margin-bottom: 5px;
  }

  article.article-list-item {
    margin-bottom: 15px;
  }

  .kira-featured-item {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  .sidebar-widget {
    margin-bottom: 15px;
  }

  .footer-brand .logo {
    margin-bottom: 0;
    padding: 0;
  }

  .footer-grid {
    gap: 15px;
    margin-bottom: 5px;
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / span 2;
    grid-row: 1 / span 1;
  }

  .footer-grid h5 {
    margin-bottom: 10px;
  }

  .featured-magazine {
    padding-top: 10px !important;
  }

  .footer-links ul li {
    margin-bottom: 5px;
  }

  .footer-bottom {
    padding-top: 10px;
  }

  .main-footer {
    padding: 10px 0;
  }

  .category-header h1 {
    font-size: 35px !important;
  }

  .category-header p {
    font-size: 14px;
  }

  .category-header>div {
    margin: 10px 0 !important;
  }

  .category-header {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  .breadcrumb {
    padding: 10px 0;
  }

  .single-post-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .post-meta {
    font-size: 12px;
    text-transform: capitalize;
    margin-bottom: 15px;
  }

  .post-meta span {
    margin-right: 10px;
  }

  .post-featured-img {
    margin-bottom: 15px;
  }

  .post-body {
    font-size: 15px;
  }

  .post-body p {
    margin-bottom: 15px !important;
  }

  .post-body h2 {
    margin: 10px 0;
    font-size: 25px;
  }

  .post-body h2,
  .post-body h3,
  .post-body h4,
  .post-body h5,
  .post-body h6 {
    margin: 10px 0;
  }

  .post-body ul {
    margin-bottom: 10px;
    padding-left: 30px;
  }

  .post-body ul li {
    margin-bottom: 6px;
    font-size: 14px;
    padding-left: 0;
  }

  .post-body h3 {
    font-size: 20px;
  }

  .post-footer {
    padding: 15px 0;
    margin: 10px 0;
  }

  .related-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }

  .section-heading {
    margin-bottom: 15px;
  }

  .page-title {
    padding: 0;
    font-size: 30px;
    padding-bottom: 15px;
  }

  .page-body {
    font-size: 14px;
    padding-bottom: 0;
  }

  .page-body p {
    margin-bottom: 15px;
  }

  footer.main-footer .container {
    padding: 0;
  }
}