/* Theme Name: JamisonTheme
Version: 1.3.0
*/

:root {
    --primary: #4169e1;
    --rupee-green: #00ff41;
    --rupee-blue: #00e5ff;
    --rupee-red: #ca0f0f;
    --bg-body: #ffffff;
    --text-main: #404040;
    --text-bold: #111;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --border-pixel: 3px solid var(--text-bold);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    --bg-body: #121212;
    --text-main: #e0e0e0;
    --text-bold: #ffffff;
    --primary: #66aaff;
    --glass-bg: rgba(26, 26, 26, 0.98);
    --border-pixel: 3px solid #444;
}

/* =========================
   Base & Typography
========================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    background: var(--bg-body);
    color: var(--text-main);
    transition: background 0.3s ease;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }

/* =========================
   Header Layout
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--bg-body);
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #0ff, #f0f, #0ff) 1;
    animation: border-shift 3s linear infinite;
}

@keyframes border-shift {
    to { border-image-source: linear-gradient(450deg, #0ff, #f0f, #0ff); }
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Grouping toggle buttons to the right */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 3; 
}

/* =========================
   Logo & Toggles
========================= */
.custom-logo {
    max-width: 160px;
    height: auto;
    display: block;
    image-rendering: auto;
}

.dark-mode .custom-logo { filter: invert(0); }
.custom-logo { filter: invert(1);
}

#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    transition: transform 0.2s ease;
}

#dark-mode-toggle img {
    width: 48px; /* Slightly scaled for better fit */
    height: 48px;
    image-rendering: pixelated;
}

#dark-mode-toggle:hover { transform: scale(1.1) rotate(5deg); }

/* =========================
   Desktop Menu
========================= */
/* Remove all default list markers and spacing */
.nav-list, 
.nav-list ul, 
.nav-list li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Explicitly hide the ::marker pseudo-element for maximum compatibility */
.nav-list li::marker,
.sub-menu li::marker {
    content: none;
    display: none;
}

/* Ensure no extra padding is pushing the rupees */
.nav-list ul {
    padding-left: 0;
    margin-left: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list > li > a {
    color: var(--text-bold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 1rem 0;
}

/* Sprite Icons Integration */
.menu-item-has-children > a::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    display: inline-block;
    vertical-align: middle;
}

.content-menu > a::before { background-image: url('https://ganstapenguin.com/wp-content/uploads/2025/12/aboutsprite.png'); }
.about-menu > a::before { background-image: url('https://ganstapenguin.com/wp-content/uploads/2025/12/herosprite.png'); }

/* =========================
   16-Bit Rupee Dropdowns
========================= */
.nav-list li { position: relative; }

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background: var(--glass-bg);
    border: var(--border-pixel);
    padding: 0.75rem 0;
    min-width: 220px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}

.nav-list li:hover > .sub-menu { display: block; }

.sub-menu li a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* The Rupee Bullet */
.sub-menu li a::before {
    content: '';
    width: 10px;
    height: 16px;
    background: var(--rupee-green);
    margin-right: 15px;
    flex-shrink: 0;
    display: inline-block;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset -3px -3px 0px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.sub-menu li a:hover {
    background: rgba(0, 255, 65, 0.05);
    padding-left: 1.8rem;
}

.sub-menu li a:hover::before {
    background: var(--rupee-blue);
    transform: scale(1.2);
}
.sub-menu .sub-menu li a:hover::before {
    background: var(--rupee-red);
    transform: scale(1.2);
}
/* =========================
   Mobile Hamburger Menu
========================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 4px;
    background: var(--text-bold);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    
    .main-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-body);
        border-bottom: var(--border-pixel);
        padding-bottom: 2rem;
    }

    .main-nav.show { display: block; }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .sub-menu {
        position: static;
        display: block;
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
    }
}

/* =========================
   Hero Section
========================= */
.hero {
    position: relative;
    height: 450px;
    background: url('/wp-content/uploads/2025/12/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    text-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    margin: 0;
}

/*Desktop Navigation & Nesting
========================= */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative; /* Anchor for sub-menus */
}

.nav-list a {
    color: var(--text-bold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* Level 2 Sub-Menu (Drops down) */
.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background: var(--glass-bg);
    border: var(--border-pixel);
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Level 3 Sub-Menu (Pops out to the right) */
.nav-list .sub-menu .sub-menu {
    top: -3px; 
    left: 100%; /* Positions it to the right of Level 2 */
    margin-left: 3px;
}

/* Hover Logic: Show child when parent is hovered */
.nav-list li:hover > .sub-menu {
    display: block;
}

/* Indicator for parent items (Pixel Arrow) */
.menu-item-has-children > a::after {
    content: '▾';
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.6;
}

/* Side arrow for nested sub-menus */
.sub-menu .menu-item-has-children > a::after {
    content: '▶';
    margin-left: auto;
}

/* =========================
   Rupee Bullets for all Sub-items
========================= */
.sub-menu li a {
    padding: 0.7rem 1.25rem;
    text-transform: none;
    font-size: 0.85rem;
}

.sub-menu li a::before {
    content: '';
    width: 10px;
    height: 14px;
    background: var(--rupee-green);
    margin-right: 12px;
    flex-shrink: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition);
}

.sub-menu li a:hover {
    background: rgba(0, 255, 65, 0.05);
}

.sub-menu li a:hover::before {
    background: var(--rupee-blue);
    transform: scale(1.2);
}

/* =========================
   Mobile Fixes (Accordion Style)
========================= */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-bold);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-body);
        border-bottom: var(--border-pixel);
    }

    .main-nav.show { display: block; }

    .nav-list {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
    }

    .nav-list .sub-menu {
        position: static;
        display: block; /* Show all on mobile for simplicity */
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        background: transparent;
    }
    
    .nav-list .sub-menu .sub-menu {
        padding-left: 1.5rem;
    }
}

.page .entry-content {
    max-width:1200px;
    margin:auto;
    padding:15px;
    }