/*
Theme Name: PerformBiz V1
Theme URI: https://performbiz.in
Description: A minimal, high-trust analytics theme for PerformBiz.
Author: Antigravity
Version: 1.0
*/

:root {
    /* Color System - Financial + Trust */
    --bg-primary: #F7F8FA;
    --bg-white: #FFFFFF;
    --text-main: #1A1A1A;
    /* Charcoal */
    --text-muted: #595959;
    --accent-teal: #2A6F75;
    /* Muted Teal for generic actions */
    --accent-blue: #2563EB;
    /* Trust Blue for primary actions */
    --success: #10B981;
    /* Profit */
    --danger: #EF4444;
    /* Loss */
    --border-light: #E5E7EB;

    /* Spacing */
    --container-width: 1100px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.text-center {
    text-align: center;
}

.section-pad {
    padding: var(--spacing-lg) 0;
}

/* Typography Scale */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--accent-teal);
    color: white;
}

.btn-outline {
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-main);
}

/* Header */
.site-header {
    background: var(--bg-white);
    padding: 1rem 0;
    /* Reduced from 1.5rem (approx 33% smaller) */
    border-bottom: 1px solid transparent;
    /* Keep it clean */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Optional: adds subtle shadow when sticky */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
    text-decoration: none;
}

/* Minimal Currency Selector */
.currency-selector.minimal select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    padding-right: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: right;
}

.currency-selector.minimal select:hover {
    color: var(--text-main);
}

.currency-selector.minimal select:focus {
    outline: none;
}

/* Nav & Header Actions */
.site-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.primary-menu a:hover {
    color: var(--accent-blue);
}

.currency-selector select {
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.currency-selector select:hover {
    border-color: var(--accent-teal);
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.user-trigger .greeting {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.header-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    display: none;
    z-index: 100;
    margin-top: 0.5rem;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--bg-primary);
}

.dropdown-menu a.text-danger {
    color: #ef4444;
}

.nav-butt.logo a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: color 0.2s;
    margin-right: 0.5rem;
}

.nav-icon-link:hover {
    color: var(--accent-teal);
}

.nav-button {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.nav-button:hover {
    color: var(--accent-blue);
}

/* Mobile Menu Overlay System */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    /* Added to prevent bleed through */
}

.mobile-menu-overlay.active {
    right: 0;
    visibility: visible;
}

.mobile-menu-overlay .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #475569;
}

.mobile-nav-content {
    overflow-y: auto;
    height: 100%;
    margin-top: 1rem;
}

/* Compact User Profile Section (Hamburger) */
.mobile-user-profile-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-user-profile-compact .profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-user-profile-compact .header-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

.mobile-user-profile-compact .user-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-user-profile-compact .greeting {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: capitalize;
}

.mobile-user-profile-compact .logout-link {
    font-size: 0.8rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
}

.mobile-user-profile-compact .profile-quick-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.mobile-user-profile-compact .action-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-user-profile-compact .action-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Footer Callback Form */
.footer-contact-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-callback-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-callback-form input {
    padding: 0.5rem;
    border: 1px solid #334155;
    background: #1e293b;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

.footer-callback-form button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.footer-callback-form button:hover {
    background: #1d4ed8;
}

/* Responsive Visibility */
.desktop-only {
    display: flex !important;
}

.mobile-only-hamburger {
    display: none !important;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only-hamburger {
        display: flex !important;
    }
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.micro-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    opacity: 0.8;
}

/* Insight Preview (2 Col) */
.insight-section {
    background: var(--bg-primary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.insight-card {
    background: var(--bg-white);
    padding: 2px;
    /* Slight border effect */
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
}

.insight-list li {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-main);
}

.insight-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
}

/* Dashboard Hero */
.dashboard-hero-section {
    background: var(--bg-white);
    padding-bottom: 0;
    overflow: hidden;
}

.dashboard-mockup {
    margin-top: var(--spacing-md);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Usage Model (3 Cols) */
.usage-section {
    background: var(--bg-primary);
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.usage-col {
    padding: 2rem;
    text-align: center;
    background: transparent;
}

.usage-col.highlighted {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.usage-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.usage-list {
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.usage-list li {
    list-style: none;
    margin-bottom: 0.5rem;
}

/* Global Footer (Dark SaaS Style) */
.site-footer {
    padding: 5rem 0 2rem;
    background: #0f172a;
    /* Dark Navy */
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-blue);
}

/* Hamburger Menu (WP Managed) */
.consultancy-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consultancy-mobile-list li {
    border-bottom: 1px solid #f1f5f9;
}

.consultancy-mobile-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.consultancy-mobile-list li a:hover {
    color: #2563eb;
}

.consultancy-mobile-list .menu-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #94a3b8;
    padding-left: 10px;
}

.consultancy-mobile-list li.open>a .menu-arrow {
    transform: rotate(180deg);
}

.consultancy-mobile-list .sub-menu {
    list-style: none;
    padding: 0 0 0 1.5rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #f8fafc;
}

.consultancy-mobile-list li.open>.sub-menu {
    max-height: 1000px;
    padding-bottom: 0.5rem;
}

.consultancy-mobile-list .sub-menu li {
    border-bottom: none;
}

.consultancy-mobile-list .sub-menu li a {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
}

.footer-links-bottom {
    display: flex;
    gap: 1.5rem;
}

.footer-links-bottom a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Footer Contact Form */
.footer-contact-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
}

.footer-contact-form textarea {
    height: 80px;
    resize: none;
}

.footer-contact-form button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.footer-contact-form button:hover {
    background: #1e40af;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.6rem, 6vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    p {
        font-size: 1rem;
        max-width: 100%;
    }

    .grid-2,
    .usage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-section {
        padding: clamp(2rem, 8vw, 4rem) 0;
        text-align: center;
    }

    /* Auth card - full width on mobile */
    .auth-card {
        padding: 1.75rem 1.25rem;
    }

    /* Dashboard sidebar - collapse */
    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Prevent table overflow everywhere */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


/* Authentication Styles - Compact & Centered */
.auth-container {
    background-color: var(--bg-primary);
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    background: var(--bg-white);
    padding: 2.5rem 3rem;
    /* More horizontal padding */
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 480px;
    /* Wider card as requested */
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.auth-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.performbiz-form .form-group {
    margin-bottom: 1rem;
}

/* Labels hidden / not used */
.performbiz-form label {
    display: none;
}

.performbiz-form input[type="text"],
.performbiz-form input[type="email"],
.performbiz-form input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    /* Comfortable padding */
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
    background-color: #FAFAFA;
    /* Slight grey background for inputs */
}

.performbiz-form input:focus {
    background-color: #FFFFFF;
}

.performbiz-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-remember {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.auth-switch a {
    color: var(--accent-blue);
    font-weight: 500;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.dashboard-sidebar {
    width: 250px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-nav a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--bg-primary);
    color: var(--accent-blue);
}

.dashboard-main {
    flex-grow: 1;
    margin-left: 250px;
    /* Width of sidebar */
    padding: 2rem;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Dashboard Widgets */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.stat-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* Main Chart Area */
.main-chart-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    min-height: 400px;
    /* Placeholder height */
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.bar {
    width: 40px;
    background: linear-gradient(to top, var(--accent-blue), #60A5FA);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.stats-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card-small {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Full Width Template Overrides --- */
.full-width-content p,
.full-width-content ul,
.full-width-content ol,
.full-width-content blockquote {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.full-width-content ul,
.full-width-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.full-width-content li {
    margin-bottom: 0.5rem;
}

.full-width-content h1,
.full-width-content h2,
.full-width-content h3 {
    text-align: left !important;
    margin-left: 0 !important;
}

/* --- Premium Service & Solution Templates --- */
.premium-service-page {
    background: var(--bg-primary);
    color: var(--text-main);
}

.service-hero {
    background: #0f172a; /* Dark Navy for Trust */
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-headline {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

.hero-subtitle-container p {
    color: #cbd5e1;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.solution-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Premium Content Auto-Styling */
.service-content-wrapper {
    background: transparent;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.premium-dynamic-content {
    background: white;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin: 0 auto;
}

/* Hide first paragraph if it was pulled into hero (Optional, but usually we just let it display or user puts it manually) 
   Actually, the instructions say "The first paragraph becomes the Hero Subtitle". If we want to hide it from the body: */
.premium-dynamic-content > p:first-of-type {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-align: center;
}

.premium-dynamic-content h2 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.premium-dynamic-content h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Convert bullet lists into grids */
.premium-dynamic-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.premium-dynamic-content ul li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    padding-left: 3.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

.premium-dynamic-content ul li:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Custom SVG Checkmark for lists */
.premium-dynamic-content ul li::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Numbered lists - clean styling */
.premium-dynamic-content ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.premium-dynamic-content ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.premium-dynamic-content ol li::marker {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Highlighted Blockquotes */
.premium-dynamic-content blockquote {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    color: #166534;
    font-style: italic;
    font-size: 1.1rem;
}

.premium-dynamic-content blockquote p {
    margin-bottom: 0;
}

/* Global CTA Section */
.service-global-cta {
    background: white;
    padding: 6rem 0;
    border-top: 1px solid var(--border-light);
}

.cta-headline {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.cta-subhead {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-secondary {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.cta-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
}

@media (max-width: 768px) {
    .premium-dynamic-content {
        padding: 2rem 1.5rem;
    }
    .service-hero {
        padding: 4rem 0 3rem;
    }
    .cta-actions {
        flex-direction: column;
    }
    .btn-lg {
        width: 100%;
    }
}

/* ========================================================
   SELLERBOARD-STYLE GRID HERO (SERVICES & SOLUTIONS)
======================================================== */
.sb-service-hero {
    background-color: var(--sb-primary, #0f172a);
    color: white;
    padding: 3.5rem 0;
    overflow: hidden;
    position: relative;
    font-family: var(--font-main);
}

.sb-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sb-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.sb-hero-content .hero-headline {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.sb-hero-content .hero-subline {
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Two-Column Features List Container */
.sb-hero-features {
    margin: 0 0 2rem 0;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.sb-hero-features p {
    font-size: 1.05rem;
    color: #e2e8f0;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.sb-hero-features a {
    color: inherit;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sb-hero-features a:hover {
    color: white;
}

/* Hero Actions */
.sb-hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-accent-fill {
    background: var(--sb-accent, #2563eb);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-accent-fill:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
}

.btn-text-play a,
.btn-text-play.is-style-outline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--sb-accent, #2563eb) !important;
    font-weight: 600;
    font-size: 1.05rem;
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-text-play a:hover,
.btn-text-play.is-style-outline a:hover {
    opacity: 0.8;
    background: transparent !important;
}

/* Hero Graphics */
.sb-hero-graphics {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.graphic-base {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.graphic-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 60%;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.graphic-float-alt {
    position: absolute;
    top: 50px;
    left: -40px;
    width: 45%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    z-index: 2;
    animation: floatAlt 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatAlt {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* ABOUT PAGE HERO */
.sb-about-hero {
    background-color: var(--sb-primary, #0f172a);
    padding: 8rem 0 6rem;
}

.about-perspective-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .sb-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .sb-hero-content .hero-subline {
        margin: 0 auto 2.5rem;
    }
    .sb-hero-features {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .sb-hero-actions {
        justify-content: center;
    }
    .sb-hero-graphics {
        padding: 0 1rem;
    }
    .about-perspective-grid {
        grid-template-columns: 1fr;
    }
}