
/* ==================================================
   CryptoMerch.io Global Dark/Light Mode & Modern UI
   Framer-inspired clean, minimal, interactive
================================================== */

/* ----------------------
   CSS Variables for Theme
---------------------- */
:root {
    /* Light theme */
    --bg-color: #fff;
    --text-color: #000;
    --text-color-rgba: 0, 0, 0;
    --page-header-bg: #f9f9f9;
    --card-bg: #f9f9f9;
    --pill-bg: #f9f9f9;
    --border-color:#ebebeb;
    --link-color: #007bff;
    --header-bg: 255, 255, 255;
    --footer-bg: #fafafa;
    --shadow: rgba(0,0,0,0.05);
    --text-muted: #6b7280; 
    --text-primary: #111827; 
}

body.dark-mode {
    --bg-color: #000;
    --text-color: #fff;
    --text-color-rgba: 255,255,255;
    --page-header-bg: #111;
    --card-bg: #222;
    --pill-bg: #222;
    --border-color:#222;
    --link-color: #1e90ff;
    --header-bg: 0, 0, 0;
    --footer-bg: #1a1a1a;
    --shadow: rgba(0,0,0,0.3);
    --text-muted: #9ca3af; 
    --text-primary: #f9fafb; 
}

/* ----------------------
   Body & Global
---------------------- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.site-header {
    color: var(--text-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    outline: none !important;
    cursor: pointer;
}

.site-header .logo a {
    color: var(--text-color);
    text-decoration: none;
}

/* ----------------------
   Container & Layout
---------------------- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----------------------
   Cards & Sections (Framer style)
---------------------- */
.card, .product-card, .content-card {
    border-radius: 16px;
}


.brand-card {
    background: transparent;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem;
}

/* ----------------------
   Headers & Typography
---------------------- */
h1, h2, h3, h4, h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; line-height: 1.6; }

/* ----------------------
   Hero Section
---------------------- */
.home-hero {
    padding: 6rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-brand-logos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}
.hero-brand-logos .brand-logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}
.hero-brand-logos .brand-logo img:hover {
    transform: scale(1.1);
}

/* ----------------------
   Grids
---------------------- */
.brand-grid, .product-grid, .grid, .category-grid, .related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

/* ----------------------
   Mega Menu
---------------------- */
.mega-menu {
    color: var(--text-color);
}


/* ----------------------
   Buttons
---------------------- */
.button {
    background-color: var(--link-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.button:hover {
    background-color: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

#primary .btn {
    background-color: var(--link-color);
    color: #fff;
    padding: 1rem 3rem;
    font-size:0.9rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

#primary .btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

#primary .btn.donate-btn {
    color: #fff;
}

/* ----------------------
   Footer
---------------------- */
.site-footer {
    color: var(--text-color);
}

/* ----------------------
   Images
---------------------- */
img { max-width: 100%; height: auto; display: block; }
body.dark-mode img.logo, body.dark-mode img.brand-logo {
    filter: brightness(0.9) invert(1);
    transition: filter 0.4s ease;
}

/* ----------------------
   Transitions & Interactions
---------------------- */
* { transition: all 0.3s ease; }

/* ----------------------
   Responsive Adjustments
---------------------- */
@media(max-width:1024px){
    .container { padding: 0 1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.product-card, .content-card {
    background-color: var(--card-bg);
    color: var(--text-color);
}


/* Apply variables */
.main-navigation ul.menu li a { color: var(--menu-text); }

body:not(.light-mode):not(.dark-mode) {
    color-scheme: light dark;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}




/* ==================================================
   CryptoMerch.io Header & Mega Menu Styling
================================================== */

/* ----------------------
   Reset & Base
---------------------- */
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }

main {
    margin-top:70px;
}

/* ----------------------
   Site Header
---------------------- */
.site-header {
    position: fixed;
    width: 100%;
    background: transparent;
    top: 0;
    z-index: 999;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease-in-out;
}
.site-header:hover {
    border-bottom: 1px solid rgba(var(--text-color-rgba), 0.1);
}

.site-header.on-scroll {
    background: rgba(var(--header-bg), 0.7); 
    color: var(--text-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--text-color-rgba), 0.1);
    transition: background 0.3s ease-in-out;
}

.site-header.on-scroll:hover {
    background: rgba(var(--header-bg), 0.95); 
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 2rem;
}

.site-header .logo {
    height: 36px;
}

.site-header #header_logo {
    fill: var(--text-color);
    height: 36px;
    width: auto;
    max-height: 36px;
}

.site-header .r_side {
    display: flex;
    align-items: center;
}

.header-cta-btn {
    margin-left: 20px;
}

.site-header .cta-link {
    display: inline-block;
    padding:6px 12px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    color: var(--bg-color); 
    background: var(--text-color);
}

/* ----------------------
   Desktop Mega Menu
---------------------- */
#s_overlay {
    content: '';
    background: rgba(var(--header-bg), 0.95); 
    position: fixed;
    top:0;
    left:0;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}
#s_overlay.active {
    content: '';
    opacity: 1;
    visibility: visible;
}

.main-navigation ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.main-navigation ul.menu li {
    position: relative;
}
.main-navigation ul.menu li a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    color: rgba(var(--text-color-rgba), 0.7);
    opacity: 1;
    padding: 1.4rem;
}
.main-navigation ul.menu li a:hover {
    color: var(--text-color);
    opacity: 1;
}

.mega_header {
    position: absolute;
    top: 69px;
    left: 0;
    z-index: 100;
    display: none;
    width: 100%;
    z-index: 100;
    background: rgba(var(--header-bg), 0.85); 
    color: var(--text-color);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease-in-out;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mega_header .mega-menu {
    display: flex;
    width:100%;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
}

.mega_header .container {
    position: relative;
    z-index: 5;
}

.mega_header .mega-menu-columns {
    display: grid;
    gap: 2rem;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.mega_header .mega-menu-column h3 {
    font-size: 0.75rem;
    margin: 0 0 30px 0;
    opacity: 0.4;
    text-transform: uppercase;
}

.mega_header .mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0 -8px;
}

.mega-menu-column ul li {
    margin-bottom: 0.5rem;
}
.mega-menu-column ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s;
    color: var(--text-color);
}

.mega-menu-column ul li.menu_item a {
    padding: 6px 8px;
    color: var(--text-color);
    opacity: 0.7;
}

.mega-menu-column ul li.menu_item a:hover {
    color: var(--text-color);
    opacity: 1;
}

.mega-menu-column ul li a img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s;
}
.mega-menu-column ul li a:hover img {
    transform: scale(1.1);
}
.main-navigation ul.menu li:hover .mega-menu {
    display: flex;
}


#products_mega_menu, #brands_mega_menu {
    display: none;
}

#products_mega_menu.open, #brands_mega_menu.open {
    display: block;
}

/* ===== MOBILE MENU BASE ===== */

#mobile-menu {
    position: fixed;
    inset: 0;
    background: #0d0d0d;
    color: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ===== HEADER ===== */

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}

/* Back button hidden by default */
.mobile-menu-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

/* Show when submenu is active */
.mobile-menu.has-subpanel .mobile-menu-back {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


.mobile-menu-title {
    font-size: 16px;
    font-weight: 600;
}

#mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
}

/* ===== PANELS ===== */

.mobile-menu-panels {
    display: flex;
    width: 200%;
    height: calc(100vh - 56px);
    transition: transform .35s ease;
}

.mobile-menu-panel {
    width: 100%;
    overflow-y: auto;
    padding: 12px 0;
    margin:0;
    list-style: none;
}

.mobile-menu-subpanel.is-active {
    transform: translateX(100%);
}


.mobile-menu-panel::-webkit-scrollbar {
    width: 4px;
}
.mobile-menu-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
}

/* ===== LINKS ===== */

.mobile-menu-panel li {
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#mobile-menu .mobile-menu-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

#mobile-menu .mobile-menu-panel a:hover {
    background: rgba(255,255,255,.06);
}

/* Arrow for parents */
#mobile-menu .menu-item-has-children > a::after {
    content: '›';
    font-size: 1.2rem;
    opacity: .6;
}

/* Hide WP submenus entirely */
.mobile-menu-root .sub-menu {
    display: none !important;
}

/* ===== ACTIVE STATES ===== */

.mobile-menu-panel:not(.is-active) {
    pointer-events: none;
}


/* Hide header wallet on mobile (you already have this) */
@media (max-width: 1024px) {
    .site-header .header-cta-btn {
        display: none;
    }
}

/* Mobile menu wallet bar */
.mobile-menu-wallet-slot {
    position: sticky;
    bottom: 0;
    padding: 16px;
    background: #0d0d0d;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

/* Ensure wallet fills width nicely */
.mobile-menu-wallet-slot .header-cta-btn {
    display: block;
    width: 100%;
    margin:0;
}

.mobile-menu-wallet-slot button {
    width: 100%;
    justify-content: center;
}


#mobile-menu .mobile-menu-wallet-slot .account-dropdown {
    position: absolute;
    bottom: 60px;
    right: 0;
    left: 0;
    top: auto;
    background:#fff;
    color: #111;
}

#mobile-menu .mobile-menu-wallet-slot .account-trigger {
    background-color: #b1ff00;
    color: #111;
}

#mobile-menu .mobile-menu-wallet-slot #connect-wallet-btn {
    background: #2a2a2a;
    color: #fff;
    border: 0px;
}

#mobile-menu .mobile-menu-wallet-slot .account-dropdown a, #mobile-menu .mobile-menu-wallet-slot .account-dropdown button {
    color: #000000;
}

#mobile-menu .mobile-menu-wallet-slot .account-dropdown .account-name {
    border-bottom: 1px solid #ddd;
}

#mobile-menu .mobile-menu-wallet-slot .account-dropdown a:hover, #mobile-menu .mobile-menu-wallet-slot .account-dropdown button:hover {
    background-color: #333;
    color: #fff;
}

/* Optional: spacing from menu */
.mobile-menu-panels {
    padding-bottom: 90px; /* prevent overlap with wallet bar */
}






/* ----------------------
   Responsive Adjustments
---------------------- */
@media (max-width: 1024px) {
    .main-navigation ul.menu { display: none; }
    #mobile-menu-toggle { 
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-color);
        padding: 1rem;
    }
    
    .m_line {
        width:20px;
        height: 2px;
        display: block;
        background: var(--text-color);
    }
}
@media (min-width: 1025px) {
    #mobile-menu-toggle { display: none; }
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(255,255,255,0.08);
}

/* Icon visibility */
.icon-sun { display: none; }
.icon-moon { display: block; }

body.dark-mode .icon-sun { display: block; }
body.dark-mode .icon-moon { display: none; }


.theme-toggle svg {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

body.dark-mode .icon-sun svg {
    transform: rotate(90deg);
}

.icon-moon svg {
    transform: rotate(0deg);
}

.main-navigation .menu > li > a {
    position: relative;
}

.main-navigation .menu > li.is-active > a {
    color: var(--text-color);
}

.main-navigation .menu > li.is-active > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--text-color);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Hover effect */
.main-navigation .menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-navigation .menu > li:hover > a::after {
    transform: scaleX(1);
    transform-origin: left;
}



.top-categories a.category-card {
    padding: 10px 20px;
    background: var(--pill-bg);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
}







/* =========================
   Footer (Framer-inspired)
========================= */

.site-footer {
    color: var(--text-color);
    margin-top: 4rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.footer-brand #footer_logo {
    fill: var(--text-color);
    height: 32px;
    width: auto;
    max-height: 32px;
    margin-bottom: 1rem;
}

.footer-description {
    max-width: 320px;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
}

/* Bottom footer */
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
}

body.dark-mode .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom-inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* Mobile footer accordion */
@media (max-width: 768px) {
    .footer-columns {
        gap: 0rem;
        grid-template-columns: 1fr;
    }

    .footer-column ul {
        padding-top: 8px;
    }

    .footer-column {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 12px 0;
    }
    
    .footer-column:last-child {
        border-bottom: 0px;
    }

    .footer-column h4 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin: 0;
        font-size: 16px;
    }

    .footer-column h4::after {
        content: '›';
        font-size: 20px;
        transition: transform 0.25s ease;
    }

    .footer-column.open h4::after {
        transform: rotate(90deg);
    }

    .footer-column.open ul {
        display: block;
    }
    
    .footer-column ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-column.open ul {
        max-height: 500px;
    }
}



.brand-logo-img svg {
    fill: var(--text-color);
}


.brand-card {
    display: flex;
    flex-direction: column;
}

.brand-card > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.brand-card h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin:0;
    display: none;
}


.brand-logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px; 
}


.brand-logo-img svg {
    max-height: 40px;
    max-width: 100%;

    width: auto;
    height: auto;

    display: block;
}

.brand-logo-img {
    color: var(--text-color);
}

.brand-logo-img svg path {
    fill: currentColor;
}


/* PAGES */
.page-header {
    padding:3rem 0;
    margin-bottom: 3rem;
    background: var(--page-header-bg);
    color: var(--text-color);
}

.page-header h1 {
    color: var(--text-color);
    margin:0;
}

.footer-breadcrumbs {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
    
.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.875rem;
    padding: 0;
    margin: 0 0 1rem 0;
    color: var(--text-muted);
}

.breadcrumb-item {
    list-style: none !important;
}

.breadcrumb-item a, .breadcrumb-item a:visited, .breadcrumb-item a:active {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.breadcrumb-item.current {
    font-weight: 500;
    color: var(--text-primary);
    opacity: 1;
}

.breadcrumb-item a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.breadcrumb-chevron-wrapper {
    display: flex;
    align-items: center;
    color: var(--border-color);
    padding: 0 0.3rem;
}

.breadcrumb-chevron {
    display: block;
    width: 6px;
    height: 10px;
    stroke: currentColor;
}

/* HOME */
.cta-submit {
    padding:6rem 0 0 0;
}

.cta-submit h2 {
    margin:0 0 2rem 0;
}
.cta-wrap {
    text-align: center;
}

.cta-submit a.button {
    background: var(--link-color);
    color: #fff;
}


/* POST TAGS */
#tag-links, #cat-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

#cat-links {
    margin-bottom: 0.8rem;
}

.entry-footer #tag-links .tag, 
.entry-footer #cat-links .cat {
    display: inline-block;
}

.entry-footer #tag-links .tag a, 
.entry-footer #cat-links .cat a {
    padding: 0.6rem 1.2rem;
    display: inline-block;
    background: var(--card-bg);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 0.8rem;
}

.entry-footer #tag-links .tag a:hover, .entry-footer #cat-links .cat a:hover {
    color: var(--bg-color);
    background: var(--text-color);
}


#primary a.post-edit-link {
    color: var(--bg-color);
    background: var(--text-color);
    padding: 0.5rem 3rem;
    display: inline-block;
    margin: 3rem 0 1rem 0;
    border-radius: 10px;
}


@media (max-width: 1024px) {
    .site-header, .header-inner {
        height: 60px;
    }
    
    .header-inner {
        padding: 0rem 1rem;
    }
    
    .site-header .logo {
        order:2;
    }
    
    .site-header .main-navigation {
        order: 1;
    }
    
    .site-header .r_side {
        order:3;
    }
    
    .site-header .header-cta-btn {
        display: none;
    }
    
    main {
        margin-top: 60px;
    }
}

@media (max-width: 640px) {
    .brand-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}


/* SINGLE PAGES */

.s_hero {
    position: relative;
}

.s_hero .entry-header {
    bottom: 0;
    padding:2rem;
    position: absolute;
    width: 100%;
    z-index: 3;
    color: #fff;
}

.s_hero .entry-header h1, .s_hero .entry-header h2, .s_hero .entry-header h1 a, .s_hero .entry-header h2 a {
    color: #fff;
}

.hero-image {
    height: 70vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position:relative;
}

.hero-image:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, black, transparent);
}

.entry-content {
    margin: 3rem 0 0 0;
}
/* Container layout */
.page-with-navbar {
    display: flex;
    gap: 100px; /* wide gap between content and navbar */
    align-items: flex-start;
}

/* Main content 70% */
.content-area {
    width: 100%;
}

.page-with-navbar .content-area {
    width: 70%;
}

/* Navbar 30% */
.page-navbar {
    width: 30%;
    position: sticky;
    top: 120px; /* adjust for header height */
}

.page-navbar .navbar-heading {
    margin: 0 0 25px 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-color);
    opacity: 0.3;
}

.page-with-navbar .content-area h2 {
    margin: 0 0 30px 0;
}

.page-with-navbar .content-area p {
    color: var(--text-color);
    opacity: 0.7;
}
.page-with-navbar .content-area ul {
    margin: 30px 0;
    padding: 0 0 0 40px;
    list-style: square;
}

.page-with-navbar .content-area hr {
    background-color: var(--card-bg);
    border: 0;
    height: 1px;
    margin: 2rem 0;
}

.page-with-navbar .content-area a {
    color: var(--text-color);
    opacity: 1;
}

.page-navbar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-navbar-list li {
    margin-bottom: 1rem;
}

.page-navbar-list li a {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.5;
    font-weight: 500;
    transition: color 0.2s;
}

.page-navbar-list li a:hover, .page-navbar-list a.active {
    color: var(--text-color);
    opacity: 1;
}

.content-area table {
    border-collapse: collapse;
    margin:40px 0;
    text-align: left;
}

.content-area table tr {
    border-bottom: 1px solid var(--card-bg);
}

.content-area table tr:last-child {
    border:0;
}

.content-area table tr td {
    padding:15px 0;
}

nav.navigation.post-navigation {
    padding: 20px;
    margin-top: 3rem;
    border: 1px solid var(--card-bg);
    border-radius: 10px;
}

nav.navigation.post-navigation a, nav.navigation.post-navigation a:visited {
    color: var(--text-color);
}

span.nav-subtitle {
    display: block;
}


.js-infinite-post {
    position: relative;
}

.post-progress {
    position: sticky;
    top: 0px;
    height: 3px;
    background: rgba(0,0,0,0.05);
    z-index: 9999;
}

.post-progress span {
    display: block;
    height: 100%;
    background: #b8ff00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s linear;
}



/* Responsive: stack on mobile */
@media (max-width: 1024px) {
    .page-with-navbar {
        flex-direction: column;
    }
    .content-area,
    .page-navbar {
        width: 100%;
    }
    .page-navbar {
        position: relative;
        top: auto;
        margin-top: 2rem;
    }
}

.avatar .cm-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.cm-avatar,
.initials-avatar {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #bffff2;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    height: 100%;
}

.initials-avatar span {
    font-size: 14px;
    line-height: 1;
}

.review-card-item:nth-child(2) .initials-avatar {
    background: #c1ffbf;
}
.review-card-item:nth-child(3) .initials-avatar {
    background: #fff4bf;
}
.review-card-item:nth-child(4) .initials-avatar {
    background: #eae1ff;
}
.review-card-item:nth-child(5) .initials-avatar {
    background: #ffeef6;
}
.review-card-item:nth-child(6) .initials-avatar {
    background: #ffbfe8;
}
.review-card-item:nth-child(7) .initials-avatar {
    background: #ffdb74;
}
.review-card-item:nth-child(8) .initials-avatar {
    background: #d4ff7c;
}
.review-card-item:nth-child(9) .initials-avatar {
    background: #74f6ff;
}
.review-card-item:nth-child(10) .initials-avatar {
    background: #ddc9ff;
}


/* Socials */
.social-links {
    display: flex;
    flex-direction: row;
    gap:1rem;
}

.social-links .social-link {
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin:0;
    color: currentColor;
}

.social-links .social-link:hover {
    opacity: 1;
}

.social-links .social-link svg {
    display: inline-block;
    width: auto;
    height: 0.8rem;
    margin:0;
}