/* =========================================================
   DEMOCRACY TIME - COMPLETE WEBSITE STYLESHEET
   Modern News Portal | Deep Navy | Crimson Red | White
========================================================= */

:root {
    --navy: #101D32;
    --navy-light: #1B2E4B;
    --navy-deep: #091525;
    --blue: #294A70;
    --red: #D62839;
    --red-dark: #AD1829;
    --red-light: #FFF0F1;
    --ink: #182335;
    --muted: #718096;
    --bg: #F4F6F9;
    --white: #FFFFFF;
    --border: #E3E8EF;
    --success: #16834A;
    --danger: #B42318;
    --shadow: 0 5px 22px rgba(16, 29, 50, .07);
    --shadow-hover: 0 12px 30px rgba(16, 29, 50, .13);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.65 Arial, sans-serif;
}

img {
    max-width: 100%;
}

a {
    transition: color .2s ease, background .2s ease,
                border-color .2s ease;
}

/* =========================================================
   PUBLIC HEADER
========================================================= */

.top {
    min-height: 82px;
    background: var(--navy-deep);
    color: var(--white);
    padding: 15px max(4%, calc((100% - 1200px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 3px solid var(--red);
}

.brand {
    font-size: 25px;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    letter-spacing: .5px;
}

.site-logo {
    display: block;
    max-height: 52px;
    max-width: 270px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.top nav {
    display: flex;
    align-items: center;
    gap: 17px;
    flex-wrap: wrap;
}

.top nav a {
    color: #E8EDF5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.top nav a:hover {
    color: #FF5362;
}

/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.category-nav {
    display: block;
    width: 100%;
    background: var(--navy);
    border-bottom: 3px solid var(--red);
    overflow: visible;
    position: relative;
    z-index: 100;
}

.category-nav .category-nav-inner {
    width: 100%;
    max-width: 1250px;
    min-height: 57px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.category-nav .category-nav-inner::-webkit-scrollbar {
    height: 4px;
}

.category-nav .category-nav-inner::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 8px;
}

.category-nav .menu-item {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.category-nav .category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 57px;
    padding: 0 16px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .55px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.10);
    transition: all .2s ease;
}

.category-nav .category-link:hover,
.category-nav .category-link.is-current,
.category-nav .has-submenu:hover > a,
.category-nav .has-submenu:focus-within > a {
    background: var(--red);
    color: #FFFFFF;
}

.menu-item {
    position: relative;
    display: inline-block;
}

.menu-item > a {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 200;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 0 0 9px 9px;
    box-shadow: var(--shadow-hover);
    padding: 7px;
}

.submenu a {
    display: block;
    padding: 10px 13px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 5px;
    font-size: 13px;
}

.submenu a:hover {
    background: var(--red-light);
    color: var(--red);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

/* =========================================================
   DEMOCRACY TIME TEXT LOGO
========================================================= */

.header-text-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 57px;
    margin-right: 10px;
    padding: 0 15px 0 8px;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.header-brand-first {
    color: #FFFFFF;
}

.header-brand-live {
    color: #FF3548;
    margin-left: 6px;
}

/* =========================================================
   IMAGE LOGO
========================================================= */

.category-nav .header-image-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 57px;
    max-width: 230px;
    margin-right: 12px;
    padding: 5px 10px;
    text-decoration: none;
}

.category-nav .header-image-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 210px;
    max-height: 46px;
    object-fit: contain;
}

/* =========================================================
   MAIN WEBSITE CONTENT
========================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 65vh;
}

.ticker {
    display: flex;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    align-items: center;
    padding: 10px 4%;
    gap: 15px;
}

.ticker b {
    background: var(--red);
    color: #FFFFFF;
    padding: 6px 13px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.ticker marquee {
    color: var(--navy);
    font-weight: 700;
}

.hero {
    background: linear-gradient(125deg, var(--navy-deep), var(--navy-light));
    color: var(--white);
    padding: 34px;
    border-radius: 12px;
    margin-bottom: 26px;
    border-left: 5px solid var(--red);
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card,
.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 21px;
}

.card {
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card img {
    display: block;
    width: 100%;
    height: 175px;
    object-fit: contain;
    object-position: center;
    background: #F0F3F7;
    border-radius: 7px;
}

.card h3 {
    margin: 12px 0;
    line-height: 1.4;
    color: var(--navy);
}

.card a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.card a:hover {
    color: var(--red);
}

.muted {
    color: var(--muted);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--navy);
    color: var(--white);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 17px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.btn:hover,
button:hover {
    background: var(--red);
    color: var(--white);
}

.btn:active,
button:active {
    transform: translateY(1px);
}

.btn.gold,
.feature-button {
    background: var(--red);
    color: #FFFFFF;
}

.btn.gold:hover,
.feature-button:hover {
    background: var(--red-dark);
    color: #FFFFFF;
}

.danger {
    background: var(--danger);
    color: var(--white);
}

.danger:hover {
    background: #861B13;
}

.small-button {
    padding: 7px 11px;
    font-size: 12px;
}

/* =========================================================
   FORMS - PUBLIC AND ADMIN
========================================================= */

.form {
    width: 100%;
    max-width: 700px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px 13px;
    margin: 6px 0 17px;
    border: 1px solid #CCD5DF;
    border-radius: 7px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

.form label {
    display: block;
    font-weight: 700;
    margin-top: 5px;
}

/* =========================================================
   ADMIN BODY AND HEADER
========================================================= */

.admin-body {
    min-height: 100vh;
    background: #F1F4F8;
    color: var(--ink);
}

.admin-header {
    width: 100%;
    min-height: 86px;
    background: var(--navy-deep);
    padding: 15px 3%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 4px solid var(--red);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #FFFFFF;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: .6px;
    line-height: 1;
}

.admin-brand strong {
    color: #FF3548;
}

.admin-brand small {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid #71839A;
    color: #DCE4EF;
    font-size: 11px;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* =========================================================
   ADMIN NAVIGATION
========================================================= */

.adminnav {
    position: relative;
    z-index: 500;
    width: 100%;
    min-height: 70px;
    padding: 10px 25px;
    background: var(--navy);
    border-bottom: 2px solid var(--red);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.adminnav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    background: transparent;
    color: #FFFFFF;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.adminnav > a:hover,
.adminnav > a:focus-visible {
    background: var(--red);
    color: #FFFFFF;
}

/* Admin More dropdown */

.admin-more {
    position: relative;
    display: inline-block;
    color: var(--white);
}

.admin-more summary {
    min-height: 40px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 5px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-more summary::-webkit-details-marker {
    display: none;
}

.admin-more summary::after {
    content: "▾";
    color: #FF5362;
}

.admin-more[open] summary,
.admin-more summary:hover {
    background: var(--red);
    color: #FFFFFF;
}

.admin-more[open] summary::after {
    color: #FFFFFF;
}

.admin-more > div,
.admin-more > .admin-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    min-width: 230px;
    padding: 7px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
}

.admin-more > div a,
.admin-more > .admin-dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.admin-more > div a:hover,
.admin-more > .admin-dropdown a:hover {
    background: var(--red-light);
    color: var(--red);
}

/* Admin logout */

.adminnav .admin-logout {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.admin-logout button {
    background: transparent;
    color: #FF5362;
    border: 1px solid rgba(255,255,255,.2);
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
}

.admin-logout button:hover {
    background: var(--red);
    color: #FFFFFF;
}

/* =========================================================
   ADMIN PAGE CONTENT
========================================================= */

.admin-container {
    width: 100%;
    max-width: 1350px;
    margin: 32px auto;
    padding: 0 25px 40px;
    min-height: 65vh;
}

.admin-page-title {
    color: var(--navy);
    border-left: 5px solid var(--red);
    padding: 4px 0 4px 15px;
    margin: 0 0 27px;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.35;
}

.admin-container h2 {
    color: var(--navy);
    font-size: 21px;
    margin: 0 0 18px;
}

.admin-container h3 {
    color: var(--navy);
    font-size: 17px;
}

/* Admin panels */

.admin-container .panel {
    width: 100%;
    max-width: 100%;
    padding: 25px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-container .panel h2:first-child,
.admin-container .panel h3:first-child {
    margin-top: 0;
}

/* Admin forms */

.admin-container form label {
    display: block;
    margin: 13px 0 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.admin-container form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.admin-container form select,
.admin-container form textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    margin: 0 0 5px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-container form textarea {
    min-height: 130px;
    resize: vertical;
}

.admin-container form input:focus,
.admin-container form select:focus,
.admin-container form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(214,40,57,.10);
}

.admin-container form input[type="checkbox"],
.admin-container form input[type="radio"] {
    width: auto;
    margin-right: 6px;
}

.admin-container form button,
.admin-container form input[type="submit"] {
    margin-top: 12px;
}

/* =========================================================
   ADMIN TABLES
========================================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid #E8EDF3;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.table th {
    background: var(--navy);
    color: #FFFFFF;
    font-weight: 800;
    white-space: nowrap;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #FFF5F5;
}

.actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

.actions form {
    display: inline-flex;
    margin: 0;
}

/* =========================================================
   STATUS MESSAGES
========================================================= */

.error {
    background: #FFF0F1;
    color: #9B1C1C;
    border: 1px solid #F2CACA;
    padding: 12px 15px;
    border-radius: 7px;
    margin: 12px 0;
}

.success {
    background: #ECFDF3;
    color: #166534;
    border: 1px solid #BBF7D0;
    padding: 12px 15px;
    border-radius: 7px;
    margin: 12px 0;
}

.checkline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkline input {
    width: auto;
}

/* =========================================================
   DASHBOARD CARDS
========================================================= */

.admin-container .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.admin-container .card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-container .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* =========================================================
   ADS, GALLERY AND PAGES
========================================================= */

.adslot {
    margin: 20px 0;
    padding: 15px;
    background: var(--white);
    border: 1px dashed #B9C5D3;
    border-radius: 8px;
    text-align: center;
}

.gallery img {
    height: 180px;
    object-fit: contain;
}

.maintenance {
    max-width: 600px;
    margin: 15vh auto;
    background: var(--white);
    text-align: center;
    padding: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.public-page {
    margin: 20px 0;
    padding: 24px;
    background: var(--white);
    border-radius: 9px;
}

.page-content {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* =========================================================
   FOOTER AND SOCIAL LINKS
========================================================= */

footer {
    text-align: center;
    padding: 30px 20px;
    color: #DCE4EF;
    background: var(--navy-deep);
    border-top: 4px solid var(--red);
}

.footer-menus,
.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.footer-menus a,
.social-links a {
    color: inherit;
    text-decoration: none;
}

.footer-menus a:hover,
.social-links a:hover {
    color: #FF5362;
}

/* =========================================================
   SETTINGS PREVIEWS
========================================================= */

.settings-preview-logo {
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
    background: #F8FAFC;
    padding: 6px;
    border: 1px solid #DDD;
    border-radius: 6px;
}

.settings-preview-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* =========================================================
   HOMEPAGE FEATURE CARDS
========================================================= */

.home-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 0 26px;
}

.home-feature {
    min-height: 190px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-feature {
    background: linear-gradient(125deg, var(--navy-deep), var(--navy-light));
    color: var(--white);
    border-left: 4px solid var(--red);
}

.follow-feature {
    background: linear-gradient(125deg, #FFFFFF, #F1F4F8);
    border: 1px solid var(--border);
    color: var(--ink);
}

.feature-symbol {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.13);
    font-size: 34px;
    color: #FF5362;
}

.follow-feature .feature-symbol {
    background: #E8EDF5;
    color: var(--navy);
}

.feature-kicker {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #FF6976;
}

.follow-feature .feature-kicker {
    color: var(--red);
}

.home-feature h2 {
    font-size: 18px;
    line-height: 1.25;
    margin: 5px 0 7px;
    letter-spacing: .3px;
}

.home-feature p {
    font-size: 13px;
    margin: 0 0 13px;
    opacity: .85;
}

.feature-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: var(--red);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    padding: 9px 14px;
    border-radius: 5px;
}

.feature-button:hover {
    background: var(--red-dark);
    color: #FFFFFF;
}

.home-social-links {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    transition: transform .15s, background .15s;
}

.social-icon:hover {
    background: var(--red);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.social-youtube {
    font-size: 13px;
}

.social-whatsapp {
    font-size: 18px;
}

/* =========================================================
   LIGHT / DARK MODE
========================================================= */

.theme-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    background: var(--red);
    color: #FFFFFF;
    border: 2px solid var(--navy);
    border-radius: 30px;
    padding: 11px 16px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    cursor: pointer;
}

html[data-theme="dark"] {
    --bg: #111827;
    --ink: #E5E7EB;
    --muted: #AAB6C5;
    --border: #374151;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .admin-body {
    background: #111827;
    color: #E5E7EB;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .adslot,
html[data-theme="dark"] .maintenance,
html[data-theme="dark"] .submenu,
html[data-theme="dark"] .admin-more > div,
html[data-theme="dark"] .admin-more > .admin-dropdown,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .table,
html[data-theme="dark"] .public-page {
    background: #1F2937;
    color: #E5E7EB;
    border-color: #374151;
}

html[data-theme="dark"] .submenu a,
html[data-theme="dark"] .card a,
html[data-theme="dark"] .admin-more > div a,
html[data-theme="dark"] .admin-more > .admin-dropdown a {
    color: #8FC5FF;
}

html[data-theme="dark"] .submenu a:hover,
html[data-theme="dark"] .admin-more > div a:hover,
html[data-theme="dark"] .admin-more > .admin-dropdown a:hover {
    background: #374151;
}

html[data-theme="dark"] .ticker {
    background: #291D27;
    border-color: #56313B;
}

html[data-theme="dark"] .ticker marquee {
    color: #FFFFFF;
}

html[data-theme="dark"] .table th {
    background: #263449;
    color: #FFFFFF;
}

html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td {
    border-color: #374151;
}

html[data-theme="dark"] .table tbody tr:hover {
    background: #263449;
}

html[data-theme="dark"] .admin-container h2,
html[data-theme="dark"] .admin-container h3,
html[data-theme="dark"] .admin-page-title {
    color: #E5E7EB;
}

html[data-theme="dark"] .admin-container form label {
    color: #E5E7EB;
}

html[data-theme="dark"] .admin-container form input,
html[data-theme="dark"] .admin-container form textarea,
html[data-theme="dark"] .admin-container form select,
html[data-theme="dark"] .form input,
html[data-theme="dark"] .form textarea,
html[data-theme="dark"] .form select {
    background: #1F2937;
    color: #FFFFFF;
    border-color: #4B5563;
}

html[data-theme="dark"] .follow-feature {
    background: linear-gradient(125deg, #1F2937, #263449);
    border-color: #374151;
    color: #E5E7EB;
}

html[data-theme="dark"] .follow-feature .feature-symbol {
    background: #374151;
    color: #8FC5FF;
}

html[data-theme="dark"] .settings-preview-logo {
    background: #1F2937;
    border-color: #4B5563;
}

html[data-theme="dark"] .error {
    background: #451F25;
    color: #FFB4B4;
    border-color: #71343C;
}

html[data-theme="dark"] .success {
    background: #153C2A;
    color: #A7F3C1;
    border-color: #246B47;
}

html[data-theme="dark"] footer {
    color: #AAB6C5;
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1000px) {
    .adminnav {
        padding: 10px 15px;
        gap: 4px;
    }

    .adminnav > a,
    .admin-more summary {
        padding: 8px 10px;
        font-size: 12px;
    }

    .adminnav .admin-logout {
        position: static;
        transform: none;
        margin-left: 0;
    }

    .admin-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {
    .top {
        min-height: 66px;
        padding: 10px 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .top nav {
        gap: 8px;
        flex-wrap: wrap;
    }

    .category-nav .category-nav-inner {
        justify-content: flex-start;
        padding: 0 4px;
    }

    .category-nav .category-link {
        min-height: 45px;
        padding: 0 12px;
        font-size: 11px;
    }

    .header-text-brand {
        min-height: 45px;
        padding: 0 10px 0 8px;
        margin-right: 2px;
        font-size: 18px;
    }

    .category-nav .header-image-brand {
        height: 45px;
        max-width: 160px;
        margin-right: 5px;
        padding: 4px 7px;
    }

    .category-nav .header-image-brand img {
        max-width: 145px;
        max-height: 36px;
    }

    .category-nav .submenu {
        position: static;
        box-shadow: none;
    }

    .container {
        margin: 18px auto;
        padding: 0 13px;
    }

    .hero {
        padding: 20px;
    }

    .home-feature-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-feature {
        min-height: 160px;
        padding: 18px;
        gap: 14px;
    }

    .feature-symbol {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 28px;
    }

    .home-feature h2 {
        font-size: 16px;
    }

    /* Admin mobile header */

    .admin-header {
        min-height: 68px;
        padding: 12px 16px;
    }

    .admin-brand {
        font-size: 23px;
    }

    .admin-brand small {
        font-size: 9px;
        margin-left: 5px;
        padding-left: 7px;
    }

    /* Admin mobile navigation */

    .adminnav {
        min-height: auto;
        padding: 10px;
        gap: 5px;
        justify-content: center;
    }

    .adminnav > a {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .admin-more summary {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .adminnav .admin-logout {
        position: static;
        transform: none;
        margin: 0;
    }

    .admin-more > div,
    .admin-more > .admin-dropdown {
        left: auto;
        right: 0;
        min-width: 210px;
    }

    /* Admin mobile content */

    .admin-container {
        margin: 20px auto;
        padding: 0 13px 30px;
    }

    .admin-page-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .admin-container .panel {
        padding: 17px;
        border-radius: 9px;
    }

    .admin-container h2 {
        font-size: 19px;
    }

    .admin-container .grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .table th,
    .table td {
        padding: 10px;
        font-size: 12px;
    }

    .theme-toggle {
        right: 12px;
        bottom: 12px;
        padding: 9px 13px;
        font-size: 12px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
    .admin-brand {
        font-size: 20px;
    }

    .admin-brand small {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .admin-page-title {
        font-size: 20px;
    }

    .adminnav > a,
    .admin-more summary {
        padding: 7px 8px;
        font-size: 10px;
    }

    .admin-container .panel {
        padding: 14px;
    }

    .home-feature {
        align-items: flex-start;
    }
}
