:root {
    /* Base Variables (Light Mode Default) */
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --accent-color: #d9534f;
    --white: #ffffff;
    --font-family: 'Inter', sans-serif;
    --container-width: 1100px;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* Semantic Colors */
    --bg-body: var(--secondary-color);
    --bg-card: var(--white);
    --bg-header: var(--white);
    --bg-hero: var(--white);
    --text-heading: #111;
    --bg-success: #111;
    --bg-success-section: #222;

    /* Input & Form Variables */
    --bg-input: #ffffff;
    --bg-info-box: #eef6f8;
}

/* Light Mode Specific Overrides for Success Section */
body:not(.dark-mode) {
    --bg-success-section: #ffffff;
    --text-success-heading: #111;
    --bg-success-card: #f8f9fa;
    --text-success-card: #333;
}

/* Dark Mode Variables */
body.dark-mode {
    --secondary-color: #121212;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --white: #1e1e1e;

    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-header: #1a1a1a;
    --bg-hero: #1a1a1a;
    --text-heading: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

    --bg-success-section: #1a1a1a;
    --text-success-heading: #fff;
    --bg-success-card: #2b2b2b;
    --text-success-card: #e0e0e0;

    --bg-input: #2b2b2b;
    --bg-info-box: rgba(0, 158, 227, 0.15);
    /* Translucent Blue */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: #003d80;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.main-header nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-header nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-danger {
    background-color: var(--white);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    --foreground-color: #ffffff;
    --border-color: #333;
    background-color: #fff5f5;
    border-color: var(--accent-color);
}

body.dark-mode .site-logo-svg .logo-path {
    stroke: #ffffff !important;
}

body.dark-mode .site-logo-svg .logo-fill {
    fill: #ffffff !important;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Homepage Hero (Redesigned) */
.header-section {
    background-color: var(--bg-header);
    padding-bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
}

.hero-image-col {
    position: relative;
    height: 100%;
    min-height: 500px;
    position: relative;
}

.hero-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content-col {
    padding: 60px 40px;
    background: var(--bg-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-content-col h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: var(--font-family);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.hero-content-col p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.hero-cta-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.hero-cta-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-hero {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}

/* Success Stories Section (Dynamic Theme) */
.success-section {
    background-color: var(--bg-success-section);
    padding: 60px 0;
    color: var(--text-color);
    text-align: center;
    transition: background-color 0.3s;
}

.success-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.success-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-success-heading);
    font-weight: 700;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.success-card {
    background: var(--bg-success-card);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    text-align: left;
    box-shadow: var(--shadow);
}

.success-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.success-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.success-content {
    padding: 15px;
}

.success-content h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-heading);
}

.success-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Petition Grid */
.petition-section {
    padding: 60px 0;
    background-color: var(--bg-body);
}

.petition-section h2 {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
}

.petition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.petition-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.petition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card-body h3 a {
    color: var(--text-heading);
}

.card-body .summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.progress-bar-container {
    background: var(--border-color);
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    background: var(--primary-color);
    height: 100%;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    height: 100px;
}

/* Auth Container */
.auth-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Dashboard Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 400px 550px;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:last-child {
    border-bottom: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
}

.dashboard-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    color: var(--text-heading);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--secondary-color);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About Page */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin: 80px 0;
}

.mission-item {
    text-align: left;
    padding: 20px;
}

.mission-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.mission-item h3 {
    margin-bottom: 15px;
    color: var(--text-heading);
    font-size: 1.5rem;
}

.values-section {
    background: var(--bg-body);
    padding: 80px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* General Input Styles & Form Redesign */
input,
select,
textarea {
    background: var(--bg-input);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Redesigned Info Box */
.info-box {
    background-color: var(--bg-info-box);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Rich Text Toolbar */
.rich-text-toolbar {
    background: var(--bg-card);
    /* Match card bg */
    border: 1px solid var(--border-color);
    border-bottom: none;
    padding: 10px;
    border-radius: 4px 4px 0 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 3px;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: var(--secondary-color);
}

.rich-text-area {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    min-height: 200px;
    background: var(--bg-input);
    color: var(--text-color);
}

/* File Input Customization */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
}

input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* --- Petition Detail Page Redesign --- */

.petition-tabs {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 60px;
    /* Adjust based on header height */
    z-index: 100;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.tab-list li a {
    display: block;
    padding: 15px 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-list li a:hover,
.tab-list li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-list .badge {
    background: var(--border-color);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.petition-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .petition-grid-layout {
        grid-template-columns: 1fr;
    }
}

.petition-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
    color: var(--text-heading);
}

.highlight-widget {
    background: #009ee3;
    /* Example Highlight Color */
    color: white;
    border: none;
}

.highlight-widget h3 {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}


/* --- Mobile Responsiveness --- */

/* Hamburger Menu Default (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-heading);
}

@media (max-width: 992px) {
    :root {
        --container-width: 100%;
    }

    .main-header .container {
        position: relative;
    }

    .hamburger-menu {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-header .container {
        /* Reset flex direction for header container to keep logo and burger inline */
        flex-direction: row;
        justify-content: space-between;
    }

    .main-header nav ul {
        flex-direction: column;
        align-items: stretch;
        /* Full width links */
        gap: 15px;
    }

    .main-header nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-header nav li:last-child a {
        border-bottom: none;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    /* Mobile Tabs for Dashboard Sidebar */
    .dashboard-sidebar {
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: var(--bg-card);
        margin: -40px -20px 30px -20px !important;
        /* Negative margin to span full width */
        padding: 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 60px;
        /* Below sticky header */
        z-index: 99;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 10px;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }

    .sidebar-nav a {
        border-bottom: 3px solid transparent;
        border-radius: 0;
        padding: 15px 10px;
        flex: 0 0 auto;
        font-size: 0.95rem;
        color: var(--text-muted);
    }

    .sidebar-nav a:last-child {
        border-bottom: 3px solid transparent;
    }

    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        background: none;
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

    .sidebar-nav i {
        display: none;
        /* Hide icons on mobile for cleanliness, or keep if preferred */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Hero Section Mobile */
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image-col {
        height: 300px;
        min-height: 300px;
        order: -1;
        /* Image on top */
    }

    .hero-content-col {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content-col h1 {
        font-size: 2rem;
    }

    .hero-cta-box {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-box form {
        flex-direction: column;
        gap: 10px;
    }

    /* Success Section Mobile */
    .success-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* About Page Mobile */
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .mission-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mission-item,
    .value-item {
        text-align: center;
    }

    .value-item h3 {
        display: inline-block;
        margin: 0 auto 15px auto;
    }

    /* General Form Elements */
    .info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Footer */
    .main-footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-header nav ul {
        gap: 10px;
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-danger,
    .btn-hero {
        width: 100%;
        text-align: center;
    }
}

.highlight-widget p {
    color: white;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    /* Square with slight radius */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
    color: white;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: #888;
}

.link-display {
    display: flex;
    gap: 0;
}

.link-display input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--bg-body);
    font-size: 0.9rem;
}

.link-display button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    padding: 0 15px;
    cursor: pointer;
}

/* Comments Section */
.comment-form textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px;
    background: var(--bg-body);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius);
}

.comments-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-header strong {
    color: var(--text-heading);
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-color);
}

.stats-list li:last-child {
    border-bottom: none;
}

/* --- Professional Form Styling --- */

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #b0b0b0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

/* Add a subtle icon or indicator for focus if desired, 
   but clean inputs are preferred for "professional" look. */

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Enhanced Button for Auth */
.auth-container .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.auth-container {
    max-width: 480px;
    /* Slightly wider for better breathing room */
    padding: 40px;
}

/* Mobile Optimization for Dashboard & Account Pages */
/* Mobile Optimization for Dashboard & Account Pages */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Stack Dashboard Layout */
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    /* Dashboard Header - Fix Overlap */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .dashboard-header .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Sidebar - Full width vertical stack, override "tablet" horizontal scroll */
    .dashboard-sidebar {
        width: 100%;
        margin: 0 0 20px 0 !important;
        /* Override negative margins */
        position: static !important;
        /* Remove sticky if it interferes */
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    /* Sidebar Nav - Force Vertical List */
    .sidebar-nav {
        flex-direction: column !important;
        overflow-x: visible !important;
        white-space: normal !important;
        padding: 0 !important;
        box-shadow: none !important;
        gap: 10px;
    }

    .sidebar-nav a {
        display: block !important;
        width: 100%;
        border-radius: var(--radius) !important;
        border: 1px solid var(--border-color) !important;
        background: var(--bg-card) !important;
        margin-bottom: 0 !important;
        flex: none !important;
        padding: 12px 15px !important;
        text-align: center;
    }

    .sidebar-nav a.active {
        background-color: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color) !important;
    }

    /* Petition Grid - Single Column */
    .petition-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .petition-card .card-body {
        padding: 20px;
    }
}