/*
Theme Name: Neet Theme
Theme URI: https://neetaccounting.com
Author: Neet Accounting
Description: A Material Design 3 theme for Neet Accounting
Version: 5.1
*/

/* ============================================
   M3 DESIGN TOKENS (from m3.material.io)
   ============================================ */

:root {
    /* Primary */
    --md-primary: #6442d6;
    --md-on-primary: #FFFFFF;
    --md-primary-container: #9f86ff;
    --md-on-primary-container: #1e0060;
    
    /* Secondary */
    --md-secondary: #5d5d74;
    --md-on-secondary: #FFFFFF;
    --md-secondary-container: #dcdaf5;
    --md-on-secondary-container: #21182b;
    
    /* Surface */
    --md-surface: #fefbff;
    --md-on-surface: #1c1b1d;
    --md-on-surface-variant: #4d4256;
    --md-surface-0: #fff;
    --md-surface-1: #f8f1f6;
    --md-surface-2: #f2ecee;
    --md-surface-variant: #e8e0e8;
    
    /* Outline */
    --md-outline: #787579;
    --md-outline-variant: #CAC4D0;
    
    /* Utility */
    --md-list-hover: rgb(31 25 35 / 8%);
    --md-list-active: rgb(31 25 35 / 12%);
    
    /* Elevation - only right shadow for submenu */
    --md-elevation-right: 4px 0 8px -2px rgb(0 0 0 / 10%);
    
    /* Typography */
    --md-font: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shape */
    --md-radius-sm: 8px;
    --md-radius-md: 12px;
    --md-radius-lg: 16px;
    --md-radius-xl: 28px;
    --md-radius-full: 9999px;
    
    /* Layout */
    --nav-rail-width: 80px;
    --submenu-width: 200px;
}

/* ============================================
   BASE RESET & DEFAULTS
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--md-font);
    background: var(--md-surface);
    color: var(--md-on-surface);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   MATERIAL SYMBOLS - Global Icon Styles
   ============================================ */

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVIGATION RAIL (Left, full height)
   ============================================ */

.m3-nav-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--nav-rail-width);
    background: var(--md-surface);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding-top: 4px;
}

.admin-bar .m3-nav-rail {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .m3-nav-rail {
        top: 46px;
    }
}

.m3-nav-rail__menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow: visible;
}

.m3-nav-rail__item-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m3-nav-rail__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    padding-top: 12px;
    padding-bottom: 16px;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--md-on-surface-variant);
    font-family: var(--md-font);
    transition: color 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-nav-rail__item:hover {
    color: var(--md-on-surface);
    text-decoration: none;
}

.m3-nav-rail__icon {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 32px;
    border-radius: 16px;
    transition: background-color 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-nav-rail__icon .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 24px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    transition: font-variation-settings 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-nav-rail__item:hover .m3-nav-rail__icon {
    background-color: var(--md-list-hover);
}

/* Active state */
.m3-nav-rail__item.active .m3-nav-rail__icon,
.m3-nav-rail__item.submenu-open .m3-nav-rail__icon {
    background-color: var(--md-secondary-container);
}

.m3-nav-rail__item.active,
.m3-nav-rail__item.submenu-open {
    color: var(--md-on-surface);
}

.m3-nav-rail__item.active .m3-nav-rail__icon .material-symbols-outlined,
.m3-nav-rail__item.submenu-open .m3-nav-rail__icon .material-symbols-outlined {
    color: var(--md-on-secondary-container);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.m3-nav-rail__label {
    /* M3 label-large for navigation */
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 16px;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m3-nav-rail__footer {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

/* ============================================
   SUBMENU PANEL - Full height, same bg as nav
   ============================================ */

.m3-submenu-panel {
    position: fixed;
    left: var(--nav-rail-width);
    top: 0;
    bottom: 0;
    width: var(--submenu-width);
    background: var(--md-surface);
    box-shadow: var(--md-elevation-right);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.15s cubic-bezier(0.2, 0, 0, 1), 
                transform 0.15s cubic-bezier(0.2, 0, 0, 1),
                visibility 0.15s;
    z-index: 999;
    padding: 8px 0;
    overflow-y: auto;
}

.admin-bar .m3-submenu-panel {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .m3-submenu-panel {
        top: 46px;
    }
}

.m3-submenu-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Push content when submenu is open */
body.submenu-open .top-header {
    left: calc(var(--nav-rail-width) + var(--submenu-width));
    transition: left 0.2s ease;
}

body.submenu-open .main-wrapper {
    margin-left: calc(var(--nav-rail-width) + var(--submenu-width));
    transition: margin-left 0.2s ease;
}

.top-header {
    transition: left 0.2s ease;
}

.main-wrapper {
    transition: margin-left 0.2s ease;
}

.m3-submenu-panel__inner {
    padding: 0;
}

/* Overview item - purple background pill */
.m3-submenu-item--overview {
    display: block;
    padding: 10px 16px;
    margin: 4px 12px 8px 12px;
    border-radius: var(--md-radius-full);
    background-color: var(--md-primary-container);
    color: var(--md-on-primary-container);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.m3-submenu-item--overview:hover {
    background-color: #8a70f0;
    text-decoration: none;
}

/* Regular submenu items */
.m3-submenu-item {
    display: block;
    padding: 10px 16px;
    margin: 2px 12px;
    border-radius: var(--md-radius-full);
    color: var(--md-on-surface);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.15s ease;
}

.m3-submenu-item:hover {
    background-color: var(--md-list-hover);
    text-decoration: none;
}

.m3-submenu-item.active {
    background-color: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* Expandable items with arrow */
.m3-submenu-item--expandable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 24px);
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--md-font);
}

.m3-submenu-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.m3-submenu-group.expanded .m3-submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu children (third level) */
.m3-submenu-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.m3-submenu-group.expanded .m3-submenu-children {
    max-height: 500px;
}

.m3-submenu-child {
    display: block;
    padding: 8px 16px 8px 28px;
    margin: 2px 12px;
    border-radius: var(--md-radius-full);
    color: var(--md-on-surface-variant);
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.15s ease;
}

.m3-submenu-child:hover {
    background-color: var(--md-list-hover);
    text-decoration: none;
}

.m3-submenu-child.active {
    background-color: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* ============================================
   TOP HEADER (Logo - to right of nav rail)
   ============================================ */

.top-header {
    position: fixed;
    top: 0;
    left: var(--nav-rail-width);
    right: 0;
    height: 56px;
    background: var(--md-surface);
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.admin-bar .top-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .top-header {
        top: 46px;
    }
}

.top-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo--center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-logo--right {
    margin-left: auto;
}

.header-spacer {
    flex: 1;
}

/* Logo vertical alignment options */
.logo-valign-top .site-logo { align-self: flex-start; }
.logo-valign-center .site-logo { align-self: center; }
.logo-valign-bottom .site-logo { align-self: flex-end; }

.site-logo img {
    height: 28px;
    width: auto;
}

.site-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--md-on-surface);
}

/* ============================================
   HORIZONTAL MENU (Right-aligned)
   ============================================ */

.horizontal-menu {
    margin-left: auto;
}

.horizontal-menu__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.horizontal-menu__list li {
    position: relative;
}

.horizontal-menu__list a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--md-on-surface);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--md-radius-full);
    transition: background-color 0.15s ease;
}

.horizontal-menu__list a:hover {
    background-color: var(--md-list-hover);
    text-decoration: none;
}

.horizontal-menu__list .current-menu-item > a,
.horizontal-menu__list .current-menu-ancestor > a {
    background-color: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* Dropdown */
.horizontal-menu__list .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--md-surface);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: var(--md-radius-md);
    padding: 8px 0;
    list-style: none;
    margin: 4px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
}

.horizontal-menu__list li.is-open > .sub-menu,
.horizontal-menu__list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.horizontal-menu__list .sub-menu a {
    padding: 10px 16px;
    border-radius: 0;
}

.horizontal-menu__list .sub-menu a:hover {
    background-color: var(--md-list-hover);
}

/* Horizontal menu layout */
.menu-style-horizontal .m3-nav-rail {
    display: none;
}

.menu-style-horizontal .top-header {
    left: 0;
}

.menu-style-horizontal .main-wrapper {
    margin-left: 0;
}

.top-header--with-menu .top-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   VERTICAL MENU STYLE
   ============================================ */

.m3-nav-rail--vertical {
    width: 240px;
}

.m3-nav-rail--vertical .m3-nav-rail__item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 12px;
    min-height: auto;
    width: auto;
    margin: 2px 12px;
    border-radius: var(--md-radius-full);
}

.m3-nav-rail--vertical .m3-nav-rail__icon {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: none;
}

.m3-nav-rail--vertical .m3-nav-rail__icon .material-symbols-outlined {
    font-size: 22px;
}

.m3-nav-rail--vertical .m3-nav-rail__label {
    font-size: 14px;
}

.m3-nav-rail--vertical .m3-nav-rail__arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--md-on-surface-variant);
}

.m3-nav-rail--vertical .m3-nav-rail__item.active .m3-nav-rail__icon {
    background: none;
}

.m3-nav-rail--vertical .m3-nav-rail__item.active {
    background-color: var(--md-secondary-container);
}

.menu-style-vertical .top-header {
    left: 240px;
}

.menu-style-vertical .main-wrapper {
    margin-left: 240px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    border-radius: var(--md-radius-full);
    cursor: pointer;
    color: var(--md-on-surface-variant);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--md-list-hover);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity 0.25s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .m3-nav-rail {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        z-index: 1200;
        transition: transform 0.25s ease;
        box-shadow: 4px 0 16px rgb(0 0 0 / 15%);
    }
    
    .m3-nav-rail.open {
        transform: translateX(0);
    }
    
    .admin-bar .m3-nav-rail {
        top: 0;
    }
    
    .m3-nav-rail__menu {
        padding-top: 16px;
    }
    
    .m3-nav-rail__item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 8px 16px;
        gap: 12px;
        min-height: 44px;
    }
    
    .m3-nav-rail__icon {
        width: 36px;
        height: 36px;
    }
    
    .m3-nav-rail__label {
        max-width: none;
        font-size: 14px;
    }
    
    .m3-submenu-panel {
        position: static;
        width: 100%;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
    }
    
    .m3-submenu-panel.open {
        max-height: 500px;
        padding: 8px 0;
    }
    
    .top-header {
        left: 0;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
    }
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */

.main-wrapper {
    margin-left: var(--nav-rail-width);
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

.admin-bar .main-wrapper {
    margin-top: calc(56px + 32px);
}

@media (max-width: 782px) {
    .admin-bar .main-wrapper {
        margin-top: calc(56px + 46px);
    }
}

.main-content {
    flex: 1;
    padding: 24px 32px;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--md-on-surface);
    font-weight: 400;
    margin-top: 0;
    line-height: 1.2;
}

h1 { font-size: 36px; margin-bottom: 16px; }
h2 { font-size: 32px; margin-bottom: 12px; }
h3 { font-size: 28px; margin-bottom: 12px; }
h4 { font-size: 24px; margin-bottom: 8px; }
h5 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
h6 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }

p {
    margin: 0 0 16px;
    color: var(--md-on-surface);
}

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

a:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--md-surface-1);
    margin-top: auto;
    padding: 48px 32px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 28px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    line-height: 1.6;
}

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

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-column a:hover {
    color: var(--md-primary);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--md-outline-variant);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--md-on-surface-variant);
    margin: 0;
}

/* ============================================
   TOP BAR (Announcement Bar)
   ============================================ */

.neet-topbar {
    background: var(--md-primary);
    color: var(--md-on-primary);
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.neet-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 8px 24px;
    min-height: 40px;
}

.neet-topbar__social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.neet-topbar__social-link {
    color: inherit;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.neet-topbar__social-link:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.neet-topbar__social-link .material-symbols-outlined {
    font-size: 18px;
}

.neet-topbar__content {
    flex: 1;
    text-align: center;
}

.neet-topbar__text,
.neet-topbar__link {
    color: inherit;
}

.neet-topbar__link {
    text-decoration: none;
    transition: opacity 0.2s;
}

.neet-topbar__link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.neet-topbar__close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.neet-topbar__close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.neet-topbar__close .material-symbols-outlined {
    font-size: 20px;
}

/* Adjust header position when topbar is present */
body:has(.neet-topbar) .top-header {
    top: 40px;
}

body:has(.neet-topbar) .m3-nav-rail {
    top: 40px;
}

body:has(.neet-topbar) .m3-submenu-panel {
    top: 40px;
}

.admin-bar:has(.neet-topbar) .top-header {
    top: 72px;
}

.admin-bar:has(.neet-topbar) .m3-nav-rail {
    top: 72px;
}

.admin-bar:has(.neet-topbar) .m3-submenu-panel {
    top: 72px;
}

@media (max-width: 782px) {
    .admin-bar:has(.neet-topbar) .top-header,
    .admin-bar:has(.neet-topbar) .m3-nav-rail,
    .admin-bar:has(.neet-topbar) .m3-submenu-panel {
        top: 86px;
    }
}

@media (max-width: 600px) {
    .neet-topbar__inner {
        flex-wrap: wrap;
        padding: 8px 16px;
    }
    
    .neet-topbar__social {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* ============================================
   TOGGLE BAR
   ============================================ */

.neet-toggle-bar {
    background: var(--md-surface-variant, #E8E0E8);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.neet-toggle-bar.is-open {
    max-height: 500px;
    opacity: 1;
}

.neet-toggle-bar--overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.neet-toggle-bar--push {
    position: relative;
}

.neet-toggle-bar--fade {
    transition: opacity 0.3s ease;
}

.neet-toggle-bar--fade:not(.is-open) {
    max-height: 0;
}

.neet-toggle-bar--slide {
    transition: max-height 0.3s ease;
}

.neet-toggle-bar__content {
    padding: 24px;
    max-width: var(--md-container-width, 1200px);
    margin: 0 auto;
}

.neet-toggle-bar__content--full {
    max-width: none;
}

.neet-toggle-bar__button {
    position: fixed;
    top: 120px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--md-primary);
    color: var(--md-on-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.neet-toggle-bar__button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.neet-toggle-bar__button .material-symbols-outlined {
    font-size: 24px;
}

body:has(.neet-topbar) .neet-toggle-bar__button {
    top: 160px;
}

.admin-bar .neet-toggle-bar__button {
    top: 152px;
}

.admin-bar:has(.neet-topbar) .neet-toggle-bar__button {
    top: 192px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .m3-nav-rail,
    .top-header,
    .mobile-menu-toggle,
    .site-footer {
        display: none !important;
    }
    
    .main-wrapper {
        margin: 0 !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
}

/* ============================================
   PAGE BUILDER - HIDE TITLE SUPPORT
   ============================================ */

/* When hide-title is enabled, reduce main-content top padding */
body.neet-hide-title .main-content {
    padding-top: 0 !important;
}

/* When hide-title class is applied to article */
.page-content.hide-title,
article.hide-title {
    padding-top: 0 !important;
}

.page-content.hide-title .page-body,
article.hide-title .content,
article.hide-title .page-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any margins/padding from page-body children */
body.neet-hide-title .page-body {
    margin: 0 !important;
    padding: 0 !important;
}

body.neet-hide-title .page-body > * {
    margin-top: 0 !important;
}

/* Target empty p tags that WordPress creates */
body.neet-hide-title .page-body > p:empty,
body.neet-hide-title .page-body > p:first-child:last-child {
    display: none !important;
}

/* Page builder content */
body.neet-hide-title .neet-pb-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================
   PAGE BUILDER ELEMENT STYLING
   Theme-specific spacing and appearance
   ============================================ */

/* Unified spacing system for this theme */
:root {
    --theme-section-gap: 24px;
    --theme-column-gap: 24px;
    --theme-content-padding: 24px;
}

/* Main content wrapper - controls gap between all sections */
.neet-pb-content {
    display: flex;
    flex-direction: column;
    gap: var(--theme-section-gap);
}

/* Remove all individual margins - let parent gap handle spacing */
.neet-pb-section { margin-bottom: 0; }
.neet-pb-section .neet-hero { margin-bottom: 0; }
.neet-pb-section .neet-section-header { margin-bottom: 0; }
.neet-pb-section .neet-flex-row { margin-bottom: 0; }
.neet-pb-section .neet-features { margin-bottom: 0; }
.neet-pb-section .neet-pricing { margin-bottom: 0; }
.neet-pb-section .neet-cta { margin-bottom: 0; }
.neet-pb-section .neet-contact-form { margin-bottom: 0; }
.neet-pb-section .neet-text-block { margin-bottom: 0; }
.neet-pb-section .neet-divider { margin: 0; }

/* Hero element */
.neet-hero {
    gap: var(--theme-column-gap);
    margin-bottom: 0;
}

.neet-hero__content,
.neet-hero__image {
    padding: var(--theme-content-padding);
}

/* Flex row */
.neet-flex-row {
    gap: var(--theme-column-gap);
    padding: 0;
}

/* Nested elements inside flex rows */
.neet-nested-text,
.neet-nested-price,
.neet-nested-cta,
.neet-nested-feature {
    padding: var(--theme-content-padding);
}

/* Section header */
.neet-section-header {
    padding: var(--theme-content-padding);
}

/* Features grid */
.neet-features {
    gap: var(--theme-column-gap);
}

.neet-feature-card {
    padding: var(--theme-content-padding);
}

/* Pricing grid */
.neet-pricing {
    gap: var(--theme-column-gap);
}

.neet-pricing__card {
    padding: var(--theme-content-padding);
}

/* CTA and Contact Form */
.neet-cta,
.neet-contact-form {
    padding: var(--theme-content-padding);
}