/*
Theme Name: Medal and More
Theme URI: https://medalandmore.com
Author: Medal and More
Author URI: https://medalandmore.com
Description: A sports news and updates WordPress theme with blog as primary focus. Features a clean, modern layout for sports coverage, match updates, and athlete stories.
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: medalandmore
Tags: blog, news, sports, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, post-formats, threaded-comments, translation-ready
*/

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

:root {
    --color-primary:    #1a1a2e;
    --color-accent:     #e63946;
    --color-gold:       #c9a227;
    --color-grey:       #969696;
    --color-light-grey: #f4f4f4;
    --color-white:      #ffffff;
    --color-dark:       #111111;
    --color-text:       #333333;
    --color-border:     #e0e0e0;
    --font-heading:     'Georgia', 'Times New Roman', serif;
    --font-body:        'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --max-width:        1200px;
    --sidebar-width:    300px;
    --radius:           4px;
    --shadow:           0 2px 8px rgba(0,0,0,0.10);
    --shadow-hover:     0 6px 20px rgba(0,0,0,0.16);
    --transition:       0.25s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-light-grey);
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-primary); }

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

ul { list-style: none; }

/* =============================================
   2. TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2rem; }

blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: #fff8f8;
    font-style: italic;
    color: #555;
}

/* =============================================
   3. UTILITY
   ============================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: #c62636;
    border-color: #c62636;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0,0,0,0);
    overflow: hidden;
}

/* =============================================
   4. HEADER & NAVIGATION
   ============================================= */
#masthead {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}

/* Logo / Site Title */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-branding .custom-logo {
    height: 44px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.site-title a {
    color: var(--color-white);
    text-decoration: none;
}
.site-title a:hover { color: var(--color-gold); }

.site-description {
    font-size: 0.75rem;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1px;
}

/* Primary Navigation */
#site-navigation { flex: 1; }

.main-navigation ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.main-navigation ul li { position: relative; }

.main-navigation ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--transition), background var(--transition);
    border-radius: var(--radius);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}
.main-navigation ul li.current-menu-item > a {
    border-bottom: 2px solid var(--color-accent);
}

/* FIFA 2026 menu item — highlighted in gold */
.main-navigation ul li.menu-fifa > a {
    color: #f5c518;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
    border-radius: var(--radius);
    padding: 0.35rem 0.85rem;
}
.main-navigation ul li.menu-fifa > a:hover {
    background: #f5c518;
    color: #111 !important;
    border-color: #f5c518;
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-primary);
    min-width: 200px;
    border-top: 2px solid var(--color-accent);
    box-shadow: var(--shadow);
    flex-direction: column;
    z-index: 999;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul ul li a {
    padding: 0.6rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
}

/* Breaking news ticker */
.breaking-bar {
    background: var(--color-accent);
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}
.breaking-label {
    background: #a0001a;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-ticker-wrap {
    overflow: hidden;
    flex: 1;
    padding: 0 1rem;
}
.breaking-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}
.breaking-ticker span { margin-right: 4rem; }
@keyframes ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   5. HERO / FEATURED BANNER
   ============================================= */
.hero-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 60%, #0f3460 100%);
    color: white;
    padding: 60px 0 50px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content h1 { color: white; font-size: 2.8rem; margin-bottom: 0.5rem; }
.hero-content p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* =============================================
   6. CATEGORY NAV BAR
   ============================================= */
.category-nav {
    background: var(--color-white);
    border-bottom: 3px solid var(--color-accent);
    overflow: hidden;
}
.category-nav .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-nav .container::-webkit-scrollbar { display: none; }
.category-nav a {
    display: block;
    padding: 0.7rem 1.25rem;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all var(--transition);
}
.category-nav a:hover,
.category-nav a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* =============================================
   7. MAIN LAYOUT
   ============================================= */
#primary-content {
    padding: 2rem 0 3rem;
}

.content-area-wrap {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2rem;
    align-items: start;
}

/* No sidebar */
.full-width .content-area-wrap {
    grid-template-columns: 1fr;
}

/* =============================================
   8. POSTS LIST / BLOG HOME
   ============================================= */

/* Section headings */
.section-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}
.section-heading span {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: -2px;
    display: inline-block;
}

/* Featured post (large) */
.featured-post {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    background: var(--color-primary);
}
.featured-post .post-thumb {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.75;
}
.featured-post .post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.75rem 1.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.featured-post .post-category {
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 0.6rem;
}
.featured-post h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.featured-post h2 a { color: white; }
.featured-post h2 a:hover { color: var(--color-gold); }
.featured-post .post-meta { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* Post card grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.post-card .card-thumb-wrap {
    overflow: hidden;
    height: 200px;
    background: var(--color-light-grey);
    position: relative;
}
.post-card .card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .card-thumb { transform: scale(1.05); }
.post-card .card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}
.post-card .card-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.post-card h3 a { color: var(--color-primary); }
.post-card h3 a:hover { color: var(--color-accent); }
.post-card .card-excerpt {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--color-grey);
    border-top: 1px solid var(--color-border);
    padding-top: 0.6rem;
    margin-top: auto;
}

/* List-style posts */
.posts-list .post-card {
    flex-direction: row;
    height: 130px;
}
.posts-list .card-thumb-wrap {
    width: 180px;
    min-width: 180px;
    height: 100%;
}
.posts-list .card-body { padding: 0.8rem 1rem; }
.posts-list .card-category { position: static; display: inline-block; margin-bottom: 0.4rem; }
.posts-list h3 { font-size: 0.92rem; }

/* No thumbnail placeholder */
.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 3rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid var(--color-border);
    color: var(--color-text);
    transition: all var(--transition);
    padding: 0 0.5rem;
}
.pagination .page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination .page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* =============================================
   9. SINGLE POST
   ============================================= */
.single-post-header {
    background: var(--color-primary);
    color: white;
    padding: 2.5rem 0 2rem;
}
.single-post-header .post-category a {
    background: var(--color-accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.7rem;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 1rem;
}
.single-post-header h1 { color: white; font-size: 2.2rem; max-width: 750px; }
.single-post-meta {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}
.single-post-meta span { margin-right: 1rem; }
.single-post-meta a { color: rgba(255,255,255,0.8); }

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #222;
}
.entry-content h2, .entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content ul, .entry-content ol {
    margin: 0 0 1.4rem 1.5rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* Tags */
.post-tags { margin: 1.5rem 0; }
.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: var(--color-light-grey);
    color: var(--color-text);
    font-size: 0.78rem;
    border-radius: 20px;
    margin: 0.2rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.post-tags a:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); }

/* Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.post-share span { font-size: 0.82rem; font-weight: 700; color: var(--color-grey); text-transform: uppercase; letter-spacing: 0.06em; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; color: white; }
.share-twitter  { background: #1da1f2; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }

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

/* Comments */
#comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}
#comments h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment-body {
    padding: 1rem;
    background: var(--color-white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.comment-author img { border-radius: 50%; width: 44px; height: 44px; }
.comment-meta { font-size: 0.8rem; color: var(--color-grey); }

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}
.comment-form .submit:hover { background: #c62636; }

/* =============================================
   10. SIDEBAR
   ============================================= */
#secondary {
    position: sticky;
    top: 80px;
}

.widget {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

/* Search widget */
.widget-search form { display: flex; gap: 0.4rem; }
.widget-search input[type="search"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.88rem;
}
.widget-search button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Recent posts widget */
.widget-recent-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.widget-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.widget-recent-post img {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.widget-recent-post .rp-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.widget-recent-post .rp-title a { color: inherit; }
.widget-recent-post .rp-title a:hover { color: var(--color-accent); }
.widget-recent-post .rp-date { font-size: 0.74rem; color: var(--color-grey); }

/* Categories widget */
.widget ul.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}
.widget ul.cat-list li:last-child { border-bottom: none; }
.widget ul.cat-list li a { color: var(--color-text); font-weight: 500; }
.widget ul.cat-list li a:hover { color: var(--color-accent); }
.widget ul.cat-list li .count {
    background: var(--color-light-grey);
    color: var(--color-grey);
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
}

/* Tags widget */
.widget .tagcloud a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--color-light-grey);
    color: var(--color-text);
    font-size: 0.78rem;
    border-radius: 20px;
    margin: 0.2rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.widget .tagcloud a:hover { background: var(--color-accent); color: white; border-color: var(--color-accent); }

/* Ad / promo widget */
.widget-promo {
    background: linear-gradient(135deg, var(--color-primary), #0f3460);
    color: white;
    text-align: center;
    padding: 2rem 1.25rem;
}
.widget-promo h3 { color: white; margin-bottom: 0.5rem; }
.widget-promo p { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }

/* =============================================
   11. STATIC PAGE
   ============================================= */
.page-header-banner {
    background: var(--color-primary);
    color: white;
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
}
.page-header-banner h1 { color: white; }
.page-content {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow);
}

/* =============================================
   12. ARCHIVE / CATEGORY PAGE
   ============================================= */
.archive-header {
    background: var(--color-primary);
    color: white;
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}
.archive-header .archive-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin-bottom: 0.3rem;
}
.archive-header h1 { color: white; font-size: 1.8rem; }
.archive-header p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 0.3rem; }

/* =============================================
   13. 404 PAGE
   ============================================= */
.error-404 { text-align: center; padding: 5rem 1rem; }
.error-404 .error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.15;
}
.error-404 h1 { font-size: 1.8rem; margin-top: -2rem; margin-bottom: 1rem; }
.error-404 p { color: var(--color-grey); margin-bottom: 1.5rem; }

/* =============================================
   14. FOOTER
   ============================================= */
#colophon {
    background: var(--color-primary);
    color: rgba(255,255,255,0.75);
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h4 {
    color: var(--color-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.footer-widget p { font-size: 0.85rem; line-height: 1.7; }

.footer-widget ul li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-widget ul li:last-child { border-bottom: none; }
.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-widget ul li a:hover { color: var(--color-gold); }

.footer-bottom {
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background var(--transition);
}
.footer-social a:hover { background: var(--color-accent); color: white; }

/* =============================================
   15. BACK TO TOP
   ============================================= */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-accent);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(230,57,70,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    border: none;
    z-index: 999;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: #c62636; }

/* =============================================
   16. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .content-area-wrap { grid-template-columns: 1fr 260px; }
}

@media (max-width: 768px) {
    :root { --sidebar-width: 100%; }

    .content-area-wrap {
        grid-template-columns: 1fr;
    }

    #secondary { position: static; }

    .main-navigation { display: none; }
    .main-navigation.toggled { display: block; }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 0;
    }
    .main-navigation ul li { width: 100%; }
    .main-navigation ul li a { border-radius: 0; }
    .main-navigation ul ul {
        position: static;
        border-top: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .menu-toggle { display: block; }

    .site-header-inner { flex-wrap: wrap; padding: 0.5rem 0; }

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

    .featured-post .post-thumb { height: 260px; }
    .featured-post h2 { font-size: 1.35rem; }

    .posts-list .post-card { height: auto; flex-direction: column; }
    .posts-list .card-thumb-wrap { width: 