﻿        :root { 
            --apc-light-blue: #E6F0FA; 
            --apc-light-green: #E8F5E9; 
            --apc-white: #FFFFFF; 
            --apc-red: #DC3545; 
            --apc-green: #008753; 
            --apc-dark-green: #005a38; 
            --apc-blue: #0047AB;
            --apc-gold: #FFD700;
            --apc-gray: #6c757d;
            --theme-primary: #1a2c3e;
            --theme-accent: #c99c2c;
        }
        body { 
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
            font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif; 
            overflow-x: hidden;
            font-size: 1.05rem;
        }
        h1 { font-size: 2.5rem; }
        h2 { font-size: 2rem; }
        h3 { font-size: 1.75rem; }
        h4 { font-size: 1.5rem; }
        h5 { font-size: 1.25rem; }
        .btn, .form-control, .form-select, .table {
            font-size: 1rem;
        }
        .navbar-brand {
            font-size: 1.6rem;
        }
        .nav-link {
            font-size: 1.1rem;
        }
        .stat-card .counter {
            font-size: 3rem;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        @keyframes softGlow {
            0% { box-shadow: 0 0 0 0 rgba(0,135,83,0.2); }
            70% { box-shadow: 0 0 0 15px rgba(0,135,83,0); }
            100% { box-shadow: 0 0 0 0 rgba(0,135,83,0); }
        }
        .animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
        .animate-slideInLeft { animation: slideInLeft 0.8s ease forwards; }
        .animate-slideInRight { animation: slideInRight 0.8s ease forwards; }
        .float-animation { animation: float 3s ease-in-out infinite; }
        
        .navbar { 
            background: linear-gradient(135deg, var(--apc-green), var(--apc-dark-green)) !important;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            transition: all 0.3s;
            padding: 0.8rem 0;
        }
        .navbar-brand img {
            height: 50px;
            margin-right: 10px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        }
        .nav-link {
            font-weight: 500;
            transition: all 0.3s;
            position: relative;
            margin: 0 5px;
        }
        .nav-link:hover, .nav-link.active {
            color: var(--apc-gold) !important;
            transform: translateY(-2px);
        }
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--apc-gold);
            transition: all 0.3s;
            transform: translateX(-50%);
        }
        .nav-link:hover::after, .nav-link.active::after {
            width: 70%;
        }
        
        .hero-slider {
            position: relative;
            height: 85vh;
            min-height: 650px;
            overflow: hidden;
            border-radius: 0 0 50px 50px;
            margin-bottom: 3rem;
        }
        .carousel-item {
            height: 85vh;
            min-height: 650px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .carousel-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0,135,83,0.85), rgba(0,71,171,0.85));
            z-index: 1;
        }
        .carousel-caption {
            z-index: 2;
            bottom: 20%;
            animation: fadeInUp 1s ease;
        }
        .carousel-caption h1 {
            font-size: 4.5rem;
            font-weight: 800;
            text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
        }
        .carousel-caption p {
            font-size: 1.6rem;
            font-weight: 500;
        }
        @media (max-width: 768px) {
            .carousel-caption h1 { font-size: 2.5rem; }
            .hero-slider, .carousel-item { height: 60vh; min-height: 450px; }
        }
        
        .stat-card {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(5px);
            border-radius: 30px;
            box-shadow: 0 20px 35px rgba(0,0,0,0.1);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            border: none;
            overflow: hidden;
            position: relative;
            padding: 2rem;
        }
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: linear-gradient(90deg, var(--apc-green), var(--apc-blue), var(--apc-gold));
        }
        .stat-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 30px 50px rgba(0,0,0,0.15);
        }
        .stat-card i {
            font-size: 3.5rem;
            margin-bottom: 15px;
            background: linear-gradient(135deg, var(--apc-green), var(--apc-blue));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .counter {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--apc-green);
            margin: 15px 0;
        }
        
        .profile-card {
            background: rgba(255,255,255,0.96);
            backdrop-filter: blur(12px);
            border-radius: 40px;
            box-shadow: 0 25px 45px rgba(0,0,0,0.1);
            transition: all 0.4s;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.4);
            position: relative;
            z-index: 1;
            padding: 2.5rem;
        }
        .profile-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0,135,83,0.08), transparent);
            transition: all 0.5s;
            z-index: -1;
        }
        .profile-card:hover::before {
            transform: scale(1.2);
        }
        .profile-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 35px 60px rgba(0,0,0,0.2);
        }
        .profile-card img {
            border: 5px solid var(--apc-gold);
            transition: transform 0.4s;
            width: 200px;
            height: 200px;
            object-fit: cover;
        }
        .profile-card:hover img {
            transform: scale(1.05);
        }
        
        .leader-card {
            background: linear-gradient(135deg, #ffffff, #f8f9fa);
            border-radius: 28px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.08);
            transition: all 0.4s;
            overflow: hidden;
            position: relative;
            padding: 0;
        }
        .leader-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--apc-green), var(--apc-gold), var(--apc-blue));
            transform: scaleX(0);
            transition: transform 0.4s;
        }
        .leader-card:hover::after {
            transform: scaleX(1);
        }
        .leader-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 30px 45px rgba(0,0,0,0.12);
        }
        
        .leadership-bg {
            background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
            position: relative;
            overflow: hidden;
            padding: 4rem 0;
        }
        .leadership-bg::before {
            content: "âš¡";
            font-size: 450px;
            position: absolute;
            bottom: -150px;
            right: -150px;
            opacity: 0.03;
            pointer-events: none;
            animation: float 12s ease-in-out infinite;
        }
        .executive-card {
            background: linear-gradient(145deg, #ffffff, #f0f2f5);
            border-left: 8px solid var(--apc-green);
            transition: all 0.3s;
            padding: 1.5rem;
            border-radius: 20px;
        }
        .executive-card:hover {
            transform: translateX(10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        
        .sponsor-section {
            background: linear-gradient(135deg, var(--apc-light-green), var(--apc-light-blue));
            border-left: 10px solid var(--apc-red);
            border-radius: 30px;
            padding: 3rem;
            margin: 3rem 0;
        }
        
        .btn-apc {
            background: linear-gradient(135deg, var(--apc-green), var(--apc-dark-green));
            border: none;
            color: white;
            padding: 14px 36px;
            border-radius: 60px;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 5px 12px rgba(0,0,0,0.1);
            font-size: 1.05rem;
        }
        .btn-apc:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,135,83,0.4);
            color: white;
        }
        .btn-outline-apc {
            border: 2px solid var(--apc-green);
            color: var(--apc-green);
            background: transparent;
            border-radius: 60px;
            padding: 12px 32px;
            font-weight: 600;
            transition: all 0.3s;
        }
        .btn-outline-apc:hover {
            background: var(--apc-green);
            color: white;
            transform: translateY(-2px);
        }
        
        .nav-tabs .nav-link {
            border: none;
            font-weight: 600;
            color: var(--apc-gray);
            padding: 14px 32px;
            border-radius: 50px;
            margin-right: 15px;
            transition: all 0.3s;
            font-size: 1rem;
        }
        .nav-tabs .nav-link.active {
            background: linear-gradient(135deg, var(--apc-green), var(--apc-dark-green));
            color: white;
            box-shadow: 0 6px 18px rgba(0,135,83,0.3);
        }
        .nav-tabs .nav-link:hover:not(.active) {
            background: #e9ecef;
            color: var(--apc-green);
            transform: translateY(-2px);
        }
        
        .accordion-button:not(.collapsed) {
            background: linear-gradient(135deg, var(--apc-green), var(--apc-dark-green));
            color: white;
        }
        .accordion-button:focus {
            box-shadow: none;
            border-color: var(--apc-green);
        }
        
        .table-hover tbody tr:hover {
            background-color: rgba(0,135,83,0.05);
            transition: all 0.2s;
        }
        
        footer {
            background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
            color: #ccc;
            border-top: 6px solid var(--apc-green);
        }
        footer a {
            color: #ddd;
            transition: all 0.3s;
            text-decoration: none;
        }
        footer a:hover {
            color: var(--apc-gold);
            transform: translateX(5px);
            display: inline-block;
        }
        footer img {
            height: 65px;
            margin-bottom: 15px;
        }
        
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--apc-green), var(--apc-dark-green));
            color: white;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 99;
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
            transition: all 0.3s;
            font-size: 1.8rem;
        }
        .scroll-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 28px rgba(0,135,83,0.5);
        }
        
        .sidebar .nav-link {
            color: var(--apc-gray);
            border-radius: 15px;
            margin-bottom: 8px;
            transition: all 0.3s;
        }
        .sidebar .nav-link.active {
            background: linear-gradient(135deg, var(--apc-green), var(--apc-dark-green));
            color: white;
        }
        .sidebar .nav-link:hover:not(.active) {
            background: #e9ecef;
            color: var(--apc-green);
            transform: translateX(5px);
        }
        
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        .official-card {
            border-radius: 28px;
            overflow: hidden;
            transition: all 0.4s;
            border: none;
            box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        }
        .official-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 30px 40px rgba(0,0,0,0.15);
        }
        .official-img {
            height: 300px;
            object-fit: cover;
            transition: transform 0.5s;
        }
        .official-card:hover .official-img {
            transform: scale(1.05);
        }
        
        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            transition: all 0.3s;
            color: white;
            font-size: 1.5rem;
        }
        .social-icon:hover {
            background: var(--apc-gold);
            color: var(--apc-dark-green);
            transform: translateY(-3px);
        }
        
        .loader {
            display: inline-block;
            width: 24px;
            height: 24px;
            border: 3px solid rgba(0,0,0,0.1);
            border-radius: 50%;
            border-top-color: var(--apc-green);
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .stats-grid {
            background: linear-gradient(135deg, #f8f9fa, #ffffff);
            border-radius: 40px;
            padding: 2.5rem;
            margin: 2.5rem 0;
            box-shadow: 0 15px 35px rgba(0,0,0,0.05);
        }
        
        .governor-card {
            background: linear-gradient(135deg, var(--apc-green), var(--apc-dark-green));
            color: white;
            border-radius: 35px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            transition: all 0.4s;
        }
        .governor-card:hover {
            transform: scale(1.02);
            box-shadow: 0 25px 50px rgba(0,0,0,0.3);
        }
        .governor-card img {
            border: 6px solid var(--apc-gold);
            transition: transform 0.4s;
        }
        .governor-card:hover img {
            transform: scale(1.05);
        }
        
        .section-header {
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 2.5rem;
            position: relative;
            display: inline-block;
        }
        .section-header:after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 0;
            width: 70%;
            height: 5px;
            background: linear-gradient(90deg, var(--apc-green), var(--apc-gold));
            border-radius: 3px;
        }
        .lga-card {
            background: white;
            border-radius: 20px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 6px 18px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border-left: 6px solid var(--apc-green);
        }
        .lga-card:hover {
            transform: translateX(8px);
            box-shadow: 0 12px 28px rgba(0,0,0,0.12);
        }
        
        .achievement-timeline {
            position: relative;
            padding-left: 30px;
        }
        .achievement-timeline::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, var(--apc-green), var(--apc-gold));
        }
        .timeline-item {
            position: relative;
            margin-bottom: 25px;
            padding-left: 25px;
        }
        .timeline-item::before {
            content: 'âœ“';
            position: absolute;
            left: -18px;
            top: 0;
            width: 30px;
            height: 30px;
            background: var(--apc-green);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
        }
        /* Leadership Manager specific styles */
        .leadership-module-sidebar { background: #0f1c2d; border-radius: 1rem; padding: 1rem; }
        .leadership-module-btn { background: transparent; border: none; color: #ccc; padding: 0.75rem 1rem; text-align: left; width: 100%; border-radius: 0.5rem; margin-bottom: 0.25rem; cursor: pointer; }
        .leadership-module-btn.active { background: #1e3f5c; color: white; }
        .profile-img-lg { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 3px solid var(--apc-gold); }
        .img-preview-wrap { position: relative; display: inline-block; margin: 0.25rem; }
        .btn-remove-img { position: absolute; top: -8px; right: -8px; background: red; color: white; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; text-align: center; cursor: pointer; }
        .achievement-img-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
        .achievement-img-grid img { width:100%; height:180px; object-fit:cover; border-radius:8px; transition:transform 0.25s; }
        .achievement-img-grid img:hover { transform:scale(1.04); }

        /* President â€” grand imperial style: 2-col wide images, gold border */
        .ach-style-president .achievement-img-grid { grid-template-columns: repeat(2,1fr); gap:14px; }
        .ach-style-president .achievement-img-grid img { height:250px; border-radius:12px; box-shadow:0 6px 20px rgba(201,156,44,0.35); }
        .ach-style-president .card-custom { border:2px solid #c99c2c !important; box-shadow:0 10px 35px rgba(201,156,44,0.25) !important; }
        .ach-style-president .card-body h5 { color:#8a6a00; font-size:1.25rem; border-bottom:2px solid #c99c2c; padding-bottom:8px; }

        /* Governor â€” state-level prestige: 2-col wide images, green accent */
        .ach-style-governor .achievement-img-grid { grid-template-columns: repeat(2,1fr); gap:12px; }
        .ach-style-governor .achievement-img-grid img { height:220px; border-radius:10px; box-shadow:0 4px 14px rgba(0,135,83,0.3); }
        .ach-style-governor .card-custom { border:2px solid #008753 !important; box-shadow:0 8px 28px rgba(0,135,83,0.2) !important; }
        .ach-style-governor .card-body h5 { color:#005a38; font-size:1.15rem; }

        /* Senator â€” 3-col, purple left stripe */
        .ach-style-senate .achievement-img-grid { grid-template-columns: repeat(3,1fr); gap:8px; }
        .ach-style-senate .achievement-img-grid img { height:160px; border-radius:8px; }
        .ach-style-senate .card-custom { border-left:6px solid #6a1b9a !important; box-shadow:0 5px 18px rgba(106,27,154,0.15) !important; }
        .ach-style-senate .card-body h5 { color:#6a1b9a; }

        /* House of Reps â€” 3-col, teal accent */
        .ach-style-houseOfReps .achievement-img-grid { grid-template-columns: repeat(3,1fr); gap:8px; }
        .ach-style-houseOfReps .achievement-img-grid img { height:150px; border-radius:8px; }
        .ach-style-houseOfReps .card-custom { border-left:6px solid #00695c !important; box-shadow:0 4px 14px rgba(0,105,92,0.15) !important; }
        .ach-style-houseOfReps .card-body h5 { color:#004d40; }

        /* House of Assembly â€” 3-col, orange accent */
        .ach-style-houseOfAssembly .achievement-img-grid { grid-template-columns: repeat(3,1fr); gap:6px; }
        .ach-style-houseOfAssembly .achievement-img-grid img { height:140px; border-radius:7px; }
        .ach-style-houseOfAssembly .card-custom { border-left:5px solid #ef6c00 !important; box-shadow:0 4px 12px rgba(239,108,0,0.15) !important; }
        .ach-style-houseOfAssembly .card-body h5 { color:#bf360c; }

        /* LGA Chairman â€” 2-col, earthy brown */
        .ach-style-lga .achievement-img-grid { grid-template-columns: repeat(2,1fr); gap:6px; }
        .ach-style-lga .achievement-img-grid img { height:130px; border-radius:7px; }
        .ach-style-lga .card-custom { border-left:5px solid #5d4037 !important; box-shadow:0 3px 10px rgba(93,64,55,0.15) !important; }
        .ach-style-lga .card-body h5 { color:#4e342e; }

        /* Candidate card on homepage */
        .candidate-hp-card:hover { transform:translateY(-6px); transition:transform 0.3s; }
        .candidate-social-link:hover { opacity:0.75; }
        
        /* NEW STYLES FOR IMPROVED PARTY EXECUTIVES DISPLAY */
        .executive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 1rem;
        }
        .executive-card-custom {
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transition: transform 0.2s, box-shadow 0.2s;
            text-align: center;
            padding: 1.2rem;
        }
        .executive-card-custom:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.12);
        }
        .executive-img {
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1rem;
            border: 3px solid var(--apc-green);
        }
        .executive-card-custom h5 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
            color: #1e3a5f;
        }
        .executive-card-custom p {
            font-size: 0.9rem;
            color: #6c757d;
            margin-bottom: 0;
        }
        .executive-zone-title {
            margin-top: 2rem;
            margin-bottom: 1rem;
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--apc-dark-green);
            border-left: 5px solid var(--apc-gold);
            padding-left: 1rem;
        }
        
        /* Admin search filter styles */
        .admin-search-filter {
            margin-bottom: 1rem;
            max-width: 300px;
        }
        .admin-table-wrapper {
            overflow-x: auto;
        }
        @media (max-width: 768px) {
            .executive-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            }
            body {
                font-size: 1rem;
            }
        }
        /* System B custom styles */
        .role-edit-btn { background: none; border: none; color: #aaa; cursor: pointer; margin-left: auto; padding: 0 8px; }
        .role-edit-btn:hover { color: #fff; }
        .custom-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; background: #1a2c3e; color: #fff; padding: 0.8rem 1.6rem; border-radius: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3); font-weight: 500; }
        .badge-soft { background: #e9ecef; color: #333; padding: 0.3rem 0.6rem; border-radius: 2rem; font-size: 0.75rem; }
        .empty-state { padding: 3rem; text-align: center; background: #f8f9fa; border-radius: 1rem; }
        .achievement-text-card { border-left: 5px solid var(--theme-accent); background: #fafbfc; border-radius: 0.9rem; padding: 1.2rem 1.5rem; margin-bottom: 1rem; }
        .stats-mini-card { background: white; border-radius: 1.2rem; padding: 0.8rem 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-left: 4px solid var(--theme-accent); }
        .stats-mini-card .stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
        .stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
        .card-custom { background: white; border: none; border-radius: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
        .section-label { font-size: 1.2rem; font-weight: 600; }
        #dynamicLeadershipContent .nav-tabs .nav-link { background: transparent; border: none; padding: 0.5rem 1rem; }
        #dynamicLeadershipContent .nav-tabs .nav-link.active { background: var(--theme-accent); color: white; border-radius: 2rem; }
