/*
Theme Name: Teretana.ba
Theme URI: https://teretana.ba
Author: Teretana.ba Tim
Author URI: https://teretana.ba
Description: Profesionalna WordPress tema za teretana.ba - bosanskohercegovački portal za fitnes, snagu i zdravlje.
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: teretana-ba
Tags: blog, fitness, dark, responsive
*/

/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --accent-red: #e63329;
    --accent-red-dark: #c0271e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #222222;
    --border-hover: #333333;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 70px;
    --max-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-main);
}

input, textarea, select {
    font-family: var(--font-main);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

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

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

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

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

/* Logo */
.site-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    color: var(--text-primary);
}

.site-logo span {
    color: var(--accent-red);
}

/* Navigation */
#primary-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

#primary-nav ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.06);
}

/* Dropdown */
#primary-nav ul li.menu-item-has-children {
    position: relative;
}

#primary-nav ul li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 10px;
}

#primary-nav ul li.menu-item-has-children .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: var(--transition);
    flex-direction: column;
    gap: 2px;
    display: flex;
}

#primary-nav ul li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#primary-nav ul li.menu-item-has-children .sub-menu li a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

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

.search-toggle svg {
    width: 18px;
    height: 18px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Search bar */
.search-bar {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
}

.search-bar.active {
    display: block;
}

.search-bar form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--accent-red);
}

.search-bar button {
    background-color: var(--accent-red);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =============================================
   PAGE OFFSET (for fixed header)
   ============================================= */
.page-content-wrap {
    padding-top: var(--nav-height);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    background-color: var(--accent-red-dark);
    border-color: var(--accent-red-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* =============================================
   BADGES / CATEGORY LABELS
   ============================================= */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
}

.category-badge.trening { background-color: #e63329; }
.category-badge.ishrana { background-color: #22863a; }
.category-badge.zdravlje { background-color: #1a6fad; }
.category-badge.motivacija { background-color: #9b59b6; }

/* =============================================
   ARTICLE META
   ============================================= */
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =============================================
   FRONT PAGE / HERO
   ============================================= */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,10,1) 40%, rgba(10,10,10,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-label::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

.hero-label span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red);
}

.hero-title {
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.25);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-label::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
}

.section-label span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.section-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.section-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* =============================================
   ARTICLE CARDS
   ============================================= */
.article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.article-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.article-card-image .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    transition: var(--transition);
}

.article-card:hover .article-card-title {
    color: var(--accent-red);
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Featured / large card */
.article-card-featured {
    grid-column: span 2;
    flex-direction: row;
}

.article-card-featured .article-card-image {
    flex: 0 0 55%;
    aspect-ratio: unset;
    min-height: 320px;
}

.article-card-featured .article-card-body {
    padding: 40px;
    justify-content: center;
}

.article-card-featured .article-card-title {
    font-size: 26px;
}

/* =============================================
   FEATURED ARTICLES GRID (Homepage)
   ============================================= */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* =============================================
   CATEGORIES SECTION (Homepage)
   ============================================= */
.categories-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.category-card {
    position: relative;
    padding: 40px 32px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.category-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.category-card-name {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.category-card-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 50%, #000d1a 100%);
    border-top: 1px solid rgba(230, 51, 41, 0.2);
    border-bottom: 1px solid rgba(230, 51, 41, 0.2);
    text-align: center;
}

.newsletter-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.newsletter-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

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

.newsletter-form input {
    flex: 1;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    border-color: var(--accent-red);
    background-color: rgba(255,255,255,0.08);
}

.newsletter-form button {
    background-color: var(--accent-red);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

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

/* =============================================
   BLOG ARCHIVE PAGE
   ============================================= */
.archive-header {
    text-align: center;
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 64px;
}

.archive-header-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.archive-header h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.archive-header .underline-accent {
    display: inline-block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 2px;
    margin-bottom: 20px;
}

.archive-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Blog layout with sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

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

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-widget-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--accent-red);
}

/* Search widget */
.search-widget-form {
    display: flex;
    gap: 8px;
}

.search-widget-form input {
    flex: 1;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-widget-form input:focus {
    border-color: var(--accent-red);
}

.search-widget-form button {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.search-widget-form button:hover {
    background-color: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* Categories list in sidebar */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cat-list li a:hover,
.cat-list li.current-cat a {
    background-color: rgba(230, 51, 41, 0.1);
    color: var(--accent-red);
}

.cat-list li a .cat-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background-color: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 20px;
}

/* Recent posts widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.recent-post-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-secondary);
}

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

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: var(--transition);
}

.recent-post-title:hover {
    color: var(--accent-red);
}

.recent-post-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* =============================================
   SINGLE POST PAGE
   ============================================= */
.post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
}

.post-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 0;
}

.post-hero-content .container {
    max-width: 860px;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.post-hero-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

.post-hero-excerpt {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    line-height: 1.6;
}

/* Post content */
.post-content-wrap {
    padding: 64px 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.post-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 40px 0 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 24px;
}

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

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

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

.post-content blockquote {
    border-left: 4px solid var(--accent-red);
    padding: 20px 24px;
    background-color: var(--bg-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 32px 0;
    font-size: 18px;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 32px 0;
    width: 100%;
}

.post-content a {
    color: var(--accent-red);
    text-decoration: underline;
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Author box */
.author-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 48px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-box-avatar {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 6px;
}

.author-box-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-box-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Share buttons */
.share-section {
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.share-btn-facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn-twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Related posts */
.related-posts-section {
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

/* =============================================
   PAGE TEMPLATES
   ============================================= */
.page-header {
    text-align: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* About page */
.about-hero {
    padding: 100px 0 64px;
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--border-color);
}

.about-hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.about-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    max-width: 700px;
}

.about-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
}

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

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    padding-bottom: 32px;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.team-card-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 24px;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.team-card-role {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 12px;
}

.team-card-bio {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0 24px;
    line-height: 1.6;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--accent-red);
}

.value-number {
    font-size: 48px;
    font-weight: 900;
    color: rgba(230, 51, 41, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.value-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.value-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   SEARCH RESULTS
   ============================================= */
.search-results-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
}

.search-results-header h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
}

.search-results-count {
    color: var(--text-secondary);
    font-size: 15px;
}

.search-results-count span {
    color: var(--accent-red);
    font-weight: 700;
}

/* =============================================
   404 PAGE
   ============================================= */
.not-found-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.not-found-number {
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-red);
    opacity: 0.15;
    display: block;
    margin-bottom: -40px;
}

.not-found-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.not-found-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 0;
}

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

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    margin-bottom: 16px;
    display: block;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 15px;
}

.social-link:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* =============================================
   LOADING / NO POSTS
   ============================================= */
.no-posts {
    text-align: center;
    padding: 80px 0;
    color: var(--text-secondary);
}

.no-posts h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 2px;
    margin: 0 auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-card-featured {
        grid-column: span 2;
    }

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

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

    .sidebar {
        position: static;
    }

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

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

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

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

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

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .section-padding {
        padding: 56px 0;
    }

    #primary-nav {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-primary);
        padding: 24px;
        overflow-y: auto;
    }

    #primary-nav.open {
        display: block;
    }

    #primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #primary-nav ul li a {
        font-size: 18px;
        padding: 12px 0;
    }

    #primary-nav ul li.menu-item-has-children .sub-menu {
        position: static;
        opacity: 1;
        pointer-events: all;
        transform: none;
        border: none;
        background: transparent;
        padding: 0 0 0 20px;
        display: none;
    }

    #primary-nav ul li.menu-item-has-children.open .sub-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .article-card-featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .article-card-featured .article-card-image {
        flex: unset;
        min-height: unset;
        aspect-ratio: 16/10;
    }

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

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

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

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

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

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

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .author-box {
        flex-direction: column;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}
