/* ========================================
   LEGISLATION PAGE STYLES
   ======================================== */

/* Hero Section */
.legislation-hero {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.legislation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

/* Quick Navigation */
.quick-nav-section {
    border-bottom: 3px solid #1E3A8A;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-nav-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-nav-wrapper h6 {
    color: #1E3A8A;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.quick-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-nav-link {
    padding: 8px 16px;
    background: white;
    border: 2px solid #1E3A8A;
    border-radius: 25px;
    color: #1E3A8A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-nav-link:hover {
    background: #1E3A8A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Sidebar */
.legislation-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.widget-title {
    color: #1E3A8A;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #10B981;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #1F2937;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    transform: translateX(5px);
}

.sidebar-nav a i {
    font-size: 12px;
}

/* Download List */
.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 12px;
}

.download-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #F3F4F6;
    border-radius: 8px;
    color: #1F2937;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.download-list a:hover {
    background: #1E3A8A;
    color: white;
    transform: translateX(5px);
}

.download-list a i {
    color: #EF4444;
    font-size: 18px;
}

.download-list a:hover i {
    color: white;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: white;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.sidebar-cta h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.section-title {
    color: #1E3A8A;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #6B7280;
    font-size: 16px;
    margin: 0;
}

/* Law Cards */
.law-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.law-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    padding: 20px 25px;
}

.law-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.law-body {
    padding: 25px;
}

/* Info Boxes */
.info-box {
    background: #EFF6FF;
    border-left: 4px solid #3B82F6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-box h6 {
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.warning-box p {
    margin: 0;
    color: #78350F;
}

.highlight-box {
    background: #D1FAE5;
    border-left: 4px solid #10B981;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.highlight-box p {
    margin: 0;
    color: #065F46;
}

/* Styled Lists */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.styled-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #1F2937;
    line-height: 1.6;
}

.styled-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #10B981;
    font-size: 14px;
}

/* Concept Cards */
.concept-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.concept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.15);
}

.concept-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.concept-card h5 {
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 12px;
}

.concept-card p {
    color: #6B7280;
    margin: 0;
}

/* Accordion */
.legislation-accordion .accordion-item {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.legislation-accordion .accordion-button {
    background: white;
    color: #1E3A8A;
    font-weight: 600;
    padding: 20px 25px;
    font-size: 16px;
}

.legislation-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    box-shadow: none;
}

.legislation-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #1E3A8A;
}

.legislation-accordion .accordion-body {
    padding: 25px;
    background: #F9FAFB;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1E3A8A 0%, #10B981 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 17px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #10B981;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #1E3A8A;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.timeline-content h5 {
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Obligation Cards */
.obligation-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.obligation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.15);
}

.obligation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 28px;
    color: white;
}

.obligation-card h5 {
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
}

.obligation-card p {
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* Rights Cards */
.rights-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.rights-card .card-header {
    padding: 20px 25px;
}

.rights-card .card-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rights-list li {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
}

.rights-list li:last-child {
    border-bottom: none;
}

.rights-list i {
    font-size: 24px;
    color: #10B981;
    flex-shrink: 0;
    margin-top: 3px;
}

.rights-list strong {
    display: block;
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 5px;
}

.rights-list p {
    color: #6B7280;
    margin: 0;
    font-size: 14px;
}

/* Insurance Card */
.insurance-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.insurance-header {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.insurance-header i {
    font-size: 40px;
}

.insurance-header h4 {
    flex: 1;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.insurance-body {
    padding: 30px;
}

.optional-insurance-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.optional-insurance-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 28px;
    color: white;
}

.optional-insurance-card h5 {
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Assembly Process */
.assembly-process {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.process-step {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: #E5E7EB;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Tables */
.quorum-table,
.voting-table {
    margin-top: 20px;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: #1E3A8A;
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: white;
    color: #1E3A8A;
    font-weight: 600;
    padding: 20px 25px;
    font-size: 16px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #EFF6FF;
    color: #1E3A8A;
}

.faq-accordion .accordion-button i {
    color: #10B981;
}

.faq-accordion .accordion-body {
    padding: 25px;
    background: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.3);
}

.cta-content i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-content h3 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Responsive */
@media (max-width: 991px) {
    .legislation-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        margin: 0 auto;
    }
    
    .quick-nav-wrapper {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 24px;
    }
    
    .cta-content h3 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 5px;
    }
    
    .process-step {
        flex-direction: column;
        gap: 15px;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* patch footer logo and top contact icons */
.footer-logo, .footer img{max-height:72px;width:auto;display:block}
.top-bar .contact-info i{margin-right:6px}
.top-bar .contact-info a{white-space:nowrap}
