:root {
    --primary-color: #8B0000;      /* Dark Red */
    --primary-hover: #A00000;
    --secondary-color: #FFD700;    /* Gold */
    --secondary-hover: #E5C100;
    --bg-dark: #0f0f0f;            /* Very dark bg */
    --bg-card: #1a1a1a;            /* Card bg */
    --text-light: #f5f5f5;
    --text-muted: #b0b0b0;
    --border-color: #333333;
    --border-radius: 8px;
    --font-family: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #050505;
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Keep article detail pages from using sticky header follow behavior. */
body.single header.nav-bar {
    position: static;
    top: auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

#navDrawer {
    flex: 1 1 auto;
}

#navDrawer .mjs-primary-menu {
    justify-content: center;
}

nav a {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 5px 0;
}

nav a:hover,
nav a.active,
nav .current-menu-item > a,
nav .current_page_item > a,
nav .current-menu-ancestor > a,
nav .current-page-ancestor > a {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
}

.mjs-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: transparent;
    cursor: pointer;
}

.mjs-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.mjs-nav-toggle.open span {
    background-color: var(--secondary-color);
}

.mjs-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mjs-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mjs-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mjs-header-cta {
    flex: 0 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: bold;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: #000;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: #000;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: #000;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a0000 0%, #0a0a0a 100%);
    padding: 80px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.hero .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Main Content Sections */
section {
    padding: 60px 0;
}

.section-darker {
    background-color: #0a0a0a;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
    padding-bottom: 0;
}

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

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

.fsm-stack-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

/* Feature Cards */
.feature-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary-color);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #222;
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #2a2a2a;
}

/* Lists */
ul.content-list {
    list-style-type: none;
    margin-bottom: 20px;
}

ul.content-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

ul.content-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Blockquote */
blockquote {
    background-color: #1a1a1a;
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.faq-item p {
    margin-bottom: 0;
}

/* Editorial / blog layout */
main {
    min-height: 60vh;
}

.fsm-page-hero,
.fsm-author-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 28px;
}

.fsm-page-hero h1,
.fsm-author-hero h1 {
    margin-bottom: 14px;
    font-size: 38px;
    text-transform: uppercase;
}

.fsm-page-hero p,
.fsm-page-hero .archive-description,
.fsm-author-meta,
.fsm-author-bio {
    max-width: 860px;
    color: var(--text-muted);
    font-size: 17px;
}

.fsm-news-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px;
    display: grid;
    gap: 24px;
}

.fsm-news-card {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.fsm-news-card--no-thumb {
    grid-template-columns: 1fr;
}

.fsm-news-thumb {
    min-width: 0;
}

.fsm-news-thumb a,
.fsm-news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
}

.fsm-news-thumb img {
    min-height: 180px;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.fsm-news-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fsm-news-title {
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.25;
}

.fsm-news-title a {
    color: var(--secondary-color);
}

.fsm-news-title a:hover {
    color: #fff;
}

.fsm-news-meta,
.fsm-related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fsm-news-meta a,
.fsm-related-meta a {
    color: var(--text-muted);
}

.fsm-news-meta a:hover,
.fsm-related-meta a:hover {
    color: var(--secondary-color);
}

.fsm-news-meta .sep {
    opacity: 0.55;
}

.fsm-news-excerpt {
    color: var(--text-light);
    font-size: 16px;
}

.fsm-news-excerpt p:last-child {
    margin-bottom: 0;
}

.fsm-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 20px;
    padding: 10px 18px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fsm-read-more:hover {
    border-color: var(--secondary-color);
    background-color: rgba(255, 215, 0, 0.08);
    color: #fff;
}

.fsm-pagination {
    max-width: 1200px;
    margin: 10px auto 60px;
    padding: 0 20px;
    display: flex;
        flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    }
    
.fsm-pagination .page-numbers {
        display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-light);
    font-weight: 700;
}

.fsm-pagination .page-numbers:hover,
.fsm-pagination .page-numbers.current {
    color: #000;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.fsm-empty {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.fsm-empty p {
    color: var(--text-muted);
}

.fsm-search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    max-width: 680px;
}

.fsm-search-form input {
    flex: 1 1 280px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    color: var(--text-light);
        font-size: 15px;
    }

.fsm-search-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.fsm-search-form button {
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

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

.fsm-article {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 20px 20px;
}

.fsm-article-header {
    margin-bottom: 28px;
    text-align: center;
}

.fsm-article-title {
    margin-bottom: 16px;
    font-size: 42px;
}

.fsm-article-header .fsm-news-meta {
    justify-content: center;
    margin-bottom: 0;
}

.fsm-article-featured {
    margin: 0 0 28px;
}

.fsm-article-featured img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
}

.fsm-article-content {
    padding: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.fsm-article-content > *:last-child {
    margin-bottom: 0;
}

.fsm-article-content h2,
.fsm-article-content h3,
.fsm-article-content h4 {
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--secondary-color);
    text-transform: none;
}

.fsm-article-content h2 {
    font-size: 30px;
}

.fsm-article-content h3 {
    font-size: 24px;
}

.fsm-article-content p,
.fsm-article-content li {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
}

.fsm-article-content ul,
.fsm-article-content ol {
    margin: 0 0 20px 22px;
}

.fsm-article-content ul li,
.fsm-article-content ol li {
    margin-bottom: 10px;
    padding-left: 0;
}

.fsm-article-content ul li::before {
    content: none;
}

.fsm-article-content a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fsm-article-content img {
    margin: 22px auto;
    border-radius: 14px;
}

.fsm-article-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 22px 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.fsm-article-author img,
.fsm-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    background-color: #111;
}

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

.fsm-author-name a {
    color: var(--secondary-color);
}

.fsm-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.fsm-post-nav a {
    display: block;
    min-height: 100%;
    padding: 18px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-light);
}

.fsm-post-nav a:hover {
    border-color: var(--secondary-color);
    color: #fff;
}

.fsm-nav-label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fsm-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 64px;
}

.fsm-related-title {
    margin-bottom: 22px;
    font-size: 30px;
}

.fsm-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.fsm-related-card {
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.fsm-related-thumb,
.fsm-related-thumb img {
    display: block;
    width: 100%;
}

.fsm-related-thumb img {
    height: 180px;
    object-fit: cover;
}

.fsm-related-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: linear-gradient(135deg, #2a0000 0%, #1a1a1a 100%);
    color: var(--secondary-color);
    font-size: 44px;
    font-weight: 800;
}

.fsm-related-body {
    padding: 16px 16px 18px;
}

.fsm-related-card-title {
    margin-bottom: 10px;
    font-size: 18px;
}

.fsm-related-card-title a {
    color: var(--text-light);
}

.fsm-related-card-title a:hover {
    color: var(--secondary-color);
}

.fsm-author-hero {
    display: flex;
    gap: 24px;
    align-items: center;
}

.fsm-author-info {
    min-width: 0;
}

.fsm-author-avatar {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
}

/* Footer */
footer {
    background-color: #050505;
    padding: 60px 0 30px;
    border-top: 2px solid var(--primary-color);
    text-align: center;
}

footer h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

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

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 0;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    display: inline-flex;
}

.footer-bottom a {
    color: var(--text-muted);
    margin: 0 15px;
    font-size: 14px;
}

.footer-bottom a:hover,
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a,
.footer-menu .current-menu-ancestor > a,
.footer-menu .current-page-ancestor > a {
    color: var(--secondary-color);
}

.age-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.age-gate span.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    font-weight: bold;
    color: var(--secondary-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    header {
        padding: 10px 0;
    }

    header .container {
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
    }
    
    .logo a {
        font-size: 24px;
    }

    .mjs-nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    #navDrawer {
        display: none;
        order: 3;
        width: 100%;
        flex-basis: 100%;
        padding-top: 6px;
    }

    #navDrawer.open {
        display: block;
    }

    #navDrawer .mjs-primary-menu {
    flex-direction: column;
        gap: 0;
        padding: 10px 0 0;
        background-color: transparent;
}

    #navDrawer .mjs-primary-menu li {
        width: 100%;
}

    nav a {
    display: block;
        font-size: 13px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    nav a:hover,
    nav a.active,
    nav .current-menu-item > a,
    nav .current_page_item > a,
    nav .current-menu-ancestor > a,
    nav .current-page-ancestor > a {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mjs-header-cta {
        display: none;
    }

    .footer-menu {
    justify-content: center;
    }
    
    .hero .grid-2, .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero {
        padding: 40px 0;
        text-align: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-group {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 26px;
    }

    .hero h2 {
        font-size: 15px;
    }

    .hero p {
        font-size: 14px;
    }

    section {
        padding: 40px 0;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .mobile-order-1 {
        order: 1;
    }
    
    .mobile-order-2 {
        order: 2;
    }

    blockquote {
        font-size: 14px !important;
        padding: 15px;
        margin: 20px 0;
    }

    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
    font-size: 16px;
    }

    table {
        margin: 20px 0;
    }

    th, td {
        padding: 10px 15px;
        font-size: 13px;
    }

    footer {
        padding: 40px 0 20px;
    }

    footer h2 {
        font-size: 20px;
    }

    .fsm-page-hero,
    .fsm-author-hero,
    .fsm-article,
    .fsm-related {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fsm-page-hero,
    .fsm-author-hero {
        padding-top: 36px;
        padding-bottom: 18px;
    }

    .fsm-page-hero h1,
    .fsm-author-hero h1,
    .fsm-article-title {
        font-size: 28px;
    }

    .fsm-page-hero p,
    .fsm-author-meta,
    .fsm-author-bio {
        font-size: 15px;
    }

    .fsm-news-list {
        padding: 0 16px 20px;
        gap: 18px;
    }

    .fsm-news-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .fsm-news-thumb img {
        min-height: 0;
        height: 200px;
        max-height: 200px;
    }

    .fsm-news-title {
        font-size: 22px;
    }

    .fsm-news-excerpt {
        font-size: 15px;
    }

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

    .fsm-search-form input,
    .fsm-search-form button {
        width: 100%;
    }

    .fsm-article {
        padding-top: 36px;
    }

    .fsm-article-content {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .fsm-article-content h2 {
        font-size: 24px;
    }

    .fsm-article-content h3 {
        font-size: 20px;
    }

    .fsm-article-content p,
    .fsm-article-content li {
        font-size: 15px;
    }

    .fsm-article-author {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

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

    .fsm-related-title {
        font-size: 24px;
    }

    .fsm-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fsm-related-thumb img,
    .fsm-related-thumb-placeholder {
        height: 190px;
    }

    .fsm-author-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .fsm-author-avatar {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .fsm-news-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .fsm-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
