/*
  0served — Main Stylesheet v3
  Complete rewrite: CSS Grid + Flexbox, fully responsive.
  Preserves original visual identity (colors, fonts, background images).
*/

/* ============================================================
   1. RESET & BOX MODEL
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

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

/* ============================================================
   2. BASE TYPOGRAPHY
   ============================================================ */
body {
    margin: 0;
    padding: 0;
    background: #050505 url(images/img01.jpg) repeat;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #5B5B5B;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-family: 'Archivo Narrow', sans-serif;
    font-weight: 200;
    color: #222222;
}

h1 { font-size: 2em; }
h2 { font-size: 2.8em; }
h3 { font-size: 1.6em; }

p, ul, ol {
    margin-top: 0;
    line-height: 180%;
}

a {
    color: #5E5E5E;
}

a:hover {
    color: #1F1F1F;
}

/* ============================================================
   3. LAYOUT WRAPPER
   ============================================================ */
#wrapper {
    background: #FFFFFF url(images/img05.jpg) repeat;
    overflow-x: hidden;
}

/* ============================================================
   4. HEADER — Flexbox (logo left, nav right)
   ============================================================ */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 110px;
    position: relative;
}

/* --- Logo --- */
#logo {
    flex-shrink: 0;
}

#logo h1 {
    text-transform: lowercase;
    letter-spacing: -2px;
    font-size: 3.8em;
    line-height: 1;
    padding: 18px 0;
}

#logo h1 a {
    color: #1F1F1F;
    text-decoration: none;
    border: none;
}

/* --- Desktop Nav --- */
#menu {
    display: flex;
    align-items: center;
}

#menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

#menu li {
    /* flex items — no float needed */
}

#menu a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .15);
    text-transform: uppercase;
    font-family: 'Oswald', 'Archivo Narrow', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #1F1F1F;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

#menu a:hover,
#menu .current_page_item a {
    background: url(images/img01.jpg) repeat;
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
}

/* --- Hamburger Toggle (hidden on desktop) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid #CCC;
    border-radius: 6px;
    cursor: pointer;
    padding: 9px 10px;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.menu-toggle:hover {
    border-color: #999;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ============================================================
   5. BANNER
   ============================================================ */
#banner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

#banner .content {
    overflow: hidden;
}

#banner img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ============================================================
   6. PAGE — CSS Grid (content + sidebar)
   ============================================================ */
#page {
    display: grid;
    grid-template-columns: 1fr 285px;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ============================================================
   7. CONTENT AREA
   ============================================================ */
#content {
    min-width: 0; /* Prevent grid blowout */
}

/* --- Post Cards --- */
.post {
    overflow: hidden;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #E7EBED;
    border-radius: 8px;
    background: #FFF;
}

.post .title {
    padding: 7px 0 0 0;
    letter-spacing: -1px;
}

.post .title a {
    border: none;
    text-decoration: none;
    color: #222222;
    transition: color 0.2s;
}

.post .title a:hover {
    color: #555555;
}

.post .meta {
    margin-bottom: 25px;
    padding: 8px 0 0 0;
    font-size: 14px;
    font-weight: 300;
    color: #888888;
}

.post .entry {
    padding: 0 0 20px 0;
    text-align: justify;
    line-height: 1.8;
}

.more {
    display: inline-block;
    padding: 8px 22px;
    background: #222222;
    border-radius: 8px;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.more:hover {
    background: #444444;
    color: #FFF;
}

/* Section heading */
.section-title {
    font-size: 1.6em;
    padding-bottom: 12px;
    margin-bottom: 22px;
    font-family: 'Archivo Narrow', sans-serif;
    text-transform: uppercase;
    color: #222;
    border-bottom: 2px solid #E7EBED;
}

/* ============================================================
   8. NEWSLETTER SECTION (Homepage hero)
   ============================================================ */
.newsletter-section {
    background: #1F1F1F;
    color: #FFF;
    padding: 48px 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.newsletter-section h2 {
    color: #FFF;
    font-size: 1.9em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.newsletter-tagline {
    color: #AAAAAA;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

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

.newsletter-input {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2A2A2A;
    color: #FFF;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input::placeholder {
    color: #666;
}

.newsletter-input:focus {
    border-color: #888;
}

.newsletter-btn {
    padding: 13px 24px;
    background: #FFF;
    color: #222;
    border: none;
    border-radius: 6px;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.newsletter-btn:hover {
    background: #EEEEEE;
    transform: translateY(-1px);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.newsletter-msg {
    margin-top: 14px;
    font-size: 13px;
    display: none;
}

.newsletter-msg.success { display: block; color: #90EE90; }
.newsletter-msg.error   { display: block; color: #FF8888; }
.newsletter-msg.note    { display: block; color: #BBBBBB; }

/* ============================================================
   9. SIDEBAR
   ============================================================ */
#sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: #FFF;
    border: 1px solid #E7EBED;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 22px;
}

.sidebar-widget h2 {
    font-size: 1.1em;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #E7EBED;
}

#sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar li {
    margin: 0;
    padding: 0;
}

#sidebar li li {
    border-bottom: 1px solid #E7EBED;
    padding: 8px 0;
}

#sidebar li li:last-child {
    border-bottom: none;
}

#sidebar li li a {
    padding: 0 0 0 18px;
    background: url(images/img04.jpg) no-repeat left 50%;
    text-decoration: none;
    color: #5E5E5E;
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

#sidebar li li a:hover {
    color: #1F1F1F;
}

#sidebar li li span {
    display: block;
    font-size: 11px;
    font-style: italic;
    color: #AAAAAA;
    margin-top: 2px;
    padding-left: 18px;
}

/* Sidebar Newsletter Form */
.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-newsletter-input {
    padding: 10px 12px;
    border: 1px solid #CCC;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    transition: border-color 0.2s;
}

.sidebar-newsletter-input:focus {
    outline: none;
    border-color: #222;
}

.sidebar-newsletter-btn {
    padding: 10px 15px;
    background: #222;
    color: #FFF;
    border: none;
    border-radius: 6px;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-newsletter-btn:hover {
    background: #444;
}

.sidebar-newsletter-msg {
    font-size: 12px;
    margin-top: 4px;
    display: none;
    line-height: 1.5;
}

.sidebar-newsletter-msg.success { display: block; color: #2E7D32; }
.sidebar-newsletter-msg.error   { display: block; color: #C62828; }
.sidebar-newsletter-msg.note    { display: block; color: #888; }

/* ============================================================
   10. FOOTER
   ============================================================ */
#footer {
    padding: 40px 20px 30px;
    text-align: center;
}

#footer p {
    margin: 0;
    padding-top: 10px;
    letter-spacing: 1px;
    font-size: 14px;
    text-align: center;
    color: #5E5E5E;
}

#footer a {
    color: #5E5E5E;
}

#footer a:hover {
    color: #1F1F1F;
}

/* ============================================================
   11. MARKDOWN CONTENT RENDERING
   ============================================================ */
.entry h1 { font-size: 2em; margin: 20px 0 10px; text-transform: none; letter-spacing: 0; }
.entry h2 { font-size: 1.6em; margin: 18px 0 10px; text-transform: none; letter-spacing: 0; }
.entry h3 { font-size: 1.3em; margin: 15px 0 8px; text-transform: none; letter-spacing: 0; }
.entry p { margin-bottom: 1.4em; line-height: 1.8; }
.entry ul, .entry ol { margin-bottom: 1.4em; padding-left: 22px; }
.entry li { margin-bottom: 0.4em; line-height: 1.6; }
.entry blockquote {
    border-left: 4px solid #E7EBED;
    padding-left: 15px;
    margin: 1.5em 0;
    color: #777;
    font-style: italic;
}
.entry pre {
    background: #F5F5F5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.entry code {
    font-family: 'Courier New', monospace;
    background: #F5F5F5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.entry pre code { padding: 0; background: transparent; }
.entry strong { color: #333; }
.entry a { color: #1F1F1F; text-decoration: underline; }

/* ============================================================
   12. UTILITIES
   ============================================================ */
.list-style1 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-style1 a {
    color: #7F7F7F;
}

/* ============================================================
   13. ADMIN — LOGIN SCREEN
   ============================================================ */
.admin-login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505 url(images/img01.jpg) repeat;
    padding: 20px;
}

.admin-login-box {
    background: #FFF;
    border-radius: 14px;
    padding: 52px 44px;
    width: 100%;
    max-width: 390px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.admin-login-brand {
    display: block;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 3.2em;
    text-transform: lowercase;
    letter-spacing: -2px;
    color: #1F1F1F;
    text-decoration: none;
    margin-bottom: 4px;
}

.admin-login-subtitle {
    color: #BBBBBB;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 38px;
}

.admin-login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #CCC;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
}

.admin-login-input:focus {
    outline: none;
    border-color: #222;
}

.admin-login-btn {
    width: 100%;
    padding: 14px;
    background: #222;
    color: #FFF;
    border: none;
    border-radius: 8px;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.admin-login-btn:hover {
    background: #444;
}

.admin-login-error {
    color: #C62828;
    font-size: 13px;
    margin-top: 14px;
    display: none;
    padding: 10px 14px;
    background: #FFEBEE;
    border-radius: 6px;
}

.admin-login-note {
    margin-top: 22px;
    font-size: 11px;
    color: #CCCCCC;
    line-height: 1.6;
}

/* ============================================================
   14. ADMIN — APPLICATION SHELL
   ============================================================ */
.admin-app {
    min-height: 100vh;
    background: #F5F5F5;
    font-family: 'Open Sans', sans-serif;
}

/* --- Top Bar --- */
.admin-topbar {
    background: #1F1F1F;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.admin-topbar-brand {
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 1.55em;
    text-transform: lowercase;
    letter-spacing: -1px;
    color: #FFF;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-topbar-brand small {
    font-size: 0.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-family: 'Open Sans', sans-serif;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-topbar-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.admin-topbar-link:hover {
    color: #FFF;
}

.admin-logout-btn {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
}

.admin-logout-btn:hover {
    border-color: #888;
    color: #FFF;
}

/* --- Layout --- */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 58px);
}

/* --- Side Nav --- */
.admin-sidenav {
    width: 215px;
    background: #FFF;
    border-right: 1px solid #E7EBED;
    padding: 15px 0;
    flex-shrink: 0;
    position: sticky;
    top: 58px;
    height: calc(100vh - 58px);
    overflow-y: auto;
}

.admin-nav-section {
    padding: 16px 18px 5px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #BBBBBB;
    font-weight: 700;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    color: #555;
    font-size: 14px;
    border: none;
    border-left: 3px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.admin-nav-btn:hover {
    background: #F8F8F8;
    color: #222;
}

.admin-nav-btn.active {
    border-left-color: #222;
    background: #F5F5F5;
    color: #222;
    font-weight: 600;
}

/* --- Main Content Area --- */
.admin-main {
    flex: 1;
    padding: 30px;
    min-width: 0;
    overflow-y: auto;
}

/* --- Panels --- */
.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-panel-header {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid #E7EBED;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-panel-title {
    font-size: 1.7em;
    color: #1F1F1F;
    text-transform: none;
    margin-bottom: 4px;
}

.admin-panel-desc {
    color: #888;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* --- Buttons --- */
.admin-btn {
    background: #222;
    color: #FFF;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Archivo Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-btn:hover { background: #444; }

.admin-btn-secondary {
    background: #FFF;
    color: #333;
    border: 1px solid #CCC;
}

.admin-btn-secondary:hover { background: #F5F5F5; }

.admin-btn-danger {
    background: #C62828;
    color: #FFF;
    border: none;
}

.admin-btn-danger:hover { background: #B71C1C; }

.admin-btn-success {
    background: #2E7D32;
    color: #FFF;
    border: none;
}

.admin-btn-success:hover { background: #1B5E20; }

.admin-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

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

/* --- Status Messages --- */
.admin-status {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
    margin-bottom: 20px;
    line-height: 1.5;
}

.admin-status.success {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #C8E6C9;
    display: block;
}

.admin-status.error {
    background: #FFEBEE;
    color: #B71C1C;
    border: 1px solid #FFCDD2;
    display: block;
}

.admin-status.info {
    background: #E3F2FD;
    color: #0D47A1;
    border: 1px solid #BBDEFB;
    display: block;
}

/* --- Editor Grid --- */
.admin-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

/* --- Form Elements --- */
.admin-form-group {
    margin-bottom: 18px;
}

.admin-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #CCC;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    outline: none;
    border-color: #222;
}

.admin-textarea {
    min-height: 360px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.65;
}

.admin-textarea-sm {
    min-height: 140px;
}

.admin-textarea-md {
    min-height: 220px;
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* --- Preview Pane --- */
.admin-preview-pane {
    border: 1px solid #E7EBED;
    border-radius: 8px;
    background: #FFF;
    padding: 28px;
    min-height: 420px;
    max-height: 620px;
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.admin-preview-pane .post {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* --- List Items --- */
.admin-list {
    background: #FFF;
    border: 1px solid #E7EBED;
    border-radius: 8px;
    overflow: hidden;
}

.admin-list-empty {
    padding: 40px;
    text-align: center;
    color: #AAAAAA;
    font-size: 14px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #F0F0F0;
    gap: 15px;
    flex-wrap: wrap;
    transition: background 0.15s;
}

.admin-list-item:last-child {
    border-bottom: none;
}

.admin-list-item:hover {
    background: #FAFAFA;
}

.admin-list-item-info h3 {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0 0 3px;
    color: #1F1F1F;
    text-transform: none;
    font-family: 'Open Sans', sans-serif;
}

.admin-list-item-info p {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.admin-list-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.badge-forthcoming { background: #FFF9C4; color: #574300; }
.badge-published    { background: #E8F5E9; color: #1B5E20; }
.badge-draft        { background: #F3E5F5; color: #4A148C; }

/* --- Callout Boxes --- */
.admin-callout {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.admin-callout.warning {
    background: #FFF9C4;
    border: 1px solid #FFF176;
    color: #574300;
}

.admin-callout.info {
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
    color: #0D47A1;
}

.admin-callout.success {
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    color: #1B5E20;
}

/* --- Setting Cards --- */
.admin-card {
    background: #FFF;
    border: 1px solid #E7EBED;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.admin-card-title {
    font-size: 1em;
    font-weight: 700;
    color: #222;
    text-transform: none;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
    font-family: 'Open Sans', sans-serif;
}

/* --- Subscriber Table --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #FFF;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E7EBED;
}

.admin-table th {
    background: #F5F5F5;
    padding: 10px 15px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 2px solid #E7EBED;
    font-weight: 700;
}

.admin-table td {
    padding: 11px 15px;
    border-bottom: 1px solid #F0F0F0;
    color: #333;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFAFA; }

/* Newsletter steps */
.setup-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.setup-steps li {
    padding: 12px 0 12px 50px;
    border-bottom: 1px solid #F0F0F0;
    position: relative;
    counter-increment: step;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
}

.setup-steps li:last-child { border-bottom: none; }

.setup-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    background: #222;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.setup-steps li strong { color: #1F1F1F; }
.setup-steps li code {
    background: #F5F5F5;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* ============================================================
   15. RESPONSIVE — Mobile (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {

    /* Header */
    #header {
        flex-wrap: wrap;
        padding: 8px 15px;
        min-height: auto;
        gap: 0;
    }

    #logo h1 {
        font-size: 2.8em;
        padding: 12px 0;
    }

    /* Show hamburger button */
    .menu-toggle {
        display: flex;
    }

    /* Mobile nav — collapsed by default */
    #menu {
        width: calc(100% + 30px);
        margin: 0 -15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        order: 3;
        border-top: 1px solid #EFEFEF;
    }

    #menu.open {
        max-height: 500px;
    }

    #menu ul {
        flex-direction: column;
        gap: 0;
        padding: 6px 0;
    }

    #menu a {
        text-align: left;
        padding: 13px 20px;
        border-radius: 0;
        font-size: 14px;
        border-bottom: 1px solid #F5F5F5;
    }

    #menu a:hover,
    #menu .current_page_item a {
        border-radius: 0;
        padding-left: 28px;
    }

    /* Banner */
    #banner img {
        border-radius: 0;
        max-height: 180px;
    }

    /* Page — single column */
    #page {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 20px;
    }

    /* Post */
    .post {
        padding: 22px;
    }

    h2 {
        font-size: 2em;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 32px 20px;
    }

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

    .newsletter-input {
        flex: none;
        width: 100%;
    }

    /* Admin */
    .admin-editor-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidenav {
        display: none;
    }

    .admin-main {
        padding: 20px 15px;
    }

    .admin-topbar-brand small {
        display: none;
    }

    .admin-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #logo h1 {
        font-size: 2.4em;
    }

    .post {
        padding: 18px;
    }

    .post .title {
        font-size: 0.85em;
    }

    .newsletter-section {
        padding: 26px 16px;
    }

    .newsletter-section h2 {
        font-size: 1.5em;
    }

    .admin-panel-header {
        flex-direction: column;
    }

    .admin-btn-group {
        width: 100%;
    }
}
