/*
Theme Name: Just A Guy Thing
Theme URI: https://justaguything.com
Author: JustAGuyThing
Author URI: https://justaguything.com
Description: A premium mens lifestyle and fashion WordPress theme for JustAGuyThing.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: justaguything
Tags: magazine, news, lifestyle, fashion, responsive
*/

/* =============================================
   JUST A GUY THING - Custom Theme Styles
   Built with Tailwind CSS CDN + Custom CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --color-primary: #c8102e;
  --color-primary-dark: #a00d24;
  --color-secondary: #1a1a1a;
  --color-accent: #f0f0f0;
  --color-text: #222222;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-white: #ffffff;
  --font-main: 'Open Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

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

/* ---- SITE WRAPPER ---- */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-inner {
  background: #fff;
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--color-secondary);
  color: #aaa;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid var(--color-primary);
}

.top-bar a {
  color: #bbb;
}

.top-bar a:hover {
  color: var(--color-white);
}

/* ---- SITE HEADER ---- */
.site-header {
  background: var(--color-white);
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 70px;
  width: auto;
}

.logo-text-wrap .site-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.logo-text-wrap .site-title span {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
}

.logo-text-wrap .tagline {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 4px;
}

.header-ad {
  display: flex;
  align-items: center;
}

.header-ad img {
  max-width: 728px;
  height: auto;
}

/* ---- MAIN NAVIGATION ---- */
.main-nav {
  background: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-primary);
}

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

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu > li > a {
  display: block;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: -3px;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
  color: var(--color-white);
  border-bottom-color: var(--color-primary);
  background: rgba(255,255,255,0.05);
}

.main-menu > li.menu-item-highlight > a {
  color: var(--color-primary);
}

.nav-search {
  padding: 0 16px;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
}

.nav-search:hover {
  color: var(--color-white);
}

/* Dropdown */
.main-menu li {
  position: relative;
}

.main-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  min-width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 200;
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.main-menu li:hover .sub-menu {
  display: block;
}

.main-menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  border-bottom: 1px solid #333;
  transition: all 0.2s;
}

.main-menu .sub-menu li a:hover {
  color: var(--color-white);
  background: rgba(200,16,46,0.15);
  padding-left: 22px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 22px;
  padding: 12px 16px;
  cursor: pointer;
}

/* ---- HERO SLIDER ---- */
.hero-slider-section {
  background: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 50px;
  z-index: 10;
}

.slide-category {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.slide-title {
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 600px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin: 0 0 10px;
}

.slide-excerpt {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  max-width: 500px;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.slider-dot.active {
  background: var(--color-primary);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slider-arrow:hover {
  background: var(--color-primary);
}

.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

/* ---- SECTION HEADERS ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-secondary);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
  margin: 0;
}

.view-all {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 4px 10px;
  transition: all 0.2s;
}

.view-all:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---- AD BANNERS ---- */
.ad-banner {
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  font-size: 11px;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed #ccc;
}

.ad-banner-728 { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.ad-banner-300 { width: 300px; height: 250px; }
.ad-banner-160 { width: 160px; height: 600px; }
.ad-banner-320 { width: 100%; height: 50px; display: none; } /* mobile */
.ad-banner-full { width: 100%; height: 90px; }

/* ---- HOMEPAGE LAYOUT ---- */
.homepage-main {
  padding: 30px 0;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

/* ---- FEATURED GRID (below slider) ---- */
.featured-grid-section {
  padding: 25px 0;
  background: #f5f5f5;
  border-bottom: 1px solid var(--color-border);
}

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

.featured-grid-item {
  position: relative;
  overflow: hidden;
  background: #222;
}

.featured-grid-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.featured-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  min-height: 180px;
}

.featured-grid-item:hover img {
  transform: scale(1.04);
}

.featured-grid-item .item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  pointer-events: none;
}

.featured-grid-item .item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  z-index: 2;
}

.featured-grid-item:first-child .item-content {
  padding: 20px;
}

.item-cat {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  margin-bottom: 6px;
}

.item-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.featured-grid-item:first-child .item-title {
  font-size: 20px;
}

.item-date {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
  letter-spacing: 0.06em;
}

/* ---- CATEGORY SECTIONS ---- */
.category-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ---- POST CARDS ---- */
.post-card {
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
  border: 1px solid var(--color-border);
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.post-card .card-img {
  overflow: hidden;
  position: relative;
}

.post-card .card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .card-img img {
  transform: scale(1.04);
}

.post-card .card-body {
  padding: 16px;
}

.card-category {
  display: inline-block;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-primary);
  margin-bottom: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 8px;
}

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

.card-excerpt {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-meta {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Grid layouts */
.posts-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

/* Large + small layout */
.posts-main-side {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.post-card-large .card-img img {
  height: 320px;
}

/* Horizontal card */
.post-card-h {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.post-card-h .card-img {
  flex-shrink: 0;
  width: 90px;
  height: 70px;
  overflow: hidden;
}

.post-card-h .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card-h:hover .card-img img {
  transform: scale(1.06);
}

.post-card-h .card-body {
  padding: 0;
  flex: 1;
}

.post-card-h .card-title {
  font-size: 12px;
  margin: 0 0 5px;
}

/* ---- SIDEBAR ---- */
.sidebar {
  position: sticky;
  top: 60px;
}

.widget {
  background: #fff;
  border: 1px solid var(--color-border);
  margin-bottom: 25px;
  overflow: hidden;
}

.widget-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
  margin: 0;
  background: var(--color-secondary);
  color: var(--color-white);
  border-left: 4px solid var(--color-primary);
}

.widget-body {
  padding: 16px;
}

/* Popular widget */
.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

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

.popular-num {
  font-size: 28px;
  font-weight: 800;
  color: #eee;
  line-height: 1;
  min-width: 32px;
}

.popular-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
}

.popular-meta {
  font-size: 10px;
  color: #999;
  margin-top: 3px;
}

/* Tags widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  transition: all 0.2s;
}

.tag-cloud a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Social widget */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.social-btn:hover {
  opacity: 0.85;
}

.social-btn .count {
  font-size: 16px;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}

.social-btn.facebook { background: #3b5998; color: #fff; }
.social-btn.twitter { background: #1da1f2; color: #fff; }
.social-btn.instagram { background: #e1306c; color: #fff; }
.social-btn.youtube { background: #ff0000; color: #fff; }
.social-btn.pinterest { background: #bd081c; color: #fff; }
.social-btn.rss { background: #f26522; color: #fff; }

/* ---- NEWSLETTER SECTION ---- */
.newsletter-section {
  background: var(--color-secondary);
  padding: 40px 0;
  text-align: center;
}

.newsletter-section h2 {
  color: var(--color-white);
  font-size: 22px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.newsletter-section p {
  color: #aaa;
  font-size: 13px;
  margin: 0 0 20px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  border: none;
  background: #fff;
  font-family: var(--font-main);
  outline: none;
}

.newsletter-form button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--color-primary-dark);
}

/* ---- CATEGORY PAGE ---- */
.category-page-header {
  background: var(--color-secondary);
  padding: 30px 0;
  margin-bottom: 30px;
}

.category-page-header h1 {
  color: var(--color-white);
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}

.category-page-header p {
  color: #aaa;
  font-size: 13px;
  margin: 0;
}

/* ---- SINGLE POST ---- */
.single-post-header {
  padding: 40px 0 30px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 30px;
}

.post-category-label {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.single-post-title {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.post-featured-image {
  margin: 0 0 30px;
  position: relative;
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

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

.post-content p {
  margin: 0 0 20px;
}

.post-content h2, .post-content h3, .post-content h4 {
  margin: 30px 0 14px;
}

.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 18px; }

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

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 24px 0;
  padding: 16px 24px;
  background: #f9f9f9;
  font-style: italic;
  font-size: 18px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* Social share */
.social-share {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #1da1f2; }
.share-btn.pi { background: #bd081c; }

/* Author box */
.author-box {
  background: #f9f9f9;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 24px;
  display: flex;
  gap: 20px;
  margin: 30px 0;
  align-items: flex-start;
}

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

.author-info .author-name {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.author-info .author-label {
  font-size: 10px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.author-info .author-bio {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Related posts */
.related-posts {
  margin: 40px 0;
}

/* ---- COMMENTS ---- */
.comments-section {
  margin-top: 40px;
}

.comments-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  font-family: var(--font-main);
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 13px 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

/* ---- FOOTER ---- */
.site-footer {
  background: #111;
  color: #aaa;
  margin-top: 40px;
}

.footer-top {
  padding: 50px 0 30px;
  border-bottom: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col .footer-logo {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-col .footer-logo span {
  color: var(--color-primary);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

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

.footer-menu li {
  padding: 5px 0;
  border-bottom: 1px solid #1a1a1a;
}

.footer-menu a {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-bottom {
  padding: 18px 0;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: #555;
}

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

/* ---- BREADCRUMBS ---- */
.breadcrumbs {
  background: #f0f0f0;
  padding: 10px 0;
  font-size: 11px;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: #888;
}

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

.breadcrumbs span {
  margin: 0 6px;
  color: #ccc;
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--color-border);
  color: #666;
  text-transform: uppercase;
  transition: all 0.2s;
}

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

/* ---- SEARCH RESULTS ---- */
.search-header {
  background: var(--color-accent);
  padding: 24px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.search-header h1 {
  font-size: 22px;
  margin: 0 0 12px;
}

.search-form {
  display: flex;
  max-width: 500px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-right: none;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
}

.search-form input:focus {
  border-color: var(--color-primary);
}

.search-form button {
  padding: 12px 20px;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-form button:hover {
  background: var(--color-primary-dark);
}

/* ---- 404 PAGE ---- */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page .error-number {
  font-size: 120px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0;
}

.error-page h2 {
  font-size: 28px;
  margin: 0 0 16px;
}

.error-page p {
  color: #666;
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 24px;
}

/* ---- ABOUT PAGE ---- */
.about-hero {
  background: var(--color-secondary);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
}

.about-hero h1 {
  color: white;
  font-size: 36px;
  margin: 0 0 12px;
}

.about-hero p {
  color: #bbb;
  font-size: 16px;
  max-width: 600px;
}

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* ---- UTILITY CLASSES ---- */
.text-red { color: var(--color-primary); }
.bg-dark { background: var(--color-secondary); }
.uppercase { text-transform: uppercase; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.section-pad { padding: 30px 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr 260px;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-grid-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .posts-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .header-ad { display: none; }

  .menu-toggle { display: block; }

  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 2px solid var(--color-primary);
    z-index: 200;
  }
  .main-menu.open {
    display: flex;
  }
  .main-menu > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    border-bottom-width: 1px;
    margin: 0;
  }
  .main-menu .sub-menu {
    position: static;
    display: none;
    background: #111;
    border-top: none;
  }
  .main-menu li.open .sub-menu {
    display: block;
  }

  .slider-container {
    height: 320px;
  }

  .slide-content {
    padding: 20px;
  }

  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-grid-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .featured-grid-item:nth-child(n+4) {
    display: none;
  }

  .posts-grid-4,
  .posts-grid-3,
  .posts-main-side {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .comment-form .form-grid {
    grid-template-columns: 1fr;
  }

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

  .ad-banner-320 { display: flex; }
  .ad-banner-728 { display: none; }

  .single-post-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .site-wrapper {
    padding: 0 12px;
  }

  .slider-container {
    height: 260px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-grid-item:first-child {
    grid-column: span 1;
  }

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

/* ---- PRINT STYLES ---- */
@media print {
  .main-nav, .sidebar, .newsletter-section, .site-footer, .social-share {
    display: none;
  }
}
