/*
Theme Name: FlesherNET
Theme URI: https://fleshernet.net
Author: Eric Flesher
Author URI: https://fleshernet.net
Description: Built exclusively for FlesherNET. Deep charcoal tones, sharp red accents, magazine layout.
Version: 1.3 (Gold Master)
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
Text Domain: fleshernet
*/

:root {
    /* The Default FlesherNET Red */
    --main-accent: #8d0000;
    
    /* The Default Dark Background (Top Bar & Footer) */
    --dark-bg: #2b2a2a;
}

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */

body {
    /* --- FONTS & COLORS --- */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2b2a2a;
    line-height: 1.6;
    margin: 0;
    padding: 0;

    /* --- THE WALLPAPER ENGINE (Ultra-Wide Static) --- */
    
    /* 1. The Default Image */
    background-image: url('images/wallpaper-default.jpg'); 

    /* 2. Center it horizontally. 
       This is crucial: it ensures your 5120px image stays centered. 
       Users on smaller screens will just see the middle section. */
    background-position: top center;

    /* 3. LOCK IT. 
       The background stays fixed to the viewport. 
       The content scrolls over it. No seams, no breaks. */
    background-attachment: fixed;

    /* 4. Do NOT Repeat. 
       Since it's fixed and massive, we don't need it to tile. */
    background-repeat: no-repeat;

    /* 5. Native Size. 
       'auto' tells browsers: "Don't stretch or shrink this."
       It will display at exactly the pixel dimensions of the file you upload. */
    background-size: auto; 
    
    /* 6. Fallback color (Dark gray just in case) */
    background-color: #1a1a1a;
}

/* The Boxed Wrapper */
.boxed-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

/* Container inside the box */
.container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #2b2a2a;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--main-accent); /* FlesherNET Red */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    margin: 0 0 15px;
    font-weight: 700;
}

/* --- GLOBAL BUTTON STYLES (The "Red Button" Rule) --- */
/* Forces all major submit buttons to match the theme */
input#submit, 
input[type="submit"], 
.submit,
button[type="submit"] {
    background-color: var(--main-accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.3s ease;
}

input#submit:hover, 
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #2b2a2a !important;
}


/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */

header {
    background-color: #fff !important;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #e5e5e5; 
    position: sticky;
    top: 0;
    z-index: 999999 !important; 
}

/* Fix for Admin Bar overlaying Sticky Header */
body.admin-bar header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar header { top: 46px; } }

/* Top Utility Bar */
.top-bar {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    margin-bottom: 20px; 
    border-bottom: 5px solid var(--main-accent);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-social { display: flex; gap: 15px; }
.top-social a { color: #ccc; font-size: 1rem; transition: color 0.3s ease; }
.top-social a:hover { color: #fff; }

/* Top Search Bar */
.top-search form { display: flex; align-items: center; }

.top-search input {
    background: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 0.85rem;
    width: 200px;
    border-radius: 2px 0 0 2px;
}

/* Compact Search Button (Overrides Global Button Styles) */
.top-search button {
    background: var(--main-accent);
    color: #fff;
    border: none;
    padding: 6px 10px !important;
    cursor: pointer;
    border-radius: 0 2px 2px 0 !important;
    font-size: 0.85rem !important;
    width: auto !important;
}

.top-search button:hover { background: #660000; }

/* Main Header Content */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #2b2a2a;
    cursor: pointer;
}

/* --- NAVIGATION MENUS --- */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li { margin-left: 20px; position: relative; }

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 10px 0; 
}

nav ul li a i { margin-right: 8px; color: var(--main-accent); }

/* Dropdown Arrows */
nav ul li.menu-item-has-children > a::after {
    content: '\f078'; /* FA Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    margin-left: 8px;
    color: #999;
}

nav ul .sub-menu li.menu-item-has-children > a::after { content: '\f054'; } /* Chevron Right */

/* Sub-Menu Styling */
nav ul .sub-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--main-accent);
    flex-direction: column;
    min-width: 220px;
    z-index: 1000;
    padding: 10px 0;
}

nav ul li:hover > .sub-menu,
nav ul li.menu-item-has-children:hover > .sub-menu { display: flex; }

nav ul .sub-menu li { margin: 0; width: 100%; }

nav ul .sub-menu li a {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f5f5;
    text-transform: none; 
    justify-content: space-between; 
}

nav ul .sub-menu li:last-child a { border-bottom: none; }
nav ul .sub-menu li a:hover { background-color: #f9f9f9; color: var(--main-accent); }
nav ul .sub-menu .sub-menu { top: 0; left: 100%; margin-top: -3px; }


/* =========================================
   3. HERO GRID (Magazine Layout)
   ========================================= */

.hero-section { margin-bottom: 40px; margin-top: 30px; }

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    height: 520px;
}

/* Grid Positioning */
.hero-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.hero-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.hero-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }

/* Card Styling */
.hero-item {
    position: relative;
    border-radius: 0; 
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; 
}

.hero-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    transition: background 0.3s ease;
}

.hero-item:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.hero-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5;
}

/* Hero Content & Badge Positioning (The "Jailbreak" Fix) */
.hero-content {
    position: static !important; /* Allow badge to escape relative container */
    z-index: 2;
    padding: 25px;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h2,
.hero-content .meta {
    position: relative;
    z-index: 5;
}

.hero-content h2 {
    margin: 10px 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: 1.2rem;
}

.hero-content h2 a { color: #fff; text-decoration: none; }
.hero-item:nth-child(1) h2 { font-size: 2rem; }

.hero-content .meta { font-size: 0.85rem; color: #ccc; margin-top: 5px; }

/* The Hero Badge (Top Right Corner) */
.hero-content .category-badge {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 10 !important;
    background: var(--main-accent);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================
   4. MAIN LAYOUT & WIDGETS
   ========================================= */

.main-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
    position: relative;
    z-index: 1; 
}

.sidebar { flex: 0 0 300px; max-width: 300px; }
.content-area { flex: 1; position: relative; z-index: 1; }

/* General Widget Styling */
.widget {
    background-color: transparent; 
    border: none;
    box-shadow: none;
    padding: 0; 
    margin-bottom: 40px;
}

/* Widget Headers with Line */
.widget h3, 
.section-title, 
.latest-posts h3 {
    font-size: 1.0rem; 
    text-transform: uppercase; 
    line-height: 1;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.widget h3::after, 
.section-title::after, 
.latest-posts h3::after {
    content: '';
    display: block;
    flex-grow: 1;
    height: 1em;
    background-color: #e5e5e5;
    margin-left: 15px;
    margin-top: 2px;
}

.widget h3 i, .section-title i { margin-right: 10px; color: var(--main-accent); font-size: 1.1em; }

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 12px; border-bottom: 1px solid #f0f0f0; padding-bottom: 12px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-weight: 500; font-size: 0.95rem; }

/* Login & Newsletter Forms */
.newsletter-widget input[type="email"],
.login-widget input[type="text"],
.login-widget input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    background: #f9f9f9;
}

.newsletter-widget button,
.login-widget button {
    width: 100%;
    padding: 10px;
    background-color: var(--main-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.newsletter-widget button:hover,
.login-widget button:hover { background-color: #2b2a2a; }

.login-actions { display: flex; flex-direction: column; gap: 10px; }
.lost-password { font-size: 0.8rem; color: #777; text-align: center; }


/* =========================================
   5. POST CARDS & ARCHIVE PAGES
   ========================================= */

/* Archive Header (Centered, Black, Underlined) */
.archive-header, 
.article-header {
    text-align: center !important;
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #fff;
}

.archive-header h1,
.article-header h1 {
    color: #000 !important;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-header h1 i {
    color: var(--main-accent);
    margin-right: 15px;
    font-size: 0.8em;
}

.archive-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px;
}

.post-card {
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.post-image-wrap { position: relative; height: 180px; overflow: visible; }
.featured-image { width: 100%; height: 100%; object-fit: cover; }

/* Standard Card Badges */
.category-badge {
    position: absolute;
    top: 15px; right: 15px;
    background-color: var(--main-accent);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}
.category-badge a { color: #fff !important; text-decoration: none; }

/* Author Avatar on Post Cards */
.author-photo {
    position: absolute;
    bottom: -25px;
    left: 20px;
    width: 60px;
    height: 60px;
    
    /* FORCE CIRCLE SHAPE */
    border-radius: 50%;
    
    /* THE COOKIE CUTTER: Chops off the square corners */
    overflow: hidden; 
    
    /* Border & Shadow */
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
    background-color: #fff; /* Prevents see-through if image loads slow */
}

/* Ensure the image INSIDE the circle also behaves */
.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.post-card-content { padding: 20px 20px 20px 20px; flex-grow: 1; }
.post-card-content h4 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; color: #2b2a2a; }
.post-card-content p { color: #666; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.5; }
.read-more { color: var(--main-accent); font-weight: bold; font-size: 0.85rem; text-transform: uppercase; }

.post-card-footer {
    background-color: #f9f9f9;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
}

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; margin-top: 50px; gap: 10px; }
.page-number {
    display: inline-block;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #2b2a2a;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.page-number:hover, .page-number.active { background-color: var(--main-accent); color: #fff; border-color: var(--main-accent); }
.page-dots { color: #999; font-size: 1.2rem; padding: 0 5px; }

/* Ensure the parent container allows the avatar to overlap */
.post-image-wrap {
    overflow: visible !important;
}

/* =========================================
   6. SINGLE POST & COMMENTS
   ========================================= */

.single-post-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.single-post-header .category-badge { display: inline-block; margin-bottom: 15px; position: relative; top: auto; right: auto; left: auto; }

.article-header .article-meta span {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid #ddd;
    display: inline-block;
    line-height: 1;
}
.article-header .article-meta span:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.article-meta i { color: var(--main-accent); margin-right: 5px; }

.article-image {
    width: 100%; height: auto; max-height: 500px;
    object-fit: cover; margin-bottom: 30px; border-radius: 4px;
}

/* Author Box */
.author-box {
    background: #f9f9f9;
    padding: 30px; margin-top: 50px;
    border-left: 5px solid var(--main-accent);
    display: flex; align-items: center; gap: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Look for this in Section 6 and replace it */
.author-box-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    /* FIX: Ensure it stays a perfect circle even if squeezed */
    object-fit: cover; 
    flex-shrink: 0; /* Prevents flexbox from squishing it */
    
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.author-box-content h4 { margin: 0 0 5px 0; font-size: 1.2rem; text-transform: uppercase; color: #2b2a2a; }
.author-box-content p { margin: 0; color: #666; font-size: 0.95rem; }

/* Comments */
.comments-area { margin-top: 60px; padding-top: 40px; border-top: 1px solid #e5e5e5; }
.comments-title { font-size: 1.5rem; margin-bottom: 30px; border-left: 5px solid #2b2a2a; padding-left: 15px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { background: #fff; padding: 20px; border: 1px solid #eee; margin-bottom: 20px; border-radius: 4px; position: relative; }
.comment-meta { display: flex; align-items: center; margin-bottom: 15px; font-size: 0.85rem; }
.comment-author img { border-radius: 50%; margin-right: 15px; width: 50px; height: 50px; }
.fn { font-weight: bold; font-style: normal; font-size: 1.1rem; margin-right: 10px; }
.reply { text-align: right; margin-top: 10px; }

.comment-reply-link {
    background: #eee; color: #333; padding: 5px 15px;
    font-size: 0.8rem; border-radius: 3px; font-weight: bold; text-transform: uppercase;
}
.comment-reply-link:hover { background: var(--main-accent); color: #fff; }

.comment-respond { background: #f9f9f9; padding: 30px; margin-top: 40px; border-radius: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 3px; background: #fff; box-sizing: border-box;
}


/* =========================================
   7. PROJECT PAGE STYLES
   ========================================= */

.project-hero {
    position: relative; height: 400px; margin-bottom: 40px; background-color: #000;
}
.project-hero-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

.project-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    color: #fff; z-index: 2;
}

/* Project Status Badge (The Red Label) */
.project-subtitle {
    align-self: flex-start; /* Stops stretching */
    background-color: var(--main-accent);
    color: #fff !important;
    padding: 6px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    line-height: 1;
    border-radius: 0;
}

/* Project Description Text */
.project-excerpt {
    font-size: 1.2rem; color: #ddd; margin-bottom: 30px; max-width: 600px;
}

/* Completion Bar */
.project-progress-wrap {
    max-width: 600px; background: rgba(0,0,0,0.5);
    padding: 15px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.2);
}
.progress-label {
    display: flex; justify-content: space-between; margin-bottom: 5px;
    font-weight: bold; font-size: 0.9rem; text-transform: uppercase;
}
.progress-bar-bg { background-color: #444; height: 10px; border-radius: 5px; overflow: hidden; }
.progress-bar-fill { background-color: var(--main-accent); height: 100%; border-radius: 5px; }

/* Build Log Items */
.build-log-item {
    display: flex; background: #fff; border: 1px solid #e5e5e5;
    margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.build-log-item:hover { transform: translateX(5px); border-left: 3px solid var(--main-accent); }
.log-date {
    background-color: #f4f4f4; padding: 20px; text-align: center;
    min-width: 80px; display: flex; flex-direction: column; justify-content: center;
    border-right: 1px solid #eee;
}
.log-date .day { font-size: 1.8rem; font-weight: bold; color: #2b2a2a; line-height: 1; }
.log-date .month { font-size: 0.8rem; text-transform: uppercase; color: var(--main-accent); font-weight: bold; }
.log-content { padding: 20px; flex-grow: 1; }
.log-image { width: 150px; display: none; }
@media (min-width: 768px) { .log-image { display: block; } .log-image img { width: 100%; height: 100%; object-fit: cover; } }


/* =========================================
   8. COMMUNITY (BuddyPress & bbPress)
   ========================================= */

/* 1. Force Buttons to match Theme Red */
#buddypress .comment-reply-link,
#buddypress a.button,
#buddypress button,
#buddypress input[type="submit"],
#buddypress input[type="button"],
#buddypress input[type="reset"],
#buddypress ul.button-nav li a,
#buddypress div.generic-button a,
#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-form button,
input.bbp-submit-wrapper {
    background-color: var(--main-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background 0.3s ease;
}

#buddypress a.button:hover,
#buddypress input[type="submit"]:hover,
#bbpress-forums .bbp-submit-wrapper button:hover {
    background-color: #2b2a2a !important;
}

/* 2. Fix Form Inputs */
#buddypress input[type="text"],
#buddypress input[type="email"],
#buddypress input[type="password"],
#buddypress textarea,
#bbpress-forums input[type="text"],
#bbpress-forums textarea {
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    width: 100%;
    border-radius: 3px;
    box-sizing: border-box;
}

/* 3. Navigation Tabs */
#buddypress div.item-list-tabs ul li a {
    text-decoration: none; font-weight: bold; color: #555; padding: 10px 15px; display: block;
}
#buddypress div.item-list-tabs ul li.selected a,
#buddypress div.item-list-tabs ul li.current a {
    background-color: var(--main-accent); color: #fff; border-radius: 4px;
}

/* 4. Avatars (Round) */
#buddypress .bp-avatar,
#bbpress-forums .bbp-author-avatar img {
    border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 5. Forum Layout & Text */
#bbpress-forums li.bbp-header { background-color: #2b2a2a; color: #fff; padding: 10px; border-radius: 4px 4px 0 0; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic {
    background-color: #fff; border: 1px solid #eee; padding: 15px; margin-bottom: 5px;
}
a.bbp-forum-title, a.bbp-topic-permalink { font-weight: bold; font-size: 1.1rem; color: #2b2a2a; }
a.bbp-forum-title:hover, a.bbp-topic-permalink:hover { color: var(--main-accent); }
.bbp-forum-content, .bbp-topic-content, .bbp-reply-content { font-size: 1rem; line-height: 1.6; color: #333; }

/* 6. Compact Forum Search Bar */
#bbpress-forums #bbp-search-form {
    display: flex; justify-content: flex-end; align-items: center; margin-bottom: 20px; max-width: 100%;
}
#bbpress-forums #bbp-search-form #bbp_search {
    padding: 6px 10px !important; font-size: 0.9rem !important; height: auto !important;
    width: 250px !important; border: 1px solid #ccc !important; border-right: none !important; border-radius: 3px 0 0 3px !important;
}
#bbpress-forums #bbp-search-form #bbp_search_submit {
    padding: 6px 15px !important; font-size: 0.8rem !important;
    background-color: var(--main-accent) !important; color: #fff !important;
    border: 1px solid var(--main-accent) !important; border-radius: 0 3px 3px 0 !important;
    height: auto !important; line-height: normal !important; width: auto !important;
    margin: 0 !important;
}
#bbpress-forums #bbp-search-form #bbp_search_submit:hover { background-color: #5a0000 !important; }


/* =========================================
   9. FOOTER
   ========================================= */

footer {
    background-color: var(--dark-bg); color: #fff; padding: 60px 0 20px;
    border-top: 5px solid var(--main-accent); margin-top: 50px;
}
.footer-content { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer-column { flex: 1; min-width: 200px; }

.footer-column h4 {
    color: #fff; font-size: 1.0rem; text-transform: uppercase;
    margin-bottom: 20px; display: flex; align-items: center;
    white-space: nowrap; border-bottom: none; letter-spacing: 1px;
}
.footer-column h4::after {
    content: ''; display: block; flex-grow: 1; height: 1em;
    background-color: #e5e5e5; margin-left: 15px; margin-top: 2px;
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: #ccc; }
.footer-column ul li a:hover { color: #fff; text-decoration: underline; }

.social-links a { color: #ccc; margin-right: 15px; font-size: 1.2rem; }
.social-links a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; color: #999; font-size: 0.9rem; }


/* =========================================
   10. RESPONSIVE / MOBILE
   ========================================= */

@media (max-width: 1024px) {
    .container { width: 95%; }
}

@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 10px; }
    .top-search input { width: 100%; }

    /* Mobile Hero Grid - Stacked */
    .hero-grid { display: flex; flex-direction: column; height: auto; }
    .hero-item { height: 300px; width: 100%; }

    .header-content { flex-direction: column; align-items: stretch; }
    .logo-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .menu-toggle { display: block; }

    /* Mobile Menu */
    nav {
        display: none; width: 100%; margin-top: 20px; max-height: 80vh;
        overflow-y: auto; background-color: #fff; padding-bottom: 20px;
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; text-align: left; }
    nav ul li { margin: 0; border-bottom: 1px solid #eee; }
    nav ul li a { padding: 15px 0; }
    
    nav ul .sub-menu {
        position: static; box-shadow: none; border-top: none;
        padding-left: 20px; display: block; 
    }
    nav ul .sub-menu .sub-menu { margin-top: 0; }

    /* Layout Stacking */
    .main-layout { flex-direction: column; }
    .content-area, .sidebar { width: 100%; flex: none; }
    .content-area { order: 1; }
    .sidebar { order: 2; } /* Generic sidebar order */

    .footer-content { flex-direction: column; }
    
    /* Forum Mobile Adjustments */
    .forum-post { flex-direction: column; }
    .post-author {
        width: 100%; border-right: none; border-bottom: 1px solid #eee;
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px; text-align: left;
    }
    .author-avatar { width: 50px; height: 50px; margin: 0 15px 0 0; }
    .author-meta { display: none; }
}

/* =========================================
   11. WOOCOMMERCE / SHOP STYLES (GOLD MASTER)
   ========================================= */

/* --- 1. THE SHOP GRID (The "Bunker Buster") --- */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 30px !important;
    margin: 20px 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important; /* Kill old float hacks */
}

/* Product Card Wrapper */
.woocommerce ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ddd;
}

/* Mobile: Stack them */
@media (max-width: 768px) {
    .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* --- 2. CARD CONTENT STYLING --- */
/* Product Image */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 220px;
    object-fit: contain; 
    background: #f9f9f9;
    margin: 0 auto !important;
    display: block;
    padding: 20px;
    box-sizing: border-box;
}

/* Title */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1rem;
    color: #2b2a2a;
    margin: 15px 0 5px;
    line-height: 1.3;
    padding: 0 15px;
}

/* Price */
.woocommerce ul.products li.product .price {
    color: #2b2a2a;
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--main-accent); }
.woocommerce ul.products li.product .price del { color: #999; opacity: 0.6; }

/* The "Add to Cart" Button */
.woocommerce ul.products li.product .button {
    margin: 0 15px 15px !important;
    background-color: var(--main-accent) !important;
    color: #fff !important;
    border-radius: 3px !important;
    padding: 10px 15px !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
}
.woocommerce ul.products li.product .button:hover { background-color: #2b2a2a !important; }

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 10px; left: 10px; right: auto;
    background: var(--main-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    z-index: 10;
    text-transform: uppercase;
    border-radius: 2px;
    min-height: auto;
    line-height: normal;
    margin: 0;
}


/* --- 3. SINGLE PRODUCT PAGE --- */

/* Title & Price */
.woocommerce div.product .product_title {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
    color: #2b2a2a;
    line-height: 1.2;
}

.woocommerce div.product p.price {
    font-size: 1.5rem !important;
    color: var(--main-accent) !important;
    margin-bottom: 20px !important;
}

/* Variations Table (Size/Color) */
.woocommerce div.product form.cart .variations {
    width: 100%; margin-bottom: 20px; border: none;
}
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    display: block; width: 100%; padding: 0; margin: 0; text-align: left;
}
.woocommerce div.product form.cart .variations label {
    font-weight: bold; margin-bottom: 5px; display: block; color: #2b2a2a;
}
.woocommerce div.product form.cart .variations select {
    width: 100%; padding: 10px; border: 1px solid #ddd; background: #fff; border-radius: 4px; margin-bottom: 10px;
}
.woocommerce div.product .reset_variations {
    display: inline-block; margin-left: 10px; font-size: 0.85rem; color: var(--main-accent);
}

/* Add to Cart Area (Row Layout) */
.woocommerce div.product .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 20px;
    flex-wrap: nowrap;
}

/* Quantity Box */
.woocommerce div.product .quantity { float: none !important; margin: 0 !important; display: inline-block; }
.woocommerce div.product .quantity input.qty {
    width: 60px !important; height: 44px !important; padding: 0 !important;
    text-align: center; border: 1px solid #ddd; font-weight: bold; font-size: 1rem; border-radius: 4px;
}

/* Add to Cart Button */
.woocommerce div.product button.single_add_to_cart_button {
    flex-grow: 1; height: 44px !important; padding: 0 30px !important;
    background-color: var(--main-accent) !important; color: #fff !important;
    font-weight: bold; text-transform: uppercase; border-radius: 4px; border: none; margin: 0 !important;
}
.woocommerce div.product button.single_add_to_cart_button:hover { background-color: #2b2a2a !important; }

/* Product Meta (SKU/Category Lines) */
.woocommerce div.product .product_meta .sku_wrapper,
.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .tagged_as {
    display: block !important; margin-bottom: 8px !important;
    font-size: 0.9rem; color: #666; border-bottom: 1px solid #f9f9f9; padding-bottom: 8px;
}
.woocommerce div.product .product_meta span:last-child { border-bottom: none !important; }
.woocommerce div.product .product_meta span { font-weight: normal; }


/* --- 4. TABS (Squared & Red) --- */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important; margin: 0 0 20px !important; list-style: none !important;
    border-bottom: 3px solid var(--main-accent); display: flex; overflow: visible !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 1px solid #ddd !important; border-bottom: none !important;
    background: #f4f4f4 !important; margin: 0 5px 0 0 !important;
    border-radius: 0 !important; padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 12px 20px !important; font-weight: bold !important; color: #555 !important;
    text-transform: uppercase; font-size: 0.9rem; display: block;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--main-accent) !important; border-color: var(--main-accent) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }


/* --- 5. SHOP PAGE CLEANUP --- */
/* Hide default title */
.woocommerce-products-header__title.page-title, .woocommerce .page-title { display: none !important; }

/* Sorting Dropdown */
.woocommerce .woocommerce-ordering { margin-bottom: 30px !important; float: right !important; }
.woocommerce .woocommerce-ordering select {
    padding: 8px 15px !important; border: 1px solid #ddd !important;
    border-radius: 4px !important; background-color: #f9f9f9 !important; cursor: pointer;
}
.woocommerce-products-header::after { content: ""; display: table; clear: both; }


/* --- 6. SIDEBAR WIDGETS --- */
/* Search Bar */
.woocommerce-product-search { display: flex !important; gap: 0 !important; position: relative; }
.woocommerce-product-search input[type="search"] {
    width: 100% !important; padding: 10px 15px !important; border: 1px solid #ddd !important;
    border-right: none !important; border-radius: 3px 0 0 3px !important; height: 40px !important;
}
.woocommerce-product-search button[type="submit"] {
    width: auto !important; padding: 0 15px !important; background-color: var(--main-accent) !important;
    color: #fff !important; border: 1px solid var(--main-accent) !important; border-radius: 0 3px 3px 0 !important;
    height: 40px !important; font-weight: bold; text-transform: uppercase;
}

/* Categories List */
.widget_product_categories ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.widget_product_categories ul li {
    padding: 10px 0 !important; border-bottom: 1px solid #eee !important;
    display: flex !important; justify-content: space-between !important;
    align-items: center !important; flex-wrap: wrap !important; transition: padding 0.2s ease;
}
.widget_product_categories ul li:hover { padding-left: 5px !important; border-bottom-color: var(--main-accent) !important; }
.widget_product_categories ul li a { color: #555 !important; font-weight: 600; text-decoration: none !important; }
.widget_product_categories ul li .count {
    background: #f0f0f0 !important; color: #888 !important; font-size: 0.75rem !important;
    padding: 2px 8px !important; border-radius: 10px !important; margin-left: auto;
}
/* Sub-Category Indent */
.widget_product_categories ul li ul.children {
    flex-basis: 100% !important; width: 100% !important; margin: 10px 0 0 0 !important;
    padding-left: 15px !important; border-top: 1px solid #f9f9f9;
}


/* --- 7. ALERTS & MESSAGES --- */
.woocommerce-message {
    border-top-color: var(--main-accent) !important; background-color: #fff !important;
    color: #2b2a2a !important; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.woocommerce-message::before { color: var(--main-accent) !important; }
.woocommerce-message .button {
    background-color: var(--main-accent) !important; color: #fff !important; border: none !important;
    padding: 8px 20px !important; font-weight: bold !important; text-transform: uppercase;
    font-size: 0.8rem !important; margin-left: 15px !important;
}
.woocommerce-message .button:hover { background-color: #2b2a2a !important; }
.woocommerce-error { border-top-color: #cc0000 !important; background-color: #fff5f5 !important; color: #b00 !important; }
.woocommerce-error::before { color: #cc0000 !important; }


/* --- 8. MINI-CART WIDGET --- */
/* Buttons */
.widget_shopping_cart .buttons a {
    display: block !important; width: 100% !important; text-align: center !important;
    margin-bottom: 10px !important; padding: 12px 0 !important; border-radius: 4px !important;
    font-weight: bold !important; text-transform: uppercase; transition: background 0.3s ease !important;
}
.widget_shopping_cart .buttons a.wc-forward:not(.checkout) { background-color: #2b2a2a !important; color: #fff !important; }
.widget_shopping_cart .buttons a.checkout { background-color: var(--main-accent) !important; color: #fff !important; }
.widget_shopping_cart .buttons a.checkout:hover { background-color: #660000 !important; }

/* Layout Fix for "X" Button */
.widget_shopping_cart ul.cart_list li {
    position: relative !important; padding-left: 30px !important; min-height: 40px; border-bottom: 1px solid #eee !important;
}
.widget_shopping_cart ul.cart_list li a.remove {
    position: absolute !important; top: 10px !important; left: 0 !important;
    background: #fff !important; color: var(--main-accent) !important; border: 1px solid #ddd !important;
    border-radius: 50% !important; width: 20px !important; height: 20px !important;
    line-height: 18px !important; text-align: center !important; font-size: 14px !important;
}
.widget_shopping_cart ul.cart_list li a.remove:hover { background: var(--main-accent) !important; color: #fff !important; border-color: var(--main-accent) !important; }
.widget_shopping_cart .total .amount { color: var(--main-accent) !important; font-weight: bold !important; }

/* --- MOBILE FIXES FOR SECTION 11 --- */
@media (max-width: 768px) {
    /* MAKE TABS SCROLLABLE horizontally instead of breaking layout */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        display: block !important; /* Stop trying to flex fits */
        white-space: nowrap !important; /* Keep them in a single row */
        overflow-x: auto !important; /* Allow sideways scrolling */
        overflow-y: hidden !important; /* Hide vertical scrollbar */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        /* Hide the ugly scrollbar but keep functionality */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE 10+ */
        border-bottom: 2px solid var(--main-accent) !important; /* Slightly thinner line on mobile */
    }

    /* Hide scrollbar for Chrome/Safari/Webkit */
    .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        display: inline-block !important; /* Sit next to each other */
        float: none !important;
        margin-right: 5px !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 15px !important; /* Slightly smaller padding on mobile */
        font-size: 0.85rem !important;
    }
}

/* =========================================
   12. CONTACT FORM STYLES (FIXED)
   ========================================= */

/* The Container (The Panel) */
.wpcf7 {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
}

/* The Input Fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    
    /* THE FIX: Ensures padding is counted INSIDE the width */
    box-sizing: border-box; 
    
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 3px solid #ddd; /* Industrial accent */
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Focus Effect (Red Glow) */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--main-accent);
    border-left-color: var(--main-accent);
    background: #fff;
    outline: none;
    box-shadow: 0 0 8px rgba(141, 0, 0, 0.1);
}

/* The Labels */
.wpcf7 label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #2b2a2a;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
}

/* The Submit Button */
.wpcf7 input[type="submit"] {
    background-color: var(--main-accent);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border-radius: 3px;
    width: auto;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #2b2a2a;
    transform: translateY(-2px);
}

/* =========================================
   13. ABOUT / WORKSHOP PAGE
   ========================================= */

/* Intro Text */
.about-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
    border-left: 5px solid var(--main-accent);
    padding-left: 20px;
}

/* --- THE SKILLS BARS --- */
.skills-section {
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.skills-section h2 { margin-top: 0; margin-bottom: 25px; font-size: 1.5rem; }

.skill-item { margin-bottom: 20px; }

.skill-label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #2b2a2a;
}

.progress-bar-container {
    width: 100%;
    background-color: #eee;
    height: 12px;
    border-radius: 6px;
    overflow: hidden; /* Keeps the inner bar inside the rounded corners */
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--main-accent);
    width: 0%; /* Default to 0, styled inline in HTML */
    border-radius: 6px;
    transition: width 1.5s ease-in-out;
}

/* --- THE GEAR GRID --- */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.gear-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.gear-card:hover {
    transform: translateY(-5px);
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gear-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gear-card h3 {
    font-size: 1.1rem;
    margin: 15px 0 5px;
    color: #2b2a2a;
}

.gear-card p {
    font-size: 0.9rem;
    color: #666;
    padding: 0 15px 15px;
    margin: 0;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .gear-grid { grid-template-columns: 1fr; }
}

/* =========================================
   14. HOLIDAY MODES (FULL CALENDAR)
   ========================================= */

/* --- 1. CHRISTMAS (Dec 1 - Dec 25) --- */
body.holiday-christmas {
    --main-accent: #c41e3a; /* Santa Red */
    --dark-bg: #0f5132;     /* Pine Green */
    background-image: url('images/wallpaper-christmas.jpg') !important;
}

/* --- 2. NEW YEAR'S (Dec 26 - Jan 2) --- */
body.holiday-newyear {
    --main-accent: #d4af37; /* Metallic Gold */
    --dark-bg: #101035;     /* Midnight Navy */
    background-image: url('images/wallpaper-newyear.jpg') !important;
}

/* --- 3. HALLOWEEN (Oct 1 - Oct 31) --- */
body.holiday-halloween {
    --main-accent: #ff6600; /* Pumpkin Orange */
    --dark-bg: #4b0082;     /* Spooky Purple */
    background-image: url('images/wallpaper-halloween.jpg') !important;
}

/* --- 4. PATRIOTIC / JULY 4TH (July 1 - July 5) --- */
body.holiday-patriotic {
    --main-accent: #ff3333; /* Bright Firework Red */
    --dark-bg: #002147;     /* Navy Blue */
    background-image: url('images/wallpaper-patriotic.jpg') !important;
}

.gallery-page-container,
.project-archive-container {
    position: relative;
    z-index: 1;
}

/* Specific styling for Guides Archive Banner */
.post-type-archive-guide .page-header-image, 
.tax-guide_category .page-header-image {
    height: 300px; /* Adjust this value to be half of your projects height */
    overflow: hidden;
}

.post-type-archive-guide .page-header-image img, 
.tax-guide_category .page-header-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* --- GUIDES ARCHIVE STYLING --- */

/* Force the guide list to be a column, not a grid */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Make the guide card take full width */
.guide-list .post-card.guide-card {
    width: 100%;
    margin-bottom: 20px;
}

/* Control the Featured Image height (Half height as requested) */
.guide-list .post-image-wrap {
    height: 200px; /* Reduced from typical 300-400px height */
    overflow: hidden;
}

.guide-list .post-image-wrap img.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without stretching */
    object-position: center;
}

/* --- UNIVERSAL CODE BLOCK STYLING (Classic & Block) --- */

/* 1. Target standard <pre> tags (Classic) and Block Editor <pre> */
pre,
.wp-block-code pre {
    position: relative; /* Essential for button placement */
    background: #2d2d2d; /* Dark background like a code editor */
    color: #f8f8f2; /* Light text */
    padding: 20px; /* Enough space so text doesn't hit the button */
    border-radius: 5px;
    border: 1px solid #444;
    overflow-x: auto; /* Scrollbar if code is too long */
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    margin-bottom: 20px;
    white-space: pre-wrap; /* Wrap text so it doesn't break layout */
}

/* 2. Remove default margins on code inside pre (Cleanup) */
pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
}

/* 3. The Copy Button */
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-code-btn:hover {
    background: #fff;
    color: #333;
}

/* --- PDF DOWNLOAD WIDGET STYLING --- */
.pdf-download-card {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 20px;
    gap: 15px; /* Space between icon and text */
}

/* Large Icon on the left */
.pdf-download-card .pdf-icon {
    font-size: 40px;
    color: #cc0000; /* Adobe PDF Red */
}

/* Text Container */
.pdf-download-card .pdf-details {
    flex: 1;
}

.pdf-download-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    border: none; /* Override sidebar default border if needed */
    padding: 0;
    text-transform: uppercase;
    font-weight: 700;
}

.pdf-download-card p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
}

/* The Button */
.pdf-btn {
    display: inline-block;
    background: #8d0000; /* Your Brand Red */
    color: #fff !important; /* Force white text */
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.2s;
}

.pdf-btn:hover {
    background: #5a0000; /* Darker red on hover */
    color: #fff !important;
}

.pdf-btn i {
    margin-left: 5px;
}