/*
Theme Name: DAT Magazine
Theme URI: https://datmagazine.com
Author: DAT Team
Description: A modern magazine theme for DAT Magazine featuring a sophisticated color palette with periwinkle blue (#6B7FE8), vivid orange (#FF8C00), midnight indigo (#1A0A4B), warm beige (#F5F0EB), and complementary lavender accents for a modern, elegant design.
Version: 4.0
License: GNU GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dat-magazine
Domain Path: /languages
Tags: magazine, responsive, dynamic
*/

/* ============================================================================
   RESET & BASIC STYLES
   ============================================================================ */

* {
  box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, td, tfoot, th, thead, tr,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: #6B7FE8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5527d9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0 0 1rem 1.5rem;
}

li {
  margin: 0.5rem 0;
}

blockquote {
  border-left: 4px solid #6B7FE8;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1A0A4B;
  border-bottom: none;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  color: #B0BEF0;
}

.site-nav {
  flex: 1;
  margin-left: 2rem;
}

.site-nav ul,
.site-nav .menu,
.site-nav .nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  align-items: center;
}

.site-nav li,
.site-nav .menu-item {
  position: relative;
  padding: 0 1rem;
  border-left: 1px solid rgba(176, 190, 240, 0.25);
  height: 72px;
  display: flex;
  align-items: center;
}

.site-nav li:first-child,
.site-nav .menu-item:first-child {
  border-left: none;
  padding-left: 0;
}

.site-nav a {
  color: #B0BEF0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-cat > a,
.site-nav .current-menu-parent > a {
  color: #FF8C00;
}

/* Dropdown for static HTML nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > li {
  position: relative;
}

.nav-dropdown > li > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1A0A4B;
  border: 1px solid rgba(176, 190, 240, 0.2);
  border-top: none;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-dropdown > li:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown .nav-dropdown-menu li {
  padding: 0;
  border: none;
  height: auto;
}

.nav-dropdown .nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #B0BEF0;
  font-weight: 400;
  font-size: 0.9rem;
}

.nav-dropdown .nav-dropdown-menu a:hover {
  background-color: rgba(176, 190, 240, 0.1);
  color: #FF8C00;
}

/* WordPress sub-menu (wp_nav_menu output) */
.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1A0A4B;
  border: 1px solid rgba(176, 190, 240, 0.2);
  border-top: none;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.site-nav .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .sub-menu .menu-item {
  padding: 0;
  border: none;
  height: auto;
  display: block;
}

.site-nav .sub-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #B0BEF0;
  font-weight: 400;
  font-size: 0.9rem;
}

.site-nav .sub-menu a:hover {
  background-color: rgba(176, 190, 240, 0.1);
  color: #FF8C00;
}

/* Search form */
.search-wrap {
  margin-left: auto;
  flex-shrink: 0;
}

.search-wrap form {
  display: flex;
  gap: 0.5rem;
}

.search-wrap input[type="search"],
.search-wrap input[type="text"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(176, 190, 240, 0.3);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  min-width: 150px;
  transition: border-color 0.2s ease;
  background: rgba(176, 190, 240, 0.1);
  color: #ffffff;
}

.search-wrap input[type="search"]::placeholder,
.search-wrap input[type="text"]::placeholder {
  color: rgba(176, 190, 240, 0.6);
}

.search-wrap input[type="search"]:focus,
.search-wrap input[type="text"]:focus {
  outline: none;
  border-color: #B0BEF0;
  box-shadow: 0 0 0 3px rgba(176, 190, 240, 0.2);
  background: rgba(176, 190, 240, 0.15);
}

.search-wrap button {
  padding: 0.5rem 1rem;
  background-color: #FF8C00;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.search-wrap button:hover {
  background-color: #e07a00;
}

/* ============================================================================
   PAGE LAYOUT
   ============================================================================ */

.page-wrap,
.category-wrap,
.search-wrap-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.single-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar-inner {
  position: sticky;
  top: 88px;
  height: fit-content;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.latest-feature {
  margin-bottom: 3rem;
  max-width: 100%;
}

.latest-feature .image-link {
  display: block;
  margin-bottom: 1rem;
}

.latest-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.latest-feature h2 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.latest-feature a {
  color: inherit;
}

.latest-feature a:hover {
  color: #6B7FE8;
}

/* ============================================================================
   CONTENT SECTIONS & CATEGORIES
   ============================================================================ */

.category-header {
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #666;
}

.breadcrumb a {
  color: #6B7FE8;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  color: #ccc;
}

.category-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

/* Featured article in category */
.category-feature,
.section-feature {
  margin-bottom: 2rem;
  max-width: 100%;
}

.category-feature .image-link,
.section-feature .image-link {
  display: block;
  margin-bottom: 1rem;
}

.category-feature img,
.section-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-feature h2,
.section-feature h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.category-feature p,
.section-feature p {
  margin: 0.75rem 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-feature a,
.section-feature a {
  color: inherit;
}

.category-feature a:hover,
.section-feature a:hover {
  color: #6B7FE8;
}

/* Content sections on homepage */
.content-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.content-section h2 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #6B7FE8;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6B7FE8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* ============================================================================
   BANNERS & PROMOTIONAL SECTIONS
   ============================================================================ */

.section-banner {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.section-banner a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

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

.billboard-banner {
  width: 100%;
  height: auto;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.billboard-banner a {
  display: block;
  width: 100%;
}

.billboard-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================================
   ARTICLE & CONTENT CARDS
   ============================================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .image-link {
  display: block;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 4px;
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h4 {
  margin: 0 0 0.5rem 0;
}

.card a {
  color: inherit;
}

.card a:hover {
  color: #6B7FE8;
}

/* Medium cards for category pages (16:10) */
.medium-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease;
}

.medium-card:hover {
  padding-left: 1rem;
}

.medium-card .image-link {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0;
}

.medium-card img {
  width: 100%;
  height: 125px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.medium-card-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.medium-card-content p {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.medium-card-meta {
  font-size: 0.8rem;
  color: #999;
}

.medium-card a {
  color: inherit;
}

.medium-card a:hover {
  color: #6B7FE8;
}

/* List items (3:2 aspect ratio) */
.list-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.list-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.list-item:hover {
  transform: translateY(-4px);
}

.list-item-image {
  display: block;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.list-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.list-item-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6B7FE8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.list-item h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.list-item p {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

.list-item a {
  color: inherit;
}

.list-item a:hover {
  color: #6B7FE8;
}

/* ============================================================================
   QUICKIES SECTION
   ============================================================================ */

.quickies-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.quickies-section h2 {
  margin-bottom: 2rem;
}

.quickies-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.quickies-track::-webkit-scrollbar {
  height: 6px;
}

.quickies-track::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.quickies-track::-webkit-scrollbar-thumb {
  background: #6B7FE8;
  border-radius: 3px;
}

.quickies-track::-webkit-scrollbar-thumb:hover {
  background: #5527d9;
}

.quickie-card {
  flex: 0 0 170px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.quickie-card:hover {
  transform: translateY(-4px);
}

.quickie-card .image-link {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.quickie-card img {
  width: 100%;
  height: 170px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.quickie-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.quickie-card a {
  color: inherit;
}

.quickie-card a:hover {
  color: #6B7FE8;
}

/* ============================================================================
   NEWSLETTER & CTA SECTIONS
   ============================================================================ */

.newsletter-strip {
  background-color: #1A0A4B;
  color: white;
  padding: 3rem 2rem;
  margin: 3rem 0;
  border-radius: 4px;
  text-align: center;
}

.newsletter-strip h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  padding: 0.75rem 2rem;
  background-color: #FF8C00;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: #e07800;
}

/* ============================================================================
   ARTICLE / SINGLE POST PAGE
   ============================================================================ */

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 2rem;
}

.article-category {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.article-cat-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #f0f0f0;
  color: #6B7FE8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  text-decoration: none;
}

.article-cat-tag:hover {
  background-color: #e8e8e8;
}

.article-header h1 {
  margin: 1rem 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-sep {
  color: #ccc;
}

/* Article tags/pills */
.article-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.article-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.article-tag:hover {
  background-color: #e8e8e8;
  color: #6B7FE8;
}

/* Article hero image */
.article-hero {
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-image-caption {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Article body prose */
.article-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.95;
  color: #1A0A4B;
  margin: 2rem 0;
  background: #fff;
  padding: 2.5rem;
  border-radius: 10px;
}

.article-body h2 {
  font-family: 'Poppins', sans-serif;
  margin: 2rem 0 1rem 0;
  font-weight: 700;
}

.article-body h3 {
  font-family: 'Poppins', sans-serif;
  margin: 1.5rem 0 0.75rem 0;
  font-weight: 700;
}

.article-body p {
  margin: 1.25rem 0;
  font-size: 1.125rem;
  line-height: 1.95;
  color: #2a2035;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1rem 2rem;
}

.article-body li {
  margin: 0.5rem 0;
}

.article-body a {
  color: #6B7FE8;
  border-bottom: 1px solid rgba(176, 190, 240, 0.2);
}

.article-body a:hover {
  border-bottom-color: #6B7FE8;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid #6B7FE8;
  font-style: italic;
}

.article-body strong {
  font-weight: 600;
}

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

.article-body code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-body pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Article banner (mid-article) */
.article-banner {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.article-banner a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

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

/* Share bar */
.share-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.share-bar span {
  font-weight: 600;
  margin-right: 0.5rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.share-button:hover {
  background-color: #e8e8e8;
  border-color: #d0d0d0;
}

.share-button.facebook {
  background-color: #f0f0f0;
  color: #1877f2;
}

.share-button.facebook:hover {
  background-color: #e8e8f5;
}

/* Related posts section */
.related-posts {
  margin: 3rem 0;
}

.related-posts h3 {
  margin-bottom: 2rem;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.post-nav-item {
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  padding: 1.5rem;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-nav-item:hover {
  border-color: #6B7FE8;
  box-shadow: 0 2px 8px rgba(176, 190, 240, 0.2);
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-nav-item h4 {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
}

.post-nav-item a {
  color: inherit;
}

.post-nav-item a:hover {
  color: #6B7FE8;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar-ads {
  margin-bottom: 2rem;
}

.sidebar-ads-area {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.sidebar-block {
  margin-bottom: 2rem;
}

.sidebar-block h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #6B7FE8;
  font-size: 1.1rem;
}

.sidebar-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
}

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

.sidebar-post-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
}

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

.sidebar-post-content {
  flex: 1;
}

.sidebar-post h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.sidebar-post-date {
  font-size: 0.75rem;
  color: #999;
}

.sidebar-post a {
  color: inherit;
}

.sidebar-post a:hover {
  color: #6B7FE8;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
  background-color: #6B7FE8;
  color: white;
  border-color: #6B7FE8;
}

.pagination .current {
  background-color: #6B7FE8;
  color: white;
  border-color: #6B7FE8;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background-color: #1A0A4B;
  color: #FF8C00;
  padding: 3rem 2rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}

.footer-col h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.footer-col li {
  margin: 0.5rem 0;
}

.footer-col a {
  color: #FF8C00;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #FF8C00;
  color: #1A0A4B;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.footer-social a:hover {
  background-color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom a {
  color: #FF8C00;
  margin: 0 0.5rem;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
  .site-header {
    padding: 0 1.5rem;
    gap: 1rem;
  }

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

  .site-nav {
    margin-left: 1.5rem;
  }

  .site-nav li {
    padding: 0 0.75rem;
  }

  .single-wrap,
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar-inner {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .page-wrap,
  .category-wrap,
  .search-wrap-main {
    padding: 1.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
  }

  .site-logo {
    flex-basis: 100%;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    border-top: 1px solid rgba(176, 190, 240, 0.25);
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .site-nav > div > ul,
  .site-nav > ul,
  .site-nav .menu {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li,
  .site-nav .menu-item {
    padding: 0.75rem 0;
    border-left: none;
    border-bottom: 1px solid rgba(176, 190, 240, 0.25);
    height: auto;
  }

  .site-nav li:last-child,
  .site-nav .menu-item:last-child {
    border-bottom: none;
  }

  .search-wrap {
    margin-left: 0;
    width: 100%;
    border-top: 1px solid rgba(176, 190, 240, 0.25);
    padding-top: 1rem;
  }

  .search-wrap form {
    flex-direction: column;
  }

  .search-wrap input[type="search"],
  .search-wrap input[type="text"],
  .search-wrap button {
    width: 100%;
  }

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

  .medium-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 1rem;
  }

  .site-logo {
    font-size: 1.25rem;
  }

  .site-nav {
    margin-left: 0;
  }

  .page-wrap,
  .category-wrap,
  .search-wrap-main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 1rem;
  }

  .card-grid {
    gap: 1rem;
  }

  .quickies-track {
    gap: 1rem;
  }

  .quickie-card {
    flex: 0 0 140px;
  }

  .quickie-card img {
    height: 140px;
  }

  .newsletter-form {
    gap: 0.5rem;
  }

  .newsletter-form button {
    width: 100%;
  }

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

  .medium-card {
    grid-template-columns: 1fr;
  }

  .list-items {
    grid-template-columns: 1fr;
  }
}


/* =============================================
   MOBILE HAMBURGER MENU
   ============================================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .site-header {
        flex-wrap: wrap;
        padding: 12px 16px;
        position: relative;
    }

    .site-logo {
        font-size: 1.4rem;
    }

    .site-nav {
        display: none;
        width: 100%;
        order: 3;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 12px;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav a {
        display: block;
        padding: 12px 0;
        font-size: 0.95rem;
    }

    .search-wrap {
        display: none;
        width: 100%;
        order: 4;
        padding-top: 12px;
    }

    .search-wrap.is-open {
        display: block;
    }

    .search-wrap form {
        width: 100%;
    }

    .search-wrap input[type="search"] {
        width: 100%;
    }
}