
        :root {
            /* Theme Colors - Dark Mode (Default) */
            --bg-primary: #0a0a0c;
            --bg-secondary: #141417;
            --bg-accent: #1e1e24;
            --text-main: #f0f0f2;
            --text-muted: #a0a0ab;
            --brand-color: #3b82f6;
            --brand-hover: #60a5fa;
            --border-color: #2e2e35;
            --overlay-color: rgba(0, 0, 0, 0.7);
            
            /* Sizing & Spacing Variables */
            --header-height: 70px;
            --sidebar-width: 280px;
            --container-max: 1200px;
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 16px;
            --space-xs: 0.5rem;
            --space-sm: 1rem;
            --space-md: 2rem;
            --space-lg: 4rem;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
            --dashboard-chart-height: 120px;
            
            /* Transitions */
            --transition-speed: 0.3s;
        }

        [data-theme="light"] {
            --bg-primary: #ffffff;
            --bg-secondary: #f4f4f5;
            --bg-accent: #e4e4e7;
            --text-main: #18181b;
            --text-muted: #71717a;
            --brand-color: #2563eb;
            --brand-hover: #1d4ed8;
            --border-color: #e4e4e7;
            --overlay-color: rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
        }


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .unselectable {
            user-select: none;       /* Standard */
            -webkit-user-select: none; /* Chrome, Safari */
            -moz-user-select: none;    /* Firefox */
            -ms-user-select: none;     /* IE/Edge */
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            transition: background-color var(--transition-speed);
        }


        a{
            color: var(--brand-color);
            font-weight:600;
        }

        /* --- TITLE BAR */
        .title-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--header-height);
            background-color: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 var(--space-md);
            z-index: 1000 !important;
            box-shadow: var(--shadow-sm);
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: calc(var(--space-md) / 2);
        }

        .logo-wrap {
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--brand-color);
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .title-logo-img {
            height: 48px; 
            display: block;
        }

        .title-logo-img-text {
            max-width: 250px; 
            height: auto;
            display: block;
        }


        .header-right {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }

        /* DARK MODE TOGGLE */
        .theme-switch {
            width: 44px;
            height: 22px;
            background: var(--bg-accent);
            border-radius: 50px;
            position: relative;
            cursor: pointer;
            border: 1px solid var(--border-color);
        }

        .theme-switch::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            background: var(--brand-color);
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: var(--transition-speed);
        }

        [data-theme="light"] .theme-switch::after {
            left: 26px;
        }

        .menu-btn {
            background: none;
            border: none;
            color: var(--text-main);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            order: -1;
        }



        /* --- SIDEBAR NAV & OVERLAY */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: calc(100% - 0px);
            height: 100%;
            background: var(--overlay-color);
            backdrop-filter: blur(4px);
            z-index: 998 !important; 
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-speed);
            pointer-events: none;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .sidebar {
            position: fixed;
            top: var(--header-height);
            left: calc(var(--sidebar-width) * -1) !important;
            width: var(--sidebar-width);
            height: calc(100% - var(--header-height));
            background: var(--bg-secondary);
            z-index: 999 !important; 
            transition: var(--transition-speed);
            padding: var(--space-md) 0;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-lg);
            overflow-y: auto;
        }

        .sidebar.active {
            left: 0 !important;
        }

        .sidebar-menu {
            list-style: none;
        }

        .sidebar-menu li {
            padding: 12px 24px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 500;
            transition: 0.2s;
            color: var(--text-muted);
            border-left: 4px solid transparent;
        }

        .sidebar-menu li:hover, .sidebar-menu li.active {
            color: var(--brand-color);
            background: var(--bg-accent);
            border-left-color: var(--brand-color);
        }

        /* --- CONTENT WRAPPER */
        .main-content {
            margin-top: var(--header-height);
            min-height: calc(100vh - var(--header-height));
            width: 100%;
            max-width: var(--container-max);
            margin-left: auto;
            margin-right: auto;
            padding: var(--space-md);
            z-index: 1;
        }

        .section-page {
            display: none;
            animation: fadeIn 0.4s ease-out;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--space-md);
            box-sizing: border-box;
        }

        .section-page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .nav-item {
            padding: 0; /* Remove padding from the LI so the A can fill it */
            list-style: none;
        }

        .nav-url-link {
            display: block;    /* Makes the link a block element */
            width: 100%;       /* Fills the width of the sidebar */
            padding: 4px 8px; /* Move the padding here instead of the LI */
            text-decoration: none;
            color: var(--text-muted);
        }

        .nav-url-link:hover {
            background-color: var(--hover-bg-color); /* Add your hover effect here */
        }




        /* --- CAROUSELS */
        .carousel-content {
            max-width: 700px;
            animation: fadeIn 0.8s ease-out;
        }

        .dashboard-carousel-style {
            min-height: 300px; 
            height: 380px;
            background: linear-gradient(45deg, var(--bg-accent), var(--brand-color));
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: var(--space-md);
            margin-bottom: var(--space-md);
            color: white;
            border: 1px solid var(--border-color);
            overflow: hidden;
        }
        
        .articles-carousel-style {
            height: 380px;
            background: linear-gradient(45deg, var(--bg-accent), var(--brand-color));
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: var(--space-md);
            margin-bottom: calc(var(--space-md) * 3);
            color: white;
        }




        /* --- DASHBOARD */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: var(--space-sm);
        }

        .dashboard-row-wrap {
            width:100%;
            margin-top: calc(var(--space-md) * 2);
            display: flex; 
            justify-content: center; 
            align-items: center;
        }

        .dashboard-row-wrap-subscribe{
            width:700px;
            padding:0px;
            /*display: flex;*/
            justify-content: center;
            align-items: center;
        }

        .dashboard-subscribe-btn{
            width:50%;
            background: var(--brand-color);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 600;
            transition: background 0.2s;
        }

        .card {
            background: var(--bg-secondary);
            padding: var(--space-md);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
        }

        .stat-val { font-size: 2rem; font-weight: 800; color: var(--brand-color); }
        .chart-box { height: 150px; background: var(--bg-accent); margin-top: 1rem; border-radius: 4px; display: flex; align-items: flex-end; padding: 10px; gap: 5px; }
        .bar { flex: 1; background: var(--brand-color); opacity: 0.6; }


        .dashboard-grid .card {
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .dashboard-grid .card:hover {
            transform: translateY(-5px);
            border-color: var(--brand-color);
        }

        .article-card:hover {
            border-color: var(--brand-color);
            background: var(--bg-accent);
        }

        @keyframes grow {
            from { height: 0%; }
        }

        .bar {
            animation: grow 1s ease-out;
        }

        #portfolio-mini-bar {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            height: var(--dashboard-chart-height);
            margin-top: 20px;
        }

        #portfolio-mini-bar .bar {
            flex: 1;
            background: var(--brand-color);
            border-radius: 2px 2px 0 0;
            transition: height 0.3s ease;
            opacity: 0.7;
        }

        #portfolio-mini-bar .bar:hover {
            opacity: 1;
        }

        .chart-box {
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            height: var(--dashboard-chart-height);
            margin-top: 20px;
            position: relative;
            padding-left: 20px; /* Room for the Y-axis number */
            border-bottom: 1px solid var(--border-color);
        }

        .bar-container {
            flex: 1;
            height: 100%;
        }

        .bar:hover {
            opacity: 1;
            filter: brightness(1.2);
        }

        .label-dashboard{
            width:100%;
            text-align: center;
        }


        /* --- PAGINATION STYLES */
        .pagination-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: var(--space-lg);
            padding-bottom: var(--space-md);
        }

        .pagination-controls button {
            padding: 8px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: var(--transition-speed);
        }

        .pagination-controls button:hover:not(:disabled) {
            background: var(--bg-accent);
            border-color: var(--brand-color);
        }

        .pagination-controls button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        #page-indicator {
            font-weight: 500;
            color: var(--text-muted);
            font-size: 0.9rem;
        }



        /* --- ARTICLES */
        .article-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
        }

        .article-card {
            display: flex;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            overflow: hidden;
            gap: 20px;
        }

        .article-img {
            flex: 0 0 350px;
            background: var(--bg-accent);
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            object-fit: cover;
        }

        .dashboard-article-body {
            padding: var(--space-md);
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-decoration: none;
            color: var(--text-main);
        }

        .toolbar {
            display: flex;
            gap: 10px;
            margin-bottom: var(--space-md);
            flex-wrap: wrap;
        }

        input, select {
            padding: 12px 15px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            border-radius: var(--radius-sm);
            flex: 1;
            min-width: 200px;
            width: 100%;
        }


/* --- High-Readability Article Styles --- */

.article-body {
    max-width: 800px;         /* Keeps text columns readable */
     /* margin: 0 auto;  */
    padding: 2rem 1.5rem;     /* Padding for mobile screens */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
}

.article-content {
    line-height: 1.7;         /* Adds breathing room between lines */
    font-size: 1.15rem;       /* Slightly larger text for reading */
}

/* Fix Squashed Headings */
.article-content h2, 
.article-content h3 {
    margin-top: 2.5rem;       /* Adds significant gap before new sections */
    margin-bottom: 1.2rem;
    color: var(--text-primary); /* Use your existing text color variable */
}

/* Fix Squashed Paragraphs */
.article-content p {
    margin-bottom: 1.6rem;    /* Standard paragraph spacing */
}

/* Fix Overflowing Images (Responsive Fix) */
.article-content img {
    max-width: 100%;          /* Fits the width of the page */
    height: auto;             /* Keeps aspect ratio */
    display: block;
    margin: 2.5rem auto;      /* Centers the image with space around it */
    border-radius: 12px;      /* Matches your logo/card styling */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* Adds a professional depth */
}

/* Fix Lists & Bullet points */
.article-content ul, 
.article-content ol {
    margin-bottom: 1.6rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

/* Fix for Blockquotes (your Executive Summary) */
.article-content blockquote {
    border-left: 4px solid #4a90e2; /* Or your brand blue */
    padding: 1rem 1.5rem;
    background: rgba(74, 144, 226, 0.05);
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.portfolio-cta-box {
    flex-wrap: wrap;
    gap: 15px;
}


        /* --- PORTFOLIO */
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 100%;
        }

        .portfolio-item {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16 / 9; 
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .portfolio-item:hover {
            transform: translateY(-5px);
            border-color: var(--brand-color);
            z-index: 2;
        }

        .portfolio-item:hover .portfolio-overlay {
            background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%);
        }

        .portfolio-overlay {
            position: absolute;
            inset: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            transition: background 0.3s ease;
        }
        
        .portfolio-controls {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: var(--space-md);
            padding-bottom: var(--space-sm);
            border-bottom: 1px solid var(--border-color);
        }

        .portfolio-link-wrapper {
            display: block;
            width: 100%;
            height: 100%;
            text-decoration: none;
        }

        .portfolio-info {
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
            pointer-events: none;
        }

        .featured-project {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-lg);
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin-bottom: var(--space-lg);
            align-items: center;
        }

        .featured-content {
            padding: var(--space-lg);
        }

        .featured-visual img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            min-height: 400px;
        }

        .tag-group {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .tag {
            font-size: 0.7rem;
            padding: 4px 12px;
            background: var(--bg-accent);
            border-radius: 50px;
            color: var(--brand-color);
            border: 1px solid var(--border-color);
            font-weight: 700;
        }

        .filter-btns {
            display: flex;
            gap: 10px;
        }

        .filter-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-weight: 600;
            transition: 0.2s;
            padding: 5px 10px;
        }

        .filter-btn.active, .filter-btn:hover {
            color: var(--brand-color);
        }


        .stack-section {
            margin-top: var(--space-lg);
            padding: var(--space-lg);
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
        }

        .stack-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-md);
            text-align: center;
        }

        .stack-item strong {
            display: block;
            color: var(--brand-color);
            margin-bottom: 5px;
        }

        .search-container input:focus {
            border-color: var(--brand-color);
            outline: none;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
        }

        #clear-filters:hover {
            background: var(--bg-accent);
            color: var(--brand-hover);
            border-color: var(--brand-hover);
        }

        .category-tag {
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--brand-color);
            letter-spacing: 1px;
        }

        .project-title {
            font-size: 1.1rem;
            margin: 2px 0;
        }

        .project-desc {
            font-size: 0.75rem;
            opacity: 0.9;
        }





        /* --- RESOURCES */
        .table-container {
            overflow-x: auto;
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        th, td {
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
        }

        th { background: var(--bg-accent); }





       /* --- CONTACT */
        .center-form-container {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: var(--space-md) 0;
            min-height: 60vh;
        }

        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-lg);
            align-items: start;
            padding: var(--space-md) 0;
        }

        .contact-info h1 {
            font-size: 3rem;
            margin-bottom: var(--space-sm);
            line-height: 1.1;
        }

        .contact-methods {
            margin-top: var(--space-lg);
        }

        .contact-card {
            padding: var(--space-lg) !important;
            box-shadow: var(--shadow-lg);
        }

        .contact-card textarea {
            width: 100%;
            height: 150px;
            background: var(--bg-primary); /* Slightly different from card bg for contrast */
            border: 1px solid var(--border-color);
            color: var(--text-main);
            border-radius: var(--radius-sm);
            padding: 12px;
            font-family: inherit;
            resize: vertical;
        }

        .contact-card input:focus, 
        .contact-card textarea:focus, 
        .contact-card select:focus {
            outline: none;
            border-color: var(--brand-color);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }




        /* --- NEWSLETTER */
        .newsletter-form {
            display: flex;
            gap: 10px;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        .newsletter-form input {
            flex: 1 1 300px;
        }

        .newsletter-form .submit-btn {
            flex: 1 1 300px;
        }

        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); }
        button.submit-btn {
            background: var(--brand-color);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 600;
            transition: background 0.2s;
        }

        button.submit-btn:hover { background: var(--brand-hover); }

        .newsletter-wrapper {
            max-width: 900px;
            margin: 0 auto;
            padding: var(--space-md) 0;
        }

        .newsletter-hero {
            text-align: center;
            padding: var(--space-lg) !important;
            background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
            border: 1px solid var(--border-color);
        }

        .hero-subtext {
            max-width: 600px;
            margin: 0 auto 2rem auto;
            font-size: 1.2rem;
        }

        .tiny-text {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 1rem;
        }

        /* Benefits Grid */
        .newsletter-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-md);
            margin: var(--space-lg) 0;
        }

        .feature-item {
            padding: var(--space-md);
            text-align: left;
        }

        .feature-icon {
            font-size: 1.5rem;
            display: block;
            margin-bottom: 10px;
        }

        /* Archive/Editions Section */
        .edition-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-sm);
        }

        .edition-card {
            background: var(--bg-accent);
            padding: var(--space-md);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            transition: transform 0.2s;
        }

        .edition-card:hover {
            transform: translateY(-5px);
            border-color: var(--brand-color);
        }

        .edition-date {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: var(--brand-color);
            font-weight: 700;
        }

        .read-link {
            display: inline-block;
            margin-top: 15px;
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .method-item {
            display: flex;
            gap: 15px;
            margin-bottom: var(--space-md);
        }

        .method-icon {
            width: 40px;
            height: 40px;
            background: var(--bg-accent);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            border: 1px solid var(--border-color);
        }

        .newsletter-branding {
            height: 48px; 
            opacity: 0.8;
            display: block;
        }

        #embeddedForm-Subscribe-Newsletter{
            display: flex;
            justify-content: center;
        }

        .beehiiv-embed{
            /*display: flex;
            width:100% !important;*/
            min-width:440px; !important;
        }


        /* --- NEW HERO STYLES --- */
        .subscribe-hero-card {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin-bottom: var(--space-lg);
            box-shadow: var(--shadow-lg);
        }

        .hero-image-side {
            position: relative;
            min-height: 300px;
            background: var(--bg-accent);
        }

        .hero-image-side img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .hero-content-side {
            padding: var(--space-md);
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: var(--space-sm);
        }

        .badge {
            display: inline-block;
            padding: 4px 12px;
            background: rgba(59, 130, 246, 0.1);
            color: var(--brand-color);
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
            width: fit-content;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
            
            user-select: none;       /* Standard */
            -webkit-user-select: none; /* Chrome, Safari */
            -moz-user-select: none;    /* Firefox */
            -ms-user-select: none;     /* IE/Edge */
        }

        .text-gradient {
            color: var(--brand-color);
        }

        .hero-content-side h2 {
            font-size: 2.2rem;
            line-height: 1.2;
            font-weight: 800;
        }

        .hero-form {
            margin-top: var(--space-sm);
            width: 100%;
        }

        .input-wrapper {
            display: flex;
            gap: 8px;
            background: var(--bg-primary);
            padding: 6px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            transition: border-color 0.2s;
        }

        .input-wrapper:focus-within {
            border-color: var(--brand-color);
        }

        .hero-input {
            flex: 1;
            background: transparent;
            border: none;
            padding: 10px 15px;
            color: var(--text-main);
            outline: none;
            font-size: 1rem;
            min-width: 0; /* Prevents overflow in flexbox */
        }

        .hero-btn {
            flex-shrink: 0;
            white-space: nowrap;
            border-radius: var(--radius-sm) !important;
        }



        /* --- ABOUT */
        .about-row {
            display: flex;
            align-items: center;
            gap: 60px;
            margin-bottom: var(--space-lg);
            flex-wrap: wrap;
        }

        .about-row.reverse {
            flex-direction: row-reverse;
        }

        .about-image {
            flex: 1;
            min-width: 320px;
            position: relative;
        }

        .about-image img {
            width: 100%;
            height: 450px;
            object-fit: cover;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-lg);
        }

        .about-text {
            flex: 1;
            min-width: 320px;
        }

        .about-text h1 {
            font-size: 3rem;
            margin-bottom: var(--space-sm);
            background: linear-gradient(to right, var(--brand-color), var(--text-main));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .about-text h2 {
            font-size: 2.2rem;
            margin-bottom: var(--space-sm);
            color: var(--text-main);
        }

        .about-text .label {
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 2px;
            color: var(--brand-color);
            font-weight: 700;
            display: block;
            margin-bottom: 10px;
        }

        .about-text p {
            font-size: 1.1rem;
            margin-bottom: 20px;
        }

        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-md);
            margin-top: var(--space-lg);
            padding-top: var(--space-lg);
            border-top: 1px solid var(--border-color);
        }

        .values-grid .card h3 {
            margin-bottom: 10px;
            color: var(--brand-color);
        }



        /* --- FOOTER */
        footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            padding: var(--space-lg) var(--space-md);
            margin-top: var(--space-lg);
        }

        .footer-content {
            max-width: var(--container-max);
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-md);
        }

        .footer-logo { font-weight: 800; color: var(--brand-color); margin-bottom: 1rem; text-transform: uppercase; }
        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 8px; cursor: pointer; color: var(--text-muted); transition: 0.2s; }
        .footer-links li:hover { color: var(--brand-color); }
        
        .footer-logo-img{
            height: 48px; 
            display: block;
            margin-top:-30px;
            margin-bottom:10px;
        }

        .footer-logo-img-text {
            max-width: 200px; 
            height: auto;
            display: block;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        .social-icon {
            width: 32px;
            height: 32px;
            background: var(--bg-accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: 0.2s;
            cursor: pointer;
            
        }
        .social-icon:hover { background: var(--brand-color); color: white; }

        .social-icon a {
            text-decoration: none;
            color: inherit;
        }

        .social-icon a:hover {
            color: white;
        }

        .social-icon-img{
            width:100%;   
            margin-top:6px;
        }

        .sitemap-wrap{
            display: block; /* Ensure the search engines can still see it */
            height:10px;
            visibility: visible; /* Or make sure it is read by spiders */
            position: absolute; /* Positioning it off-screen */
            left: -9999px; /* Offscreen */
            overflow: hidden;
        }


        /* --- ADVERTS */
        .ad-slot {
            min-height: 200px;
            background: linear-gradient(145deg, var(--bg-card), var(--bg-accent));
            display: flex;
            flex-direction: column;
        }

        .ad-placeholder {
            transition: background 0.3s ease;
        }

        .ad-slot:hover .ad-placeholder {
            background: rgba(var(--brand-color-rgb), 0.05);
        }





/* --- MOBILE CSS */
@media (max-width: 768px) {
    
    /* --- TITLEBAR */
    /*.title-logo-img { display: none; }*/

    .header-left {
        gap: calc(var(--space-md) / 4);
    }

    
    
    /* --- SIDEBAR */
    .sidebar {
        left: 0 !important;
        top: auto;
        bottom: -100%;
        width: 100%;
        height: 70%;
        border-radius: 20px 20px 0 0;
    }

    .sidebar.active {
        bottom: 0;
    }
    
    .sidebar-menu li {
        padding: 18px 24px;
        text-align: center;
        border-left: none;
    }

    .sidebar-menu li:hover {
        border-left: none;
        background: var(--bg-accent);
        color: var(--brand-color);
    }

    
    
    /* --- DASHBOARD */
    .dashboard-subscribe-btn{
        width: 100%;
    }
    
        
    .label-dashboard{
        margin-bottom:var(--space-md);
    }
    
    
    /* --- PAGEINATION */
    .pagination-controls {
        gap: 5px;
    }
    
    .pagination-controls button {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    
    
    /* --- ARTCILES */
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    
    .portfolio-cta-box {
        flex-direction: column;
        text-align: center;
    }
    .portfolio-cta-box a {
        width: 100%;
    }
    
    
    /* --- PORTFOLIO */
    .featured-project {
        grid-template-columns: 1fr;
    }
    
    .portfolio-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    
    .portfolio-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    
    .portfolio-item {
        aspect-ratio: 4 / 3; 
        width:100%;
    }
    
    input, select {
        flex: none !important;
    }
    
    
    /* --- NEWSLETTER */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input, 
    .newsletter-form .submit-btn {
        width: 100%;
        flex: none;
    }
    
    .edition-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-hero {
        padding: var(--space-md) !important;
    }
    

    .subscribe-hero-card {
        grid-template-columns: 1fr;
    }

    .hero-image-side {
        height: 250px;
        min-height: auto;
    }

    .hero-content-side {
        padding: var(--space-md);
        text-align: center;
        align-items: center;
    }

    .hero-content-side h2 {
        font-size: 1.75rem;
    }

    .input-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .hero-input {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        margin-bottom: 10px;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
    }

    
    
    /* --- CONTACT */
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-info h1 {
        font-size: 2.2rem;
    }
    
    
    
    /* --- ABOUT */
    .about-row {
        gap: 30px;
        margin-bottom: var(--space-md);
    }
    
    .about-image img {
        height: 300px;
    }

    .about-text h1 {
        font-size: 2.2rem;
    }
    
    
    /* --- ADVERTS */
    .ad-banner-horizontal {
        padding: 10px;
        font-size: 0.8rem;
    }
    
}
