﻿/* ============================================
   CATEGORY PAGE - ENHANCED & RESPONSIVE
   ============================================ */

/* Base Variables */
:root {
    --moif-blue-dark: #0D1B3E;
    --moif-blue: #1A2B4A;
    --moif-gold: #C9A227;
    --moif-gold-bright: #F4D03F;
    --moif-white: #FFFFFF;
}

/* ============================================
   CATEGORY HEADER SECTION - ENHANCED & ATTRACTIVE
   ============================================ */

.category-header-section {
    background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue) 100%);
    padding: 60px 0;
    margin-top: -1px;
    position: relative;
    overflow: hidden;
}

    /* Decorative background pattern */
    .category-header-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(30%, -30%);
    }

    .category-header-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(244, 208, 63, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(-30%, 30%);
    }

    .category-header-section .container {
        position: relative;
        z-index: 2;
    }

/* Header Card Container */
.category-header-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .category-header-card:hover {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

/* Large Icon with Animation */
.category-icon-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(244, 208, 63, 0.2));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.2);
}

    /* Rotating border effect */
    .category-icon-large::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(45deg, var(--moif-gold), var(--moif-gold-bright), var(--moif-gold));
        border-radius: 26px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        animation: rotate 3s linear infinite;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.category-header-card:hover .category-icon-large::before {
    opacity: 0.5;
}

.category-header-card:hover .category-icon-large {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(244, 208, 63, 0.3));
    border-color: rgba(244, 208, 63, 0.5);
}

.category-icon-large i {
    font-size: 52px;
    color: var(--moif-gold-bright);
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-header-card:hover .category-icon-large i {
    transform: scale(1.1);
    color: var(--moif-white);
}

/* Content Section */
.category-header-content {
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
}

    .category-header-content h1 {
        color: var(--moif-white) !important;
        font-size: clamp(26px, 4vw, 36px);
        margin: 0 0 16px;
        font-weight: 700;
        line-height: 1.3;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        position: relative;
        display: inline-block;
    }

        /* Animated underline for title */
        .category-header-content h1::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--moif-gold), var(--moif-gold-bright));
            border-radius: 2px;
            transition: width 0.3s ease;
        }

.category-header-card:hover .category-header-content h1::after {
    width: 100px;
}

.category-header-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.8;
    max-width: 800px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Stats Section - Enhanced Design */
.category-header-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

    .category-header-stats span {
        color: var(--moif-white);
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        /* Shine effect on hover */
        .category-header-stats span::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .category-header-stats span:hover::before {
            left: 100%;
        }

        .category-header-stats span:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

    .category-header-stats i {
        font-size: 22px;
        color: var(--moif-gold-bright);
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .category-header-stats span:hover i {
        transform: scale(1.2) rotate(10deg);
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .category-header-section {
        padding: 50px 0;
    }

    .category-header-card {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
        gap: 30px;
    }

    .category-icon-large {
        margin: 0 auto;
        width: 110px;
        height: 110px;
    }

        .category-icon-large i {
            font-size: 48px;
        }

    .category-header-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .category-header-stats {
        justify-content: center;
        gap: 20px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .category-header-section {
        padding: 40px 0;
    }

    .category-header-card {
        padding: 30px 24px;
        gap: 24px;
    }

    .category-icon-large {
        width: 100px;
        height: 100px;
    }

        .category-icon-large i {
            font-size: 44px;
        }

    .category-header-content p {
        margin-bottom: 20px;
    }

    .category-header-stats {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

        .category-header-stats span {
            width: 100%;
            justify-content: center;
            padding: 14px 16px;
            font-size: 15px;
        }

        .category-header-stats i {
            font-size: 20px;
        }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .category-header-section {
        padding: 32px 0;
    }

        .category-header-section::before,
        .category-header-section::after {
            display: none; /* Hide decorative elements on small screens */
        }

    .category-header-card {
        padding: 24px 20px;
        gap: 20px;
    }

    .category-icon-large {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

        .category-icon-large i {
            font-size: 36px;
        }

    .category-header-content h1 {
        margin-bottom: 12px;
    }

    .category-header-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .category-header-stats span {
        padding: 12px 14px;
        font-size: 14px;
    }

    .category-header-stats i {
        font-size: 18px;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

[dir="rtl"] .category-header-content h1::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .category-header-card:hover .category-icon-large {
    transform: scale(1.1) rotate(-5deg);
}

@media (max-width: 992px) {
    [dir="rtl"] .category-header-content h1::after {
        right: 50%;
        transform: translateX(50%);
    }
}

/* ============================================
   ALTERNATIVE STYLE OPTIONS
   ============================================ */

/* Option 1: Solid Background (uncomment to use) */
/*
.category-header-card {
    background: rgba(255, 255, 255, 1);
}

.category-header-content h1 {
    color: var(--moif-blue-dark) !important;
    text-shadow: none;
}

.category-header-content p {
    color: #64748b;
    text-shadow: none;
}

.category-header-stats span {
    background: #f1f5f9;
    color: var(--moif-blue-dark);
    border: 1px solid #e2e8f0;
}

.category-header-stats i {
    color: var(--moif-gold);
}
*/

/* Option 2: No Card Background (uncomment to use) */
/*
.category-header-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 20px 0;
}
*/

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .category-header-section::before,
    .category-header-section::after {
        display: none;
    }

    .category-header-section {
        background: none;
        padding: 20px 0;
    }

    .category-header-card {
        background: none;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .category-header-content h1,
    .category-header-content p,
    .category-header-stats span {
        color: #000 !important;
        text-shadow: none;
    }

    .category-icon-large {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }

        .category-icon-large i {
            color: #000 !important;
        }
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.category-content-section {
    padding: 50px 0;
    background: #f8f9fa;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar-wrapper {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: var(--moif-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .sidebar-card:hover {
        box-shadow: 0 4px 12px rgba(13, 27, 62, 0.1);
    }

.sidebar-title {
    font-size: 17px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--moif-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--moif-blue-dark);
    font-weight: 700;
}

    .sidebar-title i {
        color: var(--moif-gold);
        font-size: 20px;
    }

/* Sidebar Search */
.sidebar-search {
    position: relative;
}

    .sidebar-search input {
        width: 100%;
        padding: 12px 45px 12px 16px;
        border-radius: 10px;
        border: 2px solid #e2e8f0;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .sidebar-search input:focus {
            border-color: var(--moif-gold);
            outline: none;
            box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
        }

    .sidebar-search button {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 45px;
        background: none;
        border: none;
        color: var(--moif-gold);
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .sidebar-search button:hover {
            color: var(--moif-blue-dark);
        }

/* Category Filter List */
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .category-filter-list li {
        margin-bottom: 6px;
    }

        .category-filter-list li a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            border-radius: 8px;
            color: #334155;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
        }

            .category-filter-list li a:hover,
            .category-filter-list li.active a {
                background: rgba(201, 162, 39, 0.1);
                color: var(--moif-gold);
                transform: translateX(-4px);
            }

.cat-name {
    flex: 1;
}

.cat-count {
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-filter-list li.active .cat-count {
    background: var(--moif-gold);
    color: var(--moif-white);
}

/* Year Filter */
.sidebar-card .form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .sidebar-card .form-select:focus {
        border-color: var(--moif-gold);
        outline: none;
        box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
    }

/* Status Filter */
.status-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .status-filter-list li {
        margin-bottom: 6px;
    }

        .status-filter-list li a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 8px;
            color: #334155;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
        }

            .status-filter-list li a:hover,
            .status-filter-list li.active a {
                background: rgba(201, 162, 39, 0.1);
                color: var(--moif-gold);
                transform: translateX(-4px);
            }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .status-dot.active {
        background: #10b981;
    }

    .status-dot.amended {
        background: var(--moif-gold);
    }

    .status-dot.repealed {
        background: #ef4444;
    }

/* ============================================
   RESULTS HEADER
   ============================================ */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--moif-white);
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
    border: 1px solid #e2e8f0;
}

.results-info span {
    font-size: 15px;
    color: #64748b;
}

.results-info strong {
    color: var(--moif-blue-dark);
    font-weight: 700;
}

.btn-clear-filters {
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .btn-clear-filters:hover {
        background: rgba(201, 162, 39, 0.1);
        color: var(--moif-gold);
    }

    .btn-clear-filters i {
        font-size: 16px;
    }

/* ============================================
   LAW LIST CARDS
   ============================================ */

.laws-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.law-list-card {
    background: var(--moif-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

    .law-list-card:hover {
        transform: translateX(-4px);
        box-shadow: 0 8px 20px rgba(13, 27, 62, 0.12);
        border-color: var(--moif-gold);
    }

.law-list-header {
    background: var(--moif-blue-dark);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.law-list-number {
    color: var(--moif-white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

    .law-list-number i {
        color: var(--moif-gold-bright);
        font-size: 20px;
    }

.law-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .law-status.status-active {
        background: #10b981;
        color: var(--moif-white);
    }

    .law-status.status-amended {
        background: var(--moif-gold);
        color: var(--moif-white);
    }

    .law-status.status-repealed {
        background: #ef4444;
        color: var(--moif-white);
    }

    .law-status.status-suspended {
        background: #6b7280;
        color: var(--moif-white);
    }

.law-list-body {
    padding: 24px;
}

    .law-list-body h3 {
        font-size: clamp(17px, 2.5vw, 19px);
        margin: 0 0 16px;
        line-height: 1.5;
        font-weight: 700;
    }

        .law-list-body h3 a {
            color: var(--moif-blue-dark);
            transition: color 0.3s ease;
        }

            .law-list-body h3 a:hover {
                color: var(--moif-gold);
            }

.law-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}

    .law-list-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .law-list-meta i {
        color: var(--moif-gold);
        font-size: 16px;
    }

.law-list-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.btn-view-details {
    color: var(--moif-gold);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .btn-view-details:hover {
        color: var(--moif-blue-dark);
        gap: 12px;
    }

    .btn-view-details i {
        font-size: 16px;
    }

/* ============================================
   PAGINATION
   ============================================ */

.pagination-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

    .pagination-list li a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
        border-radius: 10px;
        background: var(--moif-white);
        color: #334155;
        font-weight: 600;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
        transition: all 0.3s ease;
        border: 1px solid #e2e8f0;
    }

        .pagination-list li a:hover,
        .pagination-list li.active a {
            background: var(--moif-gold);
            color: var(--moif-white);
            border-color: var(--moif-gold);
            transform: translateY(-2px);
        }

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--moif-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
    border: 2px dashed #e2e8f0;
}

    .empty-state i {
        font-size: 80px;
        color: #e2e8f0;
        margin-bottom: 24px;
        display: inline-block;
    }

    .empty-state h4 {
        color: var(--moif-blue-dark);
        margin: 0 0 12px;
        font-size: 22px;
        font-weight: 700;
    }

    .empty-state p {
        color: #64748b;
        margin: 0 0 24px;
        font-size: 15px;
        line-height: 1.6;
    }

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--moif-gold);
    color: var(--moif-white);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
}

    .btn-primary-custom:hover {
        background: var(--moif-blue-dark);
        color: var(--moif-white);
        transform: translateY(-2px);
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .category-header-card {
        flex-direction: column;
        text-align: center;
    }

    .category-icon-large {
        margin: 0 auto;
    }

    .category-header-stats {
        justify-content: center;
    }

    .sidebar-wrapper {
        position: static;
        margin-bottom: 30px;
    }

    .sidebar-card {
        padding: 20px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .category-header-section {
        padding: 40px 0;
    }

    .category-icon-large {
        width: 80px;
        height: 80px;
    }

        .category-icon-large i {
            font-size: 36px;
        }

    .category-header-stats {
        flex-direction: column;
        gap: 12px;
    }

    .category-content-section {
        padding: 40px 0;
    }

    .results-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 20px;
    }

    .results-actions {
        width: 100%;
    }

    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }

    .law-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 20px;
    }

    .law-list-number {
        font-size: 14px;
    }

    .law-list-body {
        padding: 20px;
    }

    .law-list-meta {
        flex-direction: column;
        gap: 10px;
    }

    .law-list-footer {
        padding: 14px 20px;
    }

    .category-filter-list li a,
    .status-filter-list li a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .category-header-section {
        padding: 30px 0;
    }

    .category-icon-large {
        width: 70px;
        height: 70px;
    }

        .category-icon-large i {
            font-size: 32px;
        }

    .sidebar-card {
        padding: 18px;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .empty-state {
        padding: 40px 24px;
    }

        .empty-state i {
            font-size: 64px;
        }

    .pagination-list li a {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* RTL Support */
[dir="rtl"] .category-filter-list li a:hover,
[dir="rtl"] .category-filter-list li.active a,
[dir="rtl"] .status-filter-list li a:hover,
[dir="rtl"] .status-filter-list li.active a {
    transform: translateX(4px);
}

[dir="rtl"] .law-list-card:hover {
    transform: translateX(4px);
}

[dir="rtl"] .sidebar-search button {
    right: auto;
    left: 0;
}

[dir="rtl"] .sidebar-search input {
    padding: 12px 16px 12px 45px;
}

[dir="rtl"] .btn-view-details i,
[dir="rtl"] .law-list-number i {
    transform: scaleX(-1);
}


/* ============================================
   SEARCH PAGE - FRESH MODERN DESIGN
   Clean & Professional Layout
   ============================================ */

/* Base Variables */
:root {
    --moif-blue-dark: #0D1B3E;
    --moif-blue: #1A2B4A;
    --moif-gold: #C9A227;
    --moif-gold-bright: #F4D03F;
    --moif-white: #FFFFFF;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* ============================================
   ADVANCED SEARCH SECTION
   ============================================ */

.advanced-search-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

/* Search Form Card */
.search-form-card {
    background: var(--moif-white);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(13, 27, 62, 0.08);
    border: 1px solid rgba(13, 27, 62, 0.06);
    position: relative;
}

    /* Decorative top border */
    .search-form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--moif-gold), var(--moif-gold-bright), var(--moif-gold));
        border-radius: 20px 20px 0 0;
    }

/* Form Grid */
.search-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: end;
}

.search-input-group.main-search {
    grid-column: 1 / -1;
}

/* Labels */
.search-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--moif-blue-dark);
    margin-bottom: 8px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--moif-gold);
        font-size: 20px;
    }

    .input-with-icon input {
        width: 100%;
        padding: 14px 16px 14px 50px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 15px;
        transition: all 0.3s ease;
    }

        .input-with-icon input:focus {
            border-color: var(--moif-gold);
            outline: none;
            box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
        }

/* Select & Input */
.form-select,
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

    .form-select:focus,
    .form-control:focus {
        border-color: var(--moif-gold);
        outline: none;
        box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
    }

/* Search Button */
.btn-search-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--moif-gold) 0%, var(--moif-gold-bright) 100%);
    color: var(--moif-white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

    .btn-search-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    }

    .btn-search-submit i {
        font-size: 18px;
    }

/* ============================================
   SEARCH RESULTS SECTION
   ============================================ */

.search-results-section {
    padding: 50px 0;
    background: #f8f9fa;
}

/* Results Header */
.results-header-card {
    background: var(--moif-white);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(13, 27, 62, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.results-info h3 {
    color: var(--moif-blue-dark);
    font-size: 22px;
    margin: 0 0 8px;
    font-weight: 700;
}

.results-info p {
    color: #6b7280;
    margin: 0;
    font-size: 15px;
}

.results-info strong {
    color: var(--moif-gold);
    font-weight: 700;
}

.btn-clear {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-clear:hover {
        background: var(--moif-gold);
        color: var(--moif-white);
    }

/* Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Result Card */
.search-result-card {
    background: var(--moif-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 27, 62, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
}

    .search-result-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(13, 27, 62, 0.12);
        border-color: var(--moif-gold);
    }

/* Card Header */
.result-card-header {
    background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue) 100%);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.result-law-number {
    color: var(--moif-white);
    font-weight: 700;
    font-size: 14px;
}

.result-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

    .result-status.status-active {
        background: var(--success);
        color: var(--moif-white);
    }

    .result-status.status-amended {
        background: var(--warning);
        color: var(--moif-blue-dark);
    }

    .result-status.status-repealed {
        background: var(--danger);
        color: var(--moif-white);
    }

    .result-status.status-suspended {
        background: #6b7280;
        color: var(--moif-white);
    }

/* Card Body */
.result-card-body {
    padding: 20px;
    flex: 1;
}

.result-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--moif-gold);
    background: rgba(201, 162, 39, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.result-card-body h4 {
    font-size: 17px;
    margin: 0 0 14px;
    line-height: 1.5;
    font-weight: 700;
}

    .result-card-body h4 a {
        color: var(--moif-blue-dark);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .result-card-body h4 a:hover {
            color: var(--moif-gold);
        }

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
}

    .result-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .result-meta i {
        color: var(--moif-gold);
        font-size: 15px;
    }

/* Card Footer */
.result-card-footer {
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
}

.btn-view {
    color: var(--moif-gold);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-view:hover {
        color: var(--moif-blue-dark);
        gap: 12px;
    }

    .btn-view i {
        font-size: 16px;
    }

/* ============================================
   NO RESULTS STATE
   ============================================ */

.no-results-card {
    background: var(--moif-white);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(13, 27, 62, 0.06);
    border: 2px dashed #e5e7eb;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

    .no-results-icon i {
        font-size: 48px;
        color: #9ca3af;
    }

.no-results-card h3 {
    color: var(--moif-blue-dark);
    font-size: 26px;
    margin: 0 0 12px;
    font-weight: 700;
}

.no-results-card > p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 32px;
    line-height: 1.6;
}

.search-tips {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

    .search-tips h5 {
        color: var(--moif-blue-dark);
        font-size: 16px;
        margin: 0 0 16px;
        font-weight: 700;
    }

    .search-tips ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .search-tips li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        color: #374151;
        font-size: 14px;
    }

        .search-tips li i {
            color: var(--success);
            font-size: 18px;
        }

.btn-try-again {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--moif-gold);
    color: var(--moif-white);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

    .btn-try-again:hover {
        background: var(--moif-blue-dark);
        color: var(--moif-white);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 27, 62, 0.3);
    }

    .btn-try-again i {
        font-size: 18px;
    }

/* ============================================
   INITIAL STATE
   ============================================ */

.initial-state-card {
    background: var(--moif-white);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(13, 27, 62, 0.06);
}

.initial-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(244, 208, 63, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid rgba(201, 162, 39, 0.2);
}

    .initial-icon i {
        font-size: 48px;
        color: var(--moif-gold);
    }

.initial-state-card h3 {
    color: var(--moif-blue-dark);
    font-size: 28px;
    margin: 0 0 12px;
    font-weight: 700;
}

.initial-state-card > p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   QUICK CATEGORIES SECTION - BORDER ICONS DESIGN
   ============================================ */

.quick-categories {
    margin-top: 50px;
    position: relative;
}

    .quick-categories h5 {
        color: var(--moif-blue-dark);
        font-size: 20px;
        margin: 0 0 28px;
        font-weight: 800;
        position: relative;
        display: inline-block;
        padding-bottom: 12px;
    }

        .quick-categories h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--moif-gold), var(--moif-gold-bright));
            border-radius: 3px;
        }

/* Enhanced Grid Layout */
.quick-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* Enhanced Card Design */
.quick-category-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(13, 27, 62, 0.08);
    border-radius: 18px;
    padding: 28px 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 27, 62, 0.04);
    height: 100%;
}

    /* Card Background Pattern */
    .quick-category-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, rgba(201, 162, 39, 0.03) 0%, rgba(244, 208, 63, 0.03) 100%);
        border-radius: 0 18px 0 80px;
        transition: all 0.4s ease;
    }

    /* Hover Effects */
    .quick-category-card:hover {
        background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
        border-color: var(--moif-gold);
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(13, 27, 62, 0.12), 0 4px 12px rgba(201, 162, 39, 0.15);
    }

        .quick-category-card:hover::before {
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(244, 208, 63, 0.08) 100%);
        }

/* Border-Only Icon Container */
.qc-icon {
    width: 70px;
    height: 70px;
    border: 2.5px solid transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 6px 20px rgba(13, 27, 62, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* Different colored borders for variety */
.quick-category-card:nth-child(1) .qc-icon {
    border-color: var(--moif-gold);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.quick-category-card:nth-child(2) .qc-icon {
    border-color: var(--moif-blue-dark); /* Blue */
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.quick-category-card:nth-child(3) .qc-icon {
    border-color: #10B981; /* Emerald */
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.quick-category-card:nth-child(4) .qc-icon {
    border-color: #8B5CF6; /* Purple */
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.quick-category-card:nth-child(5) .qc-icon {
    border-color: #EF4444; /* Red */
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.quick-category-card:nth-child(6) .qc-icon {
    border-color: #F59E0B; /* Amber */
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.quick-category-card:nth-child(7) .qc-icon {
    border-color: #EC4899; /* Pink */
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.2);
}

.quick-category-card:nth-child(8) .qc-icon {
    border-color: #06B6D4; /* Cyan */
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2);
}

/* Gradient Border Effect on Hover */
.qc-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Colored Icons */
.qc-icon i {
    font-size: 32px;
    transition: all 0.4s ease;
}

/* Different colored icons matching borders */
.quick-category-card:nth-child(1) .qc-icon i {
    color: var(--moif-gold);
}

.quick-category-card:nth-child(2) .qc-icon i {
    color: var(--moif-blue-dark);
}

.quick-category-card:nth-child(3) .qc-icon i {
    color: #10B981;
}

.quick-category-card:nth-child(4) .qc-icon i {
    color: #8B5CF6;
}

.quick-category-card:nth-child(5) .qc-icon i {
    color: #EF4444;
}

.quick-category-card:nth-child(6) .qc-icon i {
    color: #F59E0B;
}

.quick-category-card:nth-child(7) .qc-icon i {
    color: #EC4899;
}

.quick-category-card:nth-child(8) .qc-icon i {
    color: #06B6D4;
}

/* Hover Effects for Icons */
.quick-category-card:hover .qc-icon {
    border-color: transparent;
    background: linear-gradient(135deg, var(--moif-gold) 0%, var(--moif-gold-bright) 100%);
    transform: rotateY(180deg) scale(1.1);
}

    .quick-category-card:hover .qc-icon::after {
        opacity: 1;
    }

    .quick-category-card:hover .qc-icon i {
        color: var(--moif-white);
        transform: rotateY(-180deg);
    }

/* Enhanced Text Styling */
.qc-name {
    color: var(--moif-blue-dark);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-category-card:hover .qc-name {
    color: var(--moif-gold);
}

.qc-count {
    color: #6b7280;
    font-size: 14px;
    background: rgba(107, 114, 128, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.quick-category-card:hover .qc-count {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(244, 208, 63, 0.15) 100%);
    color: var(--moif-gold);
    transform: scale(1.05);
}

/* Category Badge Indicator */
.qc-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.quick-category-card:hover .qc-badge {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
}

/* Animation for card entrance */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-category-card {
    animation: cardEntrance 0.6s ease forwards;
    opacity: 0;
}

    .quick-category-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .quick-category-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .quick-category-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .quick-category-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .quick-category-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .quick-category-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    .quick-category-card:nth-child(7) {
        animation-delay: 0.7s;
    }

    .quick-category-card:nth-child(8) {
        animation-delay: 0.8s;
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .quick-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .quick-categories {
        margin-top: 40px;
    }

        .quick-categories h5 {
            font-size: 18px;
            margin-bottom: 24px;
        }

    .quick-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .quick-category-card {
        padding: 24px 20px;
    }

    .qc-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
        border-width: 2px;
    }

        .qc-icon i {
            font-size: 28px;
        }
}

@media (max-width: 576px) {
    .quick-categories-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .quick-category-card {
        padding: 22px 20px;
    }

    .quick-categories h5::after {
        width: 50px;
    }

    .qc-icon {
        width: 56px;
        height: 56px;
    }

        .qc-icon i {
            font-size: 26px;
        }
}

/* RTL Support */
[dir="rtl"] .quick-categories h5::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .quick-category-card::before {
    right: auto;
    left: 0;
    border-radius: 18px 0 80px 0;
}

[dir="rtl"] .qc-badge {
    right: auto;
    left: 20px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .quick-category-card {
        background: linear-gradient(145deg, #1a1c23 0%, #16181f 100%);
        border-color: rgba(255, 255, 255, 0.08);
    }

        .quick-category-card:hover {
            background: linear-gradient(145deg, #1e2028 0%, #1a1c23 100%);
        }

    .qc-icon {
        background: linear-gradient(145deg, #1e2028 0%, #1a1c23 100%);
    }

    .qc-name {
        color: #e5e7eb;
    }

    .qc-count {
        color: #9ca3af;
        background: rgba(156, 163, 175, 0.12);
    }

    /* Adjust icon colors for dark mode */
    .quick-category-card:nth-child(1) .qc-icon i {
        color: var(--moif-gold-bright);
    }

    .quick-category-card:nth-child(2) .qc-icon i {
        color: #60A5FA;
    }

    .quick-category-card:nth-child(3) .qc-icon i {
        color: #34D399;
    }

    .quick-category-card:nth-child(4) .qc-icon i {
        color: #A78BFA;
    }

    .quick-category-card:nth-child(5) .qc-icon i {
        color: #F87171;
    }

    .quick-category-card:nth-child(6) .qc-icon i {
        color: #FBBF24;
    }

    .quick-category-card:nth-child(7) .qc-icon i {
        color: #F472B6;
    }

    .quick-category-card:nth-child(8) .qc-icon i {
        color: #22D3EE;
    }
}

/* Print Styles */
@media print {
    .quick-category-card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .qc-icon {
        border-color: #333 !important;
    }

        .qc-icon i {
            color: #333 !important;
        }

    .quick-category-card:hover .qc-icon {
        background: none !important;
        border-color: #333 !important;
    }

        .quick-category-card:hover .qc-icon i {
            color: #333 !important;
        }
}
/* ============================================
   PAGINATION
   ============================================ */

.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

    .pagination-list li a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        padding: 0 12px;
        border-radius: 10px;
        background: var(--moif-white);
        color: #374151;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
        transition: all 0.3s ease;
        border: 1px solid #e5e7eb;
    }

        .pagination-list li a:hover,
        .pagination-list li.active a {
            background: var(--moif-gold);
            color: var(--moif-white);
            border-color: var(--moif-gold);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
        }

        .pagination-list li a i {
            font-size: 18px;
        }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .search-form-grid {
        grid-template-columns: 1fr;
    }

    .search-input-group.main-search {
        grid-column: 1;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .advanced-search-section,
    .search-results-section {
        padding: 40px 0;
    }

    .search-form-card {
        padding: 32px 24px;
    }

    .results-header-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .btn-clear {
        width: 100%;
        justify-content: center;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .no-results-card,
    .initial-state-card {
        padding: 40px 24px;
    }

    .quick-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .search-form-card {
        padding: 28px 20px;
    }

    .input-with-icon input {
        padding: 12px 14px 12px 46px;
    }

    .btn-search-submit {
        padding: 13px 20px;
    }

    .quick-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
[dir="rtl"] .input-with-icon i {
    left: auto;
    right: 16px;
}

[dir="rtl"] .input-with-icon input {
    padding: 14px 50px 14px 16px;
}

/* Print Styles */
@media print {
    .advanced-search-section,
    .btn-clear,
    .btn-view,
    .btn-try-again,
    .pagination-wrapper {
        display: none !important;
    }
}